基于单片机的LED点阵广告牌设计摘要本设计使用AT89C51系列高速单片机作为主控制模块,利用简单的外围电路来驱动64×16的点阵LED显示屏。利用AT89C51系列高速单片机本身强大的功能,可以很方便的实现单片机与PC机间的数据传输及存储,并能利用软件方便的进行显示内容的多样变化,另一方面点阵显示屏广泛的应用于医院、机场、银行等公共场所,所以本设计具有很强的现实应用性。本LED显示屏能够以动态扫描的方式同时显示4个16×16点阵汉字,并能通过上位机软件修改显示内容和显示效果等等。把字符内码存储在空闲的单片机程序存储器空间,使本LED显示系统能掉电存储1024个字符。设计中采用了SPI接口的GB2312标准字库,支持所有的国标字符和ASCII标准字符的显示。因为采用串行传输方式,使本系统的可扩展性得到提升,便于多个显示单元的级联。本文从LED的显示原理入手,详细阐述了LED动态显示的过程,以及硬件电路的设计、计算和软件的算法。【关键词】动态显示;单片机;点阵字库AbstractThisdesignusesSTC12CseriesMCUasamaincontroller,anddependsonasimpleexternalcircuittodrive96×16thelatticeLEDdisplay.ByusingitsownpowerfulfunctionsandcapacityofinternalE2PROM,itiseasytoaccomplishtheMCUandPCandE2PROMforinternalstorage,datatransmissionequipment,anditalsocanbeusedconvenientlytoshowavarietyofcontentchanges.Theotherdotmatrixdisplayiswidelyusedinhospitals,airports,banksandotherpublicplaces.Therefore,thedesignhasastrongpracticalapplication.TheLEDDisplaydynamicscancanshowthewayatthesametimesix16×16dotmatrixChinesecharacters,andPCsoftwarecanmodifythecontentandeffectshows,andsoon.IAPusedintheapplicationofprogrammabletechnology,thecharacterswithinthecodestoredintheSCMfreeprogrammemoryspace,sothattheLEDdisplaysystemcanstore1,024brown-outcharacters.SPIusedinthedesignoftheinterfacestandardGB2312character,tosupportalltheGB2312standardASCIIcharactersandcharactersoftheshow.Becauseserialtransmissionused,sothatthesystemcanbeenhancedscalability,foranumberofdisplayunitsofthecascade.ThisarticlefromthestartLEDdisplayprinciple,elaboratedontheLEDdisplaydynamicprocess,aswellashardwarecircuitdesign,computingandsoftwarealgorithms.KeyWords:MCU;SerialDataTransfer;LlatticeLlibrary目录1LED概述.........................................................................71.1LED电子显示屏概述......................................................71.2LED电子显示屏的分类...................................................72显示原理及控制方式分析.................................................82.1LED点阵模块结构.........................................................82.2LED动态显示原理.......................................................92.3LED常见的控制方式....................................................103硬件电路设计.................................................................123.1系统硬件概述.............................................................123.216×16LED点阵显示制作.............................................143.2.116×16LED点阵的内部结构及工作原理.....................143.2.2用8×8LED点阵构成16×16LED点阵.........................153.3主控单片机的接口说明.................................................173.4LED显示驱动电路.......................................................184字模生成.......................................................................194.1字模简介...................................................................194.1.1LED显示屏领域字模实现技术...................................194.1.2软件控制系统字模提取的分析与设计...........................