【正文】
核心,時鐘芯片 DS130輝光管顯示驅(qū)動電路等組成。 通過這次課程設計我發(fā)現(xiàn),只有理論水平提高了;才能夠?qū)⒄n本知識與實踐相整合,理論知識服務于教學實踐,以增強自己的動手能力。 23 參考文獻 [1].任為民 . 《電子技術基礎課程設計》 . 中央廣播電視大學出版社 . 1997年 5月第 1版 . [2].李全利;《單片機原理及應用技術》。撰寫論文的過程也是專業(yè)知識的學習過程,它使我運用已有的專業(yè)基礎知識,對其進行設計,分析和解決一個理論問題或?qū)嶋H問題,把知識轉(zhuǎ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。 //進入或退出設置程序 if(ST==0) { Time[2]=TS[0]*10+TS[1]。 for(。ET1=1。 2. 消除鬼影,輝光管從亮到滅時,仍出現(xiàn)有短暫的光亮現(xiàn)象,可采用脈沖振蕩,當輝光管滅時不提供高壓驅(qū)動脈沖即可消除鬼影。 圖 17 外部時鐘方式 外部時鐘方式常用于多片單片機組成的系統(tǒng)中,(當兩個芯片需要嚴 格同步時,就要使用外部時鐘信號)以便各單元之間的時鐘信號同步運 行。 其革命性的功能是:將電路仿真和微處理器仿真進行協(xié)同,直接在基于原理圖的虛擬原型上進行處理器編程調(diào)試,并進行功能驗證,通過動態(tài)器件如電機、 LED、 LCD、開關等,實時看到運行后的輸入、 11 輸出的效果,配合系統(tǒng)配置的虛擬儀器如示波器、邏輯分析儀等, Proteus為我們建立了完備的電子設 計開發(fā)環(huán)境。用 4 位二進制數(shù)來表示 1 位 十進制數(shù) 中的 0~9這 10 個數(shù)碼。 軟件使用者 不應將數(shù)據(jù) 1寫入未定義的單元,由于這些單元在將來的產(chǎn)品中可能賦予新的功能,在這種情況下,復位后這些單元數(shù)值總是 “0” 。在此期間,當訪問 7 外部數(shù)據(jù)存儲器,將跳過兩次 PSEN信號。 P2: 是一個帶有內(nèi)部上拉電阻的 8 位雙向 I/O 口, P2 的輸出緩沖級可驅(qū)動(吸收或輸出電流) 4 個 TTL 邏輯電路。 5 圖 4 單片機內(nèi)部結(jié)構(gòu) 功能引腳說明: 圖 5 引腳圖 6 Vcc:電源電壓 GND:接 地 P0: 是一組 8位漏極開路型雙向 1/O 口,也即地址 /數(shù)據(jù)總線復用口。 ( 6) 性價比高 單片機應用廣泛,生產(chǎn)批量大,產(chǎn)品供應商的商業(yè)競爭使得單片機產(chǎn)品的性能越來越強而價格低廉,有優(yōu)異的性能價格比。能靈活,方便地應用于各種智能化的控制設備和儀器,實現(xiàn)機電一體化。 8位單片機: 1972年,美國 Intel公司首先推出 8位微處理器 8008,并于 1976年 9月率先推出MCS48系列單片機。古老的器件在經(jīng)過設計師精心設計后賦予了非常強烈的現(xiàn)代感 ,是古典科技與現(xiàn)代藝術的完美結(jié)合,從而成為經(jīng)典中的珍品。 關鍵詞: 輝光管,單片機,編程,設計,仿真,電子時鐘 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