K3:--- P1.6
K4:--- P1.7
BEEP:--- P3.7
K3 --- 控制按鍵
K4 --- 清零按鍵
開機(jī)顯示:
SECOND-clock 0
TIME 00:00:00:00
K3 --- 控制按鍵:
第一次按下時(shí),開始計(jì)時(shí)。
顯示
BEGIN COUNT 1
TIME 00:00:01:88
第二次按下時(shí),暫停計(jì)時(shí)。
顯示
PAUST COUNT 2
TIME 00:00:01:88
第三次按下時(shí),累計(jì)計(jì)時(shí)。
顯示
BEGIN COUNT 3
TIME 00:08:08:88
第四次按下時(shí),暫停計(jì)時(shí)。
顯示
PAUST COUNT 4
TIME 00:08:08:88
K4 --- 清零按鍵:
在任何狀態(tài)下,按一下K4,均可清零。
顯示
SECOND-clock 0
TIME 00:00:00:00
0,1,2,3,4 表示按下K3鍵的次數(shù)。
標(biāo)簽:
SECOND-clock
K3
BEEP
K4
上傳時(shí)間:
2014-01-14
上傳用戶:515414293
c8051f020 實(shí)時(shí)時(shí)鐘模塊程序 內(nèi)含IIC模塊程序/********************** SYSTEM clock 8M********************************/
extern unsigned char xdata currenttime[16]={0}
extern unsigned char xdata settime[16]={
0x00, // control regesiter 1
0x00, // control regesiter 2
0x01, //current second
0x19, //current minute
0x20, //current hour
0x29, //current data
0x04, //current week
0x07, //current month
0x05, //current year
0x00, // alarm value reset
0x00, // alarm value reset
0x00, // alarm value reset
0x00, // alarm value reset
0x00, // clk out disable
0x00, // close timer
0x00,
}
/*********************************************************************/
extern void Current_Time ( void )
extern void Set_Time ( void )
標(biāo)簽:
c8051f020
SYSTEM
clock
IIC
上傳時(shí)間:
2015-06-30
上傳用戶:edisonfather