【正文】
XXXXXXX 畢業(yè)論文 摘 要 本設(shè)計是基于 51系列的單片機進(jìn)行的實時日歷和時鐘顯示設(shè)計,可以 顯示年月日時分秒及周信息,具有可調(diào)整日期和時間功能。 在設(shè)計的同時對單片機的理論基礎(chǔ)和外圍擴展知識進(jìn)行了比較全面準(zhǔn)備 。 實時日歷和時鐘顯示的設(shè)計過程在硬件與軟件方面進(jìn)行同步設(shè)計。硬件部分主要由AT89S52單片機, LED 顯示電路,以及調(diào)時按鍵電路等組成, 系統(tǒng)通過 LED顯示數(shù)據(jù),所以具有人性化的操作和直觀的顯示效果 。 軟件方面主要包括時鐘程序、鍵盤程序,顯示程序等。 本系統(tǒng)以單片機的匯編語言進(jìn)行軟件設(shè)計,為了便于擴展和更改,軟件的設(shè)計采用模塊化 結(jié)構(gòu),使程序設(shè)計的邏輯關(guān)系更加簡潔明了, 以便更簡單地實現(xiàn)調(diào)整時間及日期顯示功能。所有程序編寫完成后,在 wave 軟件中進(jìn)行調(diào)試,確定沒有問題后,在Proteus軟件中嵌入單片機內(nèi)進(jìn)行仿真。 關(guān)鍵詞 : AT89S52; DS1302; LED XXXXXXX 畢業(yè)論文 2 Abstract This design is based on 51 series monolithic integrated circuits of a realtime 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 prehensive preparation. Realtime 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 XXXXXXX 畢業(yè)論文 I 目 錄 1 概述 ............................................................................................................................. 1 2 設(shè)計方案論證 ............................................................................................................. 3 功能要求 .......................................................................................................... 3 方案確定 .......................................................................................................... 3 單片機芯片的選擇方案和論證 ........................................................... 3 顯示模塊選擇方案和論證 ................................................................... 4 時鐘芯片的選擇方案和論證 ............................................................... 4 電路設(shè)計最終方案確定 ....................................................................... 4 3 主控制器和外圍器件 ................................................................................................. 5 單片機 .............................................................................................. 5 時鐘芯片 ............................................................................................ 5 芯片介紹 ................................................................................. 5 的應(yīng)用 ..................................................................................... 9 數(shù)碼管 LED ..................................................................................................... 9 譯碼器 74HC138 ........................................................................................... 10 鎖存器 74LS244 ............................................................................................ 10 4 硬件設(shè)計 ................................................................................................................... 11 電路設(shè)計框圖 ................................................................................................ 11 系統(tǒng)概述 ........................................................................................................ 11 電源設(shè)計 ........................................................................................................ 11 單片機的復(fù)位電路 ........................................................................................ 12 單片機系統(tǒng)的晶振電路 ................................................................................ 12 主電路設(shè)計 .................................................................................................... 13 5 軟件設(shè)計 ................................................................................................................... 15 主程序設(shè)計 .................................................................................................... 15 鍵盤子程序設(shè)計 ............................................................................................ 16 日歷時鐘子程序設(shè)計 .................................................................................... 18 顯示子程序設(shè)計 ............................................................................................ 20 XXXXXXX 畢業(yè)論文 II 6 系統(tǒng)調(diào)試 ................................................................................................................... 21 軟件調(diào)試 ........................................................................................................ 21 硬件調(diào)試 ........................................................................................................ 22 7 結(jié)論 ........................................................................................................................... 24 致謝 .............................................................................................................................. 25 參考文獻(xiàn) ...................................................................................................................... 26 附錄 .............................................................................................................................. 27 附錄Ⅰ硬件電路圖 ..............................................................