A multi-MCU burning and serial port switching circuit, method and system

Through the design of multi-stage analog switches and control switches, the space and cost problems caused by the complex multi-MCU circuit structure are solved, and the flexible expansion of the number of MCUs and the improvement of working efficiency are achieved.

CN117472831BActive Publication Date: 2024-11-12JUYI TECH SHANGHAI CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311285456.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2024-11-12
Estimated Expiration
2043-09-28

AI Technical Summary

Technical Problem

In the prior art, the circuit structure of multiple MCUs is complex, resulting in increased space resources and costs, and the number of interfaces increases the workload of cables and developers.

Method used

Design a multi-MCU burning and serial switching circuit, adopting multi-stage analog switches and control switches to realize the effective or invalid state of the MCU through control signals, reduce the number of devices and interfaces, and complete the burning of multiple MCUs with a single interface. and serial debugging function.

Benefits of technology

The number of MCUs is expanded as needed, reducing the number and cost of devices on the circuit board, simplifying the development process, and improving work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117472831B_ABST
    Figure CN117472831B_ABST
Patent Text Reader

Abstract

The present invention discloses a circuit, method and system for burning and switching serial ports of multiple MCUs, and relates to the technical field of electronic circuits. The circuit includes an input signal unit, a control signal unit, a switching circuit unit and an MCU unit. The control signal unit controls the input signal unit to input a signal of the switching circuit unit, and the switching circuit unit transmits the received signal to the MCU unit, and controls the MCU to be in a valid or invalid state through control signal transmission. The method includes controlling each level of sub-units to have only one channel valid through the control signal unit, so as to realize the connection between the input signal unit and any MCU unit. The present invention can expand the number of MCUs as needed, and the theoretical upper limit of the number is only limited by the driving capability of the input signal unit and the bandwidth of the line.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic circuits, and in particular to a circuit, method and system for burning and serial port switching of multiple MCUs. Background Art

[0002] In the prior art, there are often multiple MCUs in a circuit, so multiple burning interfaces and debugging interfaces (such as serial ports) are designed on the printed circuit board. This results in too many devices on the circuit board, occupying space resources and increasing costs. The large number of interfaces also results in an increase in the corresponding cables, and the switching of interfaces back and forth also increases the workload of developers.

[0003] The Chinese patent with publication number CN114466254A discloses a serial port switching circuit and its switching method, a communication management machine and a communication system. The serial port switching circuit includes an MCU, a switching circuit, a first serial port circuit with an RS485 serial port and a second serial port circuit with an RS232 serial port; the first serial port circuit and the second serial port circuit are respectively connected to the MCU, and the first serial port circuit and the second serial port circuit are also respectively connected to the switching circuit; the switching circuit is used to enable the first serial port circuit and disable the second serial port circuit, or enable the second serial port circuit and disable the first serial port circuit according to the received control signal; when the switching circuit enables the first serial port circuit and disables the second serial port circuit, communication is established between the RS485 serial port and the MCU; when the switching circuit enables the second serial port circuit and disables the first serial port circuit, communication is established between the RS232 serial port and the MCU. The Chinese patent with publication number CN114281392A discloses a serial port upgrade method and system for multiple MCU slave stations, which belongs to the field of MCU upgrade technology. The method includes: all MCU slave stations are initialized to set the serial port parsing chip to read enable, and only after obtaining the upgrade frame of the corresponding slave station from the host computer, it is set to write enable when sending the reply frame, and immediately reset to read enable after the sending is completed, so that the bus reused by multiple MCU slave stations will not cause conflicts to complete data transmission and reception; specifically for a single MCU slave station, after obtaining the complete upgrade file frame by frame, the MCU slave station will copy the upgrade file to the application engineering storage area. Although both patents record the provision of serial port circuits, switching circuits and MCUs, the circuit structure is complex, and there are still problems such as occupying space resources and high cost.

[0004] Therefore, it is necessary to design a multi-MCU burning and serial port switching circuit that can solve the problem of expanding the number of MCUs in real time according to needs, reduce costs and improve work efficiency. Summary of the invention

[0005] The invention aims at solving the problems in the prior art and provides a multi-MCU burning and serial port switching circuit.

[0006] To achieve the above purpose, the technical solution adopted by the present invention is as follows:

[0007] A multi-MCU burning and serial port switching circuit comprises an input signal unit, a control signal unit, a switching circuit unit and an MCU unit. The control signal unit controls the input signal unit to input a signal of the switching circuit unit, and the switching circuit unit transmits the received signal to the MCU unit. The control signal transmission is used to control the MCU to be in a valid or invalid state.

[0008] Based on the above technical solution, further, the input signal unit includes a plurality of input interfaces, and the burning signal and the serial port debugging signal are transmitted through the plurality of input interfaces.

[0009] Based on the above technical solution, further, the burning signal includes a burning clock signal and a burning data signal, and the serial port debugging signal includes a serial port sending signal and a serial port receiving signal.

[0010] Based on the above technical solution, further, the control signal unit includes a plurality of control switches, one end of each control switch is connected to a power supply or a ground, and the other end of each control switch is connected to a switching circuit unit.

[0011] Based on the above technical solution, further, the switching circuit unit is an analog switch, wherein the analog switch is an analog switch chip.

[0012] Based on the above technical solution, further, when the analog switch is set to level one, the analog switch is a number, and the analog switch is provided with a plurality of first input ports, second input ports, first output ports and second output ports, each first input port is connected to an input interface, the second input port is connected to the control signal unit, and the first output port and the second output port are connected to the MCU unit.

[0013] Based on the above technical solution, further, when the analog switch is set to multi-level, the analog switches are set to more than 2, the first level is one analog switch, the second level is two analog switches, and the first input port of the analog switch of the second level is connected to the first output port or the second output port of the analog switch of the first level, the second input port of the second-level module switch is connected to the first output port or the second output port of the analog switch of the first level, and the first output port and the second output port are connected to the MCU unit.

[0014] Based on the above technical solution, further, the MCU unit includes several MCUs, each output port of the analog switch of the last stage is connected to a corresponding MCU; and the Nth stage uses 2 N-1 analog switches and 2 N-1 Control switch to achieve 2 N The burning and serial port communication of an MCU.

[0015] Based on the above technical solution, further, the switching circuit unit is an analog switch circuit.

[0016] Based on the above technical solution, further, the analog switch circuit includes a first input port, a second input port, a first output port and a second output port, one end of the first input port is connected to the input signal unit, the other end of the first input port is connected to the drain of the first MOS tube and the drain of the second MOS tube, the gate of the first MOS tube is connected to the first resistor, the second resistor and the gate of the third MOS tube, the source of the first MOS tube is connected to the first resistor and the drain of the third MOS tube, and the source of the third MOS tube is connected to the second output port; the second resistor is connected to the second input port and the gate of the fourth MOS tube, the source of the fourth MOS tube is grounded, and the drain of the fourth MOS tube is connected to the third resistor; the gate of the second MOS tube is connected to the fourth resistor, the third resistor and the gate of the fifth MOS tube, the source of the second MOS tube is connected to the drain of the fifth MOS tube and the fourth resistor, the source of the fifth MOS tube is connected to the first output port, and the first output port and the second output port are connected to the MCU unit; the first input port is connected to the input signal unit, and the second input port is connected to the control signal unit.

[0017] A method for burning and switching serial ports of multiple MCUs is applied to the burning and switching serial ports of multiple MCUs. The switching circuit unit comprises a multi-stage bidirectional dual-channel sub-unit, wherein two channels of the final sub-unit are respectively connected to an MCU unit; the method comprises: controlling each stage of the sub-unit to have only one channel effective by controlling a signal unit, so as to realize the connection between the input signal unit and any MCU unit.

[0018] Based on the above technical solution, further, the control signal unit sets a plurality of different control states. In different control states, each control switch included in the control signal unit is in any one of a high level state, a low level state and an arbitrary level state.

[0019] A multi-MCU burning and serial port switching system comprises a multi-MCU burning and serial port switching circuit.

[0020] Compared with the prior art, the present invention has the following beneficial effects:

[0021] The present invention provides a multi-MCU burning and serial port switching circuit; by setting a multi-stage analog switch or using a multi-stage analog switch circuit, as long as the first stage uses 1 analog switch and 1 control switch, the second stage uses 2 analog switches and 2 control switches... the Nth stage uses 2 N-1 analog switches and 2 N-1 A control switch can achieve 2 NThe burning and serial port communication of multiple MCUs can be realized with only a single interface, which reduces the number of components on the circuit board, reduces the cost, reduces the workload of developers, simplifies the operation, and improves work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a flowchart of the burning and serial port switching circuit of the present invention;

[0023] Figure 2 A circuit diagram of an analog switch used in the burning and serial port switching circuit in Embodiment 1 of the present invention;

[0024] Figure 3 This is a circuit diagram of an analog switch circuit used in the burning and serial port switching circuit in Example 2 of the present invention. DETAILED DESCRIPTION

[0025] The present invention is further elaborated and described below in conjunction with the accompanying drawings and specific embodiments. The technical features of each embodiment of the present invention can be combined accordingly without conflicting with each other. In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are described to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention, so the present invention is not limited by the specific embodiments disclosed below. The technical features in each embodiment of the present invention can be combined accordingly without conflicting with each other.

[0026] In the description of the present invention, it is to be understood that when an element is considered to be "connected" to another element, it may be directly connected to the other element or indirectly connected, that is, there is an intermediate element. In contrast, when an element is said to be "directly" connected to another element, there is no intermediate element. In the description of the present invention, it is to be understood that the terms "first" and "second" are only used to distinguish the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features.

[0027] Example 1

[0028] like Figure 1As shown, a burning and serial port switching circuit for multiple MCUs includes an input signal unit, a control signal unit, a switching circuit unit and an MCU unit. The control signal unit controls the input signal unit to input the signal of the switching circuit unit. The switching circuit unit transmits the received signal to the MCU unit, and controls the MCU to be in a valid or invalid state through the control signal transmission. Specifically, the input signal unit includes a plurality of input interfaces, and the burning signal and the serial port debugging signal are transmitted through the plurality of input interfaces. The burning signal includes a burning clock signal and a burning data signal, and the serial port debugging signal includes a serial port sending signal and a serial port receiving signal. The control signal unit includes a plurality of control switches, one end of each control switch is connected to a power supply or a ground, and the other end of each control switch is connected to the switching circuit unit.

[0029] In one embodiment, the switching circuit unit is an analog switch, wherein the analog switch is an analog switch chip. Figure 2 As shown, the input interface includes SWC, SWD, UART_TX and UART_RX, where SWC is the burning clock signal, SWD is the burning data signal, UART_TX is the serial port sending signal, UART_RX is the serial port receiving signal, and the arrow of the input interface points to the signal transmission direction. Figure 2 U29, U30, and U31 are the same analog switches, SW1, SW2, and SW3 are three control switches in the control signal unit, and MCU_1, MCU_2, MCU_3, and MCU_4 represent four MCUs.

[0030] When the analog switch is set to level one, there is one number of analog switches, and the analog switch is provided with a plurality of first input ports, second input ports, first output ports and second output ports, each first input port is connected to an input interface, the second input port is connected to a control signal unit, and the first output port and the second output port are connected to an MCU unit. Figure 2 D1, D2, D3 and D4 correspond to the first input port, the second input port, the first output port and the second output port respectively, IN1, IN2, IN3 and IN4 are the four second input ports, S1A, S2A, S3A and S4A are the four first output ports, S1B, S2B, S3B and S4B are the four second output ports, and the first output port and the second output port are connected to an MCU respectively. The analog switch also includes a ground port and a power supply port, such as GND, VDD and other ports.

[0031] Furthermore, when the analog switch is set to multi-stage, the analog switch is set to more than 2, the first stage is one analog switch, the second stage is two analog switches, and the first input port of the analog switch of the second stage is connected to the first output port or the second output port of the analog switch of the first stage, the second input port of the module switch of the second stage is connected to the first output port or the second output port of the analog switch of the first stage, and the first output port and the second output port are connected to the MCU unit. Figure 2 In the example, the first stage sets an analog switch U29, and the second stage sets two analog switches U30 and U31; the MCU unit includes several MCUs, and each output port of the analog switch of the last stage is connected to a corresponding MCU; and the Nth stage uses 2 N-1 analog switches and 2 N-1 Control switch to achieve 2 N The circuit relies on the same analog switches U29, U30, and U31. The principle is: IN1 can control the direction of the D1 signal. When IN1 is in a high level state, S1A and D1 are connected, S1B and D1 are disconnected, and the signal goes through S1A; when IN1 is in a low level state, S1B and DI are connected, S1A and D1 are disconnected, and the signal goes through S1B. The same applies to D2, D3, and D4.

[0032] Based on the multi-MCU burning and serial port switching circuit, a multi-MCU burning and serial port switching method is implemented, wherein the switching circuit unit includes a multi-level bidirectional dual-channel sub-unit, wherein the two channels of the final sub-unit are respectively connected to an MCU unit; the method includes: controlling each level of sub-unit to have only one channel valid through a control signal unit, so as to realize the connection between the input signal unit and any MCU unit. The control signal unit sets a plurality of different control states, and in different control states, each control switch included in the control signal unit is in any one of a high level state, a low level state and an arbitrary level state.

[0033] Specific, combined Figure 2 , four input interfaces, two-level analog switches, three control switches and four MCUs are set. Among them, there are 4 states under the control of the three control switches, namely 1, 2, 3 and 4. The following Table 1 shows that different control switches are in different states under the 4 states. In Table 1, 0 represents that SW* is connected to DGND, that is, a low level state; 1 represents that SW* is connected to VCC_3V3, that is, a high level state; * represents any level state, such as * in Table 1 represents 0 or 1;

[0034] Table 1

[0035] state SW1 SW2 SW3 1 1 1 * 2 1 0 * 3 0 * 1 4 0 * 0

[0036] Combined with Table 1, the specific implementation process is as follows:

[0037] When the control signal unit is in state 1, when SW1 is connected to VCC_3V3 and SW2 is connected to VCC_3V3, any one of the channels S1A, S2A, S3A, and S4A of the analog switch U29 is valid, and each of the channels S1B, S2B, S3B, and S4B is closed; any one of the channels S1A, S2A, S3A, and S4A of the analog switch U30 is valid, and each of the channels S1B, S2B, S3B, and S4B is closed; the input signal unit is The SWC, SWD, UART_TX and UART_RX signals of the analog switch U29 enter through any input port of D1, D2, D3 and D4 of the analog switch U29, and reach any input port of D1, D2, D3 and D4 of the analog switch U30 through any first output port of S1A, S2A, S3A and S4A, and then reach MCU_1 through any first output port of S1A, S2A, S3A and S4A of the analog switch U30. MCU_1 can be burned and serial communication can be performed, while other MCUs are in an invalid state.

[0038] When the control signal unit is in state 2, when SW1 is connected to VCC_3V3 and SW2 is connected to DGND, any one of the channels S1A, S2A, S3A, and S4A of the analog switch U29 is valid, and each of the channels S1B, S2B, S3B, and S4B is closed; any one of the channels S1B, S2B, S3B, and S4B of the analog switch U30 is valid, and each of the channels S1A, S2A, S3A, and S4A is closed; the input signal unit The SWC, SWD, UART_TX and UART_RX signals in the analog switch U29 enter through any input port of D1, D2, D3 and D4 of the analog switch U29, reach any input port of D1, D2, D3 and D4 of the analog switch U30 through any first output port of S1A, S2A, S3A and S4A, and then reach MCU_2 through any second output port of S1B, S2B, S3B and S4B of the analog switch U30. MCU_2 can be burned and serial communication can be performed, while other MCUs are in an invalid state.

[0039] When the control signal unit is in state 3, when SW1 is connected to DGND and SW3 is connected to VCC_3V3, any one of the channels S1B, S2B, S3B, and S4B of the analog switch U29 is valid, and each of the channels S1A, S2A, S3A, and S4A is closed; any one of the channels S1A, S2A, S3A, and S4A of the analog switch U30 is valid, and each of the channels S1B, S2B, S3B, and S4B is closed; in the input signal unit The SWC, SWD, UART_TX and UART_RX signals enter through any input port of D1, D2, D3 and D4 of analog switch U29, reach any input port of D1, D2, D3 and D4 of analog switch U30 through any second output port of S1B, S2B, S3B and S4B, and reach MCU_3 through any first output port of S1A, S2A, S3A and S4A of analog switch U30. MCU_3 can be burned and serial communication can be performed, while other MCUs are in an invalid state.

[0040] When the control signal unit is in state 4, when SW1 is connected to DGND and SW3 is connected to DGND, any one of the channels S1B, S2B, S3B, and S4B of the analog switch U29 is valid, and each of the channels S1A, S2A, S3A, and S4A is closed; any one of the channels S1B, S2B, S3B, and S4B of the analog switch U30 is valid, and each of the channels S1A, S2A, S3A, and S4A is closed; the SWC, SWD, UART_TX, and UART_RX signals in the input signal unit enter through any one of the input ports D1, D2, D3, and D4 of the analog switch U29, and reach any one of the input ports D1, D2, D3, and D4 of the analog switch U30 through any one of the second output ports S1B, S2B, S3B, and S4B, and then reach MCU_4 through any one of the second output ports S1B, S2B, S3B, and S4B of the analog switch U30. MCU_4 can be programmed and communicated via the serial port, while other MCUs are in an invalid state.

[0041] That is, as long as the first stage uses 1 analog switch and 1 control switch, the second stage uses 2 analog switches and 2 control switches... the Nth stage uses 2 N analog switches and 2 N-1 A control switch can achieve 2 N The burning and serial port communication of an MCU.

[0042] Example 2

[0043] like Figure 1As shown, a burning and serial port switching circuit for multiple MCUs includes an input signal unit, a control signal unit, a switching circuit unit and an MCU unit. The control signal unit controls the input signal unit to input the signal of the switching circuit unit. The switching circuit unit transmits the received signal to the MCU unit, and controls the MCU to be in a valid or invalid state through the control signal transmission. Specifically, the input signal unit includes a plurality of input interfaces, and the burning signal and the serial port debugging signal are transmitted through the plurality of input interfaces. The burning signal includes a burning clock signal and a burning data signal, and the serial port debugging signal includes a serial port sending signal and a serial port receiving signal. The control signal unit includes a plurality of control switches, one end of each control switch is connected to a power supply or a ground, and the other end of each control switch is connected to the switching circuit unit.

[0044] In another implementation, the switching circuit unit is an analog switch circuit, in which Q8 is the first MOS tube, Q13 is the second MOS tube, Q7 is the third MOS tube, Q12 is the fourth MOS tube; Q11 is the fifth MOS tube, R3 is the first resistor, R4 is the second resistor, R6 is the third resistor, and R5 is the fourth resistor. The principle of the circuit is as follows: when IN1 is in a high level state, Q12 is turned on, the DS pole of Q12 is turned on, R6 is grounded, and R5 and R6 cause Q13 and Q11 to be turned on due to voltage division, so D1 and S1A are bidirectionally conductive. When IN1 is in a low level state, D1 and S1B are bidirectionally conductive by the same logic. Replace the analog switch circuit with Figure 2 The analog switch in Figure 3 , Figure 3 D1 in the analog switch corresponds to the D1 position, IN1 corresponds to the IN1 position, S1A corresponds to the S1A position, S1B corresponds to the S1B position, and other circuit connections are the same as those described in Example 1. Similarly, when D2, D3, and D4 need to be connected, D1 only needs to be modified to D2, D3, and D4, and the corresponding IN1 can be modified to IN2, IN3, and IN4, S1A can be modified to S2A, S3A, and S4A, and S1B can be modified to S2B, S3B, and S4B; the connection methods of other MOS tubes and resistors involved are the same.

[0045] Specifically, combined Figure 3As shown, in the case of connecting D1, IN1, S1A and S1B, the analog switch circuit includes a first input port, a second input port, a first output port and a second output port, one end of the first input port is connected to the input signal unit, the other end of the first input port is connected to the drain of the first MOS tube and the drain of the second MOS tube, the gate of the first MOS tube is connected to the first resistor, the second resistor and the gate of the third MOS tube, the source of the first MOS tube is connected to the first resistor and the drain of the third MOS tube, and the source of the third MOS tube is connected to the second output port; the second resistor is connected to the second input port and the gate of the fourth MOS tube, the source of the fourth MOS tube is grounded, and the drain of the fourth MOS tube is connected to the third resistor; the gate of the second MOS tube is connected to the fourth resistor, the third resistor and the gate of the fifth MOS tube, the source of the second MOS tube is connected to the drain of the fifth MOS tube and the fourth resistor, the source of the fifth MOS tube is connected to the first output port, and the first output port and the second output port are connected to the MCU unit; the first input port is connected to the input signal unit, and the second input port is connected to the control signal unit.

[0046] Example 3

[0047] Based on the multi-MCU burning and serial port switching circuit, a multi-MCU burning and serial port switching system can also be implemented.

[0048] Finally, it should be noted that the above content is only used to illustrate the technical solution of the present invention, rather than to limit the scope of protection of the present invention. Simple modifications or equivalent substitutions of the technical solution of the present invention by ordinary technicians in this field do not deviate from the essence and scope of the technical solution of the present invention.

Claims

1. A multi-MCU burning and serial port switching circuit, It is characterized in that It includes an input signal unit, a control signal unit, a switching circuit unit and an MCU unit. The control signal unit controls the input signal unit to input a signal to the switching circuit unit. The switching circuit unit transmits the received signal to the MCU unit. The control signal transmission is used to control the MCU to be in a valid or invalid state. The control signal unit includes a plurality of control switches, one end of each control switch is connected to a power supply or a ground, and the other end of each control switch is connected to a switching circuit unit; The MCU unit includes several MCUs, each output port of the analog switch of the last stage is connected to a corresponding MCU; and the Nth stage uses 2 N-1 analog switches and 2 N-1 Control switch to achieve 2 N Burning and serial communication of each MCU; The input signal unit includes a plurality of input interfaces, through which the burning signal and the serial port debugging signal are transmitted; Wherein, the switching circuit unit is an analog switch; When the analog switch is set to level one, the analog switch is a single number, and the analog switch is provided with a plurality of first input ports, second input ports, first output ports, and second output ports, each first input port is connected to an input interface, the second input port is connected to a control signal unit, and the first output port and the second output port are connected to an MCU unit; When the analog switch is set to multi-level, the analog switches are set to more than 2, the first level is one analog switch, the second level is two analog switches, and the first input port of the analog switch of the second level is connected to the first output port or the second output port of the analog switch of the first level, and the second input port IN1-IN4 of the second-level module switch is connected to the control signal unit, and the first output port and the second output port are connected to the MCU unit.

2. A multi-MCU burning and serial port switching circuit according to claim 1, It is characterized in that The burning signal includes a burning clock signal and a burning data signal, and the serial port debugging signal includes a serial port sending signal and a serial port receiving signal.

3. A multi-MCU burning and serial port switching circuit according to claim 1, It is characterized in that The switching circuit unit is an analog switch circuit.

4. A multi-MCU burning and serial port switching circuit according to claim 3, It is characterized in that The analog switch circuit includes a first input port, a second input port, a first output port and a second output port, one end of the first input port is connected to the input signal unit, the other end of the first input port is connected to the drain of the first MOS tube and the drain of the second MOS tube, the gate of the first MOS tube is connected to the first resistor, the second resistor and the gate of the third MOS tube, the source of the first MOS tube is connected to the first resistor and the drain of the third MOS tube, and the source of the third MOS tube is connected to the second output port; the second resistor is connected to the second input port and the gate of the fourth MOS tube, the source of the fourth MOS tube is grounded, and the drain of the fourth MOS tube is connected to the third resistor; the gate of the second MOS tube is connected to the fourth resistor, the third resistor and the gate of the fifth MOS tube, the source of the second MOS tube is connected to the drain of the fifth MOS tube and the fourth resistor, the source of the fifth MOS tube is connected to the first output port, and the first output port and the second output port are connected to the MCU unit; the first input port is connected to the input signal unit, and the second input port is connected to the control signal unit.

5. A method for burning and serial port switching of multiple MCUs, applied to the burning and serial port switching circuit of multiple MCUs as described in any one of claims 1 to 4, It is characterized in that The switching circuit unit comprises a multi-stage bidirectional dual-channel sub-unit, wherein two channels of the final sub-unit are respectively connected to an MCU unit; The method comprises: controlling each level of sub-units to have only one channel effective by controlling the signal unit, so as to realize the connection between the input signal unit and any MCU unit.

6. A method for burning and serial port switching of multiple MCUs according to claim 5, It is characterized in that The control signal unit is configured with a plurality of different control states. In different control states, each control switch included in the control signal unit is in any one of a high level state, a low level state and an arbitrary level state.

7. A multi-MCU burning and serial port switching system, It is characterized in that A multi-MCU burning and serial port switching circuit comprising the circuit described in any one of claims 1 to 4.