基于51单片机六位数字时钟设计.pdf
文本预览下载声明
目 录
摘 要: 1
1 绪论 1
1.1 发展现状2
1.2 选题意义2
1.3 本文的主要研究内容3
2 AT89S51 单片机的结构3
2.1 单片机内部组成3
2.2 定时/计数器4
2.3 并行I/O 口6
3 电路的硬件设计7
3.1 电路原理图7
3.2 复位电路8
3.3 时钟电路9
3.4 按键电路9
3.5 数码管显示电路 10
4 电路的软件设计 10
4.1 软件总体流程图 10
4.2 延时程序说明 13
4.3 按键扫描程序说明 13
4.4 定时程序设计说明 13
4.4 总程序清单及说明 14
5 系统仿真结果 17
5.1 仿真软件简介 17
5.2 仿真结果 18
6 结束语 19
参考文献21
基于51 单片机六位数字时钟
摘 要:
本文介绍了一种基于 AT89S51 单片机的六位数字时钟,由单片机和外围器件组成,具
有操作简单,显示明了,功能强大的特点。它利用数码管快速动态扫描,产生人眼视觉暂留,
看到稳定时间。此外,根据单片机引脚丰富的特性,添加了三个按键,更加发挥了单片机的
控制功能。
本设计采用了Proteus 软件仿真,很大的满足了教学的要求。通过本设计,可以初步掌
握单片机结构和 C 程序基础。同时本系统可以加强单片机应用系统综合能力的训练、培养
同学们分析和解决问题的能力、对同学们的招聘以及参加工作均有帮助。
关键词:
AT89S51 单片机,数码管动态扫描,六位可调数字时钟。
Six-figure digital clock based on 51 MCU
Abstract:
This paper describes a six-figure based on AT89S51 MCU clock, composed by the MCU and
peripheral devices, is simple, show clear and powerful features. It uses digital control fast dynamic
scanning, resulting in the human visual transient, see the settling time. Moreover, according to the
characteristics of MCU pins rich, add three buttons, and more control played a single chip.
This design uses a Proteus software simulation, great to meet the teaching requirements.
Through this design, can initially control the structure and C programs based on SCM. This
system can also strengthen the comprehensive ability of SCM applications training, training
students to analyze and solve problems, as well as on the recruitment of students to work there to
help.
Key words:
AT89S51 microcontroller, digital tube dynamic scanning, 6 adjust
显示全部