基于51单片机的热电阻温度检测设计(毕业设计资料)
【资源下载】下载地址如下:
https://docs.qq.com/doc/DTlRSd01BZXNpRUxl
132【毕设课设】基于51单片机的热电阻温度检测设计
#include<reg52.h> //包含头文件,一般情况不需要改动,头文件包含特殊功能寄存器的定义
#include<stdio.h>
#include "1602.h"
#include "delay.h"
#include "sysdefine.h"
char temp[16]; //打印数组初始化
unsigned long time_20ms=0; //定时器计数
sbit BUZZER=P1^0;
sbit LED=P1^1;
sbit KEY1=P3^4;
sbit KEY2=P3^5;
sbit KEY3=P3^6;
sbit KEY4=P3^7;
float NowT=25.54; //实际测试纸
unsigned int Updata=90; //上限
unsigned int Downdata=10; //下限
unsigned char SetFlag=FALSE; //是否处于设置
unsigned char DisLcd=FALSE; //显示更新
unsigned char UartReport=FALSE;
unsigned int BatCap=80; //容量初始化
void Init_Timer0(void);
void uartSendStr(unsigned char *s,unsigned char length);
void UART_Init(void);
void uartSendByte(unsigned char dat);