链接:https://pan.baidu.com/s/1u_pgrNexcCtZIcwZY5mKDg
提取码:6ani
功能介绍:
0.本系统采用STC89C52作为单片机
1.四位数码管作为显示器
2.多个功能按键可实现档位、加热时间、冷却时间等操作调整
3.利用三极管模拟驱动加热设备
4.采用DC002作为电源接口可直接输入5V给整个系统供电
原理图:
仿真:
程序设计:
#include <reg51.h>
#define uint unsigned int
#define uchar unsigned char
uint dis[]={0x00,0x00,0x00,0x00};
uint pv=1,pv_j=6,pv_l=24; //定义 档位、加热时间、冷却时间(每个周期)
uint count_s=0; //记录定时时间
uint cyc0=20,cyc1=20; // 为了计时一秒,定时器一次中断为50ms,20*50ms=1s
uchar codevalue[