1 / 43
文档名称:

毕业设计(论文)-单片机电子时钟毕业设计.docx

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

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

分享

预览

毕业设计(论文)-单片机电子时钟毕业设计.docx

上传人:小雄 2021/10/31 文件大小:286 KB

下载得到文件列表

毕业设计(论文)-单片机电子时钟毕业设计.docx

相关文档

文档介绍

文档介绍:毕业论文
基于单片机的数字时钟设计
专业名称:
班 级:
学生姓名:
指导教师:
完成时间:
摘要
单片机因将其主要组成部分集成在一个芯片上而得名,就是把中 央处理器、随机存储器、只读存储器、中断系统、定时器/计数器以及 I/O接口电路等部件集成在一个芯片上。
基于单片机设计的数字钟精确度较高,因为在程序的执行过程中, 任何指令都不影响定时器的正常计数,即便程序很长也不会影响中断的 时间。
本设计使用12MHZ晶振与单片机AT89C51相连接,以AT89C51芯片 为核心,采用动态扫描方式显示,通过使用该单片机,加之在显示电路 部分使用7407驱动电路,实现在6个LED数码管上显示日期、时间、 定时、闹铃,通过6个按键实现设置日期、进行调时、设定闹铃、倒计 时等功能,在实现各功能时数码管进行相应显示,闹铃或定时时间到时 蜂鸣器响,按下闹铃键或定时键时,声音停止。软件部分用汇编实现, 分为显示、延迟、调时、闹铃、定时、调整日期等部分。通过软硬件结 合达到最终目的。
关键词:电子钟;单片机;动态扫描;汇编语言
Abstract
Because of its main microcontroller component 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.
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 purpose combining the software and the hardware.
Keywords: Electric clock; MCU; Dynamic state scanning ;
Assembler language
目录
1 引言 1
2整体设计思路 2
主要元件的使用方法 4
1 AT89C51 单片机 4
2 7407驱动器 5
3数码管 6
电路设计 7
1整体设计 7
7
2. 1输入部分 8
(显示电路) 8
2. 3晶振与复位电路: 9
程序设计 10
1程序思路 10
2程序设计步骤 11
3程序的主要模块 12
3. 1延迟程序 12
12
5. 3. 3主程序 15
5. 3. 4 显不程序 16
3. 5闹铃程序和定时程序 17
4程序调试 17
功能仿真 17
1软件介绍 18
2仿真过程: 18
2. 1仿真图的绘制 18
2. 2功能的实现 19
7日历功能的实现 21
附录完整程序 27
参考文献 42
基于单片机的数字时钟设计
1引言
单片机因将其主要组成部分集成在一个芯片上而得名,就