單片機(jī)畢業(yè)設(shè)計(jì)論文.doc
單片機(jī)畢業(yè)設(shè)計(jì)論文,摘要 本設(shè)計(jì)是基于51系列的單片機(jī)進(jìn)行的實(shí)時(shí)日歷和時(shí)鐘顯示設(shè)計(jì),可以顯示年月日時(shí)分秒及周信息,具有可調(diào)整日期和時(shí)間功能。在設(shè)計(jì)的同時(shí)對(duì)單片機(jī)的理論基礎(chǔ)和外圍擴(kuò)展知識(shí)進(jìn)行了比較全面準(zhǔn)備。 實(shí)時(shí)日歷和時(shí)鐘顯示的設(shè)計(jì)過程在硬件與軟件方面進(jìn)行同步設(shè)計(jì)。硬件部分主要由at89s52單片機(jī),led顯示電...
內(nèi)容介紹
此文檔由會(huì)員 xa3233 發(fā)布單片機(jī)畢業(yè)設(shè)計(jì)論文
摘要
本設(shè)計(jì)是基于51系列的單片機(jī)進(jìn)行的實(shí)時(shí)日歷和時(shí)鐘顯示設(shè)計(jì),可以顯示年月日時(shí)分秒及周信息,具有可調(diào)整日期和時(shí)間功能。在設(shè)計(jì)的同時(shí)對(duì)單片機(jī)的理論基礎(chǔ)和外圍擴(kuò)展知識(shí)進(jìn)行了比較全面準(zhǔn)備。
實(shí)時(shí)日歷和時(shí)鐘顯示的設(shè)計(jì)過程在硬件與軟件方面進(jìn)行同步設(shè)計(jì)。硬件部分主要由AT89S52單片機(jī),LED顯示電路,以及調(diào)時(shí)按鍵電路等組成,系統(tǒng)通過LED顯示數(shù)據(jù),所以具有人性化的操作和直觀的顯示效果。軟件方面主要包括時(shí)鐘程序、鍵盤程序,顯示程序等。本系統(tǒng)以單片機(jī)的匯編語言進(jìn)行軟件設(shè)計(jì),為了便于擴(kuò)展和更改,軟件的設(shè)計(jì)采用模塊化結(jié)構(gòu),使程序設(shè)計(jì)的邏輯關(guān)系更加簡潔明了,以便更簡單地實(shí)現(xiàn)調(diào)整時(shí)間及日期顯示功能。所有程序編寫完成后,在wave軟件中進(jìn)行調(diào)試,確定沒有問題后,在Proteus軟件中嵌入單片機(jī)內(nèi)進(jìn)行仿真。
關(guān)鍵詞:AT89S52; DS1302; LED
Abstract
This design is based on 51 series monolithic integrated circuits of a real-time calendar and the clock shows the design, you can show how and when a week, has may adjust the date and time functions. in the design for monolithic integrated circuits, and peripheral to expand the basic theories of knowledge was fairly comprehensive preparation.
Real-time calendar and the clock shows the design in hardware and software design of hardware that is synchronized. the led display at89s52 monolithic integrated circuits, and when should the electrical circuits, the system through the led display data so be humanized operate and intuitive that effect. including the software application programs, the keyboard, the program, etc. This system to monolithic integrated circuits of the assembly language for easily developing software design, and changes, software design to use modular design, the programming logical relationship with more and more so as to realize the time and date display the functions. all procedures in writing after wave of debugging the software and make no question of the proteus software embedded monolithic integrated circuits.
Key Words:AT89S52; DS1302; LED
目錄
1概述 1
2設(shè)計(jì)方案論證 2
2.1功能要求 2
2.2方案確定 2
2.2.1單片機(jī)芯片的選擇方案和論證 2
2.2.2顯示模塊選擇方案和論證 3
2.2.3時(shí)鐘芯片的選擇方案和論證 3
2.2.4電路設(shè)計(jì)最終方案確定 3
3主控制器和外圍器件 4
3.1AT89S52單片機(jī) 4
3.2DS1302時(shí)鐘芯片 4
3.2.1DS1302芯片介紹 4
3.2.2DS1302 的應(yīng)用 8
3.3數(shù)碼管LED 8
3.4譯碼器74HC138 9
3.5鎖存器74LS244 9
4硬件設(shè)計(jì) 10
4.1電路設(shè)計(jì)框圖 10
4.2系統(tǒng)概述 10
4.3電源設(shè)計(jì) 10
4.4單片機(jī)的復(fù)位電路 11
4.5單片機(jī)系統(tǒng)的晶振電路 11
4.6主電路設(shè)計(jì) 12
5軟件設(shè)計(jì) 13
5.1主程序設(shè)計(jì) 13
5.2鍵盤子程序設(shè)計(jì) 14
5.3日歷時(shí)鐘子程序設(shè)計(jì) 16
5.4顯示子程序設(shè)計(jì) 18
6系統(tǒng)調(diào)試 18
6.1軟件調(diào)試 18
6.2硬件調(diào)試 19
7結(jié)論 20
致謝 22
參考文獻(xiàn) 23
附錄 24
附錄Ⅰ硬件電路圖 24
附錄Ⅱ主程序源代碼 25