温度控制系统代码范文.docxVIP

  • 53
  • 0
  • 约1.25万字
  • 约 33页
  • 2020-11-13 发布于河北
  • 举报
温度控制系统代码 include reg51.h include intrins.h include string.h include math.h typedef unsigned char BYTE; typedef unsigned int WORD; typedef bit BOOL; /* DS1620管脚腿定义 #define DQ P2_4 #define CLK P2_3 #define RST P25 */ /****LCD1602 define******/ #define uchar unsigned char #define uint unsigned int #define LCD_DB P0 /* */ sbit rs=P2A0; sbit rw=P2A1; sbit ep=P2A2; sbit DQ=P2A4; sbit CLK=P2A3; //LCD1602 RS 定义 //LCD1602 RW 定义 //LCD1602 EP 定义 sbit RST=P2A5; sbit p27=P2A7; /*test lamp*/ sbit p26=P2A6; 〃控制继电器开断 //sbit RST = 0xA2; /* DS1620 reset line */ //sbit CLK = 0xA3; /* DS1620 clock line */ //sbit

文档评论(0)

1亿VIP精品文档

相关文档