摘 要
近年来随着计算机在社会领域的渗透和大规模集成电路的发展,单片机的应用正在不断地走向深入,由于它具有功能强,体积小,功耗低,价格便宜,工作可靠,使用方便等特点,因此特别适合于与控制有关的系统,越来越广泛地应用于自动控制,智能化仪器,仪表,数据采集,军工产品以及家用电器等各个领域,单片机往往是作为一个核心部件来使用,在根据具体硬件结构,以及针对具体应用对象特点的软件结合,以作完善。
微波炉控制系统设计采以微控制器(MCU)为核心,基于RTX51 编制软件系统,结合7位数码管(LED)显示以及必要的外围电路,完成微波炉的可编程智能控制。系统由计时控制、火力设定、用户界面、音响发生几大模块组成。能够根据键盘输入完成相应的功能,同时使用LED 显示系统状态。
关键词:微控制器(MCU)、微波炉、控制器
基于51单片机的微波炉控制系统
Abstract
With the computer in the social sphere in recent years, the penetration and the development of large scale integrated circuits, microcontroller applications are continually deepening, because of its powerful function, small size, low power consumption, cheap, reliable, easy to use, etc. therefore particularly suitable for systems with control of more and more widely used in automatic control, intelligent instruments, meters, data acquisition, military products and home appliances fields, SCM is often used as a core component in according to the specific hardware architecture, and application-specific features of the software objects are combined to make perfect.
Microwave oven control system design was applied to the microcontroller (MCU) core, based on RTX51 preparation software system, combined with seven digital tube (LED) display and peripheral circuits necessary to complete the microwave oven programmable intelligent control. System by the time control, fire setting, the user interface, sound occurred several modules. Completed under the keyboard corresponding to the function, while using the LED display system status. Key words: microcontroller (MCU), microwave oven, the controller
II
基于51单片机的微波炉控制系统
目 录
摘 要 ............................................................................................................................................................. I 引 言 ............................................................................................................................................................. 2 第1章
绪 论 ........................................................................................................................................... 3
1.1 课题背景 ................................................................................................................... 3 1.2 课题来源 ................................................................................................................... 3 1.3 本文的主要研究工作 ............................................................................................... 4
第2章 系统总体概述 ................................................................................................................................. 5
2.1 工作原理 ................................................................................................................... 5 2.2 电路设计 ................................................................................................................... 6 2.3 软件设计 ................................................................................................................... 7 2.4 本章小结 ................................................................................................................... 8
第3章 方案比较与论证 ............................................................................................................................. 9
3.1 档位显示部分方案 ................................................................................................... 9 3.2 计时控制部分方案 ................................................................................................... 9 3.3 键盘和显示部分方案 ............................................................................................. 10 3.4 音响发生模块方案 ................................................................................................. 10 3.5 本章小结 ................................................................................................................. 11
第4章 系统硬件设计 ............................................................................................................................... 12
4.1 门电路设计 ............................................................................................................. 12 4.2 时钟电路设计 ......................................................................................................... 12 4.3 键盘模块电路设计 ................................................................................................. 12 4.4 档位显示电路设计 ................................................................................................. 14 4.5 显示电路设计 ......................................................................................................... 14 4.6 音响发生电路设计 ................................................................................................. 15 4.7 火力输出控制设计 ................................................................................................. 17 4.8 电源电路设计 ......................................................................................................... 17 4.6 本章小结 ................................................................................................................... 18
第5章 系统软件设计 ............................................................................................................................... 19
5.1 显示程序设计 ......................................................................................................... 19 5.2 计时程序设计 ......................................................................................................... 19 5.3 系统待机状态设计 ................................................................................................. 21
5.4 用户设定状态设计 ................................................................................................. 21 5.5 微波炉加热状态 ..................................................................................................... 23 5.6 加热停止并响铃状态设计 ..................................................................................... 25 5.7 本章小结 ................................................................................................................. 25
第6章 系统测试 ....................................................................................................................................... 26
5.1 测试及制作所用仪器 ............................................................................................. 26 5.2 测试结果 ................................................................................................................. 26 5.3 本章小结 ................................................................................................................. 27
结 论 ....................................................................................................................................................... 28 附录一:系统电路图 ................................................................................................................................... 30 附录二:软件设计程序 ............................................................................................................................... 32
1