程序摘要:NAME PUB7279
PUBLIC I2C_GetKey, I2C_GetKeyA, I2C_GetBCDKey, I2C_DisPlay8, I2C_DisPlay4
PUBLIC ZLG7290INIT,ScanKey,LEDClear,KeyRead,RepeatNumRead,FunctionKeyRead,SetScanNum
PUBLIC SetFlashOnOff,L_Shift,R_Shift,L_Shift_R,R_Shift_R,GlintContr,LED,LED_8
F1 BIT PSW.1
SDA BIT P1.0 ;数据传输口DATA
SCL BIT P1.1 ;时钟
INT BIT P3.2 ;按键中断,低电平中断信号
;ZLG7290的片选地址:70H
ZLG7290_WRITE EQU 70H ;写指令
ZLG7290_READ EQU 71H ;读指令
;ZLG7290各寄存器地址
SystemReg EQU 00H ;系统寄存器
程序下载:
|