Based on LED display software design

Publisher:丝路老君Latest update time:2013-03-05 Source: dzscKeywords:LED Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
  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.

Keywords:LED Reference address:Based on LED display software design

Previous article:Main technical difficulties and solutions based on large-scale LED display systems
Next article:Design of stepper motor driver based on embedded Linux

Recommended ReadingLatest update time:2024-11-16 20:40

What are the factors that shorten the life of LED electronic display screens?
LED display screens are developing rapidly in my country. Now you can see LED display screens in some areas of the city. However, improper operation or lack of understanding of LED display screens may shorten the life of LED electronic display screens. So what are the factors that affect the life of LED electronic disp
[Power Management]
S3C2440-Bare Metal Edition-03 | Use of GPIO (lighting up LEDs, key detection)
Experiment 1 - Lighting up an LED  1. Look at the schematic to determine how the hardware is connected The schematic diagram shows the hardware circuit of the chip controlling the LED and how the chip pins are connected to the LED. 2. Check the main chip manual to determine how to control the pins Specific: How to
[Microcontroller]
S3C2440-Bare Metal Edition-03 | Use of GPIO (lighting up LEDs, key detection)
A simple algorithm to achieve LED graded brightness
#include"reg52.h" unsigned char code table ={0xfe,0xfc,0xf0,0xe0,0xc0,0x80,0x00}; void main() { unsigned char i; while(1) { i++; i&=0x07; P1=table; } } Low level turns on LED, i=0 to 7; while cycle period*8=PWM period When i=0, D0 is on When i=1, D0 and
[Microcontroller]
SECORA™ Pay payment security solution “lights up” payment cards with LEDs to enhance the contactless payment experience
As technology becomes increasingly powerful, the convenient "Tap and Pay" (Tap and Pay) is being widely adopted, promoting the rise of contactless payments worldwide. Additionally, contactless technology is inspiring new forms of innovation to support functions beyond payments. The SECORA™ Pay payment security soluti
[Internet of Things]
SECORA™ Pay payment security solution “lights up” payment cards with LEDs to enhance the contactless payment experience
[High-power car lighting driver solution] Input 8-100V step-down LED constant current driver chip FP7125
1. Project Name: Input 8-100V step-down LED constant current driver chip FP7125 2. Solution Brand: Yuanxiang FEELING (Yaxin) 3. Description of the plan: The FP7125 is an average current mode control LED driver IC operating in constant off time mode. The FP7125 does not produce p
[Embedded]
[High-power car lighting driver solution] Input 8-100V step-down LED constant current driver chip FP7125
LED power driver chip with optocoupler
  The optocoupler of the switching power supply is mainly used for isolation, feedback signal and switching. The power supply of the optocoupler in the switching power supply circuit is provided by the secondary voltage of the high-frequency transformer. When the output voltage is lower than the voltage of the voltage
[Power Management]
LED power driver chip with optocoupler
Application of infrared thermal imagers in LED industry
Infrared thermal imager is a commonly used optical instrument, which has certain applications in many fields. Among them, the application of infrared thermal imager in the LED industry is also very extensive. The application of infrared thermal imager in the LED industry is mainly reflected in two aspects: product deve
[Test Measurement]
Methods for detecting LED flicker and stroboscopic effect
  LED stroboscopic effect refers to two concepts. One is stroboscopic: that is, the depth of the fluctuation of the luminous flux of the electric light source. The greater the fluctuation depth, the greater the stroboscopic depth. The other is stroboscopic effect: that is, the negative effect of the stroboscopic effe
[Power Management]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号