基于PCF8563的数字钟系统BJHFJ设计规划.docVIP

  • 4
  • 0
  • 约1.25万字
  • 约 33页
  • 2017-05-27 发布于贵州
  • 举报

基于PCF8563的数字钟系统BJHFJ设计规划.doc

基于PCF8563的数字钟系统BJHFJ设计规划

基于PCF8563的数字钟系统设计 The design of digital clock system base on PCF8563 摘要 本文介绍了一款基于AT89C2051单片机数字钟的设计,通过多功能数字钟的设计思路,详细叙述了系统硬件、软件的具体实现过程。论文重点阐述了数字钟硬件中MCU模块、时钟模块和相关控制模块等的模块化设计与制作;软件同样采用模块化的设计,包括中断模块、闹钟模块、时间调整模块设计,并采用简单流通性强的C语言编写实现。本设计实现了时间与闹钟的修改功能、报警功能、年、月、日和星期的显示功能。并且通过对比实际的时钟,查找出了误差的来源,确定了调整误差的方法,尽可能的减少误差,使得系统可以达到实际数字钟的允许误差范围内。 关键词:AT89C2051单片机;数字钟;PCF8563 Abstract This paper introduced the design of digital clock based on SCM of AT89C2051, 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, clock module and the associated control module, were mainly recounted;As well as hardware designing,software design use the same method, consists suspension module,alarm clock module, time adjust module, and that use the C language to achieve because of its simple and strong negotiability. In this design the functions of time and alarm clock run and change, voice broadcast,functions of the year, month, day and week display 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 :AT89C2051 microcontroller; Digital clock; PCF8563 目  录 第1章 绪 论 4 1.1 课题背景 4 1.2 课题意义 4 1.3 数字钟的应用 5 第2章 数字钟的硬件设计 6 2.1整体设计方案 6 2.2 系统硬件的选择 7 2.3系统外围电路 17 第3章 数字钟的软件设计 19 3.1 系统软件设计内容 19 3.2 主程序 21 第4章 结 论 29 参考文献 30 致 谢 31 附录 32 第1章 绪 论 1.1 课题背景 单片机自1976年由Intel公司推出MCS-48开始,迄今已有二十多年了。由于单片机集成度高、功能强、可靠性高、体积小、功耗地、使用方便、价格低廉等一系列优点,目前已经渗入到人们工作和生活的方方面面,几乎“无处不在,无所不为”。单片机的应用领域已从面向工业控制、通讯、交通、智能仪表等迅速发展到家用消费产品、办公自动化、汽车电子、PC机外围以及网络通讯等广大领域。 单片机有两种基本结构形式:一种是在通用微型计算机中广泛采用的,将程序存储器和数据存储器合用一个存储器空间的结构,称为普林斯顿结构。另一种是将程序存储器和数据存储器截然分开,分别寻址的结构,一般需要较大的程序存储器,目前的单片机以采用程序存储器和数据存储器截然分开的结构为多。 本文讨论的单片机多功能定时器的核心是目前应用极为广泛的51系列单片机,配置了外围设备,构成了一个

文档评论(0)

1亿VIP精品文档

相关文档