/*------------------------------------------------
从DS1302读出时钟数据
------------------------------------------------*/
void Ds1302_Read_Time(void)
{
unsigned char i,tmp;
time_buf[0]=Ds1302_Read_Byte(ds1302_hr_add); //时
time_buf[1]=Ds1302_Read_Byte(ds1302_min_add); //分
time_buf[2]=(Ds1302_Read_Byte(ds1302_sec_add))&0x7F;//秒
|