可预置的定时显示报警系统.rar
可预置的定时显示报警系统,3.7万字 46页摘 要本文介绍的是一个由单片机构成的应用系统,它具有一个走时精确的实时钟,可以任意预置时间,时间表的转换,执行报警系统的打铃和时钟的显示功能等。可以通过按键操作和数字显示。文中对硬件和软件做了详细介绍。用单片机做定时控制,可充分发挥单片机体积小,价格便宜,功耗低,可靠性好等特点...
该文档为压缩文件,包含的文件列表如下:


内容介绍
原文档由会员 xiaowei 发布
可预置的定时显示报警系统
3.7万字 46页
摘 要
本文介绍的是一个由单片机构成的应用系统,它具有一个走时精确的实时钟,可以任意预置时间,时间表的转换,执行报警系统的打铃和时钟的显示功能等。可以通过按键操作和数字显示。文中对硬件和软件做了详细介绍。
用单片机做定时控制,可充分发挥单片机体积小,价格便宜,功耗低,可靠性好等特点。本文介绍的可预置的定时显示报警系统由8051单片机和少量其它器件组成。本机的时间由6个LED显示,中间的发光二极管表示间隔。本机可存储农历时间表和阳历时间表,用一个按键切换,用红绿发光二极管分别表示。
在单片机开发过程中,经常要求控制装置能够完成多项功能,所以合理的时间分配和准确的时间定时功能便成为开发成功与否的关键。本文介绍的应用软件的方法,即在MCS-51片内的RAM存储器位寻址区,设置各功能模块的软件标志,定时时间到,定时中断服务程序置此标志位为1,当主程序查询到此标志位是就会执行相应的功能。
关键词: 单片机 数码管 控制
Abstract
A applied system constituted by singechip is introducted in this text, it has a real time clock that goes exactly,the time and the schedule can be intercalated at will,it can jow when the time comes to the fixed time,also,it can control the work of the heater and the job of display.All these jobs can be controlled by the key-press.Zhe hardware and the software are both introduced in the text in detail.
When the singechip is used to timming controlling ,the characteristics of it can be seen clearly,such as:the small volume, the low price,the low consume and the well security.This system introduced in this text is composed by 8051 singechip and some other parts of an apparatus.The display of the time is composed by six LED,the red abbr among them show the distance.Two tables can be storaged in thie system.The change of them is done by the switch and the difference is showed by different abbrs.
During the process of the exploitation of the singschip , many functions is requested in the apparatus of controlling,and the key of all the process is the rational timing distribution and the veracious timing . The software introducted in this text is intercalate the sign of every module in the digit seeking site section of the RAM of the signechip.When it comes to the time ,the sign will turn to one,so the main program will enforcole the relevant function .
Keywords: singechip number canal control
目 录
摘 要 I
Abstract II
第1章 绪 论 1
1.1 课题背景 1
1.2 课题来源 2
1.3 本章小结 2
第2章 MCS-51单片机的结构 3
2.1 控制器 3
2.1.1 程序计数器PC(Program Counter) 3
2.1.2 指令寄存器IR、指令译码器及控制逻辑电路 4
2.2 存储器的结构 4
2.3 并行I/O口 6
2.4 时钟电路与时序 7
2.5 单片机的工作方式 7
2.6 单片机的性能特点 10
2.7 单片机的应用领域 10
2.8 本章小结 11
第3章 电路的硬件设计 12
3.1 复位电路 12
3.2 时钟电路 13
3.3 按键电路 13
3.4 报警控制电路 14
3.5 数码管显示电路 16
3.6 电源电路设计 17
3.7 本章小结 17
第4章 电路的软件设计 18
4.1 软件程序内容 18
4.2 软件流程图 18
4.3 定时程序设计 22
4.3.1实时时钟实现的基本方法 22
4.3.2 实时时钟程序设计步骤 23
4.4 MCS-51的中断 23
4.5 程序说明 26
4.6 本章小结 27
第5章 电路仿真 28
5.1 仿真结果 28
5.2 仿真中出现的问题及解决办法 28
5.3 本章小结 28
第6章 结论与展望 29
6.1 结论 29
6.2 单片机的发展趋势 29
参考文献 31
附 录 32
致 谢 41
3.7万字 46页
摘 要
本文介绍的是一个由单片机构成的应用系统,它具有一个走时精确的实时钟,可以任意预置时间,时间表的转换,执行报警系统的打铃和时钟的显示功能等。可以通过按键操作和数字显示。文中对硬件和软件做了详细介绍。
用单片机做定时控制,可充分发挥单片机体积小,价格便宜,功耗低,可靠性好等特点。本文介绍的可预置的定时显示报警系统由8051单片机和少量其它器件组成。本机的时间由6个LED显示,中间的发光二极管表示间隔。本机可存储农历时间表和阳历时间表,用一个按键切换,用红绿发光二极管分别表示。
在单片机开发过程中,经常要求控制装置能够完成多项功能,所以合理的时间分配和准确的时间定时功能便成为开发成功与否的关键。本文介绍的应用软件的方法,即在MCS-51片内的RAM存储器位寻址区,设置各功能模块的软件标志,定时时间到,定时中断服务程序置此标志位为1,当主程序查询到此标志位是就会执行相应的功能。
关键词: 单片机 数码管 控制
Abstract
A applied system constituted by singechip is introducted in this text, it has a real time clock that goes exactly,the time and the schedule can be intercalated at will,it can jow when the time comes to the fixed time,also,it can control the work of the heater and the job of display.All these jobs can be controlled by the key-press.Zhe hardware and the software are both introduced in the text in detail.
When the singechip is used to timming controlling ,the characteristics of it can be seen clearly,such as:the small volume, the low price,the low consume and the well security.This system introduced in this text is composed by 8051 singechip and some other parts of an apparatus.The display of the time is composed by six LED,the red abbr among them show the distance.Two tables can be storaged in thie system.The change of them is done by the switch and the difference is showed by different abbrs.
During the process of the exploitation of the singschip , many functions is requested in the apparatus of controlling,and the key of all the process is the rational timing distribution and the veracious timing . The software introducted in this text is intercalate the sign of every module in the digit seeking site section of the RAM of the signechip.When it comes to the time ,the sign will turn to one,so the main program will enforcole the relevant function .
Keywords: singechip number canal control
目 录
摘 要 I
Abstract II
第1章 绪 论 1
1.1 课题背景 1
1.2 课题来源 2
1.3 本章小结 2
第2章 MCS-51单片机的结构 3
2.1 控制器 3
2.1.1 程序计数器PC(Program Counter) 3
2.1.2 指令寄存器IR、指令译码器及控制逻辑电路 4
2.2 存储器的结构 4
2.3 并行I/O口 6
2.4 时钟电路与时序 7
2.5 单片机的工作方式 7
2.6 单片机的性能特点 10
2.7 单片机的应用领域 10
2.8 本章小结 11
第3章 电路的硬件设计 12
3.1 复位电路 12
3.2 时钟电路 13
3.3 按键电路 13
3.4 报警控制电路 14
3.5 数码管显示电路 16
3.6 电源电路设计 17
3.7 本章小结 17
第4章 电路的软件设计 18
4.1 软件程序内容 18
4.2 软件流程图 18
4.3 定时程序设计 22
4.3.1实时时钟实现的基本方法 22
4.3.2 实时时钟程序设计步骤 23
4.4 MCS-51的中断 23
4.5 程序说明 26
4.6 本章小结 27
第5章 电路仿真 28
5.1 仿真结果 28
5.2 仿真中出现的问题及解决办法 28
5.3 本章小结 28
第6章 结论与展望 29
6.1 结论 29
6.2 单片机的发展趋势 29
参考文献 31
附 录 32
致 谢 41