LED display, also known as electronic display, is composed of LED dot matrix, which displays text, pictures, animations, and videos by turning on and off red or green lamp beads. The content can be changed at any time. It is usually composed of display module, control system and power supply system. The display module is composed of a dot matrix composed of LED lights, which is responsible for luminous display; the control system can display text, pictures, videos and other contents on the screen by controlling the on and off of the corresponding area. The constant dance card is mainly used to play animations; the power supply system is responsible for converting the input voltage and current into the voltage and current required by the display.
LED display screens are widely used in information indicator lights, large screen displays, backlights for LCDs, solid-state lighting, etc. This paper designs a display screen consisting of four 16×16 dot matrix LED modules, with a single-chip microcomputer as the controller, which can smoothly move and display any number of text or graphic symbols. This circuit can be cascaded to realize a display screen consisting of any number of 16×16 dot matrix LED modules.
1. Control circuit design
The control circuit is controlled by AT89C51 single-chip microcomputer. The display screen is composed of 4 16×16 dot matrix LED modules. Each 16×16 dot matrix LED module is composed of 4 8×8 dot matrix LED modules. Users can expand and add any number of 16×16 dot matrix LED modules as needed. The structure of 8×8 dot matrix LED module is shown in Figure 1. There are 8 rows and 8 columns. Each light-emitting diode is placed at the intersection of row and column lines, with a total of 64 light-emitting diodes. When a column is at a high level and a row is at a low level, the corresponding light-emitting diode lights up.
The P3.0 pin of the microcontroller is connected to the serial data input end of the serial-input-parallel-output shift register 74LS164 (U10), 8 74LS164s (U10~U17) are cascaded, and the P3.1 pin is connected to the clock pulse input end of 8 74LSl64s; the 8 74LS164s are respectively connected to 8 latches 74LS373 (U18~U25), and the data output ends of the 8 latches are connected to the row lines of 4 16×16 dot matrix LED modules, and the row lines of each 16×16 dot matrix LED module are independently controlled. P1.O is connected to the clock pulse input of 8 74LS164 (U2~U9), P1.1 is connected to the serial data input of U2, U4, U6, U8, and every two 74LSl64 (U2 and U3, U4 and U5, U6 and U7, U8 and U9) are cascaded; the parallel data output of U2~U9 is connected to the 64 column lines of 4 16×16 dot matrix LED modules. P1.2 is connected to the clear 0 end of all 74LSl64, and P1.3 is connected to the latch control end of the latch. The designed circuit is shown in Figure 2.
2. Circuit Working Principle
This circuit uses the serial communication port to work in mode 0, and uses P1.O and P1.1 to simulate serial output to achieve smooth movement of LED display characters. Since the LED module is a 16×16 dot matrix, the character dot matrix is also a 16×16 dot matrix, that is, each character consists of 32 bytes, that is, 16 word data, and each word data determines the lighting of each column of LED. The 16×16 dot matrix character data is obtained by the character dot matrix extraction software.
First, the single-chip microcomputer P1.1 serially outputs a binary bit "1", and sends a high level to the first column of the four 16×16 dot matrix LED modules through four groups of 74LSl64. Then, P3.O serially outputs the first column row data of the four 16×16 dot matrix LED modules, that is, the row data of the Y1, Y17, Y33, and Y49 columns, which are latched by 74LS373 and sent to the row line of the LED display screen. At this time, the LED corresponding to the first column of each LED module lights up. The row data of each column is 1 word data, and there are 4 words of data in 4 columns. The address of the first byte of each word data in the character dot matrix data table differs by 32. At this time, each LED module displays the first column of each character. Then P1.1 serially outputs a binary bit "0", which is shifted by 4 groups of 74LS164 and sent to the second column of the four LED modules with a high level. Then P3.O serially outputs the second column row data of the four 16×16 dot matrix LED modules, that is, the row data of the Y2, Y18, Y34, and Y50 columns, which are latched by 74LS373 and sent to the row line of the LED display. At this time, the LED corresponding to the second column of each LED module is lit, that is, the second column of each character is displayed. This cycle is repeated, and the LEDs corresponding to each column of each LED module are lit in turn until the 16th column of each LED module is lit, that is, the columns of each character are displayed in turn. As long as the alternating display time of each column is appropriate, using the visual persistence characteristics of the human eye, it looks like the 16 columns of LEDs are lit at the same time, that is, the entire character looks displayed at the same time. Then scan and display from the 1st column to the 16th column in turn, and repeat this cycle many times to ensure that the displayed characters have sufficient brightness.
In order to achieve the effect of smooth moving display of characters, after the 4 characters implemented above are statically displayed for a certain period of time, when scanning and displaying again, the first column of each LED module starts scanning and displaying from the second column data of each character, that is, the first LED module displays the second column, third column, ..., 16th column of the first character and the first column of the second character, and the second LED module displays the second column, third column, ..., 16th column of the second character and the first column, second column, ... of the third character. When scanning and displaying for the third time, the first column of each LED module starts scanning and displaying from the third column data of each character, that is, the first LED module displays the third column, fourth column, ..., 16th column of the first character and the first column, second column of the second character, and the second LED module displays the third column, fourth column, ..., 16th column of the second character and the first column, second column, ... of the third character. In this way, the smooth moving display of characters is achieved.
3. Programming
According to the above circuit design and working principle, the control program flow chart of this circuit is drawn as shown in Figure 3. Write the control program according to the program flow chart, and generate the target code file after debugging with Wave or Keil software.
4. LED display control circuit simulation
Add the target code file to the microcontroller in the LED display control circuit simulation diagram drawn by Proteus software, and run the simulation. The running result is shown in Figure 4.
V. Conclusion
The LED display control circuit designed in this paper uses the single-chip microcomputer AT89C51 as the controller, and the serial shift output mode realizes the smooth movement display of a line of characters. In practical applications, relevant driving circuits should also be added. This circuit can be expanded to realize the display control of LED display screens composed of any number of 16×16 dot matrix LED modules. Practical applications have shown that the circuit is stable and reliable, and the effect is good.
Previous article:Application design of constant current LED drive system
Next article:Effective LED light source color separation technology
- Popular Resources
- Popular amplifiers
- 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
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Three steps to govern hybrid multicloud environments
- Three steps to govern hybrid multicloud environments
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Sensor Basics and Common Terms
- 4412 development board one-click burning QT program to the development board - install ssh
- 【Xiaomeige SoC】Regenerate hps_0.h file after Altera SOC changes Qsys
- About LM2611
- STM32F767 fails to drive 7-inch screen
- EEWORLD University Hall----Analog Integrated Circuit Design Yang Qingyuan (National Chung Hsing University, Taiwan)
- Strange problem in high frequency control of PMOS field effect tube
- PCB tool ruler
- [National Technology N32G430] 01 Before the troops move, the food and grass must be prepared + Unboxing
- 【NUCLEO-WL55JC2 Review 6】 LoRa Point-to-Point Communication