文件名称:c8051f020_8563
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 29kb
- 下载次数:
- 0次
- 提 供 者:
- 梁**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
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)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
pcf8563
.......\config.h
.......\IIC.C
.......\IIC.h
.......\IIC.LST
.......\IIC.OBJ
.......\IIC.__i
.......\keyled.h
.......\pcf8563
.......\pcf8563.M51
.......\pcf8563.Opt
.......\pcf8563.plg
.......\pcf8563_Uv2.Bak
.......\RealTimeClk
.......\RealTimeClk.h
.......\RealTimeClk.M51
.......\RealTimeClk.Opt
.......\RealTimeClk.plg
.......\RealTimeClk.Uv2
.......\RealTimeClk_Opt.Bak
.......\RealTimeClk_Uv2.Bak
.......\RTLCLK.C
.......\RTLCLK.H
.......\RTLCLK.LST
.......\RTLCLK.OBJ
.......\RTLCLK.__i
.......\testkeyled.c
.......\testkeyled.LST
.......\testkeyled.OBJ
.......\config.h
.......\IIC.C
.......\IIC.h
.......\IIC.LST
.......\IIC.OBJ
.......\IIC.__i
.......\keyled.h
.......\pcf8563
.......\pcf8563.M51
.......\pcf8563.Opt
.......\pcf8563.plg
.......\pcf8563_Uv2.Bak
.......\RealTimeClk
.......\RealTimeClk.h
.......\RealTimeClk.M51
.......\RealTimeClk.Opt
.......\RealTimeClk.plg
.......\RealTimeClk.Uv2
.......\RealTimeClk_Opt.Bak
.......\RealTimeClk_Uv2.Bak
.......\RTLCLK.C
.......\RTLCLK.H
.......\RTLCLK.LST
.......\RTLCLK.OBJ
.......\RTLCLK.__i
.......\testkeyled.c
.......\testkeyled.LST
.......\testkeyled.OBJ