文件名称:DS1302
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [Text]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- zhong*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
//DS1302工作开始
void TimeWorkStart(void)
{
unsigned char val
val = TimeByteRead(timereadseg) //读秒数据
val &= 0x7f //打开晶振
TimeWrieDisbale() //开放DS1302写保护
TimeByteWrite(timewriteseg, val) //打开晶振
TimeByteWrite(tricklewrite, 0xa5) //打开充电二极管
TimeWriteEnable() //使能DS1302写保护
}-//DS1302 began void TimeWorkStart (void) (unsigned char val val = TimeByteRead (timereadseg)// Countdown data val
void TimeWorkStart(void)
{
unsigned char val
val = TimeByteRead(timereadseg) //读秒数据
val &= 0x7f //打开晶振
TimeWrieDisbale() //开放DS1302写保护
TimeByteWrite(timewriteseg, val) //打开晶振
TimeByteWrite(tricklewrite, 0xa5) //打开充电二极管
TimeWriteEnable() //使能DS1302写保护
}-//DS1302 began void TimeWorkStart (void) (unsigned char val val = TimeByteRead (timereadseg)// Countdown data val
(系统自动生成,下载前可以参看下载内容)
下载文件列表
DS1302.txt