基于单片机的1602液晶数字式时钟.docxVIP

  • 5
  • 0
  • 约4.78万字
  • 约 53页
  • 2019-11-27 发布于湖北
  • 举报
PAGE PAGE II 摘 要 本文介绍了基于AT89C51单片机的数字式时钟的设计,详细叙述了系统硬件、软件的具体实现过程。本文在硬件、软件设计上均采用模块化的方法,使得在设计和调试方面取得很大的方便。论文重点阐述了数字钟硬件中MCU模块、按键模块、显示模块等相关模块的模块化设计及制作;软件同样采用模块化的设计,包括中断模块、时间调整模块等设计,并采用简单流通性强的C语言编写实现。本设计实现了年、月、日及时、分、秒的显示和时间修改的功能。通过对比实际的时钟,查找出误差的来源,确定调整误差的方法,尽可能的减少误差,使得系统可以达到实际数字钟的允许误差范围内。 关键字:AT89C51单片机;数字钟;模块化; Abstract This paper introduced the design of digital clock based on SCM of AT89C51,The specific process of how the system hardware and software achieved were detailed description through the design of multifunction digital clock. The modular design and production ,which consisted of MCU module ,key module, display module and the associated control module ,were mainly recounted; As well as hardware designing, software design use the same method ,consists suspension module, time adjust module, and that ues the C language to achieve because of its simple and strong negotiability. In this design the functions of time adjusting and displaying year, month, day and hour, minute, second have been achieved. And by comparing the actual clock ,find out the source of the error and determined the method of adjusting error, reduce errors as much as possibly, so this system can achieve a practical digital clock with error within the permissible range. Key words : AT89C51 microcontroller ; Digital clock; Module design; 目 录 TOC \o 1-3 \h \z \u 摘 要 I Abstract II 1 绪 论 1 1.1 课题背景 1 1.2 课题意义 1 1.3 数字式时钟的应用 2 1.4 本章小结 2 2 单片机简介 3 2.1 单片机的选择 3 2.1.1 单片机的特点 4 2.1.2 单片机的应用领域 5 2.2 AT89C51单片机的基本结构 6 2.2.1 AT89C51单片机简介 6 2.2.2 AT89C51单片机工作的基本时序 8 2.2.3 AT89C51单片机的内部结构及存储器配置 8 2.3 本章小结 10 3 数字式时钟的硬件设计 11 3.1 最小系统设计 11 3.2 数字式时钟的外围电路设计 13 3.2.1 时钟电路 13 3.2.2 LCD显示电路 13 3.2.3 电源电路 15 3.2.4 按键电路 15 3.2.5 复位电路 16 3.3 本章小结 16 4 数字式时钟的软件设计 17 4.1 系统软件设计内容 17 4.2 主程序 18 4.3 时钟设置子程序 20 4.4 中断子程序 22 4.5 LCD显示子程序 25 4.6 本章小结 26 5 数字式时钟的Protues软件仿真

文档评论(0)

1亿VIP精品文档

相关文档