【正文】
1 論文題目 : 多功 能電子萬(wàn)年歷的設(shè)計(jì) 學(xué) 院 電氣工程學(xué)院 2 多功能電子萬(wàn)年歷設(shè)計(jì) 專業(yè):自動(dòng)化 姓名: 指導(dǎo)老師: 摘 要 隨著科學(xué)技術(shù)的快速發(fā)展 ,縱觀太陽(yáng)、擺鐘到現(xiàn)在電子鐘,人類不斷研究,不斷創(chuàng)新進(jìn)步。目前,單片機(jī)技術(shù)的應(yīng)用產(chǎn)品已經(jīng)走進(jìn)了千家萬(wàn)戶。多功能電子萬(wàn)年歷的出現(xiàn)給人們的生活帶來(lái)了諸多方便。 此產(chǎn)品是基于 STC89C52RC 單片機(jī)的日歷顯示系統(tǒng) ,它能顯示公歷年、月、日,以及時(shí)、分、秒、溫度、星期等信息,而且還具有調(diào) 整時(shí)間 ,溫度采集,鬧鐘及個(gè)性化的鬧鈴等功能。系統(tǒng)所用的時(shí)鐘日歷芯片 DS1302 具有高性能、低功耗、接口簡(jiǎn)單的特點(diǎn),使本系統(tǒng)電路簡(jiǎn)化,編程方便,同時(shí)功能也很強(qiáng)。采用 STC89C52RC 單片機(jī)的萬(wàn)年歷系統(tǒng)可以很好的改善傳統(tǒng)采用模擬電路引起的計(jì)時(shí)不準(zhǔn)確,不可靠,一致性差等問(wèn)題。此系統(tǒng)計(jì)時(shí)精確,價(jià)格低廉,可以廣泛應(yīng)用在生活,學(xué)習(xí)和工作等任何領(lǐng)域,并且起到重要作用。 關(guān)鍵詞 :萬(wàn)年歷,單片機(jī),時(shí)鐘芯片,溫度芯片 3 ABSTRACT Along with the technical fast development, time passing, to from the view sun, the pendulum clock to the present electron clock, the humanity studies unceasingly, innovates unceasingly the record. At present, the monolithic integrated circuit technology39。s application product already entered everyone. The electronic ten thousand calendar39。s appearances have brought conveniently many for people39。s life. This design is one based on STC89C52RC singlechip microputer calendar display system, it can demonstrate years, the month, the date of the Gregorian calendar, and hour, minute, second, temperature, week and so on. Moreover it has also provided the lunar calendar information, adjustable time pattern, temperature sample, alarm system, individual quarterbell and so on. The system clock calendar DS1302 with high performance, low power consumption and simple interface features Circuit enable the system to streamline programming convenience, but also highly functional. The problems of inaccurate, unreliable, and the uniform inferior can be e up when you use the analogous circuit. However, it can be improved when you use the clock system based on STC89C52RC singlechip microputer. The system time accurate, low cost and can be widely applied to the life, study and work in any field, and has played an important role. 4 Key words: The Electronic Calendar Clock, Singlechip Microputer, The Time Calendar Clock, Temperature Chip 5 目錄 ABSTRACT .............................................................................................................................. 3 1 緒論 ........................................................................................................................................ 8 多功能電子萬(wàn)年歷的研究背景與意義 ...................................................................... 8 多功能電子萬(wàn)年歷的發(fā)展現(xiàn)狀 .................................................................................. 9 論文研究的內(nèi)容 .......................................................................................................... 9 本設(shè)計(jì)進(jìn)行的主要工作 ........................................................................................... 10 本多功能電子萬(wàn)年歷系統(tǒng)主要要實(shí)現(xiàn)的功能 ........................................................ 10 2 單片 機(jī)的簡(jiǎn)介 ....................................................................................................................... 11 單片機(jī)的介紹 ............................................................................................................ 11 3 方案設(shè)計(jì)與論證 .................................................................................................................. 13 單片機(jī)芯片設(shè)計(jì)與論證 ............................................................................................ 13 電源模塊設(shè)計(jì)與論證 ............................................................................................... 14 按鍵控制模塊設(shè)計(jì)與論證 ....................................................................................... 14 時(shí)鐘模塊設(shè)計(jì)與論證 ............................................................................................... 15 溫度采集模塊的設(shè)計(jì)與論證 ................................................................................... 15 顯示模塊設(shè)計(jì)與論證 ............................................................................................... 15 4 系統(tǒng)的硬件設(shè)計(jì) .................................................................................................................. 17 主控芯片 STC89C52RC 與復(fù)位電路和 時(shí)鐘振蕩電路 .......................................... 17 STC89C52RC 的概述 ..................................................................................... 17 復(fù)位電路和 時(shí)鐘振蕩電路 ............................................................................. 19 時(shí)鐘芯片 DS1302 接口設(shè)計(jì)和性能分析 ................................................................ 20 DS1302 性能簡(jiǎn)介 ........................................................................................... 20 6 DS1302 接口電路設(shè)計(jì) ................................................................................... 21 溫度芯片 DS18B20 接口設(shè)計(jì)和性能分析 ............................................................. 25 DS18B20 的性能介紹 .................................................................................... 25 DS18B20 的接口電路設(shè)計(jì) ............................................................................ 26 鬧鐘模塊系統(tǒng)設(shè)計(jì)于性能分析 ............................................................................... 26 AT24C02 器件分析 ......................................................................................... 27 接口電路的設(shè)計(jì) ............................................................................................ 28 LCD 顯示模塊 ........................................................................................................... 28 LCM1602 的特性及使用說(shuō)明 ....................................................................... 28 LCM1602 與 STC89C52RC 單片機(jī)的接口電路 .......................................... 30 按鍵模塊設(shè)計(jì) ........................................................................................................... 31 蜂鳴器設(shè)計(jì) ................................................................................................................ 32 5 軟件設(shè)計(jì) ...................................................................