PLC not only has the control functions of traditional relay control systems, but also can expand input and output modules, especially some intelligent control modules, to form different control systems, integrate analog input and output control with modern control methods, and realize intelligent control, closed-loop control, and comprehensive control with multiple control functions. Modern PLC is widely welcomed for its high integration, strong functions, strong anti-interference ability, flexible configuration, and stable operation, and plays an increasingly important role in the modernization of traditional industries. However, the control system display interface designed by PLC is relatively monotonous. Generally, the status of the controller is understood by observing the indicator light set on the control cabinet or the LED light of the PLC itself. For instruments such as liquid level acquisition and control, this display interface is far from enough. In order to make up for the shortcomings of the PLC display interface, LED light column display or PC display can be used. This paper proposes an interface technology between LED light column display and PLC based on MAX7219.
1 Introduction to LED Bargraph Display
LED light column display is composed of several LED tube cores arranged at equal distances according to the specified length. It has the characteristics of eye-catching, intuitive display, uniform brightness, high reliability, low cost, vibration resistance, impact resistance, small size, light weight and continuous display of industrial parameter change trends. It has been used in various display and adjustment instruments as an analog indication of process quantity or control quantity and valve position. LED light column display has different colors such as red, green, orange, and yellow, and there are two types: common cathode and common anode. According to the number of light-emitting diodes contained, there are 101 lines (or 100 lines), 64 lines, 51 lines and other specifications. One of the LEDs (for 101 lines, 51 lines and other products) is generally used for power indication, and can also be used for other purposes or not used, while the other LEDs are generally composed of ×8 or ×10 structures, using row and column scanning to save resources. For example, 100 lines have 10×10 structures and 8×13 structures, and 64 lines have 8×8 structures. This article uses a 64-line common cathode LED light column display.
2 MAX7219 Pin and Function Description
MAX7219 is a serial input/output common cathode digital tube display driver chip produced by MAXIM. One MAX7219 can drive 8 7-segment (8 segments including decimal point) digital LEDs or 64-line LED light column displays. The chip has a three-wire serial interface with a 10 MHz transmission rate and can be connected to any microprocessor. Only one external resistor is needed to set the segment current of all LEDs. Its operation is very simple. The PLC can write the relevant instructions into the internal instruction and data registers of MAX7219 through three output ports. At the same time, it also allows users to select multiple decoding methods and decoding bits. In addition, it also supports multiple MAX7219 chips in series, so that the PLC can control more LED displays through 3 lines (i.e. serial data line, serial clock line and chip selection line).
The pin arrangement of MAX7219 is shown in Figure 1. Among them, SEG A~SEG G and SEG DP are the seven-segment driver lines and decimal point driver of LED digital tubes, respectively, supplying current to the display. When used to drive LED light column display, they provide driving current for 8 light-emitting diodes in each segment; DIG0~DIG7 are the 8-segment driver line inputs of 8-bit digital or light column display, which absorb current from the common cathode display. ISET is the current adjustment terminal, which is connected to the power supply through a resistor to adjust the maximum segment current to change the LED display brightness. DIN is the serial data input terminal, and DOUT is the serial data output terminal. The data input to DIN is sent to the DOUT terminal after 16.5 clock cycles so that it can be transmitted to the next MAX7219 when cascaded. The maximum frequency of CLK can reach 10 MHz. At each rising edge of the input clock, one bit of data is shifted from the DIN terminal to the internal register. The strobe terminal LOAD is used to load data. At the rising edge of LOAD, 16 bits of serial data are latched into the data or control register. LOAD must become high at or after the 16th clock rising edge and before the next clock rising edge, otherwise the data will be lost. Each set of data is a 16-bit binary data packet, and its format is shown in Table 1.
Previous article:Design of LED display system based on single chip microcomputer
Next article:Design of digital video signal processing circuit for LED full-color display screen
Recommended ReadingLatest update time:2024-11-16 15:29
- 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
- GD32 Competition - Motor Control - Hardware Design
- Guo Tianxiang's New Concept 51 MCU C language tutorial. Getting started, improving, and developing
- C6678: How does the malloc function do byte alignment
- Detailed explanation of ADC of MSP430 microcontroller
- Realization of various wavelet transforms based on FPGA
- The world's first integrated 5G baseband processor Kirin 990 5G was released today
- Area Occupancy Detection Reference Design for mmWave Sensors
- Multi-axis drone airbag
- I bought an old power supply, and this method of cleaning dust is the most effective
- MSP430 MCU Development Record (27)