//DS1302工作开始
void TimeWorkStart(void)
{
unsigned char val
val = TimeByteRead(timereadseg) //读秒数据
val &= 0x7f //打开晶振
TimeWrieDisbale() //开放DS1302写保护
TimeByteWrite(timewriteseg, val) //打开晶振
TimeByteWrite(tricklewrite, 0xa5) //打开充电二极管
TimeWriteEnable() //使能DS1302写保护
}
标签:
void
TimeWorkStart
TimeByteRead
timereadseg
上传时间:
2013-12-11
上传用户:爺的气质