Design Of Full Color LED Display System Based On STM32

Aug 14, 2017

Leave a message

led display

Abstract: LED display as a new display device, in recent years has been widely used. With the continuous updating of technology, led display is moving in the direction of full color development. Design of an LED display control system, the system to ARMCortex-M3 core chip STM32F103ZET6 as a control center to programmable logic device EP1C6 to complete the data refresh, through the Ethernet communication. The system can support 256 gray-scale full-color LED display images, animation display, and can easily carry out remote control.


LED display is the use of LED dot matrix module or pixel unit composed of a modern flat screen, with high luminous efficiency, long life, viewing angle range, rich colors and adaptability to indoor and outdoor environment and other advantages. In the late 1980s, it developed rapidly around the world and quickly became a representative mainstream product for large-screen flat panel display. In recent years, with the rapid decline in the price of blue LED products, the price of full-color LED display gradually Reduce the rapid growth of market demand, the application is increasingly common. The current LED display control system using ARM processor to complete the function of the entire system, this control system in the data processing speed there is a big limitation, affecting the continuity of display. Based on the analysis of STM32 microprocessor bus structure, this paper puts forward the control system of STM32 + FPGA, which is based on the flexible storage control technology and programmable logic device of STM32 microprocessor. , Improve the speed of system data processing, and simplify the circuit structure, easy to debug.


1 system overall program design


The system uses a new generation of 32bitRISC processor STM32 as the master chip, through the Ethernet transmission of data to FLASH as a storage module, completed by the FPGA LED display high-speed scanning refresh. When the system is working, the display information is edited by the host computer, the display information is transmitted to the microprocessor through the Ethernet interface, and the microprocessor receives the data information and writes it into the FLASH memory. In the display, the microprocessor reads the data in the FLASH, through the bus data will be sent to the FPGA in parallel, FPGA processing data transmission to the LED display.


2 system hardware design


The STM32F103ZET6 uses the advanced architecture of the ARMCortex-M3 core, and its flexible static memory controller makes it easy to connect to many memory and peripherals. The STM32F103ZET6 uses the advanced architecture of the ARMCortex-M3 core. , While STM32 on-chip peripherals rich, you can simplify the system design of the external circuit.


2.1 FLASH memory circuit design


FLASH is a Samsung K9F1G16U0M, it is a NAND-type FLASH, storage capacity of 64M16 bit, the working voltage of 3.3V, the system STM32F103ZET6 and K9F1G16U0M connection shown in Figure 2. FLASH memory IO0 ~ IO7 and FMSC data bus connected to the lower 8 bits, STM32 processor through the FSMC access memory; FLASH memory chip select signal nCE and FSMC FSMC_NCE2 connected, so that the memory address space 0x70000000 ~ 077FFFFFFFF; FLASH memory The R / nB is connected to the FSMC_NWAIT pin of the STM32 processor, and the processor uses R / nB as an interrupt source, so that other tasks can be performed during the waiting period of the memory.

   2.2 Ethernet interface circuit design


The use of Ethernet interface instead of the traditional serial port to speed up the speed of data transmission, and can achieve remote control. As the STM32F103ZET6 chip does not integrate Ethernet MAC and PHY function, but its FSMC support extended Ethernet control chip, the system in the FSMC expansion of a DAVICOM DM9000A chip STM32F103ZET6 Ethernet expansion.


         STM32F103ZET6 access to the DM9000A through the FSMC, for the STM32F103ZET6, DM9000A is a static memory peripherals. DM9000A chip select signal line nCS connected to the FSMC chip select signal FSMC_NE4, so DM9000A port address is 0x6c000000; DM9000A interrupt signal line (DM9000A) is connected with the FSMC chip select signal FSMC_NE4, so DM9000A port address is 0x6c000000; DM9000A interrupt signal line INT can be directly connected to the IO port of STM32F103ZET6, in the program to activate the processor IO port interrupt function, STM32 to interrupt the way to receive network card data.


2.3 scan drive circuit design


Scan drive circuit is an important part of the entire control system, the system it consists of a FPGA and dual RAM, its structure shown in Figure 4, mainly to complete the gray-scale data read, the screen data generation and transmission, shift And the generation of the latch clock, the generation of the line selection signal, and the generation of the gradation control signal.

       The simulation waveform of the drive output signal is shown in Figure 5, where en is the gray scale control signal used to control the display time and produce a grayscale effect; row_sEL is the line selection signal, which is used to determine which line to display; Shift the clock, lck is the latch clock, ds_red, ds_blue, ds_green is the input of the onscreen red, blue, and green data. Simulation of red, blue, green display data were set to 01 staggered, all 1, all 0. It can be seen that the data shift is correct under the effect of the shift clock. After the shift is completed, lck goes high and the data is latched and output to the LED screen.

3 system software design


The whole system software includes three parts: upper computer application software, microprocessor control software and FPGA control software. 3 parts of the work together to achieve the control of the LED display.


3.1 host computer application software


PC application software for human-computer interaction, is the control system to the user interface, requiring user-friendly interface, simple operation. The software is written in Visual C ++, and the main functions are as follows: editing of the image text information, decoding of the image and sending the data according to the communication protocol to the lower computer.


3.2 microprocessor control software


Microprocessor in the whole system plays a role in the core scheduling, which controls the working status of the system function modules, including TCP / IP protocol stack, DM9000A network card driver, the main functions are: hardware initialization, The upper computer and the lower computer Ethernet communication, display mode algorithm design.


3.3 FPGA control software


FPGA control software design is completed in the QuartusII environment, the use of hardware description language Verilog prepared. The main function is based on the control of the microprocessor, the memory switch, to achieve ping-pong operation; to complete the reconstruction of image data, the data can be converted directly to the LED scan display with gray information The 0 and The 1 series of coding, and according to the timing of the display driver chip, the code series will be transmitted to the display on the display.