如何要ds1302时间暂停

2024-11-15 16:17:15
推荐回答(1个)
回答1:

Write1302(0x8e,0x00); //写入允许
temp=Read1302(0x80);
Write1302(0x80,temp|0x80);
Write1302(0x8e,0x80); //禁止写入