1 / 40
文档名称:

基于单片机的数字时钟设计毕业设计.doc

格式:doc   大小:1,195KB   页数:40页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

基于单片机的数字时钟设计毕业设计.doc

上传人:buhouhui915 2017/12/9 文件大小:1.17 MB

下载得到文件列表

基于单片机的数字时钟设计毕业设计.doc

相关文档

文档介绍

文档介绍:摘要

单片机因将其主要组成部分集成在一个芯片上而得名,就是把中央处理器、随机存储器、只读存储器、中断系统、定时器/计数器以及I/O接口电路等部件集成在一个芯片上。
基于单片机设计的数字钟精确度较高, 因为在程序的执行过程中, 任何指令都不影响定时器的正常计数,即便程序很长也不会影响中断的时间。
本设计使用12MHZ晶振与单片机AT89C51相连接,以AT89C51芯片为核心,采用动态扫描方式显示,通过使用该单片机,加之在显示电路部分使用7407驱动电路,实现在6个LED数码管上显示日期、时间、定时、闹铃,通过6个按键实现设置日期、进行调时、设定闹铃、倒计时等功能,在实现各功能时数码管进行相应显示,闹铃或定时时间到时蜂鸣器响,按下闹铃键或定时键时,声音停止。软件部分用汇编实现,分为显示、延迟、调时、闹铃、定时、调整日期等部分。通过软硬件结合达到最终目的。
关键词电子钟; 单片机; 动态扫描; 汇编语言
Abstract
Because of its main ponent integrated in a chip named, is the MCU, RAM and ROM, Interrupt system, timer/counter and I/O interface circuit and other parts in a single chip integrated.
The digital clock based on single chip design more accurate, because in program execution process, any instructions are not affect the normal count, even timer program long also won't affect interrupt time.
This design uses a 12 MHZ crystal to connect with the machine AT89C51, takes AT89C51 chips as core. It adopts the dynamic state of the scanning method to show. Using this MCU and 7407 drive electric circuit, we are able to show date, time, fix the time, and make bell on 6 LED figures tubes. We can use 6 key to constitute date, adjust time, enact the bell and set the countdown timer. When the electric carrying out each function, the figures tube shows the tight function .When the alarm clock and the countdown timer were reached, the voice begins. While 3 or 4 is pressed, the voice stops. The software part is realized by assembler language. It was divided into to show, delay, adjust, make bell, in fixed time, and adjust date etc. part. We get the end bining the software and the hardware.
Keywords Electric clock; MCU; Dynamic state scanning ;
Assembler language
目录

1 绪论 1
2 整体设计思路 3
3 主要元件的使用方法 5
AT89C51单片机 5
7407驱动器 6
7
4 电路设计 8
8
分块设计 8
输入部分 9
输出部分 9
晶振与复位电路 10
5 程序设计 11
11
12
13
13
中断服务子程序 13
主程序 14
15
闹铃程序和定时程序 16
16