【正文】
編號 畢業(yè)設計(論文) 題目 基于單片機多功能萬年歷的設計 與仿真 二級學院 專 業(yè) 班 級 學生姓名 學號 指導教師 職稱 目 錄 摘 要 …………………………………………………………………………… Ⅰ Abstract………………………………………………………………………… Ⅱ 1 緒論 ……………………………………………………………………………… 1 選題背景及意義 ……………………………………………………… …… 1 選題背景 ???????????????????????? … 2 選題意義 ???????????????????????? … 2 國內(nèi)外研究現(xiàn)狀 ??????????????????????? … 2 研究內(nèi)容與方法 ??????????????????????? … 3 研究內(nèi)容 ????????????????????????? 5 研究方法 ????????????????????????? 5 本課題關(guān)鍵問題與解決問題 思路 ??????????????? 5 2 電子萬年歷選擇器件介紹 ……………………………………………………… 6 主控制器 AT89C51?????????????????????? 6 DS1302 芯片 ????????????????????????? 7 12846 液晶顯示屏 ???????????????????????? 7 電容 RESPACK8???????????????????????? 8 3 系統(tǒng)硬件設計 ?????????????????????????? 8 系統(tǒng)硬件設計框圖及特點 ??????????????????? 8 硬件電路設計 ???????????????????????? 10 電子萬年歷概述及原理圖 ?????????????????? 10 電路設計 ????????????????????????? 10 系統(tǒng)硬件概述 ??????????????????????? 10 4 系統(tǒng)軟件設計 ?????????????????????????? 11 流程圖及系統(tǒng)程序設計 ???????? ???????????? 12 程序流程圖 ??????????????????????? 13 時間控制流程圖 ????????????????????? 14 系統(tǒng)程序設計 ???????????????????????? 15 陽歷程序設計 ??????????????????????? 16 陰歷程序設計 ??????????????????????? 17 5 Proteus 軟件仿真 ???????????????????????? 18 Proteus ISIS 簡介 ?????????????????????? 19 Proteus 和 Keil C51 整合構(gòu)建單片機仿真環(huán)境 ?????????? 20 Proteus 對電子萬年歷的硬件電路設計 ?????????????? 21 Proteus對電子萬年歷進行仿真測試 ?????????????? 22 6 結(jié)論………………………………………………………………… ????? 27 致謝………………………………………………………………………………… 28 參考文獻………………… ………………………………………………………… 29 基于單片機多功能萬年歷的設計 與仿真 摘要 在 現(xiàn)代 社會繁忙的工作與生活中, 時間與我們每個人都密不可分 ,為了更好的利用我們自己的時間,我們必須對時間有一個度量,因此產(chǎn)生了鐘表。 由于經(jīng)濟的發(fā)展和科學技術(shù)的不斷提高,人們從觀看太陽來判斷時間發(fā)展到現(xiàn)在通過電子鐘表讀取時間,人類觀測時間的方式在發(fā)生改變。如今新出現(xiàn)的電子萬年歷,除了能夠觀測時間之外還具備許多的功能,例如,能夠顯示溫度、星期、日期等和人類的生活息息相關(guān)的信息,而且這種電子表還有 許多的有點,例如:電路簡單、顯示直觀,從而能夠幫助人們更加直接和及時的獲取信息。正因為它具備了以上的這些功能和優(yōu)點,所以發(fā)展前景相當好。 這種電子萬年歷的核心部件是 單片機 AT89C51, 利用此部件來對 鐘芯片DS1302 進行調(diào)控,進而能夠顯示出時間;其中溫度的顯示是通過 溫度傳感器DS18B20 來實現(xiàn);鬧鐘的功能是通過 蜂鳴器 的運作來實現(xiàn);對于時間以及鬧鐘時間可通過 獨立式按鍵 來調(diào)節(jié)。本文重點討論 AT89C51單片 、 鐘芯片 DS1302 鐘芯片 以及電子萬年歷的電路和軟件設計的工作原理及相關(guān)的功能。此萬年歷有關(guān)時間的所有 功能可以按照具體需要通過對有關(guān)部件的調(diào)整來實現(xiàn)。例如,可以通過單機片對液晶顯示器進行調(diào)控,從而可以顯示萬年歷,可以利用 Proteus 軟件 對設計好的電路和軟件進行仿真,最后實現(xiàn)相關(guān)的功能。 關(guān)鍵詞: 單片機; 電子 萬年歷; AT89C51; DS1302; Proteus;仿真 Abstract In the busy work and life in modern society, and every one of us is closely related to everyone under the influence of time, in order to make better use of our own time, we must have a measure of time, resulting in a watch. With the development of society, science and technology, human beings that time from the view of the sun, the electronic clock pendulum clock to now, continuous research and innovation. At the same time in the observation time in order to understand other human related information, such as temperature, week, date, the birth of the electronic calendar, it set the time, date and week in a body, with easy to read, intuitive display functional diversity simple circuit and many other advantages, conform to the trend of the development of electronic instruments. It has broad market prospects. The electronic calendar based on MCU AT89C51 as the control core, through the MCU to control the clock chip DS1302 read the realization of time。 the temperature sensor DS18B20 to realize temperature acquisition。 buzzer alarm clock。 LCD QC12864B implementation time, week and temperature display。 independent keys to achieve the adjustment of time and alarm time. This paper mainly introduces the circuit design and software design of AT89C51 single chip microprocessor and Dsl302 realtim