?? io65xx.h
字號:
/***************************************************************************
* This code and information is provided "as is" without warranty of any *
* kind, either expressed or implied, including but not limited to the *
* implied warranties of merchantability and/or fitness for a particular *
* purpose. *
* *
* Copyright (C) 2006 Teridian Semiconductor Corp. All Rights Reserved. *
***************************************************************************/
//**************************************************************************
// DESCRIPTION: 71M65xx POWER METER - I/O memory mapped SFR definitions.
//
// AUTHOR: MTF
//
// HISTORY: See end of file
//**************************************************************************
// File: IO65xx.H
//
/* io65xx special functions registers. */
#ifndef IO65XX_H
#define IO65XX_H 1
// CKTEST is any test input frequency.
// CK32 is 32768 Hz from XTAL.
// RTCLK is 32768 Hz from XTAL.
// CKADC is CK32 x 150 or CKTEST when CK_EN.
// CKFIR is CKADC delayed.
// CKCE is CKADC.
// CKMPU is derived from CKCE and MPU_DIV.
// CKEM is CKMPU x 2.
// CKLCD is derived from CKADC and LCD_CLK.
// CK32 drives MUX.
#define IO_BASE 0x2000 // Base of IO SFR RAM.
#if 0 == FIR
#define DEG_SCALE (1275.)
#elif 1 == FIR
#define DEG_SCALE (9585.)
#elif 2 == FIR
#define DEG_SCALE (22721.)
#else
#error unknown FIR length
#endif
#define CE_ENABLE() CE0 |= CE_EN; IFLAGS = ~(IE_XFER_ | IE_RTC_)
#define CE_DISABLE() CE0 &= ~CE_EN
#define CE_BUSY INT_CE_BUSY
#define CE_ACTIVE (CE0 & CE_EN)
/***************************************************************************
* History:
* $Log: io65xx.h,v $
* Revision 1.1 2006/03/02 01:46:54 Michael T. Fischer
* First cut at 6530 includes.
*
*
* Copyright (C) 2006 Teridian Semiconductor Corp. All Rights Reserved. *
* this program is fully protected by the United States copyright *
* laws and is the property of Teridian Semiconductor Corporation. *
***************************************************************************/
#endif /* io65xx.h */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -