Figure 1 is the circuit principle of the high-speed control scheme LED display. The MCS51 series single-chip microcomputer is used to control the LED display; the random access memory 62512 is used as the data storage of the LED display to store the font data of the content to be displayed; the 8-row scanning method is adopted, and multiple LED dot matrix pieces share a group of row drive circuits; each LED dot matrix piece has a group of column drive circuits, and 74LS377 is used as the column drive latch. The CPU writes the font data to the latch of the column drive circuit through the parallel bus; the address decoding circuit is used to generate the chip select address of the LED dot matrix row drive circuit and column drive circuit.
Figure 1 High-speed control scheme LED display electrical principle
This solution has two characteristics: first, although the CPU still writes the font data to the latch of the column drive circuit through the parallel bus, the latch signal of the latch uses the CPU control signal RD instead of the conventional WR; second, the address decoding circuit ensures that the chip select address of the LED dot matrix column drive circuit and the logical address of a certain section of the data memory are overlapping, instead of the conventional usage, the two sets of addresses must be separated.
Due to some simple changes in the above circuit, the display control efficiency of the single chip microcomputer on the LED display will change significantly. The specific working process is as follows: Assuming that the address of the data memory has been loaded into the data pointer DPTR, execute the instruction "MOVXA, @DPTR". The function of this instruction is that the CPU reads the font data from the external data memory according to the direction of DPTR and reads it into the accumulator A; but in this circuit, since the chip select address of the LED dot matrix column drive circuit and the logical address of a certain section of the data memory overlap, that is, when executing the instruction "MOVXA, @DPTR", DPTR not only points to a certain address of the external data memory, but also selects a latch of a certain LED dot matrix column drive circuit. If the latch pin of the selected latch happens to have an input pulse at this time, the latch will also lock the font data sent from the external data memory. This input pulse is used as RD. RD is the read control signal sent by the CPU to the external data memory when executing the instruction "MOVXA, @DPTR". Since the timing of the read control signal RD and the write control signal WR of the MCS51 series microcontrollers are exactly the same [2], it is not surprising that RD replaces WR to implement the latch function. When this instruction is executed, it completes the reading of the data memory and the writing of the LED dot matrix at the same time, thus speeding up the display control process.
As mentioned before, when the parallel bus is used, it takes about 10 μs for the CPU to complete the process of writing the font data to the latch of the column drive circuit of the LED dot matrix. Now it only takes 4 μs, which is much faster, because now it only takes two steps to complete the process of writing the font data to the latch of the column drive circuit of the LED dot matrix. First, assign a valid address to the data pointer DPTR, then the CPU reads the font data from the external data memory according to the direction of DPTR, and at the same time, it also transmits the font data to the latch of the column drive circuit of the LED dot matrix. 2 instructions, 4 machine cycles, 4 μs. Here I want to add that when compiling the program of writing the font data to the latch of the column drive circuit of all LED dot matrix pieces, do not use loop instructions, because then each process will increase 2 μs; the method of programming the LED dot matrix piece by piece should be adopted. Although the program compiled in this way takes up space, it saves time. The design method of using space for time is sometimes a method worth trying for designers.
The latch control of the row drive latch of this circuit still uses the write control signal WR of the CPU without any change. The chip select signal of the row drive latch also comes from the address decoding circuit. In order to avoid mutual interference between the data memory and the LED dot matrix, the storage space of the data memory corresponding to this group of addresses is not used.
The design of the address decoding circuit should ensure that the chip select address of the LED dot matrix column drive circuit and the logical address of a certain section of the data memory overlap. The specific design example is as follows:
Assume that a certain LED display screen uses 240 LED dot matrix pieces, which can display 60 16×16 Chinese characters, and uses a MCS51 series single-chip microcomputer for high-speed control. The chip select addresses of the column drive circuit of these 240 LED dot matrix pieces should be 240, and the address decoding circuit must ensure that the effective address after decoding is greater than this number. The address decoding circuit in Figure 1 inputs the address signal A0~A7 and A11~A15, and does not connect to A8, A9, and A10. Using the 74LS138 decoder, 256 effective address lines can be obtained after three-level decoding. The first effective address line corresponds to the 8 addresses of the external data memory: 0000H, 0100H, 0200H, 0300H, 0400H, 0500H, 0600H, 0700H. The second valid address line corresponds to the 8 addresses of the external data memory: 0001H, 0101H, 0201H, 0301H, 0401H, 0501H, 0601H, 0701H. ... The 256th valid address line corresponds to the 8 addresses of the external data memory: 00FFH, 01FFH, 02FFH, 03FFH, 04FFH, 05FFH, 06FFH, 07FFH. Of these 256 valid address lines, 240 are chip select addresses for the column drive circuit, and the remaining are chip select addresses for the row drive circuit; if they are not enough, the row drive circuit can be controlled by serial bus. The above analysis results show that the I/O interface address of a LED dot matrix piece and the 8-byte address of the data memory have established an overlapping relationship. This is because each LED dot matrix piece has 8 rows, and each row corresponds to 1 byte of font data.
The above analysis results also show that the I/O interface addresses of all LED dot matrix slices and the address segment 0000H to 07FFH of the data memory have established a mapping relationship. The data memory 0000H to 07FFH stores exactly all the font data of a frame of image.
Previous article:Camera phone flash driver solution
Next article:White LED series and parallel driving solutions
Recommended ReadingLatest update time:2024-11-17 01:26
- 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
- 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
- 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!
- Rambus Launches Industry's First HBM 4 Controller IP: What Are the Technical Details Behind It?
- 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
- We are looking for candidates who are proficient in zigbee!
- 【MM32 eMiniBoard Review】2a. Found that the virtual serial port may have problems, and the serial port routines cannot receive
- Help! Does anyone know what sensor this is?
- ADC12 single channel multiple conversion routine (MSP430F5529)
- Motor startup interferes with the microcontroller problem
- Chapter 3 Interrupts, Clocks, and Low Power Consumption
- The difference between C64x+ and C64x CACHE in the C6000 series
- Realization of voltage to current conversion in Multisim12
- 【Smart Network Desk Lamp】7. Get real-time weather information and analyze it
- [Raspberry Pi Pico Review] Small size, big use~PICO here I come~