1. Design of LED display program
The DMA controller inside S3C44BOX is used to transmit and control data, which simplifies the display program. The program flow is shown in the figure. The transmission of the dot matrix code is completed by the DMA controller. Before starting the DMA data transmission, you only need to assign the first address of the dot matrix code, the first address of the LED display screen and the value of the transmission data volume to the corresponding control word, and start the DMA operation. After completing the transmission of all the dot matrix codes of the same name row, the refreshed data is latched into the second-level column data latch and output to drive the display of the same name row. In this way, after 16 rows of the same name are displayed in a loop, a frame of dot matrix display is completed.
2. Dot Matrix Sorting
Due to the circuit structure of the LED display module and the use of 16-bit parallel bus and DMA data transmission technology, the order of dot matrix code during display needs to meet the following requirements:
① A series of horizontal cascade levels of two adjacent vertical cascades should be arranged in dot matrix order according to the principles in ① and ②.
Figure shows the program flow chart
② Due to the structure of the first-level column data latch decoding selection circuit of the display driver module and the DMA data transmission requirements, the same-name row dot matrix of the upper and lower parts of the same display driver module should be stored continuously in sequence according to the selection order of the column data latch.
③16-bit parallel bus transmits data once, that is, one DM write operation transmits two bytes of dot matrix code, and the low-order and high-order bytes are respectively sent to the same-name row and column data latches of two adjacent vertical cascade modules. Therefore, the same-name row and column dot matrix codes of the corresponding vertical cascade modules should be stored continuously.
④ In the 16-line scanning display mode, a large LED is divided into 16 rows with the same name, and each row with the same name is arranged in dot matrix according to the principles in ①, ②, ③, and ④.
⑤ Each vertical cascade level shall sort the dot matrix code according to the principles in ①, ② and ③.
Taking the data sorting of the first row of the same name of a 128×64 pixel dot matrix screen as an example (as shown in the figure), the storage order of the dot matrix codes of the first row of the same name should be: a, b...z, A, B...Z...
Figure 128×64 pixel dot matrix screen first row of the same name dot matrix code sequence diagram
The use of parallel bus DMA data transmission technology simplifies the software and hardware design of the LED display system, reduces the system cost, and can achieve good display quality. Under the system clock of 22.1184MHz, the display frame rate of the 512×256 pixel monochrome dot matrix screen reaches 250Hz, and an average of 120ns is used to transmit 1 byte, reaching the goal of using a single CPU system instead of a multi-machine system to control the LED display system. However, in order to make the previous generation of display driver boards still usable, the dot matrix code needs to be sorted, and can only be displayed in page mode, so a large capacity memory is required for multi-page dynamic scrolling display. For a 512×256 pixel monochrome dot matrix screen, tens of megabytes of capacity are required. The advanced controller S3C44BOX with a 32-bit ARMTTDM 1 core and cheap large-capacity SDRAM can solve this problem well.
If a display driver board designed for DMA control display is used, the dot matrix code does not need to be sorted, and a SRAM of several hundred kilobytes can meet the system requirements.
The so-called DMA (direct memory access) is a high-speed data transfer operation that allows data to be read and written directly between external devices and memory, without going through the CPU or requiring CPU preparation. The entire data transfer operation is carried out under the control of a "DMA controller". In addition to doing some processing at the beginning and end of data transfer, the CPU can do other work during the transmission process. In this way, most of the time, the CPU and input and output are in parallel operation. Therefore, the efficiency of the entire system is greatly improved. Because DMA allows peripherals to directly access memory, thereby forming an exclusive use of the bus, this will cause excessive interrupt delays in the embedded development of hard real-time systems with strong real-time performance, which is not allowed in some important occasions (such as government headquarters, finance, military, etc.) systems.
Previous article:A simple LED open circuit fault protection circuit design
Next article:Energy saving and consumption reduction, high-quality LED lighting points the way
Recommended ReadingLatest update time:2024-11-16 21:35
- 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!
- 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
- TMS320C6000 Image Library (IMGLIB)
- I'm just learning about MEMS. Does anyone know what the problem is with the unicleo GUI not being able to recognize the MEMS expansion board?
- MSP430 system clock ACLK, MCLK, SMCLK
- Controlled by "Playpad" + Siri + shortcut commands + XCC3200 (MQTT)
- Why should a DC-DC converter be used as close to the point-of-load (POL) power supply as possible?
- Some subway stations in London have codes on their steps!
- Are you choosing the right power switch solution? Discrete MOSFET vs Integrated Load Switch
- [Sipeed LicheeRV 86 Panel Review] Review 1: Unboxing and demo experience
- Circuit diagram of car voice mobile phone call reminder
- Wireless connectivity and lighting solutions for equipment in smart buildings