【正文】
2 方案研究與主要芯片選擇 總體方案原理及設(shè)計框圖本設(shè)計是基于 STC89C52RC 單片機為核心器件控制整個系統(tǒng)進行工作的,系統(tǒng)控制框圖如圖 所示。(6)為實現(xiàn)給單片機供電,需要電源模塊。(4)為實現(xiàn)語音能適應(yīng)各種場合,采用可以自己錄音的芯片 ISD1730。(2)為實現(xiàn)程序下載需要串口模塊。硬件部分:單片機點陣顯示紅外遙控U S B 電 源語 音 模 塊圖 硬件框圖本設(shè)計硬件部分分為六個模塊。對于不同型號的單片機只需要相應(yīng)的改變一下地址即可。研究思路:本設(shè)計是以 AT89C52 芯片的電路為基礎(chǔ),通過軟件程序來控制單片機內(nèi)部的定時器來控制 1616 的矩陣貼片發(fā)光二極管的明亮,顯示不同的圖案花樣,形成霓虹燈控制器。實現(xiàn)圖案和字的左右移動、暫停、繼續(xù)移動、跳轉(zhuǎn)到指定字的操作??刂破鞯幕幼兓八俣日{(diào)節(jié)能用軟件方法實現(xiàn),這樣進一步提高了性價比。而且基于單片機的流水燈的控制系統(tǒng)利用了單片機的內(nèi)部資源,如定時器、I/O 口和寄存器等,完成了單片機系統(tǒng)開發(fā)的基本流程,因此具有典型的代表意義,是學習和開發(fā)單片機的基本實驗之一。因此本文將單片機與語音芯片結(jié)合起來,設(shè)計了一款用單片機控制的霓虹燈控制系統(tǒng),伴隨著霓虹燈圖像的變化有不同的語音效果。在許多基于單片機的應(yīng)用系統(tǒng)中,通過軟件編程實現(xiàn)對外部硬件電路的控制。單片機自問世以來,迄今已有三十多年了,其產(chǎn)品琳瑯滿目,產(chǎn)家也眾多紛紜,功能也是五花八門。自其問世以來,歷經(jīng)了上百年的發(fā)展,現(xiàn)已成為重要的顯示、裝飾光源。 Decoder。 Infrared Remote Control。該系統(tǒng)具有電路結(jié)構(gòu)簡單、易操作、成本低等優(yōu)點,具有較強的實用價值。語音的播放支持暫停、下一首、調(diào)節(jié)音量和復(fù)位。顯示部分為1616 的點陣模塊,通過單片機控制顯示不同的圖案以及想要的文字,并讓字能夠移動、暫停,以及從當前文字切換其它文字。紅外遙控模塊分紅外發(fā)射部分和紅外接收部分,通過單片機譯碼后,取出紅外發(fā)射按鈕的地址,從而實現(xiàn)紅外遙控器對霓虹燈顯示圖案的遠距離控制?;趩纹瑱C的霓虹燈控制器的設(shè)計摘 要本設(shè)計采用 AT89C52 單片機實現(xiàn)對霓虹燈的控制。系統(tǒng)由紅外遙控模塊、單片機控制模塊、顯示模塊、語音模塊四部分組成。紅外接收管也只占用一個 IO 口。語音模塊采用的語音芯片是ISD1730,可以錄制想要的語音,通過錄音可以對設(shè)計進行介紹。由于單片機的 IO 口不夠用,本設(shè)計采用74HC154 對其擴充,將四線擴充到十六線。關(guān)鍵詞:單片機;紅外遙控;點陣;譯碼器;霓虹燈The Design of the Neon Lights controller Based on SCMAbstractThis design uses the AT89C52 single chip microputer to control the neon lights. The system is posed by the infrared remote control module, the singlechip microputer control module, the display module and the speech module. Infrared remote control module is divided into the infrared transmitter and infrared receiver parts. After decoding through the single chip microputer, the infrared emission button address can be taken out in order to realize the remote control of infrared neon lights display. The infrared receiving tube only takes up one IO port. The display part uses the dot matrix module with 16 plus 16, through the singlechip control, it can display different patterns and the text, and make the word to move, pause, and switch from the current text to the other. The voice module uses voice chip ISD1730, which can record the desired voice, which can be played to introduce the design. It is support for pause, next, adjust the volume and reset of the voice playback. Due to the IO port of the microcontroller is not enough, this design uses a 74HC154 to expand the IO port, which is expanding the fourline to 16line. The system has a strong practical value because of its advantages of simple circuit structure, easy operation and low cost. Key words: Single Chip。 Dot Matrix。 Neon Lights目 錄論文總頁數(shù):47 頁1 引言 .......................................................................4 課題背景及意義 .........................................................4 本課題研究方法和目標 ...................................................42 方案研究與主要芯片選擇 .....................................................6 總體方案原理及設(shè)計框圖 .................................................6 主控電路的選擇與論證 ...............................................6 顯示設(shè)備的選擇與論證 ...............................................8 控制器模塊選擇 .....................................................9 主要芯片介紹 ..........................................................11 譯碼器 74LS154 的介紹 ..............................................11 LED 點陣的介紹 ....................................................12 語音模塊的介紹 ....................................................133 硬件電路設(shè)計與調(diào)試 ........................................................15 單片機模塊單元電路設(shè)計 ................................................15 串口通信電路設(shè)計 ......................................................16 譯碼器模塊單元電路設(shè)計 ................................................17 點陣模塊單元電路設(shè)計 ..................................................17 紅外遙控模塊單元電路設(shè)計 ..............................................18 語音模塊單元電路設(shè)計 ..................................................19 硬件仿真與調(diào)試 ........................................................214 軟件 設(shè)計 ..................................................................23 單片機 I/O 口分配 ......................................................23 各模塊程序 ............................................................23 主程序設(shè)計 ........................................................23 顯示程序設(shè)計 ......................................................24 紅外接收程序設(shè)計 ..................................................26 設(shè)定的圖案和字程序 ................................................285 軟硬件聯(lián)調(diào)及技術(shù)改進 ......................................................30 軟硬件聯(lián)調(diào)及實物演示 ..................................................30 技術(shù)改進 ..............................................................32結(jié) 語 ....................................................................32參考文獻 ....................................................................33致 謝 ....................................................................34聲 明 ....................................................................35附 錄 ....................................................................361 引言 課題背景及意義