摘要:与传统的用单纯的数字逻辑电路来实现的钟表相比,现在的电子钟在体积上是变得越来越小巧玲珑,具有很好的灵活性,精确度是变得越来越高,价格是变得相对越来越便宜,给人们的生活和工作带来很多的便利。
用单片机做一个数字钟是单片机应用中的一个典型例子.本设计充分利用8051单片机的4个I/O口,外加两片74LS07作数码管驱动电路,12位数码管的片选信号由74LS138译码器提供,采用动态显示。为增加驱动能力,又在数码管的阴极端加9013驱动管。19865
本文设计出的电子钟采用24小时制计时,其中添加了整点报时和闹铃提示功能。另外为了需要,本设计还添加了秒表功能。
关键词:单片机;电子钟;嵌入式系统
The Development of the Multi-Function Electronic Clock Based on 8051 MCU
Abstract: With the traditional with a simple digital logic circuit compared to implement the clocks and watches, electronic clock now is becoming more and more small and exquisite on volume, has good flexibility, accuracy is becoming more and more high, the price is relatively cheaper, bring many convenience to people's life and work. Made a single chip digital clock is a typical example of microcomputer application. This design make full use of the four of 8051 single chip microcomputer I/O port, plus two 74 ls07 digital tube display driver circuit, digital tube 12 pieces selected signals provided by 74 ls138 decoder, dynamic display. To increase the drive capability, and in digital tube Yin extreme plus 9013 drive pipe.In this paper, design of electronic clock USES the 24-hour timer, which adds a hour, half the time and alarm prompt functions. In addition to need, this design also added stopwatch function.
Key words: single chip microcomputer; Electronic clock; Embedded system;
目录
摘要 1
Abstract 1
目录 2
1 绪论 单片机制作数字钟的原理 4
1.1 主芯片8051的硬件资源 4
1.1.1单片机的概念 4
1..1.2单片机的发展概述 5
1.1.3 8051的芯片引脚 8
1.1.4 使用I/O口的注意事项 11
1.2 主芯片8051中断系统 12
1.2.1 中断源 12
1.2.2 中断的控制 13
1.2.3 中断响应 13
1.3 单片机定时/计数器在数字钟的使用 14
1.3.1与T/C有关的特殊功能寄存器 15
1.3.2 定时器/计数器的初始化 15
2 分析 单片机数字钟硬件电路的实现 16
2.1 查询式键盘 16
2.1.1 查询式键盘的工作原理 16
2.1.2 查询式键盘与单片机的接法 17
2.1.3 另一种键盘-行列式键盘 18
2.2 显示电路 20 51单片机的多功能电子钟开发+电路图+源程序:http://www.youerw.com/zidonghua/lunwen_11418.html