- 11
- 0
- 约3.8千字
- 约 7页
- 2017-12-22 发布于河南
- 举报
温控程序
温控程序
#include reg51.h
#include string.h
#define LED P0
unsigned int AD_value;
unsigned char outdata,indata,inputch=0,outdatao=0;
unsigned char code digivalue[]={0x28,0x7e,0x0a2,0x62,0x74,0x61,0x21,0x7a,0x20,0x60};
//unsigned char code DIS_SEG7[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e}; //显示的数字数组,依次为0,1,..,9
sbit GE=P3^3;
sbit SH=P3^2;
float outdatasi=0,outdatas;
sbit AD_WR=P3^7;
sbit AD_RD=P3^6;
sbit DA_WR=P3^5;
sbit DA_CS=P3^4;
float Tset;
void delay(){
unsigned int x;
for(x=0;x1000;x++)
原创力文档

文档评论(0)