摘要随着改革的不断深入,社会主义市场经济的不断繁荣和发展,大中小城市都在进行亮化工程,通常都是利用广告流水灯来实现这一目的。广告灯的亮灭、闪烁时间及流动方向等均可以通过单片机来达到控制的要求。本设计是通过AT89C52单片机控制由35个LED组成的“XYSF”四个字母从左到右依次点亮然后花样闪烁循环,实现了广告灯的花样变化。本文介绍了由AT89C52集成块实现的控制电路,并给出了具体的硬件电路和相应的源程序。由于AT89C52集成块编程实现的控制电路可靠性、灵活性高,使用范围广,特别适合中小城市广告灯的应用。本控制系统结构简单、成本低、功能可靠、可移植性强,通过程序的变化,可以实现灵活多样的流水显示方案。通过单片机的控制,我们可以把城市的夜晚装饰的更漂亮。关键词:广告灯;AT89C52;LEDAbstractWiththedeepeningofthereform,theincreasingprosperityofthesocialistmarketeconomyandthedevelopmentofcitiesandtownsduringthelightingproject,usuallyadvertisingwaterlightstoachievethispurpose.Brightadvertisinglightsoff,flashingtimeandtheflowdirection,allthroughthemicrocontrollertoachievethecontrolrequirements.Thisdesigniscomposedby35LEDsonAT89C52XYSFfourlettersfromlefttorighttolightandthenthepatternblinkingcycle,thepatternchangesintheadvertisinglights.Thisarticledescribesthecontrolcircuit,realizedbyAT89C52Manifoldandspecifichardwarecircuitandthecorrespondingsourcecode.BecausetheAT89C52Manifoldprogrammingofthecontrolcircuitreliability,highflexibility,theuseofawiderange,especiallyforsmallandmedium-sizedcitiestheapplicationoftheadvertisinglights.Thecontrolsystemissimplestructure,lowcost,reliablefunctionality,portabilitycanbeachievedthroughchangesintheprogram,flexiblewaterdisplay.Throughthecontrolofthemicrocontroller,thenightdecorationofthecitymorebeautiful.Keywords:advertisinglight;onAT89C52;theLED目录摘要..................................................................................................................................................IAbstract..........................................................................................................................................II目录................................................................................................................................................III1引言................................................................................................................................................11.1研究的目的和意义.................................................................................................................11.2设计任务与要求.....................................................................................................................12整体方案设计...............................................................................................................................22.1设计广告灯样式.....................................................................................................................22.2方案的确定.............................................................................................................................32.2.1AT89C52...........................................................................................................................32.2.2发光二级管......................................................................................................................42.2.3蜂鸣器.............................................................................................