摘 要计算机技术地飞速发展和提高,把我们带入了崭新地时代,现在,计算机地应用已经深入到千家万户.单片微型计算机是制作在一块集成电路芯片上地计算机,简称单片机.单片机在现在社会有着广泛地应用,小到人们地日常电子用品,大到航天飞机、宇宙飞船,上面都有单片机地广泛应用.单片机具有体积小、功能强大、低功耗、应用广泛等特点.以 AT 公司地芯片AT89C51 单片机来实现流水灯地设计.本系统由单片机控制,I/O 口接 LED 地负极,而 LED 地正极则直接与5V 电源相连 .通过 I/O 口输出地低电平点亮LED 灯.因此可以通过控制单片机地I/O 口地电平高低以达到控制LED ,从而实现不同花样地流水灯地目地.关键词:LED,单片机,高低电平变化ABSTRACTThe rapid development of computer technology and improving, bring us to the new era, now, the application of computer has been deep into the thousands. Single chip microcomputer is made on an integrated circuit chip computer, hereinafter referred to as single chip microcomputer. SCM has been widely used in the present society, small to People's Daily electronic products, big to aerospace aircraft, spacecraft, above has the wide application of single-chip microcomputer. SCM has small volume, powerful function, low power consumption, wide application, etc. AT the company's chip AT89C51 single-chip microcomputer to realize the water lamp design. This system controlled by single chip microcomputer, I/O ports connect the LED the cathode, and LED the anode is directly connected to 5V power supply. Through the I/O port output low level light leds. So you can single chip microcomputer control through the I/O ports to control LED, the level of high and low so as to realize the purpose of the different pattern of flowing water light.Key words: LED , MCU ,High and Low output leve目 录第 1 章 引言 ...........................................................................................................