单片机温度采集.pdfVIP

  • 29
  • 0
  • 约7.81千字
  • 约 8页
  • 2021-06-10 发布于上海
  • 举报
#include REG51.H #include intrins.h //#include LCD1602.h //#include DS1302.h #define uint unsigned int #define uchar unsigned char sbit ACC0 = ACC^0; sbit ACC7 = ACC^7; sbit Set = P1^4; //模式切换键 sbit Up = P1^5; //加法按钮 sbit Down = P1^6; // 减法按钮 sbit out = P1^7; //立刻跳出调整模式按钮 sbit DQ = P3^3; // 温度传送数据 IO 口 char done,count,temp,flag,up_flag,down_flag; uchar temp_value; //温度值 uchar TempBuffer[5],week_value[2]; void

文档评论(0)

1亿VIP精品文档

相关文档