1、 基于单片机的温度控制系统设计基于单片机的温度控制系统设计 摘 要 随着国民经济的发展,人们需要对各中加热炉、热处理炉、反应炉和锅炉 中温度进行监测和控制。采用单片机来对他们控制不仅具有控制方便,简单和 灵活性大等优点,而且可以大幅度提高被控温度的技术指标,从而能够大大的 提高产品的质量和数量。 本设计采用无ROM的8031作为主控制芯片。 8031的接口电路有8155、 2764。 8155 用于键盘/LED 显示器接口,2764 可作为 8031的外部 ROM 存储器。其中温 度控制电路是通过可控硅调功器实现的。双向可控硅管和加热丝串联接在交流 220V,50HZ 交流试点回路,在给定周期
2、内,8031 只要改变可控硅管的接通时间 便可改变加热丝功率,以达到调节温度的目的。 关键字:温度控制;接口电路;可控硅 DESIGN OF TEMPERATURE CONTROL SYSTEM BASED ON SCM ABSTRACT Along with national economy development, the people need to each heating furnace、the heat-treatment furnace、in the reactor and the boiler the temperature carry on the monitor and t
3、he control. Not only uses the monolithic integrated circuit to come to them to control has the control to be convenient, simple and flexibility big and so on merits, moreover may enhance large scale is accused the temperature technical specification, thus can big enhance the product the quality and
4、quantity. This design uses non-ROM 8031 to take the master control chip. 8031 connection electric circuits have 8155、2764.8155 uses in the keyboard /LED monitor connection, 2764 may take 8031 exterior ROM memories,one temperature-control circuit is adjusts the merit realization through the silicon-c
5、ontrolled rectifier. The bidirectional silicon-controlled rectifier tube and the heater series connection in exchange 220V,50HZ exchange city electricity return route, in assigns in the cycle, 8031 so long as the change silicon-controlled rectifier tube puts through the time then to be possible to c
6、hange the heater power, achieves the attemperation the goal. Key words:Temperature control;Connection electric circuit;Silicon-controlled rectifier 目目 录录 绪 论 1 第一章 单片机温度控制系统方案简介 2 第二章 单片机 3 2.1 单片机内部模块 3 2.1.1 MCS-51 单片机内部结构 . 3 2.1.2 MCS-51 输入/输出端口的结构与功能 . 4 2.1.3 MCS51 单片机的引脚及其功能 . 4 2.1.4 8031 系统扩展设计 . 5 2.2 单片机外总线结构 5 2.3 芯片的扩展设计 5 2.4 单片机温控模块 7 第三章 系统硬件设计 . 10 3.1 系统总体设计 . 10 3.2 8155 接口电路 10 3.3 A/D 转换电路 . 12 3.4 可控硅控制电路 . 12 第四章 系统软件设计 . 14 4.1 主程序流程图 . 14 4.2 T0 中断服务程序 14 4