【正文】
核心,時鐘芯片 DS130輝光管顯示驅(qū)動電路等組成。 通過這次課程設(shè)計我發(fā)現(xiàn),只有理論水平提高了;才能夠?qū)⒄n本知識與實踐相整合,理論知識服務(wù)于教學(xué)實踐,以增強(qiáng)自己的動手能力。 23 參考文獻(xiàn) [1].任為民 . 《電子技術(shù)基礎(chǔ)課程設(shè)計》 . 中央廣播電視大學(xué)出版社 . 1997年 5月第 1版 . [2].李全利;《單片機(jī)原理及應(yīng)用技術(shù)》。撰寫論文的過程也是專業(yè)知識的學(xué)習(xí)過程,它使我運用已有的專業(yè)基礎(chǔ)知識,對其進(jìn)行設(shè)計,分析和解決一個理論問題或?qū)嶋H問題,把知識轉(zhuǎn)化為能力的實際訓(xùn)練。 } if(TZ==3) { if(TS[3]==9) TS[3]=0。(ST==1)) 21 { if(TZ==0) //改變調(diào)整值 { if(TS[0]==2) TS[0]=0。 else TZ++。 } } if((Key1==0)amp。 //進(jìn)入或退出設(shè)置程序 if(ST==0) { Time[2]=TS[0]*10+TS[1]。 for(。ET1=1。 2. 消除鬼影,輝光管從亮到滅時,仍出現(xiàn)有短暫的光亮現(xiàn)象,可采用脈沖振蕩,當(dāng)輝光管滅時不提供高壓驅(qū)動脈沖即可消除鬼影。 圖 17 外部時鐘方式 外部時鐘方式常用于多片單片機(jī)組成的系統(tǒng)中,(當(dāng)兩個芯片需要嚴(yán) 格同步時,就要使用外部時鐘信號)以便各單元之間的時鐘信號同步運 行。 其革命性的功能是:將電路仿真和微處理器仿真進(jìn)行協(xié)同,直接在基于原理圖的虛擬原型上進(jìn)行處理器編程調(diào)試,并進(jìn)行功能驗證,通過動態(tài)器件如電機(jī)、 LED、 LCD、開關(guān)等,實時看到運行后的輸入、 11 輸出的效果,配合系統(tǒng)配置的虛擬儀器如示波器、邏輯分析儀等, Proteus為我們建立了完備的電子設(shè) 計開發(fā)環(huán)境。用 4 位二進(jìn)制數(shù)來表示 1 位 十進(jìn)制數(shù) 中的 0~9這 10 個數(shù)碼。 軟件使用者 不應(yīng)將數(shù)據(jù) 1寫入未定義的單元,由于這些單元在將來的產(chǎn)品中可能賦予新的功能,在這種情況下,復(fù)位后這些單元數(shù)值總是 “0” 。在此期間,當(dāng)訪問 7 外部數(shù)據(jù)存儲器,將跳過兩次 PSEN信號。 P2: 是一個帶有內(nèi)部上拉電阻的 8 位雙向 I/O 口, P2 的輸出緩沖級可驅(qū)動(吸收或輸出電流) 4 個 TTL 邏輯電路。 5 圖 4 單片機(jī)內(nèi)部結(jié)構(gòu) 功能引腳說明: 圖 5 引腳圖 6 Vcc:電源電壓 GND:接 地 P0: 是一組 8位漏極開路型雙向 1/O 口,也即地址 /數(shù)據(jù)總線復(fù)用口。 ( 6) 性價比高 單片機(jī)應(yīng)用廣泛,生產(chǎn)批量大,產(chǎn)品供應(yīng)商的商業(yè)競爭使得單片機(jī)產(chǎn)品的性能越來越強(qiáng)而價格低廉,有優(yōu)異的性能價格比。能靈活,方便地應(yīng)用于各種智能化的控制設(shè)備和儀器,實現(xiàn)機(jī)電一體化。 8位單片機(jī): 1972年,美國 Intel公司首先推出 8位微處理器 8008,并于 1976年 9月率先推出MCS48系列單片機(jī)。古老的器件在經(jīng)過設(shè)計師精心設(shè)計后賦予了非常強(qiáng)烈的現(xiàn)代感 ,是古典科技與現(xiàn)代藝術(shù)的完美結(jié)合,從而成為經(jīng)典中的珍品。 關(guān)鍵詞: 輝光管,單片機(jī),編程,設(shè)計,仿真,電子時鐘 ABSTRACT: Glow Tube is the product of the last century 6080s, witness the history of the development of electronic technology, believe that there are a lot of friends to understand its seldom or even never saw. But here it is now endangered ancient device, it makes people who saw her could not fet the display effect, exclamation, 40 years ago has even started creating endowed with such artistic breath, in order to make this ancient and very artistic devices send fail waste heat, POV clock according to glow tube design, this design used 80c52 chip as the core, the glow, according to the use of DS1302 realtime calendar clock chip to plete the basic function of the clock. This method has the advantage of reliable performance, good realtime, time, simple operation, easy programming. Understand the internal structure of singlechip microputer and program piling and simulation burning, etc, to better grasp the program structure and the modularized program design, for the development and application of singlechip microputer in the future to lay the foundation. KEY WORDS: Glow Tube, MCU, Programming, Design, Simulation, Electronic clock 2 目錄 前 言 .......................................................................... 0