【正文】
I 基于單片機(jī)的能實(shí)現(xiàn)萬年歷功能電子時(shí)鐘的設(shè)計(jì) 摘 要 單片機(jī)應(yīng)用技術(shù)飛速發(fā)展,從導(dǎo)彈的導(dǎo)航裝置,到飛機(jī)上各種儀表的控制,從計(jì)算機(jī)的網(wǎng)絡(luò)通訊與數(shù)據(jù)傳輸,到工業(yè)自動(dòng)化過程的實(shí)時(shí)控制和數(shù)據(jù)處理,以及生活中廣泛使用的各種智能 IC 卡、 電子寵物等 , 這些都離不開單片 機(jī)。 單片機(jī)是集 CPU, RAM,ROM , 定時(shí) , 計(jì)數(shù)和多種接口于一體的微控制器。它體積小,成本低,功能強(qiáng),廣泛應(yīng)用于智能產(chǎn)業(yè)和工業(yè)自動(dòng)化上 。 本文通過對一個(gè)基于單片機(jī)的能實(shí)現(xiàn)萬年歷功能電子時(shí)鐘的設(shè)計(jì),系統(tǒng)由主控制器AT89S5時(shí)鐘電路 DS130顯示電路 、按鍵電路、和復(fù)位電路等部分構(gòu)成, 主控制系統(tǒng)作為控制中心, DS1302產(chǎn)生時(shí)鐘, 12864液晶顯示對日期時(shí)間等進(jìn)行顯示,按鍵可以設(shè)置時(shí)間、鬧鐘等。 能實(shí)現(xiàn)時(shí)鐘日歷 和時(shí)間 顯示的功能,能進(jìn)行時(shí)、分、秒的顯示。 未來,萬年歷將會(huì)朝著精準(zhǔn)度更高,外觀更加美麗,價(jià)格更加實(shí)惠的方向發(fā)展,并且將會(huì)出現(xiàn)更多的輔助功能。 關(guān)鍵詞: 單片機(jī) , 農(nóng)歷查詢 , 萬年歷 II ABSTRACT As the rapid development of Singlechip Microputer Application technology, from the navigation device of missile to the various instruments on the aircraft control and from puter munication work and data transmission to industrial realtime automation process control and data processing, as well as the extensive use of the smart card and electronic pets in live, All of this is inseparable from the microcontroller. SCM is set to CPU, RAM, ROM, timing, counting and multiple interfaces in one microcontroller. It has the advantages of small volume, low cost, strong function, widely used in smart industries, and industrial automation. This paper designed a electronic clock which can achieve calendar function based on microcontroller, the system consists of main controller AT89C51, clock circuit, display circuit, DS1302circuit, and a reset circuit ponents, the main control system as the control center, DS1302 generates a clock, a 12864 LCD display the date and time, the key can set the time, alarm clock, achieved the clock calendar and time display function, can carry out the time, seconds display. In the future, the calendar will be more accurate, look more beautiful。 more affordable prices of the direction of development, and will appear more auxiliary function. Keywords: Monolithic singlechip,lunar calendar demand, perpetual calendars III 目 錄 摘 要 ................................................................................................................I ABSTRACT...................................................................................................... II 目 錄 ............................................................................................................. III 第 1 章 緒論 .................................................................................................... 1 課題 的背景 ................................................................................................................... 1 電子萬年歷的發(fā)展 ......................................................................................................... 1 本次電子萬年歷設(shè)計(jì) ..................................................................................................... 1 第 2 章 設(shè)計(jì)要求與方案論證 ........................................................................ 3 設(shè)計(jì)要求 ......................................................................................................................... 3 方案論證 ......................................................................................................................... 3 控制部分的方案選擇 ............................................................................................... 3 顯示部分的方案選擇 ............................................................................................... 3 單片機(jī)芯片的選擇方案和論證 ............................................................................... 4 時(shí)鐘芯片的選擇方案和論證 ................................................................................... 4 第 3 章 硬件設(shè)計(jì) ............................................................................................ 5 電路的設(shè)計(jì)框圖 ............................................................................................................. 5 主要單元電路的設(shè)計(jì) ..................................................................................................... 5 單片機(jī)主控電路設(shè)計(jì) ............................................................................................... 6 時(shí)鐘電路設(shè)計(jì) ........................................................................................................... 8 復(fù)位電路設(shè)計(jì) ........................................................................................................... 9 溫度傳感器電路設(shè)計(jì) ............................................................................................. 10 .......................................................................................................... 11 顯示電路設(shè)計(jì) ......................................................................................................... 13 按鍵調(diào)整系統(tǒng)電路設(shè)計(jì) ......................................................................................... 16 第 4 章 軟件部分設(shè)計(jì) .............