【正文】
基于單片機(jī)的 Led 點(diǎn)陣廣告牌設(shè)計(jì) 【摘要】 本設(shè)計(jì)使用 AT89C51 系列高速單片機(jī)作為主控制模塊,利用簡(jiǎn)單的外圍電路來(lái)驅(qū)動(dòng) 6416的點(diǎn)陣 LED 顯示屏。利用 AT89C51 系列高速單片機(jī)本身強(qiáng)大的功能,可以很方便的實(shí)現(xiàn)單片機(jī)與 PC 機(jī)間的數(shù)據(jù)傳輸及存儲(chǔ),并能利用軟件方便的進(jìn)行顯示內(nèi)容的多樣變化,另一方面點(diǎn)陣顯示屏廣泛的應(yīng)用于醫(yī)院、機(jī)場(chǎng)、銀行等公共場(chǎng)所,所以本設(shè)計(jì)具有很強(qiáng)的現(xiàn)實(shí)應(yīng)用性。 本 LED 顯示屏能夠以動(dòng)態(tài)掃描的方式同時(shí)顯示 4 個(gè) 1616 點(diǎn)陣漢字,并能通過(guò)上位機(jī)軟件修改顯示內(nèi)容和顯示效果等等。把字符內(nèi) 碼存儲(chǔ)在空閑的單片機(jī)程序存儲(chǔ)器空間,使本 LED 顯示系統(tǒng)能掉電存儲(chǔ) 1024個(gè)字符。設(shè)計(jì)中采用了 SPI 接口的 GB2312 標(biāo)準(zhǔn)字庫(kù),支持所有的國(guó)標(biāo)字符和 ASCII 標(biāo)準(zhǔn)字符的顯示。因?yàn)椴捎么袀鬏敺绞?,使本系統(tǒng)的可擴(kuò)展性得到提升,便于多個(gè)顯示單元的級(jí)聯(lián)。 本文從 LED 的顯示原理入手,詳細(xì)闡述了 LED 動(dòng)態(tài)顯示的過(guò)程,以及硬件電路的設(shè)計(jì)、計(jì)算和軟件的算法 。 【關(guān)鍵詞】 動(dòng)態(tài)顯示 ; 單片機(jī) ; 點(diǎn)陣字庫(kù) Led dot matrix based on single chip design billboards Abstract: This design uses STC12C series MCU as a main controller, and depends on a simple external circuit to drive 9616 the lattice LED display. By using its own powerful functions and capacity of internal E2PROM, it is easy to acplish the MCU and PC and E2PROM for internal storage, data transmission equipment ,and it also can be used conveniently to show a variety of content changes. The other dot matrix display is widely used in hospitals, airports, banks and other public places. Therefore, the design has a strong practical application. The LED Display dynamic scan can show the way at the same time six 16 16 dot matrix Chinese characters, and PC software can modify the content and effect shows, and so on. IAP used in the application of programmable technology, the characters within the code stored in the SCM free program memory space, so that the LED display system can store 1,024 brownout characters. SPI used in the design of the interface standard GB2312 character, to support all the GB2312 standard ASCII characters and characters of the show. Because serial transmission used, so that the system can be enhanced scalability, for a number of display units of the cascade. This article from the start LED display principle, elaborated on the LED display dynamic process, as well as hardware circuit design, puting and software algorithms. Key Words: MCU; Serial Data Transfer; Llattice Llibrary 目錄 1 LED 概述 ........................................................................... 5 LED 電子顯示屏概述 ....................................................... 5 LED 電子顯示屏的分類(lèi) .................................................... 5 2 顯示原理及控制方式分析 ................................................... 6 LED 點(diǎn)陣模塊結(jié)構(gòu) .......................................................... 6 LED 動(dòng)態(tài)顯示原理 ......................................................... 6 LED 常見(jiàn)的控制方式 ...................................................... 7 3 硬件電路設(shè)計(jì) ................................................................... 9 系統(tǒng)硬件 概述 ................................................................ 9 1616LED 點(diǎn)陣顯示制作 ............................................... 10 1616LED 點(diǎn)陣的內(nèi)部結(jié)構(gòu)及工作原理 ...................... 10 用 88LED 點(diǎn)陣構(gòu)成 1616LED 點(diǎn)陣 .......................... 11 ................................................... 13 LED 顯示驅(qū)動(dòng)電路 ........................................................ 13 4 字模生成 ......................................................................... 15 字模簡(jiǎn)介 ..................................................................... 15 LED顯示屏領(lǐng)域字模實(shí)現(xiàn)技術(shù) .................................... 15 軟件控制系統(tǒng)字模提取的分析與 設(shè)計(jì) .......................... 15 字模存儲(chǔ)技術(shù) ............................................................... 16 字庫(kù)生成 ..................................................................... 16 5 軟件設(shè)計(jì) .......................................................................... 18 程序設(shè)計(jì)總體思路和結(jié)構(gòu) ............................................... 18 程序設(shè)計(jì)總體思路 ................................................... 18 程序流程圖 ............................................................ 18 各模塊程序設(shè)計(jì) ............................................................ 19 系統(tǒng)初始化 ............................................................ 19 LED動(dòng)態(tài)顯示 .......................................................... 19 漢字顯示的原理 ...................................................... 19 6 系統(tǒng)功能測(cè)試 ................................................................... 21 單元模塊電路測(cè)試 ........................................................ 21 系統(tǒng)整體 功能測(cè)試 ........................................................ 21 總 結(jié) ................................................................................... 22 致謝 ................................................................................... 23 參考文獻(xiàn) ............................................................................ 24 附錄 ................................................................................... 25 引 言 LED( Light Emitting Diode) ,發(fā)光二極管,簡(jiǎn)稱(chēng) LED,是一種能夠?qū)㈦娔苻D(zhuǎn)化為可見(jiàn)光的固態(tài)的半導(dǎo)體器件,它可以直接