文件名称:c8051f020_8563
介绍说明--下载内容均来自于网络,请自行研究使用
c8051f020 实时时钟模块程序 内含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 ) -C8051f020 real-time clock module containing procedures IIC module procedures /********* * * * SYSTEM CLOCK 8M ************** ******************/ extern unsigned char OS ta currenttime [16] = (0) extern unsigned char x settime data [16] = (0x00, / / control regesiter an 0x00, / / control regesiter two 0x01, / / current second 0x19, / / current minute 0x20, / / 0x29 current hour. / / current data 0x04, / / current week hex 07. / / current month 0x05, / / 0x00 current year. / / reset alarm value 0x00, / / reset alarm value 0x00, / / reset alarm value 0x00, / / reset alarm value 0x00, / / clk out disable 0x00, / / close timer 0x00, /**************************************) *******************************/ extern gift id Current_Time (void) extern void Set_Time (v oid)
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 ) -C8051f020 real-time clock module containing procedures IIC module procedures /********* * * * SYSTEM CLOCK 8M ************** ******************/ extern unsigned char OS ta currenttime [16] = (0) extern unsigned char x settime data [16] = (0x00, / / control regesiter an 0x00, / / control regesiter two 0x01, / / current second 0x19, / / current minute 0x20, / / 0x29 current hour. / / current data 0x04, / / current week hex 07. / / current month 0x05, / / 0x00 current year. / / reset alarm value 0x00, / / reset alarm value 0x00, / / reset alarm value 0x00, / / reset alarm value 0x00, / / clk out disable 0x00, / / close timer 0x00, /**************************************) *******************************/ extern gift id Current_Time (void) extern void Set_Time (v oid)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 45666037c8051f020_8563.rar 列表 pcf8563\config.h pcf8563\IIC.C pcf8563\IIC.h pcf8563\IIC.LST pcf8563\IIC.OBJ pcf8563\IIC.__i pcf8563\keyled.h pcf8563\pcf8563 pcf8563\pcf8563.M51 pcf8563\pcf8563.Opt pcf8563\pcf8563.plg pcf8563\pcf8563_Uv2.Bak pcf8563\RealTimeClk pcf8563\RealTimeClk.h pcf8563\RealTimeClk.M51 pcf8563\RealTimeClk.Opt pcf8563\RealTimeClk.plg pcf8563\RealTimeClk.Uv2 pcf8563\RealTimeClk_Opt.Bak pcf8563\RealTimeClk_Uv2.Bak pcf8563\RTLCLK.C pcf8563\RTLCLK.H pcf8563\RTLCLK.LST pcf8563\RTLCLK.OBJ pcf8563\RTLCLK.__i pcf8563\testkeyled.c pcf8563\testkeyled.LST pcf8563\testkeyled.OBJ pcf8563