可设定上下限温控程序.doc

可设定上下限温控程序

/*---------------------------------------------------------------- 段P0,位P2。接线从低端开始,段a--h对应P0.0--P0.7.位1,2...对应 P2.0--P2.7 ------------------------------------------------------------------*/ //单片机:89CS52 //晶振:12MH #include AT89X52.h #include DS18B20.h #define schar signed char #define uint unsigned int #define uchar unsigned char //宏定义 sbit SET=P3^1; //定义调整键 sbit DEC=P3^2; //定义减少键 sbit ADD=P3^3; //定义增加键 sbit jiawen=P3^6; //定义加温 bit shanshuo_st; //闪烁间隔标志 bit beep_st; //加温间隔标志 u

文档评论(0)

1亿VIP精品文档

相关文档