1706【毕设课设】基于单片机PID加热炉控制系统设计

基于单片机PID加热炉控制系统设计,使用单片机和PID算法实现了加热炉的温度控制,包含了protues仿真和配套的程序等资料。

#include <reg52.h>
#include <LCD1602.h>
#include <intrins.h>
#include "PID.h"

#define	uchar unsigned char
#define uint unsigned int


sbit DOUT=P2^3;
sbit SCLK=P2^4;
sbit CS=P2^5;

sbit RELAY=P2^6;

sbit KS0=P1^0;
sbit KS1=P1^1;

uchar code LcdBuf1[]= {"Set temp:"} ;
uchar code LcdBuf2[]= {"Rel temp:"};
uchar Vref=5;
uchar a[6];

uint SET_TEMP=100;