《电子万年历设计毕业设计.docx》由会员分享,可在线阅读,更多相关《电子万年历设计毕业设计.docx(5页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、电子万年历设计毕业设计 摘要 电子万年历是一种具有显示年、月、日、时、分、秒、星期等功能的计时工具。特别适合在家庭居室、教室、广场、车站和大厅等使用,因此设计一款电子万年历是必要的。 电子万年历设计由硬件电路和软件程序两部分组成。硬件部分,采用AT89C52作为主控芯片,结合外围的LED数码管显示电路、时钟电路、键盘电路和闹钟电路等组成。单片机通过时钟芯片DS1302获取时间数据,经处理后再把时间数据传送给74LS164译码,最后由LED数码管显示年、月、日、时、秒、闹钟、星期等。软件部分,给出了系统程序流程图,并采用C语言进行软件程序设计。 该电子万年历能较准确的显示日期和时间,并且具有闹钟
2、的功能,具有一定的推广价值。 关键词:AT89C52;C语言;DS1302;LED Design of the electronic calendar ABSTRACT lectronic calendar is a very extensive timing tool which used the micro-controller technology,it can display date and time, minutes and seconds,the week and so on,It is applicable to our daily life such as domestic
3、bedroom, classroom, square, station and the hall, etc, besides,it can suitable for our jobs such as office, operation workshop etc.Therefore,it is necessary to design a electronic calendar. Electronic calendar is an application of the single chip microcomputer system,it includes the hardware circuit
4、 and software program .Hardware circuit included control chip , the periphery show circuit, clocking circuit ,the keyboard interface circuit and the alarm clock circuit.AT89C52 is used the main control chip,display used LED digital tube,clock chip adopt DS1302,keyboard interface circuit completed by
5、 ordinary pick button. Software uses C language to complete the microcontroller program programming.Single chip get clock time data through microcomputer chip DS1302, the processed the data according to time again for 74 LS164 decoding, LED digital pipe can display date and time, seconds, alarm cloc
6、k, week. The electronic calendar can display the date and time precisely , and it has the function of the alarm clock. it can realize the time and date of Settings and realize the alarm clock function through the button. Key words : AT89C51; C language; DS1302; LED 目录 摘要 . II ABSTRACT. I II 1 绪论 (1)
7、 1.1 电子万年历的介绍 (1) 1.2 本设计所要实现的目标 (1) 1.3 本文的设计方案 (1) 2 主要元器件介绍 (2) 2.1 主控芯片AT89C52 (2) 2.1.1 AT89C52性能简介 (2) 2.1.2 AT89C52引角功能说明 (2) 2.1.3 AT89C52芯片内部结构 (5) 2.2 时钟芯片DS1302 (6) 2.2.1 DS1302的性能介绍 (6) 2.2.2 DS1302引脚及功能说明 (7) 2.2.3 DS1302的内部结构 (7) 2.3 LED数码管 (8) 3 系统硬件构成 (9) 3.1 设计原理 (9) 3.2 外围电路 (9) 3.2.1 时钟电路的设计 (9) 3.2.2 闹钟电路的设计 (10) 3.2.3 显示电路的设计 (11) 3.2.4 键盘电路的设计 (11) 3.2.5 复位电路与晶振电路的设计 (12) 4 系统软件设计 (13) 4.1阳历程序的设计 (13) 4.2 时间调整程序设计 (13) 5 proteus软件仿真 (15) 5.1 proteus ISIS简介 (15) 5.2 proteus运行流程 (15) 5.3 proteus功能仿真 (15) 6 结论 (18) 参考文献 (19) 致谢 (20) 附录A (21) 附录B (22)
限制150内