【正文】
河南科技學(xué)院新科學(xué)院 2020 屆本科畢業(yè)論文(設(shè) 計(jì)) 基于單片機(jī)智能萬(wàn)年歷的設(shè)計(jì) 學(xué)生姓名: 何鈞鋒 所在系別: 機(jī)電系 所學(xué)專業(yè): 電氣工程及其自動(dòng)化 導(dǎo)師姓名: 仝祥云 邵 鋒 完成時(shí)間: _2020 年 5 月 15 日 摘 要 隨著科技的快速發(fā)展,自從觀太陽(yáng)、擺鐘到現(xiàn)在電子鐘,人類不斷研究,不斷創(chuàng)新紀(jì)錄。本文主要介紹了基于單片機(jī)的智能電子萬(wàn)年歷的研制,該萬(wàn) 年歷能夠?qū)崟r(shí)顯示公歷年、月、日、時(shí) 、分、秒,以及對(duì)應(yīng)的農(nóng)歷日期 , 同時(shí)還能夠?qū)崟r(shí)測(cè)取環(huán)境溫度 、使用遙控器對(duì)其進(jìn)行遙控操作 以及語(yǔ)音播報(bào)功能 。本系統(tǒng)的硬件部分主要由 AT89C52單片機(jī)、 AT89C2051單片機(jī)、 時(shí)鐘芯片、溫度傳感器等部件組成,文中給出了詳細(xì)的硬件設(shè)計(jì)實(shí)現(xiàn)及相關(guān)電路圖;軟件部分主要包含公歷轉(zhuǎn)農(nóng)歷的算法設(shè)計(jì)模塊、顯示模塊、時(shí)間的讀取、溫度的檢測(cè)模塊 、紅外線的發(fā)射與接收 模塊等,文中給出了系統(tǒng)的軟件程序流程圖及各功能模塊的軟件程序清單,最后介紹了整體系統(tǒng)的設(shè)計(jì)實(shí)現(xiàn) 、仿真及調(diào)試過(guò)程 ,給出了下一步的改進(jìn)方案等。 關(guān)鍵詞: 單片機(jī) ,紅外遙控, 語(yǔ)音播報(bào), 萬(wàn)年歷,溫度 Abstract With the rapid development of science and technology, since the concept of the sun, the pendulum clock to the electronic clock, humans continue to study, and innovative record. This paper describes the development of microcontrollerbased intelligent electronic calendar, the calendar to realtime display of the calendar year, month, day, minutes, seconds, and the corresponding lunar date, also be measured in real time to take the ambient temperature, use the remote control its remote operation. The hardware part of this system on AT89C52, AT89C2051 microcontroller, clock chip, temperature sensors and other ponents, the paper gives a detailed hardware design and related circuit。 The software part consists mainly of the Gregorian calendarlunar calendar algorithm design module, display module, the time to read, the temperature detection module, infrared transmit and receive modules, etc., are given in the software program of a software program flowchart and functional modules list, and finally the overall system design and implementation, simulation and debugging process, given the next step in the improvement program. Keywords: Microcontroller, Infrared Remote Control, Calendar, Temperature 目 錄 1 緒論 ............................................................................................................................. 9 2 設(shè)計(jì)要求 ...................................................................................................................... 9 3 整體硬件設(shè)計(jì) ............................................................................................................... 9 4 模塊電路設(shè)計(jì) ............................................................................................................. 10 溫度傳感器 ....................................................................................................... 10 方案論證 ................................................................................................. 10 DS18B20 的內(nèi)部結(jié)構(gòu) ................................................................................ 10 DS18B20 與單片機(jī)的接口電路 ...................................................................11 日歷模塊 ...........................................................................................................11 設(shè)計(jì)方案 ..................................................................................................11 DS1302 芯片特性 ..................................................................................... 12 DS1302 數(shù)據(jù)操作原理 .............................................................................. 12 DS1302 芯片引腳及引腳功能表 ................................................................ 13 內(nèi)部寄存器地址和內(nèi)容 ............................................................................ 13 陽(yáng)歷程序 ................................................................................................. 13 時(shí)間調(diào)整程序 .......................................................................................... 13 陰歷程序 ................................................................................................. 13 紅外遙控模塊 ................................................................................................... 15 設(shè)計(jì)方案 ................................................................................................. 15 遙控發(fā)射器的設(shè)計(jì) ................................................................................... 16 遙控碼的編碼格式 ................................................................................... 16 遙控接收系統(tǒng)的設(shè)計(jì) ............................................................................... 17 顯示模塊 .......................................................................................................... 18 設(shè)計(jì)方案 ................................................................................................. 18 顯示電路的設(shè)計(jì) ...................................................................................... 21 語(yǔ)音模塊 .......................................................................................................... 21 設(shè)計(jì)方案 ................................................................................................. 21 語(yǔ)音模塊電路 .......................................................................................... 23 電源模塊 .......................................................................................................... 23 設(shè)計(jì)方案 ................................................................................................. 23 穩(wěn)壓電源電路 .......................................................................................... 25 組合調(diào)試與性能分析 .......................................................................................... 26 調(diào)試 ........................................................................................................ 26 性能指標(biāo) ................................................................................................. 26 5 結(jié)束語(yǔ) ........................................................................................................................ 26 致謝 .........................................................................................