單片機畢業(yè)設(shè)計論文.doc
單片機畢業(yè)設(shè)計論文,摘要 本設(shè)計是基于51系列的單片機進行的實時日歷和時鐘顯示設(shè)計,可以顯示年月日時分秒及周信息,具有可調(diào)整日期和時間功能。在設(shè)計的同時對單片機的理論基礎(chǔ)和外圍擴展知識進行了比較全面準備?! 崟r日歷和時鐘顯示的設(shè)計過程在硬件與軟件方面進行同步設(shè)計。硬件部分主要由at89s52單片機,led顯示電...


內(nèi)容介紹
此文檔由會員 xa3233 發(fā)布單片機畢業(yè)設(shè)計論文
摘要
本設(shè)計是基于51系列的單片機進行的實時日歷和時鐘顯示設(shè)計,可以顯示年月日時分秒及周信息,具有可調(diào)整日期和時間功能。在設(shè)計的同時對單片機的理論基礎(chǔ)和外圍擴展知識進行了比較全面準備。
實時日歷和時鐘顯示的設(shè)計過程在硬件與軟件方面進行同步設(shè)計。硬件部分主要由AT89S52單片機,LED顯示電路,以及調(diào)時按鍵電路等組成,系統(tǒng)通過LED顯示數(shù)據(jù),所以具有人性化的操作和直觀的顯示效果。軟件方面主要包括時鐘程序、鍵盤程序,顯示程序等。本系統(tǒng)以單片機的匯編語言進行軟件設(shè)計,為了便于擴展和更改,軟件的設(shè)計采用模塊化結(jié)構(gòu),使程序設(shè)計的邏輯關(guān)系更加簡潔明了,以便更簡單地實現(xiàn)調(diào)整時間及日期顯示功能。所有程序編寫完成后,在wave軟件中進行調(diào)試,確定沒有問題后,在Proteus軟件中嵌入單片機內(nèi)進行仿真。
關(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è)計方案論證 2
2.1功能要求 2
2.2方案確定 2
2.2.1單片機芯片的選擇方案和論證 2
2.2.2顯示模塊選擇方案和論證 3
2.2.3時鐘芯片的選擇方案和論證 3
2.2.4電路設(shè)計最終方案確定 3
3主控制器和外圍器件 4
3.1AT89S52單片機 4
3.2DS1302時鐘芯片 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è)計 10
4.1電路設(shè)計框圖 10
4.2系統(tǒng)概述 10
4.3電源設(shè)計 10
4.4單片機的復位電路 11
4.5單片機系統(tǒng)的晶振電路 11
4.6主電路設(shè)計 12
5軟件設(shè)計 13
5.1主程序設(shè)計 13
5.2鍵盤子程序設(shè)計 14
5.3日歷時鐘子程序設(shè)計 16
5.4顯示子程序設(shè)計 18
6系統(tǒng)調(diào)試 18
6.1軟件調(diào)試 18
6.2硬件調(diào)試 19
7結(jié)論 20
致謝 22
參考文獻 23
附錄 24
附錄Ⅰ硬件電路圖 24
附錄Ⅱ主程序源代碼 25