文档介绍:基于单片机的定时闹铃设计
摘要
时间是现代社会中不可缺少的一项参数,无论是平时生活还是社会生产都需要对时间进行控制,,对于社会生产有着十分重要的作用。
本文首先在绪论中介绍了单片机和时钟的概念和现状,然后在对单片机系统、喇叭装置和显示电路做了深入的研究之后,提出了系统总体设计方案,并设计了各部分硬件模块和软件流程,在用汇编语言设计了具体软件程序后,用伟福软件进行了仿真和调试,结果证明了该设计系统的可行性。
由于AT89C51系列单片机的控制器运算能力强,处理速度快,可以精确计时,很好地解决了实际生产生活中对计时高精确度的要求,因此该设计在现代社会中具有广泛的适用性。
关键字:AT89C51,定时,LCD显示,仿真,调试
Abstract
Modern society is indispensable to a parameter, whether in peacetime or in social production need to control the time, there are some occasions to its high accuracy requirements. Microcontroller used to time, munity has a production very important role.
This paper first introduced in the introduction of the concept of SCM and clock and the status quo, then the SCM system, speakers and display circuit devices do an in-depth study, the overall design of the system proposed programme, all parts of the design of the hardware module And software processes used in pilation of the specific language of the software design process, Fu Wei-use software simulation and debugging, the results proved the feasibility of the design.
As the controller AT89C51 puting capability and processing speed, precision timing, a good solution to the life of the actual production of high precision timing of the request, so the design in modern society has a broad applicability.
Keyword: AT89C51, timing, LCD display, simulation, debugging
目录
第一章绪论 1
第一节设计本电子定时闹钟的目的和意义 1
第二节单片机和数字钟介绍 1
一、单片机介绍 1
二、数字钟介绍 3
第三节本LCD电子闹钟的特点和功能介绍 4
一、本电子钟设计特点 4
二、本电子钟的主要功能 4
第二章 总体方案设计与硬件设计 5
第一节总体设计方案 5
第二节电路总体概念图设计 5
第三节 MCS-51单片机硬件结构设计 6
一、 MCS–51单片机内部总体结构 6
二、 MCS-51单片机的引脚 6
三、 MCS-51 的微处理器 9
四、 MCS-51存储器的结构 9
五、 MCS-51 的并行I/O口 14
六、 MCS-51时钟电路与时序 16
七、 MCS-51的复位和复位电路 17
第四节主控芯片AT89C51的设计 18
第五节时钟电路部分设计 20
第六节 LCD显示电路部分 21
一、 LCD介绍 21
二、 LCD的选材 25
第七节喇叭部分的电路 26
第三章软件设计 27
第一节软件设计概述 27
第二节主函数的设计 27
第三节部分设计思想的说明 28
一、程序初始化 28
二、闹钟的实现 29
三、显示程序 29
第四章软件仿真 31
第一节仿真器介绍 31
第二节仿真器编程 33
第三节仿真器执行 33
总结 34
外文资料 35
中文译文 42
参考文献 4