- 34
- 0
- 约 30页
- 2017-09-21 发布于贵州
- 举报
目录
摘要、关键词 1
第1章 前言 2
第2章 方案的要求与设计 3
第2.1节 方案要求 3
第2.2节 方案设计 3
第3章 系统设计 4
第3.1节 AT89C52的管脚说明 4
第3.2节 T0和T1的设置 6
第3.3节 T2的设置 9
第3.4节 模块设计 12
3.4.1 电源部分 12
3.4.2 复位部分 12
3.4.3 振荡器部分 13
3.4.4 发声部分 13
3.4.5 显示部分 14
第3.5节 系统原理图 15
第4章 软件设计 16
第4.1节 主程序流程图 16
第4.2节 中断程序流程图 17
第4.3节 源程序 19
结论 20
参考文献 21
致谢 22
附录一 系统电路原理图 23
附录二 电子时钟源程序 24
摘要
单片机自20世纪70年代问世以来,以其极高的性能价格比,受到人们的重视和关注,应用很广、发展很快。而51单片机是各单片机中最为典型和最有代表性的一种。
本次设计以AT89C52芯片为核心,辅以必要的外围电路,设计了一个简易的电子时钟,它由220V交流电源供电。在硬件方面,除了CPU外,使用6个七段LED数码管来进行显示,LED采用的是静态显示。通过LED能够比较准确显示时、分、秒。两个简单的按键实现对时间的调整。软件方面采用汇编语言编程。整个电子钟装置能完成时间的显示、调时、定时闹钟、秒表、复位等功能。
通过这次设计让我更深入了解单片机基本电路、如何控制和定时器和中断编程的基本方法,从而锻炼了我学习、设计和开发软、硬件的能力。
关键词:单片机应用,电子时钟
Because of its extremely high performance-price ratio, the single-chip computer (SCC) has been paid great attention to ever since it came out in 1970s of 20th Century, and has gained an extensive applicable field and fast development. Among all kinds of SCCs, 51 SCC is the most typical and representative one.
This design, adopting AT89C52 chip as the core part with some necessary peripheral circuits, is a simple electronic clock which uses 220V AC as the power supply. In hardware aspect, besides the CPU, six seven-segment LED digi-tubes are used for display, which work in a statically display mode. The LEDs can accurately indicate hour and minute and two buttons can be used to adjust the time. While in the software aspect, the programming language is assembly language. The whole electronic clock system has functions of time display, adjustment, bell-setting , stopwatch and reset, etc.
This design enables me to have greater insight into the basic circuit of SCC, and the basic methods of timer control and interruption programming, so that is a training of my ability of learning, designing and developing software and hardware.
Key Words:Application of SCC, Electronic Clock
第1章 前言
时钟,自从它发明的那天起,就成为人类的朋友,但随着时间的推移,科学技术的不断发展,人们对时间计量的精度要求越来越高,应用越来越广。怎样让时钟更好的为人们服务,怎样让我们的老朋友焕发青春呢?这就要求人
您可能关注的文档
最近下载
- GB 50205-2020 钢结构工程施工质量验收标准.docx VIP
- 专业入职offer通知书模板及使用指南.pdf VIP
- 2024年衢州职业技术学院单招职业适应性考试必刷测试卷最新.docx VIP
- 八篇党支部党员在学习贯彻党的创新理论、加强党性锤炼、联系服务群众、发挥先锋模范作用、改作风树新风五个方面202年度个人对照检查.docx VIP
- 水利施工组织设计资料.doc VIP
- 2026中国水溶性肥料市场运营态势与未来发展新动向趋势建议报告.docx
- 2025年化工工程师固定床反应器反应器设计中的商业化专题试卷及解析.pdf VIP
- 2025年互联网营销师区块链营销合作伙伴的选择与生态构建专题试卷及解析.pdf VIP
- 2025年房地产经纪人抵押物灭失、毁损后的处理与登记专题试卷及解析.pdf VIP
- 统编版六年级语文下册课件《文言文二则-两小儿辩日》.pptx VIP
原创力文档

文档评论(0)