【正文】
//保存設(shè)置 } else { TZ=0。(Key2==0)) //B鍵按下 { Delay(6000)。具體介紹應(yīng)用 Protel DXP進(jìn)行電路原理圖設(shè)計, Keil C51軟件調(diào)試程序以及Proteus的 ISIS軟件進(jìn)行單片機(jī)系統(tǒng)的電子鐘設(shè)計與仿真。這種做法既有助于完成理論知識的鞏固,又有助于帶動實踐,解決實際問題,加強我們的動手能力和解決問題的能力。 else TS[2]++。(Key2==1)) { if(TZ==3) TZ=0。(Key2==0)) ST=!ST。 TR1=1。 15 圖 16 上電復(fù)位 時鐘方式采用外部時鐘,如下圖所示。 全解碼的有效 BCD輸入邏輯 ,確保所有的輸出保持關(guān)閉所有無效的二進(jìn)制輸入條件 .該解碼器具有高性能 ,NPN輸出晶體管設(shè)計用于指示燈 /繼電器驅(qū)動器或集電極開路邏輯電路的驅(qū)動程序 . 表 2功能表 BCD 碼( l )亦稱二進(jìn)碼十進(jìn)數(shù)或二 十進(jìn)制 代碼。 PSEN:程序儲存允許 PSEN輸出是外部程序存儲器的讀選通信號,當(dāng) AT89C52 由外部程序存儲器取指令(或數(shù)據(jù))時,每個機(jī)器周期兩次 PSEN有效,即輸出兩個脈沖。掉電方式保存 RAM 中的內(nèi)容,但振蕩器停止工作并禁止其它所有部件工作直到下一個硬件復(fù)位 。 單片機(jī)、 CPU、存儲器、 I/O接口等各種功能部件集成在一塊晶體芯片上,體積小,節(jié)省空間。 1 1 輝光管簡介 輝光管 是 60年代真空電子時代的產(chǎn)物,是利用輝光放電效應(yīng)產(chǎn)生光亮來顯示數(shù)字及符號的一種電子元件,誕生于上世紀(jì) 60年代,到了 80年代末慢慢的被其他技術(shù)所創(chuà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 1 輝光管簡介 ................................................................... 1 2 單片機(jī)及主要芯片相關(guān)知識 ...................................................... 2 .............................................................. 2 .......................................................... 2 .......................................................... 3 AT89C52單片機(jī)的介紹 ................................................. 4 主要芯片簡 潔 ............................................................. 7 2. 三極管 2N5551功能及引腳圖 ............................................ 8 十進(jìn)制解碼器 HD74LS145芯片功能及引腳 .................................. 8 時鐘芯片 DS1302功能及引腳 ............................................ 10 PROTEUS