【正文】
design made Mega16 as the core controller, the peripheral circuits, including liquid crystal display module, clock module, the keyboard module and alarm module. Software with C language programming , achieves all functions of design. This calendar will not only show the number of points, the second, year, month, day, and have the following functions: display Chinese, the alarm time set, alarm clock, music selection, the whole point of time and free to adjust the time after power outages. The design of hardware circuits is simple, difficult in the Chinese public conversion, the design has been tested after the pletion of the basic functions to achieve the abovementioned Key words: Mega16, Calendar, Lunar conversion of public, LCD 長(zhǎng)春理工大學(xué)畢業(yè)設(shè)計(jì) 5 目錄 目錄 .......................................................................................................................................1 第一章 緒論 ..........................................................................................................................6 研究目的和意義 .........................................................................................................6 國(guó)內(nèi)外研究現(xiàn)狀 ........................................................................................................6 本設(shè)計(jì)研究的內(nèi)容 .....................................................................................................6 第二章 系統(tǒng)整體設(shè)計(jì)方案 ....................................................................................................8 系統(tǒng)功能分析 ...........................................................................................................8 系統(tǒng)方案論證 ...........................................................................................................8 時(shí)鐘模塊 .........................................................................................................8 鍵盤模塊 ..........................................................................................................8 顯示模塊 .........................................................................................................9 第三章 系統(tǒng)硬件設(shè)計(jì) ......................................................................................................... 10 Mega16 單片機(jī)電路設(shè)計(jì) ........................................................................................ 10 Mega16 的介紹 ...................................................................................................... 10 Mega16 的引腳圖及引腳說(shuō)明 .......................................................................... 11 時(shí)鐘接口電路 ......................................................................................................... 13 簡(jiǎn)介 .............................................................................................................. 13 引腳介紹及其功能 ......................................................................................... 13 的控制字節(jié) ......................................................................................... 14 DS1302 的寄存器 ............................................................................................ 14 數(shù)據(jù)輸入輸出 ................................................................................................ 15 液晶顯示電路設(shè)計(jì) .................................................................................................. 16 鍵盤接口電路設(shè)計(jì) .................................................................................................. 17 音樂(lè)鬧鈴功能設(shè)計(jì) .................................................................................................. 17 仿真接口電路 ......................................................................................................... 18 第四章 系統(tǒng)軟件主要設(shè)計(jì)流程 ............................................................................................ 19 綜述 ................................................................................................................... 19 系統(tǒng)軟件主流程圖 .................................................................................................. 19 音樂(lè)鬧鈴程序 ......................................................................................................... 20 鍵盤程序 ................................................................................................................. 21 農(nóng)歷算法 ................................................................................................................. 22 農(nóng)歷算法的理論研究 ..................................................................................... 22 .......................................................................................... 23 第五章 系統(tǒng)測(cè)試 ................................................................................................................. 25 軟件仿真 ................................................................................................................. 25 實(shí)物仿真 ................................................................................................................ 25 測(cè)試過(guò)程 ........................................................................................................ 25 測(cè)試結(jié)果 ........................................................................................................ 26 結(jié)論 ..................................................................................................................................... 27 參考文獻(xiàn) .............................................................................................................................. 28 致謝 ................