【正文】
本科生畢業(yè)論文 題 目 基于單片機(jī)的數(shù)字時(shí)鐘的設(shè)計(jì) 學(xué) 院 理學(xué)院 專業(yè)班級(jí) 10級(jí)電科四班 學(xué)生姓名 指導(dǎo)教師 撰寫(xiě)日期2014年5月15日基于單片機(jī)的數(shù)字時(shí)鐘畢業(yè)設(shè)計(jì) 摘要多功能數(shù)字鐘的應(yīng)用非常普遍,由單片機(jī)作為數(shù)字鐘的核心控制器,通過(guò)它的時(shí)鐘信號(hào)進(jìn)行實(shí)現(xiàn)計(jì)時(shí)功能,將其時(shí)間數(shù)據(jù)經(jīng)單片機(jī)輸出,利用顯示器顯示出來(lái)。通過(guò)鍵盤可以進(jìn)行校時(shí)、定時(shí)等功能。輸出設(shè)備顯示器可以用LED顯示技術(shù)來(lái)顯示技術(shù)。 本系統(tǒng)利用單片機(jī)實(shí)現(xiàn)具有計(jì)時(shí)、校時(shí)等功能的數(shù)字時(shí)鐘,是以單片機(jī)AT89C51為核心元件,以蜂鳴器實(shí)現(xiàn)鬧鐘,同時(shí)采用LED動(dòng)態(tài)顯示“時(shí)”,“分”,“秒”的現(xiàn)代計(jì)時(shí)裝置。另外具有校時(shí)功能,秒表功能,和定時(shí)器功能,利用單片機(jī)實(shí)現(xiàn)的數(shù)字時(shí)鐘具有編程靈活,便于功能的擴(kuò)充等優(yōu)點(diǎn)。簡(jiǎn)要介紹了LED顯示的發(fā)展?fàn)顩r和其所特有的優(yōu)勢(shì),簡(jiǎn)述了該系統(tǒng)中一些重要芯片的基本工作原理,著重論述了硬件線路各個(gè)模塊的設(shè)計(jì)思想。LED顯示與單片機(jī)的接口采用動(dòng)態(tài)顯示技術(shù),利用了時(shí)鐘芯片的系統(tǒng)自帶電池功能來(lái)實(shí)現(xiàn)斷電時(shí)保存一些重要數(shù)據(jù),以便來(lái)電時(shí)正確顯示信息的功能。模塊化的設(shè)計(jì)和調(diào)試方法在整個(gè)課題研究過(guò)程中至關(guān)重要,事實(shí)上在任何設(shè)計(jì)中也同樣關(guān)鍵和有效。關(guān)鍵詞:數(shù)字鐘系統(tǒng); 單片機(jī); LED顯示;蜂鳴器Graduation design based on SCM digital clockYang yaboAbstractMultifunction 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緒論 12系統(tǒng)總體設(shè)計(jì)方案 2 2 23硬件設(shè)計(jì) 3 AT89C51簡(jiǎn)介 3 AT89C51主要性能參數(shù) 4 AT89C51單片機(jī)的功能特性概述 4 LED數(shù)碼管 7 LED顯示器的結(jié)構(gòu) 8 8 9 94軟件設(shè)計(jì) 11 11 115畢業(yè)設(shè)計(jì)結(jié)果仿真 16 16 17 17總結(jié) 19參考文獻(xiàn) 20附錄A …………………………………………… … ………………………………………21致謝 …………………………………………………………………………………………311緒論隨著生活水平的提高,人們?cè)絹?lái)越追求人性化的事物,傳統(tǒng)的時(shí)鐘已不能滿足人們的需求?,F(xiàn)代的數(shù)字鐘不僅需要數(shù)字電路技術(shù)而且需要模擬電路技術(shù)和單片機(jī)技術(shù),增加數(shù)字鐘的功能。利用軟件編程盡量做到硬件電路簡(jiǎn)單穩(wěn)定,減小電磁干擾和其他環(huán)境干擾,減小因元器件精度不夠引起的誤差,但是數(shù)字鐘還是可以改進(jìn)和提高如選用更精密的元器件。但與機(jī)械式時(shí)鐘相比已經(jīng)具有更高的準(zhǔn)確性和直觀性,且無(wú)機(jī)械裝置,具有更長(zhǎng)的使用壽命,因此得到了廣泛的使用數(shù)字鐘通過(guò)數(shù)字電路實(shí)現(xiàn)時(shí),分,秒,字顯示的計(jì)時(shí)裝置,廣泛用于個(gè)人家庭,車站, 碼頭辦公室等公共場(chǎng)所,成為人們?nèi)粘I钪胁豢缮俚谋匦杵?由于數(shù)字集成電路的發(fā)展和石英晶體振蕩器的廣泛應(yīng)用,使得數(shù)字鐘的精度,遠(yuǎn)遠(yuǎn)超過(guò)老式鐘表, 鐘表的數(shù)字化給人們生產(chǎn)生活帶來(lái)了極大的方便,而且大大地?cái)U(kuò)展了鐘表原先的報(bào)時(shí)功能。諸如定時(shí)自動(dòng)報(bào)警、按時(shí)自動(dòng)打鈴、時(shí)間程序自動(dòng)控制、定時(shí)廣播、自動(dòng)起閉路燈、定時(shí)開(kāi)關(guān)烘箱、通斷動(dòng)力設(shè)備、甚至各種定時(shí)電氣的自動(dòng)啟用等,所有這些,都是以鐘表數(shù)字化為基礎(chǔ)的。因此,研究數(shù)字鐘及擴(kuò)大