A MODBUS master-slave digital display circuit
By integrating RS485, RS232 and TTL communication interfaces, the MODBUS master-slave digital display circuit solves the shortcomings of traditional digital display meters in multi-device interconnection and anti-interference capabilities, achieving efficient display and stable power management, and adapting to the interconnection needs of different industrial equipment.
Patent Information
- Application Number
- CN202522578845.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-04
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2035-12-04
AI Technical Summary
Traditional digital displays are ill-suited to the needs of interconnecting multiple devices, suffer from high display driver complexity, weak anti-interference capabilities, and inadequate MODBUS protocol conversion, signal isolation, and display efficiency.
The N32G003F5S7 microcontroller is used as the core processor, integrating RS485, RS232 and TTL communication interfaces. Combined with the TM1640B chip to drive the digital tube display, a DC-DC converter chip is used to stabilize the power supply, realizing multi-protocol communication and efficient display driving.
It supports multi-protocol communication, reduces system complexity, improves power stability, extends equipment life, and facilitates maintenance and expansion.
Smart Images

Figure CN224985751U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of digital display circuit technology, and in particular to a MODBUS master-slave digital display circuit. Background Technology
[0002] In industrial automation systems, digital displays are commonly used to display sensor data, equipment status, and other information. Traditional digital displays typically support a single communication protocol (such as RS485 or RS232), making it difficult to adapt to the needs of interconnecting multiple devices. Furthermore, the display driver circuits of existing digital displays are often highly complex and have weak anti-interference capabilities, resulting in insufficient reliability. While the MODBUS protocol is a widely used industrial communication standard, existing devices have limitations in protocol conversion, signal isolation, and display efficiency. Therefore, a digital display circuit system that integrates multi-protocol communication, efficient display driving, and stable power management is needed. Utility Model Content
[0003] The purpose of this invention is to provide a MODBUS master-slave digital display circuit. This new circuit supports multi-protocol communication, adapting to the interconnection needs of different industrial equipment. The display driver is highly efficient, reducing system complexity. The power supply circuit has high stability, extending equipment lifespan. The overall circuit has high integration, facilitating maintenance and expansion, thus solving the aforementioned problems.
[0004] To achieve the above objectives, this utility model provides the following technical solution: a MODBUS master-slave digital display circuit, comprising:
[0005] The main control circuit uses an N32G003F5S7 microcontroller as the core processor for data acquisition, protocol parsing, and control command execution.
[0006] The communication circuit integrates RS485, RS232 and TTL communication interfaces, and supports MODBUS protocol conversion and data interaction.
[0007] Digital tube driver circuit, based on TM1640B chip to drive digital tube display;
[0008] The power supply circuit uses a DC-DC converter chip to output a stable 5V voltage to power the main control circuit, communication circuit and digital tube driver circuit.
[0009] The main control circuit and the communication circuit are interconnected, and the output terminal of the main control circuit is connected to the digital tube driving circuit.
[0010] Preferably, the main control circuit includes a key input module, a serial communication module, a debugging interface, and a power filtering module. The key input module is connected to the PA0, PA1, PA2, and PA15 pins of the N32G003F5S7 microcontroller.
[0011] The serial communication module implements USART communication through the USART1_RX and USART1_TX pins of the N32G003F5S7 microcontroller.
[0012] The debug interface includes SWDIO and SWCLK pins;
[0013] The power filtering module includes capacitors C13 and C14 connected in parallel.
[0014] Preferably, the RS485 interface in the communication circuit uses an SP485 transceiver. The RO and DI pins of the SP485 transceiver are connected to the USART1_RX and USART1_TX pins of the main control circuit, respectively. The RE and DE pins of the SP485 transceiver are controlled by the TE signal emitted from pin PA7 of the N32G003F5S7 microcontroller. The A and B pins of the SP485 transceiver are connected to the A and B differential buses of the RS485, and the A and B differential buses are connected to matching resistors R4 and R6.
[0015] The RS232 interface in the communication circuit generates a ±12V level through external capacitors C30 and C32.
[0016] The TTL interface in the communication circuit includes USART1_RX and USART1_TX pins, which are connected to the RS485 interface through resistors R98 and R99. It is equipped with TVS1 and TVS2 transient suppression diodes and fuses F2 and F3 for surge protection. The R1IN pin of chip U30 of RS232 interface is connected to the USART1_RX pin of TTL interface, and the T_1OUT pin of chip U30 is connected to the USART1_TX pin of TTL interface.
[0017] Preferably, the TM1640B chip U3 in the digital tube driving circuit receives serial data from the main control circuit through the DIN and SCLK pins. The GRID0-GRID12 pins and SEG1-SEG8 pins of the TM1640B chip U3 drive the digital tube display, and filter capacitors C1402, C1802 and C102 are provided for power supply stabilization.
[0018] Preferably, the power supply circuit includes an input fuse F1, a TVS0 transient suppression diode, an M7 diode D2, filter capacitors C1 and C3, an inductor L1, a DC-DC converter chip U1XL1509, and an output filter capacitor C6.
[0019] The technical effects and advantages of this utility model are as follows:
[0020] This invention supports multi-protocol communication, adapting to the interconnection needs of different industrial equipment. The display driver is highly efficient, reducing system complexity. The power supply circuit offers high stability, extending equipment lifespan. The overall circuit has high integration, facilitating maintenance and expansion. Attached Figure Description
[0021] Figure 1 This is a functional module diagram of the present invention;
[0022] Figure 2 This is the schematic diagram of the main control circuit of this utility model;
[0023] Figure 3 This is a schematic diagram of the communication circuit of this utility model;
[0024] Figure 4 This is a schematic diagram of the digital tube driving circuit of this utility model;
[0025] Figure 5 This is the schematic diagram of the power supply circuit of this utility model.
[0026] In the picture:
[0027] 1. Main control circuit; 2. Communication circuit; 3. Digital tube driver circuit; 4. Power supply circuit. Detailed Implementation
[0028] The technical solutions of the present utility model will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present utility model, and not all embodiments. Based on the embodiments of the present utility model, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present utility model.
[0029] Please see Figure 1 A MODBUS master-slave digital display circuit includes:
[0030] Main control circuit 1 uses an N32G003F5S7 microcontroller as the core processor for data acquisition, protocol parsing and control command execution;
[0031] Communication circuit 2 integrates RS485, RS232 and TTL communication interfaces, and supports MODBUS protocol conversion and data interaction;
[0032] Digital tube driver circuit 3, based on TM1640B chip to drive digital tube display;
[0033] Power supply circuit 4 uses a DC-DC converter chip to output a stable 5V voltage, which powers the main control circuit 1, communication circuit 2 and digital tube drive circuit 3.
[0034] The main control circuit 1 and the communication circuit 2 are interconnected, and the output terminal of the main control circuit 1 is connected to the digital tube driver circuit 3.
[0035] The circuit receives input signals through the main control circuit 1 and external information through the communication circuit 2. The communication circuit 2 is responsible for information exchange between the system and external devices (such as computers and other control systems), enabling data transmission and reception and facilitating communication between the system and the outside world. The code tube driver circuit 3 receives instructions from the main control circuit and drives the digital tube to display numbers or characters, realizing the system's information display function. The power supply circuit 4 provides a stable power supply to all modules of the entire system, ensuring that each circuit module can operate normally.
[0036] Please see Figure 2 The core of the main control circuit 1 is the main control chip U5 (N32G003F5S7). The main control circuit 1 includes a key input module, a serial communication module, a debugging interface and a power filtering module. The key input module is connected to the PA0, PA1, PA2 and PA15 pins of the N32G003F5S7 microcontroller. Among them, the pins PA0, PA1, PA2 and PA15 correspond to the four keys KEY1, KEY2, KEY3 and KEY4. The four keys are used to input control signals.
[0037] The serial communication module implements USART communication through the USART1_RX and USART1_TX pins of the N32G003F5S7 microcontroller. The USART1_RX and USART1_TX pins are used to receive and send serial communication data, as well as to transmit serial data with other devices (such as computers and sensors).
[0038] The debugging interface includes SWDIO and SWCLK pins. The SWDIO pin connects to the microcontroller's PA13 pin, and the SWCLK pin connects to the microcontroller's PA14 pin. The serial debugging interface via SWDIO and SWCLK pins, in conjunction with the SWD1 interface below, is used for microcontroller program downloading and online debugging, improving reliability. The SWD interface is not only used for debugging but also forms part of the product's maintainability architecture throughout its entire lifecycle. The microcontroller's PB5 pin is used to drive the LED. The microcontroller's PA12 and PA11 pins can be used for serial peripheral interfaces.
[0039] The power supply filtering module includes capacitors C13 and C14 connected in parallel between 5V and GND to suppress high-frequency noise in the power supply and ensure the stability of the microcontroller's power supply.
[0040] Please see Figure 3The RS485 interface in communication circuit 2 uses an SP485 transceiver. The SP485 transceiver is a commonly used differential communication bus in industry, with strong anti-interference and long transmission distance. It is available in non-isolated and isolated designs. The RO and DI pins of the SP485 transceiver are connected to the USART1_RX and USART1_TX pins of the main control circuit 1, respectively. The RE and DE pins of the SP485 transceiver are controlled by the TE signal issued by pin PA7 of the N32G003F5S7 microcontroller to achieve high-level transmission and low-level reception. The A and B pins of the SP485 transceiver are connected to the A and B differential buses of RS485. The A and B differential buses are connected to matching resistors R4 and R6.
[0041] In communication circuit 2, the RS232 interface generates ±12V level through external capacitors C30 and C32. The RS232 interface is a traditional serial communication protocol, commonly used for short-distance communication between computers and peripherals. The R1IN pin of the RS232 interface chip U30 is connected to the USART1_RX pin of the TTL interface, and the T_1OUT pin of the chip U30 is connected to the USART1_TX pin of the TTL interface. The C1+, C1-, C2+, and C2- charge pump capacitors formed by capacitors C30 and C32 generate ±12V level.
[0042] The TTL interface in communication circuit 2 includes the USART1_RX and USART1_TX pins, which are connected to the RO and DI pins of the RS485 interface via resistors R98 and R99. This connection is used for signal connection or disconnection during circuit debugging or mass production. TVS1 and TVS2 transient suppression diodes are included for surge protection. F2 and F3 fuses prevent overcurrent on the bus.
[0043] The above-mentioned integration of three heterogeneous communication interfaces—RS485, RS232, and TTL—on a single circuit board, with the selection and layout of RS485 matching resistors R4 and R6 directly affecting signal integrity and used to suppress signal reflection during long-distance transmission, is a key detail for achieving "long-distance transmission and strong anti-interference." TVS diodes are used to clamp high-speed transient surges, and fuses F2 and F3 provide overcurrent protection, together forming a port protection circuit to ensure survivability in harsh industrial environments.
[0044] Please see Figure 4The digital tube driver circuit 3 is based on the U3 chip (TM1640B) and supports scanning and driving multiple LEDs. The TM1640B is a dedicated LED digital tube driver control circuit. It supports serial data input (DIN pin) and clock synchronization (SCLK pin) for easy communication with microcontrollers and other main control devices. The GRID pins (e.g., GRID0-GRID12) and SEG pins (e.g., SEG1-SEG8) correspond to the row (gate) and column (segment) of the LEDs, respectively. By controlling these pins, different LEDs can be turned on and off to display specific patterns or characters. External capacitors (e.g., C1402, C1802, C102, etc.) are used for power supply filtering to stabilize the chip's operating voltage. The SCLK (serial clock) and DIN (serial data) pins are used for serial communication with external controllers (e.g., microcontrollers) to transmit display data. When the TM1640B outputs the corresponding row and column drive signals, the corresponding LEDs are lit, and the three digital tube displays (DS1, DS2, DS01) realize the display function.
[0045] Please see Figure 5 The power supply circuit 4 includes an input fuse F1, a TVS0 transient voltage suppressor diode, an M7 diode D2, filter capacitors C1 and C3, an inductor L1, a DC-DC converter chip U1XL1509, and an output filter capacitor C6. The main function of power supply circuit 4 is to regulate and filter the input voltage, and then output a stable voltage. The combination of multiple capacitors and inductors ensures the purity and stability of the output voltage. The power input is connected to the circuit through a 0.5A 30V fuse F1. The transient voltage suppressor diode TVS0 is used to protect the circuit from transient voltages. Diode M7 is used for circuit protection and rectification. Electrolytic capacitor C1 is used for filtering to ensure the stability of the input voltage, and a 1μF ceramic capacitor C3 is used for further filtering. Inductor L1 and an electrolytic capacitor C6 are used for final filtering and energy storage.
[0046] A 5V power supply is provided via a DC-DC converter. The main control chip U5 receives data and executes the user-written program line by line, driving multiple digital tubes (DS1, DS2, DS01) through the TM1640B chip to achieve dynamic display of numbers / characters. RS485 / RS232 / TTL communication circuits are used to implement the circuit communication protocol. A reset button ensures system recovery in case of malfunctions. The SWD1 interface supports program download and online debugging, accelerating development and troubleshooting.
[0047] Finally, it should be noted that the above description is only a preferred embodiment of the present utility model and is not intended to limit the present utility model. Although the present utility model has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present utility model should be included within the protection scope of the present utility model.
Claims
1. A MODBUS master-slave digital display circuit, characterized in that, include: The main control circuit (1) uses an N32G003F5S7 microcontroller as the core processor for data acquisition, protocol parsing and control instruction execution. The communication circuit (2) integrates RS485, RS232 and TTL communication interfaces, and supports MODBUS protocol conversion and data interaction; Digital tube driving circuit (3), based on TM1640B chip to drive digital tube display; The power supply circuit (4) uses a DC-DC converter chip to output a stable 5V voltage to power the main control circuit (1), the communication circuit (2) and the digital tube drive circuit (3). The main control circuit (1) and the communication circuit (2) are interconnected, and the output terminal of the main control circuit (1) is connected to the digital tube driving circuit (3).
2. The MODBUS master-slave digital display circuit according to claim 1, characterized in that, The main control circuit (1) includes a key input module, a serial communication module, a debugging interface and a power filtering module. The key input module is connected to the PA0, PA1, PA2 and PA15 pins of the N32G003F5S7 microcontroller. The serial communication module implements USART communication through the USART1_RX and USART1_TX pins of the N32G003F5S7 microcontroller. The debug interface includes SWDIO and SWCLK pins; The power filtering module includes capacitors C13 and C14 connected in parallel.
3. The MODBUS master-slave digital display circuit according to claim 1, characterized in that, The RS485 interface in the communication circuit (2) uses an SP485 transceiver. The RO and DI pins of the SP485 transceiver are connected to the USART1_RX and USART1_TX pins of the main control circuit (1) respectively. The RE and DE pins of the SP485 transceiver are controlled by the TE signal sent from pin PA7 of the N32G003F5S7 microcontroller. The A and B pins of the SP485 transceiver are connected to the A and B differential buses of RS485. The A and B differential buses are connected to matching resistors R4 and R6. The RS232 interface in the communication circuit (2) generates ±12V level through external capacitors C30 and C32; The TTL interface in the communication circuit (2) includes USART1_RX and USART1_TX pins, which are connected to the RS485 interface through resistors R98 and R99. It is equipped with TVS1 and TVS2 transient suppression diodes and F2 and F3 fuses for surge protection. The R1IN pin of the chip U30 of the RS232 interface is connected to the USART1_RX pin of the TTL interface, and the T_1OUT pin of the chip U30 is connected to the USART1_TX pin of the TTL interface.
4. A MODBUS master-slave digital display circuit according to claim 1, characterized in that, The TM1640B chip U3 in the digital tube driving circuit (3) receives serial data from the main control circuit (1) through the DIN and SCLK pins. The GRID0-GRID12 pins and SEG1-SEG8 pins of the TM1640B chip U3 drive the digital tube display, and filter capacitors C1402, C1802 and C102 are provided for power supply stabilization.
5. A MODBUS master-slave digital display circuit according to claim 1, characterized in that, The power supply circuit (4) includes an input fuse F1, a TVS0 transient suppression diode, an M7 diode D2, filter capacitors C1 and C3, an inductor L1, a DC-DC converter chip U1, and an output filter capacitor C6.
