【正文】
almost all spheres of society, It’s a strong impetus to the development of social productivity and improvement in the level of social information. The performance of modern electronic products also has been further improved.The digital clock timing is a digital circuit which displays hour, minute, second. The accuracy, stability of digital clock is far more than the oldfashioned mechanical clock. In this design, we use 8segment LED digital display, and displayed according to digital dynamic display principle with a 12MHz crystal oscillator pulse and the timer count, and an external speaker is used as the ring. In this design, the circuit has the function to display time and the time can be adjusted. Because digital clock has the advantage of low prices, high precision, easy to use, multifunction, easy integration, it is loved by the majority of consumption, so it has been widely used.Keywords: singlechip machine digital clock 1.概述 20世紀(jì)末,電子技術(shù)獲得了飛速的發(fā)展,在其推動下,現(xiàn)代電子產(chǎn)品幾乎滲透了社會的各個(gè)領(lǐng)域,有力地推動了社會生產(chǎn)力的發(fā)展和社會信息化程度的提高,同時(shí)也使現(xiàn)代電子產(chǎn)品性能進(jìn)一步提高,產(chǎn)品更新?lián)Q代的節(jié)奏也越來越快。在此次設(shè)計(jì)中,電路具有顯示時(shí)間的其本功能,還可以實(shí)現(xiàn)對時(shí)間的調(diào)整。數(shù)字鐘的精度、穩(wěn)定度遠(yuǎn)遠(yuǎn)超過老式機(jī)械鐘。 目錄摘要 1ABSTRACT 21.概述 3 3 3 42總體控制方案設(shè)計(jì) 5 5 5 AT89C51單片機(jī)介紹 7 83 硬件設(shè)計(jì) 9 9 9 12 134 軟件設(shè)計(jì) 15 15 15 16 17 18 時(shí)間和鬧鐘的設(shè)置 19 軟件設(shè)計(jì)總結(jié) 205 總結(jié) 226 參考文獻(xiàn) 237致謝 24附錄 24摘要近年來,電子技術(shù)獲得了飛速的發(fā)展,在其推動下,現(xiàn)代電子產(chǎn)品幾乎滲透了社會的各個(gè)領(lǐng)域,有力地推動了社會生產(chǎn)力的發(fā)展和社會信息化程度的提高,同時(shí)也使現(xiàn)代電子產(chǎn)品性能進(jìn)一步提高。數(shù)字時(shí)鐘是采用數(shù)字電路實(shí)現(xiàn)對“時(shí)”、“分”、“秒”數(shù)字顯示的計(jì)時(shí)裝置。在這次設(shè)計(jì)中,我們采用8位8段LED數(shù)碼管顯示,根據(jù)數(shù)碼管動態(tài)顯示原理來進(jìn)行顯示,用12MHz的晶振產(chǎn)生振蕩脈沖,定時(shí)器計(jì)數(shù),并采用外置喇叭作為響鈴。數(shù)字時(shí)鐘因外形小巧,價(jià)格低廉,走時(shí)精度高,使用方便,功能多,便于集成化而受廣大消費(fèi)的喜愛,因此得到了廣泛的使用。單片機(jī)的出現(xiàn)至今已經(jīng)有30多年的歷史了,單片機(jī)嵌入式技術(shù)也已歷經(jīng)了幾個(gè)發(fā)展階段。研究具有相應(yīng)功能的電子產(chǎn)品的具有深遠(yuǎn)的意義。單片機(jī)應(yīng)用的重要意義還在于,它從根本上改變了傳統(tǒng)的控制系統(tǒng)設(shè)計(jì)思想和設(shè)計(jì)方法。單片機(jī)模塊中最常見的就是數(shù)字鐘,數(shù)字鐘是一種數(shù)字電路技術(shù)實(shí)現(xiàn)時(shí)、分、秒、計(jì)時(shí)的裝置,由于數(shù)字集成電路的發(fā)展和石英晶體振蕩器的廣泛應(yīng)用,數(shù)字鐘與傳統(tǒng)機(jī)械式的時(shí)鐘相比來說具有更高直觀性與準(zhǔn)確性,并且沒有機(jī)械裝置零件之類,則具有更長的使用壽命,而且大大地?cái)U(kuò)展了傳統(tǒng)老式鐘表原先的報(bào)時(shí)功能。因此,研究數(shù)字時(shí)鐘及擴(kuò)大其應(yīng)用有著非?,F(xiàn)實(shí)的意義。而51單片機(jī)是各單片機(jī)中最為典型和最有代表性的一種。因此,數(shù)字不管在性能還是樣式上都發(fā)生了質(zhì)的變化,比如有電子鬧鐘、電子秒表等等,國內(nèi)外已有多種數(shù)字鐘的設(shè)計(jì)成果,比如:基于低成本數(shù)字集成電路及配套的LED顯示器組成的數(shù)字鐘設(shè)計(jì);基于VHDL的數(shù)字鐘設(shè)計(jì);基于單片機(jī)數(shù)字時(shí)鐘設(shè)計(jì),以單片機(jī)為中心控制單元,才用匯編語言編程,設(shè)計(jì)的數(shù)碼管或液晶顯示器時(shí)、分、秒的時(shí)鐘等等。數(shù)字鐘未來將呈現(xiàn)出個(gè)性化、專業(yè)化的趨勢,而且每個(gè)網(wǎng)站在資源方面總是有限的,客戶的需求又是全方