LED display screen has the advantages of low cost, long life, low power consumption and wide operating temperature range, and is widely used in the display of text and image information. The whole system is generally divided into three parts: host computer, display screen control circuit and LED array and its driver.
The design of the display screen control circuit widely uses two types of devices as its control core, one is the single-chip control system, and the other is a programmable logic device. This design adopts a control scheme based on a single-chip microcomputer, as shown in Figure 1. A PC is connected to multiple controllers through an RS485 bus. Each controller is expanded with a temperature sensor, a real-time clock and other peripheral devices to control the display of the LED screen.
The control scheme of single chip microcomputer is adopted, which has simple structure, flexible application and easy expansion.
1 System Hardware Design
The system hardware block diagram is shown in Figure 2. The host PC uses special software to edit the information to be displayed, sends it to the microcontroller through the serial port, stores it in the Flash, and the microcontroller then drives the circuit to display the character code in the form of an LED dot matrix.
The LED dot matrix is a dual-color screen that can display three colors: red, green, and yellow. The core of the controller uses the STC89LE516 microcontroller, with an expanded 32KSRAM as the display buffer, and 512KFlash is used to store the displayed dot matrix information and some necessary parameters.
The DIP switch selects the physical address of this screen. The controller also expands a temperature sensor to collect temperature data and a clock chip to read and write real-time time.
1.1 Memory Expansion Circuit
STC89LE516 is a high-speed, low-power single-chip microcomputer with strong anti-interference, enhanced 51 core, integrated watchdog circuit, 64K bytes of Flash memory, 512 bytes of RAM, online programming, remote upgrade, and low price.
In order to improve the response speed, the system expands 32KSRAMIS61LV256 as the display buffer area to save the currently displayed frame data and some special effects processing data. The interface with the microcontroller is shown in Figure 3. The highest address line A14 of the SRAM is controlled separately by P3.2 of the microcontroller to facilitate the storage of the data of the red and green LED dot matrix in blocks. When the output of P3.2 is 0, the RAM address 0x0000~0x3fff is selected as the data area of the red LED; when the output of P3.2 is 1, the RAM address 0x4000~0x7fff is selected as the data area of the green LED.
Flash is used to store code, display data information and fonts. The Chinese characters and English dot matrix data to be displayed can be called by table lookup. Using 64K bytes of storage space to store 16×16 dot matrix Chinese characters, 2048 characters can be displayed. 512K Flash can meet the storage requirements of different fonts of commonly used characters. The address line of SST39VF040 has 19 bits, and the microcontroller uses P1 port to expand the upper three address lines.
The MCU, SRAM, and Flash in the system require a 3.13V power supply, while the system access power supply is 5V. The LM1117-3.3 can provide a 3.3V regulated power supply for the chip.
The low voltage dropout power chip LM1117 has an output current of up to 800mA, an output voltage accuracy within ±1%, and also has current limiting and thermal protection functions.
1.2 Serial interface circuit
The controller receives data using the full-duplex universal asynchronous receiver/transmitter (UART) inside the microcontroller. When the transmission distance is less than 20m, unbalanced RS-232 is used, and when the transmission distance is from tens of meters to kilometers, RS-485 is used. RS-485 uses balanced transmission and differential reception, so it has the ability to suppress common-mode interference and can be networked to form a distributed system. Since the display screens are scattered and tens or even hundreds of meters apart, the controller uses MAX232 and SN75176 for level conversion, and uses jumpers to switch between RS-232 and RS-485, so as to achieve communication with the PC and complete data storage and update.
1.3 Real-time clock circuit
The interface between the microcontroller and the HT1381 low-power real-time clock chip uses serial transmission. As shown in Figure 4, only three wires are needed to read and write the year, month, day, week, hour, minute, and second, and display them on the LED screen when needed. The clock required by the HT1381 is independent of the microcontroller, and it can work with an external 321768kHz crystal oscillator. Equipped with a 3V rechargeable battery, when the system uses external power supply, the diode is turned on, and the external power supply supplies power to the chip on the one hand and charges the rechargeable battery on the other hand. When the system power supply stops, the diode is turned off, and the chip is powered by the battery.
1.4 Temperature Sensor Circuit
The temperature sensor uses a single bus digital temperature sensor DS18B20, which integrates the temperature sensor, temperature alarm trigger, ROM, etc. on a very small chip. The sensor directly outputs the digital value of the temperature signal. DS18B20 reflects the temperature value in a 9-bit digital form, and only one signal line is required to read or write data.
1.5 Scanning Control Circuit and LED Array
At present, most LED display screens are designed with a modular structure. The basic unit is the LED display unit module. The screen size and shape can be flexibly changed, and the installation and maintenance of the display are also very convenient. The LED display unit module is divided into two parts: LED dot matrix and drive circuit.
The LED dot matrix uses a red and green dual-primary color screen, which can display three colors: red, green and yellow, and is moderately priced. Each module is 16×64 pixels, consisting of 16 8×8 pixel common anode LED dot matrices. 16 rows of LEDs share one column of data, and the display time of each row of LEDs accounts for 1/16 of a scanning cycle. According to the visual persistence effect of the human eye, as long as the refresh rate of the entire screen is greater than 60Hz, a stable picture can be formed. Each LED display unit has 8 red data input terminals, 8 green data input terminals and 8 row control signal input terminals.
The driving circuit is divided into row driving and column driving.
The row drive circuit is composed of two 3-8 decoders 74HC138. A row selection signal controls the on and off of all LEDs in a row at the same time, so it requires a larger drive current, so 4953 is selected. 4953 contains two P-channel MOSFET tubes, and the maximum drain current can reach 419A, which ensures the row drive capability. 16×64 dot matrix requires 8 4953. The 16-way output of the two 138s is used to select the corresponding rows through the drive of 4953 to realize the control of the rows.
The column driver uses 74HC595, which contains a shift register and a three-state output latch, and can output the 8-bit data of the serial input in parallel. Eight 74HC595s are used to latch the red and green data respectively. The two-way control signal of the microcontroller is connected to the clock input SRCLK and latch signal RCLK of all 595s. The serial output of the first 595 is connected to the serial input of the second 595. Similarly, the connection method of other pins is the same. Through this cascade method, 8 595 chips are connected together, and the parallel output of each 595 chip is connected to the column of 8 LEDs.
The display process is:
(1) Send the first line of red data and green data in the display buffer area to the 595 latch respectively;
(2) Send a row scanning signal to select the first row of the LED array and delay it;
(3) Line blanking, the line scan signal moves down one line and the above process is repeated until the 16th line is displayed. This cycle continues.
Each LED display unit module has two interfaces, which can flexibly expand the LED unit according to different display length requirements, and the controller remains unchanged. If height expansion is required, it can be achieved by expanding the CPLD/FPGA to control the synchronization of the row scan signal. There is no difference in the display and control principles.
2 System software design
The system software includes the host computer software and the slave computer software. The host computer software is written in VC and communicates with the slave computer through an asynchronous serial port. The task of the host computer software is to calibrate the clock, edit the displayed content, color and display effect, etc., and send the data broadcast to the LED display controller. The data format of the communication is shown in Table 1.
After the lower computer is turned on for interrupt and serial port initialization, it executes the display subroutine according to the instructions, and performs temperature sampling and clock data reading at regular intervals. The lower computer is always in a listening state. When there is a serial port interrupt, it communicates with the upper computer. The upper computer sends a 1-byte address character. After receiving it, the lower computer compares it with the address of this screen. The address of this screen is set by the controller's DIP switch. If the address is the same, the data is received, otherwise the interrupt returns, thereby realizing the distributed control of the LED screen. After receiving all the data, it is checked. If an error occurs, it is required to resend. If the check is correct, the acceptance success flag is sent to the upper computer to end the interrupt. The flow of the serial port interrupt program and the timer interrupt program is shown in Figure 5.
After receiving the data, the controller stores it in the Flash and executes the corresponding operation according to the command word in the data. The operation judgment process is shown in Figure 6.
The display subroutine searches for the font from the character library according to the Chinese character internal code, sends it to the display buffer, and outputs it to the column selection signal after data processing, and cooperates with the row scanning signal to perform dynamic scanning display. The data processing function mainly completes the subtitle left shift, right shift, shutter, color change, flashing, etc.
3 Conclusion
This paper uses the STC89LE516 single-chip microcomputer. Under the premise of ensuring functionality and stability, it reduces costs and expands large-capacity Flash data storage. The host computer only needs to transmit the Chinese character internal code to display, which reduces the amount of data transmission and improves the response speed. The LED display unit can be flexibly expanded to meet different needs. The system has been verified by experiments to be stable and reliable, supporting temperature, calendar, Chinese characters and various special effects, and can be used in distributed LED displays in industrial production lines, building security, parking lots, etc.
Previous article:Solution to heat dissipation problem of LED display
Next article:Lightning protection strategy and lightning protection circuit design scheme for LED street light power supply
Recommended ReadingLatest update time:2024-11-16 19:52
- 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
- 【STM32WB55 Review】2# Use of STM32WB development board
- Recruitment: Power supply R&D technician (assistant, apprentice)
- TMS320F28335 Study Notes - Clock
- Four-axis special PID parameter tuning method and principle
- [Hua Diao Experience] 10-line empty board hardware control pinpong library series test (Part 3)
- Can this schematic control the LDO enable and disable through transistors?
- Huada HC32F4A0 replaces STM32F405/407/427 series chips--simple replacement comparison
- Electromagnetic Interference (EMI) and Electromagnetic Compatibility (EMC)
- How to deal with unused pins of STM32L151 low power consumption
- What is the principle of this temperature measuring water cup? Doesn't it need to replace the battery?