【正文】
......................................... 1 設計要求 ...................................................................................................................... 1 第 2 章 單片機及液晶顯示模塊 .............................................................................................. 3 單片機 STC89C58RD+結構 ....................................................................................... 3 引腳定義及功能 ................................................................................................ 3 復位電路 ............................................................................................................ 6 液晶 12232 模塊 .......................................................................................................... 7 引腳定義及功能說明 ........................................................................................ 7 指令描述 ............................................................................................................ 8 LCD12232 的寫規(guī)則 ........................................................................................ 11 LCD12232 與單片機接口 ................................................................................ 11 第 3 章 硬件設計 .................................................................................................................... 13 芯片及硬件模塊 ......................................................................................................... 13 時鐘芯片模塊 DS1302 .................................................................................... 13 液晶外部時鐘模塊 .......................................................................................... 21 鍵盤接口電路 .................................................................................................. 23 系統(tǒng)設計思路 ............................................................................................................. 24 硬件框圖 ..................................................................................................................... 25 系統(tǒng)功能說明 ............................................................................................................ 26 系統(tǒng)硬件設計電路圖 ................................................................................................. 27 第 4 章 軟件設計 .................................................................................................................... 29 軟件設計的原則 ........................................................................................................ 29 系統(tǒng)功能模塊圖 ........................................................................................................ 29 程序流程圖 ................................................................................................................ 30 第 5 章 制作與調試 ................................................................................................................ 34 硬件焊接 .................................................................................................................... 34 硬件調試 .................................................................................................................... 35 焊接調試 .......................................................................................................... 35 故 障調試 .......................................................................................................... 35 功能調試 .......................................................................................................... 36 “偉福 ”調試軟件 .......................................................................................................... 36 “偉福 ”的特點 .................................................................................................... 36 “偉福 ”仿真軟件的使用 .................................................................................... 36 “偉福 ”集成調試軟件的界面 ............................................................................ 37 II 綜合調試 ..................................................................................................................... 43 聯(lián)機調試 .......................................................................................................... 43 脫機調試 .......................................................................................................... 44 結束語 ...................................................................................................................................... 46 附錄 硬 件實物圖 .................................................................................................................... 47 致 謝 ........................................................................................................................................ 48 參考文獻 .................................................................................................................................. 49 1 第 1 章 緒 論 課題開發(fā)背景 人類最早使用的定時工具是沙漏或水漏,但在鐘表誕生發(fā)展成熟之后,人們開始嘗試使用這種全新的計時工具來改進定時器,達到準 確控制時間的目的。 關鍵詞 : 單片機,時鐘芯片,液晶模塊,定時控制 Subject: Development of Time Controller Based on Single Chip Microprocessor ABSTRACT Along with the electronic technology rapid development, appears of the large scale integrated circuit specially, these have made a big change on people’s living. Products including the technology application of the single chip microprocessor sets already entered every family. As one application of the single chip microprocessor technology, the time controller has been applied in the daily life, the industry situation and military field. This article introduced mainly the design process of the time controller posed by the single chip microprocessor. As the main control ponent, the single chip microprocessor is the core of the device and it plays the main control action. The clock chip provides a digital clock for the device and helps to realize the function of the timing control. The liquid crystal display is the carrier for th