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