可编程作息时间控制器设计数字电压表设计.doc
文本预览下载声明
摘 要
本课题是应用89C51为核心控制器件的作息时间控制钟,由键盘、声音输出模块、电源转换模块和存储模块四部分组成。它利用89C51的定时/计数器来计算时间,并用存储器记录数据,保证了系统的可靠性。89C51单片机是整个设计的核心控制器件,根据从键盘接受的数据控制整个设计的工作流程。整体性好,人性化强,可靠性高,实现了对时间控制的智能化,摆脱了传统由人来控制时间的长短的不便,可对一些以24小时为周期的开关量进行自动控制。如上下课打铃及扩音设备的开与关。采用89C51单片机来实现对上述开关量的控制,利用24C02芯片来存储数据,设有六位数码管、可以实时显示时间、系统还设有输入键盘,用以修改实时实时时钟,体现了系统简单、工作稳定可靠、价廉、控制时间精确及系统体积小等特点。
首先设计各个模块的屏幕显示,其次是各个模块需要调用的小程序,有PC机的日期和时钟,响铃声音,按键,屏幕显示以及延时的调用等等,最后是将各个功能模块与其中需要的小程序通过正确的汇编语言组建起来。这样便完成了源文件的建立。再通过.ASM源文件生成的.EXE可执行文件进行仿真。该仿真可以模拟实现:与PC机日期时钟保持一致的显示功能,仿照已设定的响铃时间进行打铃功能,根据已设定的早晚作息时间灯光控制的功能,键盘输入修正响铃时间,随时手动按键实现响铃的功能。
关键词:89C51单片机 仿真设计 时钟电路 作息时间控制 汇编语言
AbstractThis topic is application 89C51 as the core of the daily routine of the control device to control the clock, and is composed of four parts, keyboard, voice output module, power conversion module and storage module. It uses the 89C51 timer / counter to calculate the time and memory record data to ensure the reliability of the system. 89C51 microcontroller core of the entire design control devices to accept data from the keyboard to control the entire design process. Good integrity, humane, high reliability, realized the intelligent control of the time, to get rid of the tradition by people to control the length of time the inconvenience, the automatic control of the 24-hour cycle switch. Above class playing bell and amplifying equipment on and off. 89C51 microcontroller to achieve control of the switch using 24C02 chip to store data, with six digital tube time, the system also has input keyboard can be displayed in real time, to modify real-time real-time clock, embodies a simple system, reliable, accurate and inexpensive, control time system is small.
First, the design of each module screen display, followed each module need to call a small program, date and time clock of the PC, bell sound, buttons, screen display, as well as the delay of the call, etc., and finally the various functional modules which need a smal
显示全部