Serial dynamic LED scanning circuit and program list

Publisher:MysticalWhisperLatest update time:2012-04-17 Source: 21IC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

4 uses C2051 microcontroller, and uses cheap and easy-to-get 74LS164 and 74LS138 as expansion chips. 74LS164 is an 8-bit serial input and parallel output shift register. Its function here is to decode the serial data output by the C2051 serial communication port and output it on its parallel port line, thereby driving the LED digital tube. 74LS138 is a 3-8 decoder, which decodes the address signal output by the microcontroller and dynamically drives the corresponding LED. However, the current driving capacity of 74LS138 is relatively small. For this reason, the circuit uses the final driving transistor 2SA1015 as the address driver.
The segments of the four LEDs are connected together, and their common ends are time-sharingly selected by 74LS138. In this way, at any time, only one LED is lit, which is a dynamic scanning display mode. Using the serial port for LED communication, the program writing is quite simple. The user only needs to send the data to be displayed directly to the serial port send buffer and wait for the serial interrupt. Take a look at the following program. ·

Program List

Reference address:Serial dynamic LED scanning circuit and program list

Previous article:NetLED lighting system that can be remotely controlled via the Internet
Next article:Analysis of the working principle of CFL energy-saving lamps

Recommended ReadingLatest update time:2024-11-16 19:33

LED driver power classification
Classification of LED driver power supply By drive mode (1) Constant current type: a. The output current of the constant current drive circuit is constant, but the output DC voltage varies within a certain range with the size of the load resistance. The smaller the load resistance, the lower the output voltage, and th
[Power Management]
Factors affecting LED quality
Although LEDs are widely available, their selection is still a matter of careful consideration. Most designers assume that all LED products are of equal quality. However, there are many manufacturers and suppliers of LEDs, with Asian manufacturers supplying low-cost LEDs to the world. Surprisingly, only a small
[Power Management]
Brief analysis: the reason why LED generates heat
  Considering the comprehensive current injection efficiency, radiative luminescence quantum efficiency, chip external light extraction efficiency, etc., only about 30-40% of the input electrical energy is converted into light energy, and the remaining 60-70% of the energy is mainly converted into heat energy in the f
[Power Management]
Design of LED lighting control system based on AVR
  introduction   LED lighting has entered the home users. Compared with traditional lighting equipment (such as incandescent lamps and fluorescent lamps), it has the advantages of high purity of light source, diverse colors, high efficiency, and adjustable light intensity. In view of the problem that the brightness of
[Microcontroller]
Design of LED lighting control system based on AVR
LED car headlight BOM table + circuit diagram AP5125 buck constant current IC application
1. Solution source : Ms. Tang from Shenzhen Shiwei Semiconductor Co., Ltd. 2. Product Description AP5125 is a Buck-type LED constant current driver with a simple peripheral circuit and an average current detection mode. It is suitable for non-isolated high-power constant current LED drive fields in
[Embedded]
LED car headlight BOM table + circuit diagram AP5125 buck constant current IC application
Improve the flashlight with LED
The power supply described here steps up the voltage from 1.5 volts of a flashlight battery to the 3.5 volts required by an LED, while the power supply connects the LED in series with the flashlight battery. This circuit is designed to improve a flashlight with an LED . The boost circuit repla
[Power Management]
Improve the flashlight with LED
Controlling LED lighting systems via power line communication (PLC)
    It is no surprise that LED lighting continues to successfully carve out a larger and larger share of the $50 billion lighting market, as LEDs offer the best energy efficiency compared to CFLs (fluorescent lamps) and incandescent lamps. However, LED lamps are expensive to manufacture due to the high cost of the L
[Power Management]
Five practical protection circuit diagrams for LED switching power supply
  LED switching power supply overcurrent protection circuit, LED switching power supply overvoltage protection circuit, LED switching power supply soft start protection circuit, LED switching power supply overheat protection circuit... Industry insiders contribute five practical circuit diagrams to help you design the
[Power Management]
Five practical protection circuit diagrams for LED switching power supply
Latest Power Management Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号