Based on LED display screen software design

Publisher:keiss2018Latest update time:2012-01-10 Source: 21ICKeywords: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 screen software design

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

Open circuit protection scheme for series-connected LED lamp beads in automotive lighting
There are many types of LED automotive lighting, which are mainly divided into two categories: internal lighting and external lighting. Before introducing the solution, we need to clearly know what automotive lighting is. The subdivisions are as follows: 1. Internal lighting: backlight, dimming, integrated HMI 2. Exte
[Power Management]
Open circuit protection scheme for series-connected LED lamp beads in automotive lighting
LED backlight driver module circuit design
   Circuit analysis: The requirement of backlight driving is that the brightness of the backlight LED remains unchanged under any conditions, that is, a constant current source circuit needs to be constructed. The backlight driving circuit shown in the figure is the simplest constant current source circuit. When the c
[Power Management]
LED backlight driver module circuit design
Design elements of high-power LED driver power supply
LED (Lighty Emitting Diode), also known as light-emitting diode, is a semiconductor light-emitting device that can convert electrical energy into visible light. In recent years, LED technology has achieved rapid development, with significant improvements in luminous brightness and efficiency, especially high-power LED
[Power Management]
Design elements of high-power LED driver power supply
Corresponding to various LED drive power solutions of different power
In recent years, the high brightness light emitting diode (HB- LED ) market has developed rapidly. The LED light efficiency has been increasing, and the average cost per lumen of light output has continued to decline, which has led to a continuous expansion of its application range. I
[Power Management]
Parallel direct drive LED display
1. Experimental task  As shown in Figure 13, use the P0 port P0.0-P0.7 of the AT89S51 microcontroller to connect to the a-h segments of a common cathode digital tube, and the common end of the digital tube is grounded. The digital tube displays 0-9 numbers in a cycle, with a time interval of 0.2 seconds.  2. Circuit s
[Microcontroller]
Parallel direct drive LED display
PIC16F877A LED Blinking
Key points:  #define Setbit(y,x) y|=(1 (x)) //setb(p1,2); p12=1;  #define Clrbit(y,x) y&=~(1 (x)) //clrb(p1,2); p12=0;  #define Getbit(y,x) (0x01&(y (x))) //Get a certain bit value  ****************************/  #include pic.h   #include "../head/config.h" //Include your own configuration header file __CONFIG(HS&WDTD
[Microcontroller]
Remote control LED billboard
0 Introduction    LED billboard is a kind of information display terminal for the public, which has a very wide range of civilian and commercial value. Nowadays, most of the information displayed on LED billboards is pre-solidified in the system, which loses the real-time nature of the information and makes it partic
[Power Management]
What exactly is a small-pitch LED?
  Small pitch LED display is one of the most exposed keywords in the commercial display market in 2014. Since small pitch LED display can display higher resolution images at the same size, this performance is of great significance for LED display products to become consumers' home display devices. In addition, it
[Power Management]
Latest Power Management Articles
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号