?? spt660x.inc
字號:
//===================================================================
// 單 位:深圳市證通金信科技有限公司
// 作 者:付慶
// 版 本:0.00.01 [主版本號.次版本號.修訂版本號]
// 創建日期:2006-02-10
// 修改日期:2006-02-10
// 說 明:系統寄存器定義
// 修改記錄:
//===================================================================
//-------------------------------*/
// Port A, B, C, D */
//-------------------------------*/
.const P_IOA_Data =0x7000; //R/W, portA data
// IOA0~IOA7 can be set as input or output pin by pin.
// Input mode - IOA0~IOA7 provide pull-high resistosrs
// IOA6 & IOA7 provide pull-low resistors
// Output mode - CMOS output
// Wake-up - IOA0~IOA7 all provide wake-up function
// IOA0~4 - (I) Keyboad inputs (pull-high)
// IOA5 - (O) Option (low active);
// IOA6 - (I) Pulse/Tone Select (pull-high <-> pull-low)
// 10pps / 20pps / Tone = low/floating/high
// IOA7 - (I) Lock Select (pull-high <-> pull-low)
// disable / lock all / lock 0 = low/floating/high
.const P_IOA_Buf =0x7001; //R, port A output latch
.const P_IOA_Dir =0x7002; //R/W, portA direction, 0/1 = I/O
.const P_IOA_PullR =0x7003; //R/W, portA pull-highs & pull-lows
// b15~b8 = 1 to enable pull-high of IOA7~IOA0
// b7~b6 = 1 to enable pull-low of IOA7~IOA6
.const P_IOA_Latch =0x7004; //R, latch IO for wakeup
//---------------------------------
.const P_IOB_Data =0x7005; //R/W, portB data
// IOB0~IOB7 can be set as input or output pin by pin.
// Input mode - CMOS input (without pulled reisitors)
// Output mode - IOB0~IOB5 are CMOS outputs
// IOB6 & IOB7 are NMOS open-drain
// Wake-up - no wake-up function
// IOB0~4 - (O) keyboard driven lines (CMOS output) (low active)
// IOB5 - (O) HandFree Output (CMOS output) (high active)
// IOB6 - (O) /Xmute (NMOS open-drain) (low active)
// IOB7 - (O) DP (NMOS open-drain) (high active)
.const P_IOB_Buf =0x7006; //R, portB output latch
.const P_IOB_Dir =0x7007; //R/W, portB direction, 0/1 = I/O
//---------------------------------
.const P_IOC_Data =0x7008; //R/W, portC data
// IOC0~IOC7 can be set as input or output pin by pin.
// Input mode - CMOS input (without pulled reisitors)
// Output mode - IOC0~IOC5 are CMOS outputs
// IOC6 & IOC7 are NMOS open-drain
// Wake-up - IOC0 & IOC1 provide wake-up function
// IOC0 - (I) Ringer Detect (wake-up)
// IOC1 - (I) Hook Detect (wake-up)
// IOC2 - (O) Option (low active)
// IOC6 - (I) Steal Detect, Auto-Hold release
// IOC4 - (O) Ringer Contrl
// IOC6 - (O) nMOS open-dran, output '0' if NC
// IOC7 - (O) nMOS open-dran, output '0' if NC
.const P_IOC_Buf =0x7009; //R, portC output latch
.const P_IOC_Dir =0x700A; //R/W, portC direction
//---------------------------------
.const P_IOD_Data =0x700B; //R/W, portD data
// IOD0~1 can be set as input or output pin by pin.
// Input mode - CMOS input (without pulled reisitors)
// Output mode - IOD0~IOD1 are CMOS outputs
// Wake-up - no wake-up function
// IOD0~1 - (x)
.const P_IOD_Buf =0x700C; //R, portD output latch
.const P_IOD_Dir =0x700D; //R/W, portD direction, 0/1 = I/O
//---------------------------------
.const P_IOCD_Ctrl =0x700E;
// XXXX XXXX 7654 3210
// 吵 吵懶
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -