【正文】
本科生畢業(yè)論文 題 目 基于單片機的數(shù)字時鐘的設(shè)計 學(xué) 院 理學(xué)院 專業(yè)班級 10 級電科四班 學(xué)生姓名 指導(dǎo)教師 撰寫日期 2021 年 5 月 15 日 基于單 片機的數(shù)字時鐘畢業(yè)設(shè)計 摘要 多功能數(shù)字鐘的應(yīng)用非常普遍,由單片機作為數(shù)字鐘的核心控制器,通過它的時鐘信號進行實現(xiàn)計時功能,將其時間數(shù)據(jù)經(jīng)單片機輸出,利用顯示器顯示出來。通過鍵盤可以進行校時、定時等功能。輸出設(shè)備顯示器可以用 LED顯示技術(shù)來顯示技術(shù)。 本系統(tǒng)利用單片機實現(xiàn)具有計時、校時等功能的數(shù)字時鐘,是以單片機 AT89C51為核心元件,以蜂鳴器實現(xiàn)鬧鐘,同時采用 LED動態(tài)顯示“時”,“分”,“秒”的現(xiàn)代計時裝置。另外具有校時功能,秒表功能,和定時器功能,利用單片機實現(xiàn)的數(shù)字時鐘具有編程靈活,便于功能的擴充等優(yōu)點。 簡要介紹了 LED 顯示的發(fā)展?fàn)顩r和其所特有的優(yōu)勢,簡述了該系統(tǒng)中一些重要芯片的基本工作原理,著重論述了硬件線路各個模塊的設(shè)計思想。 LED 顯示與單片機的接口采用動態(tài)顯示技術(shù),利用了時鐘芯片的系統(tǒng)自帶電池功能來實現(xiàn)斷電時保存一些重要數(shù)據(jù),以便來電時正確顯示信息的功能。 模塊化的設(shè)計和調(diào)試方法在整個課題研究過程中至關(guān)重要,事實上在任何設(shè)計中也同樣關(guān)鍵和有效。 關(guān)鍵詞: 數(shù)字鐘系統(tǒng); 單片機; LED顯示;蜂鳴器 Graduation design based on SCM digital clock Yang yabo Abstract Multifunction digital clock is very mon, by single chip microputer as the core of the digital clock controller, through its function of timing clock signal, the time data by the MCU output, using the monitor display. Through the keyboard to school, timing, etc. Output devices display can use the LED display technology to display technology. This system USES single chip microputer to realize digital clock with timing, when the school and other functions, is based on single chip microputer AT89C51 as the core element, with a buzzer alarm clock, and USES the LED dynamic display when, points, second modern timing devices. Also has the function of the school when, stopwatch functions, and timer function, using the single chip microputer implementation of digital clock with flexible programming, function expansion conveviently. This paper briefly introduces the development of LED display and its peculiar advantage, this paper expounds some important chip in this system the basic working principle, mainly discusses the hardware circuit design of each module. LED display and single chip microputer interface dynamic display technology, using the function of clock chip system es with battery power to implement save some important data, in order to call the right shows the function of information. Modular design and debug method is of vital importance in the whole research process, in fact is also the key in any design and effective. Keywords:Digital clock system。 Single chip microputer。 LED display. buzzer 目錄 1 緒論 .............................................................. 1 2 系統(tǒng)總體設(shè)計方案 ................................................... 2 系 統(tǒng)功能實現(xiàn)總體設(shè)計思路 ....................................... 2 方案選擇 ............................................... 2 3 硬件設(shè)計 .......................................................... 3 AT89C51簡介 ...................................................... 3 AT89C51主要性能參數(shù) ........................................ 4 AT89C51單片機的功能特性概述 ................................ 4 LED數(shù)碼管 ........................................................ 7 LED顯示器的結(jié)構(gòu) ............................................ 8 ............................................... 8 ...................................................... 8 .................................................. 9 4軟件設(shè)計 ................................................................ 11 ..................................................... 11 ................................................... 11 5畢業(yè)設(shè)計結(jié)果仿真 ........................................................ 16 ................................................. 16 ................................................... 17 ................................................... 17 總結(jié) ..................................................................... 19 參考文獻(xiàn) ................................................................. 20 附錄 A …………………………………………… … …… ………………………… ……… 21致謝 ………………………………………………………………………………………… 31 1 1 緒論 隨著生活水平的提高,人們越來越追求人性化的事物,傳統(tǒng)的時鐘已不 能滿足人們的需求?,F(xiàn)代的數(shù)字鐘不僅需要