LED is often used as a display in single-chip microcomputer application systems. When multiple LED displays are required, in order to simplify the circuit and reduce costs, the selection lines of all gates are often connected in parallel and controlled by an 8-bit I/O port, while the common cathode (positive) I/O line is controlled to achieve the gating of each part. As shown in Figure 1, a 6-bit LED dynamic display interface circuit.
Table 1 Control symbols
Table 2 Common anode character table
Since all 6-bit selection lines are controlled by one I/O port, the 6-bit LED will display the same character at every moment. If you want to display different characters for each bit, you must use the scanning method to light up each LED in turn, that is, only one bit displays the character at every moment. At this moment, the segment selection controls the I/O port to output the corresponding character segment selection code (font code), and the bit selection controls the I/O port to display the corresponding character. In this way, each bit displays the character to be displayed in time. According to the visual characteristics of the human eye, when the signal frequency added to the LED is greater than 50Hz, the human eye cannot feel its changes, so the interval of each bit display cannot exceed 20ms, that is to say, all LEDs must be lit up in time within 20ms. The more LEDs, the shorter the time, and the insufficient brightness; if the lighting time is increased, the scanning frequency will decrease, and the flickering feeling will easily cause fatigue to the human eye. This method is the dynamic scanning method commonly used by all of us. This scanning method is only applicable to occasions when the number of LEDs does not exceed 10. If 24 or even more are needed now, do we have to use a special drive circuit? Can the problem be solved without increasing hardware overhead? This is a new idea introduced in this article. The circuit connection is shown in Figure 2. Its hardware circuit is exactly the same as the conventional dynamic scanning method. The main difference is the control method.
If the LED is a common anode type, the control signal of segment selection 2 first makes segment a low level, and the other segments b, c, d, e, f, g, dp are all high levels. In this way, whether led1, led2...led23, led24 should light up the a stroke is also controlled by segment selection 1, and segment selection 1 is controlled by the data to be displayed. Then the control signal of segment selection 2 will make b, c, d, e, f, g, dp low level in turn, and scan in sequence, that is, each word is controlled to light up one by one. In this way, as long as 8 cycles are performed, a display can be completed without considering the number of connected LEDs. If you want to display 3 numbers 1, 2, 3 (led1, led2, led3), the control signal added is shown in Table 1, and the common anode character table is shown in Table 2.
The control system of a certain project needs to display 24 numbers. Considering the limited I/O resources of the single-chip microcomputer, the I/O must be expanded according to the conventional method, which makes the circuit complex and increases the hardware cost. Whether software can replace hardware becomes the key to the design. The circuit shown in Figure 3 adopts the method introduced above to display 24 numbers in software. The circuit uses 4 74LS164 and 1 MC1413 (ULN2003). The single-chip microcomputer only needs to control the display through RXD and TXD. The software flow chart is shown in Figure 4.
Keywords:LED
Reference address:A novel LED dynamic display method (Figure) (ULN2003)
Table 1 Control symbols
|
Section 2
|
Section 1
|
|||||||||
|
a
|
b
|
c
|
d
|
and
|
f
|
g
|
dp
|
Ice1
|
led2
|
led3
|
1st time
|
0
|
1
|
1
|
1
|
1
|
1
|
1
|
1
|
0
|
1
|
1
|
2nd time
|
1
|
0
|
1
|
1
|
1
|
1
|
1
|
1
|
1
|
1
|
1
|
3rd
|
1
|
1
|
0
|
1
|
1
|
1
|
1
|
1
|
1
|
0
|
1
|
4th
|
1
|
1
|
1
|
0
|
1
|
1
|
1
|
1
|
0
|
1
|
1
|
5th
|
1
|
1
|
1
|
1
|
0
|
1
|
1
|
1
|
0
|
1
|
0
|
6th
|
1
|
1
|
1
|
1
|
1
|
0
|
1
|
1
|
0
|
0
|
0
|
7th
|
1
|
1
|
1
|
1
|
1
|
1
|
0
|
1
|
0
|
1
|
1
|
8th
|
1
|
1
|
1
|
1
|
1
|
1
|
1
|
0
|
0
|
0
|
0
|
Table 2 Common anode character table
Glyph
|
a
|
b
|
c
|
d
|
and
|
f
|
g
|
dp
|
coding
|
0
|
1
|
1
|
1
|
1
|
1
|
1
|
0
|
0
|
FC
|
1
|
0
|
1
|
1
|
0
|
0
|
0
|
0
|
0
|
60
|
2
|
1
|
1
|
0
|
1
|
1
|
0
|
1
|
0
|
AND
|
3
|
1
|
1
|
1
|
1
|
0
|
0
|
1
|
0
|
F2
|
4
|
0
|
1
|
1
|
0
|
0
|
1
|
1
|
0
|
66
|
5
|
1
|
0
|
1
|
1
|
0
|
1
|
1
|
0
|
B6
|
6
|
1
|
0
|
1
|
1
|
1
|
1
|
1
|
0
|
BE
|
7
|
1
|
1
|
1
|
0
|
0
|
0
|
0
|
0
|
E0
|
8
|
1
|
1
|
1
|
1
|
1
|
1
|
1
|
0
|
FE
|
9
|
1
|
1
|
1
|
1
|
0
|
1
|
1
|
0
|
F6
|
Since all 6-bit selection lines are controlled by one I/O port, the 6-bit LED will display the same character at every moment. If you want to display different characters for each bit, you must use the scanning method to light up each LED in turn, that is, only one bit displays the character at every moment. At this moment, the segment selection controls the I/O port to output the corresponding character segment selection code (font code), and the bit selection controls the I/O port to display the corresponding character. In this way, each bit displays the character to be displayed in time. According to the visual characteristics of the human eye, when the signal frequency added to the LED is greater than 50Hz, the human eye cannot feel its changes, so the interval of each bit display cannot exceed 20ms, that is to say, all LEDs must be lit up in time within 20ms. The more LEDs, the shorter the time, and the insufficient brightness; if the lighting time is increased, the scanning frequency will decrease, and the flickering feeling will easily cause fatigue to the human eye. This method is the dynamic scanning method commonly used by all of us. This scanning method is only applicable to occasions when the number of LEDs does not exceed 10. If 24 or even more are needed now, do we have to use a special drive circuit? Can the problem be solved without increasing hardware overhead? This is a new idea introduced in this article. The circuit connection is shown in Figure 2. Its hardware circuit is exactly the same as the conventional dynamic scanning method. The main difference is the control method.
If the LED is a common anode type, the control signal of segment selection 2 first makes segment a low level, and the other segments b, c, d, e, f, g, dp are all high levels. In this way, whether led1, led2...led23, led24 should light up the a stroke is also controlled by segment selection 1, and segment selection 1 is controlled by the data to be displayed. Then the control signal of segment selection 2 will make b, c, d, e, f, g, dp low level in turn, and scan in sequence, that is, each word is controlled to light up one by one. In this way, as long as 8 cycles are performed, a display can be completed without considering the number of connected LEDs. If you want to display 3 numbers 1, 2, 3 (led1, led2, led3), the control signal added is shown in Table 1, and the common anode character table is shown in Table 2.
The control system of a certain project needs to display 24 numbers. Considering the limited I/O resources of the single-chip microcomputer, the I/O must be expanded according to the conventional method, which makes the circuit complex and increases the hardware cost. Whether software can replace hardware becomes the key to the design. The circuit shown in Figure 3 adopts the method introduced above to display 24 numbers in software. The circuit uses 4 74LS164 and 1 MC1413 (ULN2003). The single-chip microcomputer only needs to control the display through RXD and TXD. The software flow chart is shown in Figure 4.
Previous article:256-level grayscale LED dot matrix screen display principle and circuit design based on FPGA
Next article:LED display and keyboard scanning design in industrial equipment
Recommended ReadingLatest update time:2024-11-16 21:29
micro2440 LED driver (loading and unloading module)
The CD information used by micro2440 is as follows: Laptop system: fedora 13 (compile kernel, configure cross-compilation environment, see manual for details) Desktop system: Windows XP 1. In fedora13: 2. Create a C file and name it my_leds.c Enter the following code: #include linux/miscdevice.h #include mach
[Microcontroller]
Sanan Optoelectronics invests heavily again and plans to invest in Mini/Micro LED epitaxy and chip projects
Sanan Optoelectronics announced that it has signed a project investment contract with the Hubei Gedian Economic and Technological Development Zone Management Committee, with a total investment of 12 billion yuan. According to the contract, Sanan Optoelectronics will invest in a III-V compound semiconductor project in
[Mobile phone portable]
Use timer to control LED light flashing
Experimental Purpose The flashing light program is as classic in embedded learning as "Hello World!" is in C/C++ language learning. It guides countless embedded enthusiasts in a simple way. Through the study of this section, you can basically understand the use of STM32 GPIO and basic timers. Hardware Description This
[Microcontroller]
Beginners must read: LED science knowledge
Semiconductor
light-
emitting
devices
include semiconductor light-emitting diodes (
LEDs
), digital tubes, symbol tubes, tees, and dot-matrix
display screens
(matrix tubes). In fact, each light-emitting unit in a digital tube, symbol tube, tees, and matrix tube is a light-emitting diode
[Power Management]
5W white LED lamp circuit design
Replacing MR16 halogen lamps with LEDs can effectively reduce energy consumption and save circuit and system maintenance costs. This application note details the advantages of using LEDs in current MR16 lighting systems. The 5W white LED driver circuit combined with a heat sink can replace a 10W halogen lamp in an M
[Power Management]
Sharing of experience and skills in designing efficient and reliable LED drivers
Recently, the editor interviewed Doug Bailey, a senior expert in LED driver circuit design. He summarized the issues that need to be paid attention to in the design work and his personal design experience, and shared the summary with you as follows:
1. Do not use bipolar power devices
Doug Bailey pointed out
[Power Management]
New dimming design of LED driver based on LT3743
Power drivers that generate high modulated current pulses are used in many lighting applications, from high current LEDs in DLP projectors to high power laser diodes. For example, in high-end video projectors, high power LEDs are used to generate colored lighting. The RGB LEDs in these projectors require precise dimmi
[Power Management]
When aircraft engines meet LED lighting
The 1,500- lumen
prototype
LED lamp
developed by the U.S. Department of Energy and the University of Maryland
can emit light equivalent to that of a 100-watt halogen lamp, and consumes only 1/3 of the energy. What technology does it rely on to achieve such lighting efficiency? Answer: High-speed
[Power Management]
- Popular Resources
- Popular amplifiers
Recommended Content
Latest Power Management Articles
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
MoreSelected Circuit Diagrams
MorePopular Articles
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
MoreDaily News
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
Guess you like
- Disassembly report | Honor X20 SE + OPPO A74 + Redmi Note 10 Pro
- USART_SendArray(DEBUG_USARTx, a,10); failed to output the elements in a[10]?
- Merry Christmas
- Programming with MicroPython:Embedded Programming with Microcontrollers and ...
- Is the forum exchange activity suspended?
- Video of Glowing Bubble Clock
- EEWORLD University ---- Computer Networks (Harbin Institute of Technology)
- Four-axis source code
- [Help] Hardware IIC slave problem of stm8s103f3p6
- Is it necessary to add a π-type filter circuit for serial communication? If the board is small and the space is limited, this must be considered.