DS3231高精度时钟程序代码(单片机STC89c52RC与1602显示).docVIP

  • 219
  • 0
  • 约8.9千字
  • 约 10页
  • 2021-11-24 发布于天津
  • 举报

DS3231高精度时钟程序代码(单片机STC89c52RC与1602显示).doc

//DS3231,经测试,日期,时间,星期,温度可以用 1602显示 #in elude reg51.h #in elude vintrin s.h #defi ne uint un sig ned int #define yh 0x80 //第一行的初始位置 #defi ne er 0x80+0x40 // sbit wr=P1 A1; sbit rs=P1A 。; sbit en= 卩 2 人 5; #defi ne DS3231 _WriteAddress OxDO // 器件写地址 #defi ne DS3231 _ReadAddress 0xD1 // 址 器件读地 #defi ne DS3231 _SECOND 0x00 // 秒 #defi ne DS3231 _MINUTE 0x01 // 分 #defi ne DS3231 _HOUR 0x02 // 时 #defi ne DS3231 _WEEK 0x03 // 星期 #defi ne DS3231 _DAY 0x04 // 日 #defi ne DS3231 _MONTH 0x05 //月 #defi ne DS3231 _YEAR 0x06 // 年 //闹铃1 #defi ne DS3231 _SALARM1ECOND 0x07 // 秒 #defi ne DS3231 _ALARM1MIN

文档评论(0)

1亿VIP精品文档

相关文档