IO isolation drive system and control method

By introducing isolated voltage feedback branch and fault identification methods into the IO isolated driver circuit, the problems of complexity and lack of feedback functions of the existing IO isolated driver circuit are solved, and the feedback and self-test functions of the isolated output are realized, which improves the reliability of the system performance and performance.

CN118677435BActive Publication Date: 2024-12-06SHENZHEN TONGYE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411147651.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-12-06
Estimated Expiration
2044-08-21

AI Technical Summary

Technical Problem

The existing IO isolation driver circuit is complex and lacks isolated output feedback function and self-test function, so it is impossible to effectively protect and control the IO driving system.

Method used

An IO isolation drive system is designed, including a processor unit and an IO isolation drive circuit, and the isolation voltage is fed back to the processor unit through an isolated voltage feedback branch, and the driving signal and feedback signal are counted to identify the fault type of the main switch assembly, and Control the drive signal output according to the fault type.

Benefits of technology

The feedback function and self-test function of isolated output are realized, which reduces hardware costs, improves the reliability and performance of the system, and can quickly respond and protect the IO driver system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677435B_ABST
    Figure CN118677435B_ABST
Patent Text Reader

Abstract

The present application relates to the field of electronic circuit technology, and in particular to an IO isolation drive system and control method. The system includes: the IO isolation drive circuit includes a main switch component, a slave switch, an isolation drive circuit unit, an isolation voltage feedback branch, a main switch opening delay branch and a slave switch delay branch; the main switch component is connected in series between the power connection end and the load connection end of the IO isolation drive circuit; the output end of the slave switch is connected to the control end of the main switch component through the main switch opening delay branch; the isolation drive circuit unit is used to receive the drive signal output by the processor unit, and output the isolation voltage to the slave switch delay branch to control the conduction of the slave switch, and then control the conduction of the main switch component through the main switch opening delay branch; the isolation voltage feedback branch is used to output a feedback signal to the processor unit according to the on-off of the main switch component. The circuit structure of the present application is simple, and it has a feedback function for the isolated output and a self-test function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic circuit technology, and in particular to an IO isolation drive system and a control method. Background Art

[0002] IO isolation drive output is a common circuit function that can be used for different functional purposes and applied to different electrical scenarios and functional purposes. For example, it is widely used in embedded control, automation control and other circuit systems as well as the most common PLC controller.

[0003] The specific circuit implementation or control method of IO isolation drive varies depending on the switch circuit, load voltage level, power, and protection.

[0004] Simple IO isolation drivers are often used in solid-state relays, ordinary relays, and PLCs. The existing simple IO isolation drivers, although simple in circuit, do not have overload protection. In addition, the current capacitance of DC solid-state relays is usually low, usually only within 1A, and expensive. Ordinary relays cannot achieve high-voltage DC circuit switch control, and can usually only withstand DC loads below 24V. Moreover, whether it is a DC solid-state relay or an ordinary DC relay, its switching speed is slow, reaching 10ms, and cannot meet the requirements of fast control and fast protection.

[0005] For applications in more complex scenarios, a typical example is to use a transformer to achieve magnetic isolation or an optocoupler to achieve photoelectric isolation, and then add a dedicated driver chip to drive the MOS tube switch. Among them, ordinary optocoupler drive also requires an isolated drive power supply; magnetic isolation drive can both transmit signals and provide power without a drive power supply. Generally speaking, the scene adaptation of this type of method is more flexible, and the voltage and current capacity can be achieved by selecting different MOS tubes; and the dedicated driver chip usually has an overload protection function, and its practicality is relatively wide. However, for IO driver controller control systems with a scale of up to hundreds of points, because a dedicated driver chip is required, or it also includes an isolated power supply, a protection circuit, etc., its cost is relatively high and the performance is average; and it usually has no feedback function for the isolated output, and cannot achieve more flexible functions such as control system self-test. Summary of the invention

[0006] In view of this, the embodiments of the present application provide an IO isolation drive system and a control method, which can effectively solve the problems of the existing IO isolation drive circuit being complex, having no feedback function for the isolated output, and having no self-test function.

[0007] In a first aspect, an embodiment of the present application provides an IO isolation driving system, comprising: a processor unit and at least one IO isolation driving circuit;

[0008] The IO isolation drive circuit includes a main switch component, a slave switch, an isolation drive circuit unit, an isolation voltage feedback branch, a main switch opening delay branch and a slave switch delay branch;

[0009] The main switch component is connected in series between the power connection terminal and the load connection terminal of the IO isolation drive circuit;

[0010] The isolation driving circuit unit is connected to the control end of the slave switch through the slave switch delay branch;

[0011] The isolation driving circuit unit is also connected to the input end of the slave switch; the output end of the slave switch is connected to the control end of the main switch component through the main switch opening delay branch;

[0012] The isolation driving circuit unit is used to receive the driving signal output by the processor unit, and output an isolation voltage to the slave switch delay branch to control the slave switch to be turned on, and then control the main switch component to be turned on through the main switch turn-on delay branch;

[0013] The isolated voltage feedback branch is used to output a feedback signal to the processor unit according to the on-off state of the main switch component.

[0014] In some embodiments, the output end of the isolation driving circuit unit is connected to one end of the slave switch delay branch; the other end of the slave switch delay branch is used for grounding; the control end of the slave switch is connected to the slave switch delay branch;

[0015] The output end of the slave switch is connected to one end of the main switch opening delay branch; the other end of the main switch opening delay branch is used for grounding; the control end of the main switch component is connected to the main switch opening delay branch.

[0016] In some embodiments, the IO isolation drive circuit further includes a main switch off delay branch;

[0017] The main switch opening delay branch includes a first resistor and a first capacitor;

[0018] The main switch turn-off delay branch includes a second resistor and the first capacitor;

[0019] The slave switch delay branch includes a third resistor and a second capacitor;

[0020] One end of the first resistor is connected to the output end of the slave switch, and the other end is connected to the control end of the main switch component, one end of the first capacitor and one end of the second resistor; the other ends of the first capacitor and the second resistor are both grounded;

[0021] One end of the third resistor is connected to the isolation driving circuit unit, and the other end is connected to the control end of the slave switch and one end of the second capacitor; the other end of the second capacitor is used for grounding.

[0022] In some embodiments, the IO isolation driving circuit further includes a discharge branch; the discharge branch includes a fourth resistor, a voltage stabilizing diode and a first diode;

[0023] One end of the fourth resistor is connected to the series node of the third resistor and the second capacitor, and the other end is connected to the first end of the main switch component through the voltage regulator diode and the first diode in sequence.

[0024] In some embodiments, the delay time of the slave switch delay branch is greater than the first delay time of the master switch opening delay branch; the delay time of the master switch opening delay branch has a value range of (10us, 1ms);

[0025] The resistance value of the third resistor is equal to M times the resistance value of the fourth resistor; wherein 2≤M≤10.

[0026] In some embodiments, the isolated voltage feedback branch uses an isolated driver;

[0027] The first end of the isolation driver is connected to the output end of the isolation driving circuit unit outputting the isolation voltage, the second end is connected to the first end of the main switch component, and the third end is connected to the processor unit;

[0028] The main switch component includes a single MOS tube or a dual MOS tube with a common gate; wherein, when unidirectional control is performed between the power connection terminal and the load connection terminal, the single MOS tube is adopted; when bidirectional control is performed between the power connection terminal and the load connection terminal, the dual MOS tube with a common gate is adopted.

[0029] In a second aspect, an embodiment of the present application provides a control method for an IO isolation drive system, which is applicable to a processor unit in an IO isolation drive system provided in the first aspect of the present application; the method comprises:

[0030] Detecting the state of the output drive signal and the state of the received feedback signal;

[0031] Counting the actual on-time of the main switch component according to the first state of the drive signal, and identifying whether the main switch component has a fault during the on-time process and the corresponding fault type according to the state of the feedback signal and the actual on-time;

[0032] Counting the actual off-time of the main switch component according to the second state of the drive signal, and identifying whether the main switch component has a fault during the off-time and the corresponding fault type according to the state of the feedback signal and the actual off-time;

[0033] The output of the driving signal is prohibited according to the fault and the corresponding fault type, so as to disconnect the connection between the power connection terminal and the load connection terminal.

[0034] In some embodiments, the method further comprises:

[0035] If the IO isolation drive system is in a normal state and the feedback signal is in a valid state, it is determined that the main switch component is in a normal on state, otherwise the main switch component is in a normal off state.

[0036] In some embodiments, the identifying, according to the state of the feedback signal and the actual opening time, whether the main switch component has a fault during the opening process and the corresponding fault type includes:

[0037] If Ton<t0+t1-x, and the feedback signal is in a valid state, it is confirmed that the main switch component has a breakdown fault; wherein Ton is the actual opening time, t0 is the delay time of the isolation drive circuit unit, t1 is the delay time of the main switch opening delay branch, and x is the first deviation value of the preset IO isolation drive circuit;

[0038] If t0+t1+y+k≥Ton≥t0+t1+y, and the feedback signal is in an invalid state, it is confirmed that the main switch component has a conduction failure; wherein y is a second deviation value of the preset IO isolation drive circuit, 0.8s≤k≤1.2s;

[0039] If the feedback signal is in an invalid state, it is confirmed that the main switch component has an overload fault.

[0040] In some embodiments, the identifying, according to the state of the feedback signal and the actual shutdown time, whether the main switch component has a fault during the shutdown process and the corresponding fault type includes:

[0041] If Toff≥t4, and the feedback signal is in a valid state, it is confirmed that the main switch component has a breakdown fault; Toff is the actual turn-off time; t4 is the normal actual turn-off time of the IO isolation drive circuit.

[0042] The embodiments of the present application have the following beneficial effects:

[0043] By adding an isolation voltage feedback branch, the present application can feed back the state of the isolation voltage to the processor unit, obtain the feedback signal and the drive signal through the processor unit, and count the actual on time and the actual off time according to the drive signal state; finally, according to the state of the feedback signal, the actual on time, the actual off time, etc., determine whether the main switch component has a fault and the corresponding fault type, so as to prohibit the output of the drive signal according to the fault. Therefore, the present application can effectively solve the problems of the existing IO isolation drive circuit being complex, having no feedback function for the isolation output, and having no self-test function. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 A structural block diagram of an IO isolation drive system according to an embodiment of the present application is shown;

[0046] Figure 2 A structural block diagram of an IO isolation drive circuit in an IO isolation drive system according to an embodiment of the present application is shown;

[0047] Figure 3 An application scenario diagram of an isolation driving circuit unit in an IO isolation driving system according to an embodiment of the present application is shown;

[0048] Figure 4 Another application scenario diagram of the isolation driving circuit unit in the IO isolation driving system of the embodiment of the present application is shown;

[0049] Figure 5 A circuit diagram of a main switch component for implementing bidirectional control in an IO isolation drive system according to an embodiment of the present application is shown;

[0050] Figure 6 A circuit diagram of an IO isolation drive system according to an embodiment of the present application is shown;

[0051] Figure 7 A flow chart showing a control method of an IO isolation drive system according to an embodiment of the present application;

[0052] Figure 8 Another flow chart of the control method of the IO isolation drive system according to an embodiment of the present application is shown.

[0053] Description of main component symbols:

[0054] 100 - processor unit; 200 - IO isolation drive circuit; 210 - main switch component; 220 - slave switch; 230 - isolation drive circuit unit; 240 - isolation voltage feedback branch; 250 - main switch opening delay branch; 260 - slave switch delay branch. DETAILED DESCRIPTION

[0055] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0056] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0057] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.

[0058] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.

[0059] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0060] The embodiment of the present application provides an IO isolation drive system and control method with a simple circuit structure, isolated output feedback function and self-test function. In addition, the IO isolation drive system and control method of the embodiment of the present application also have protection function, low cost, high reliability and powerful performance.

[0061] The IO isolation drive system is described below in conjunction with some specific embodiments.

[0062] Figure 1 A structural block diagram of an IO isolation drive system of an embodiment of the present application is shown. Exemplarily, the system includes a processor unit 100 and at least one IO isolation drive circuit 200. The processor unit 100 can be an MCU or an FPGA. The processor unit 100 outputs a drive signal CON_OUT_n, and the drive signal CON_OUT_n can also be a level control drive signal of photoelectric isolation, or a drive signal of a PWM mode during transformer isolation drive.

[0063] When there are many IO channels in the system, FPGA is used to meet the response speed requirements of multi-channel simultaneous detection and control. Each IO is connected to an IO isolation drive circuit 200. For example, when there are dozens or even hundreds of IO channels on a single board, using FPGA with parallel processing capabilities can better ensure real-time control and protection effectiveness.

[0064] like Figure 2 As shown, the IO isolation driving circuit 200 includes a main switch component 210, a slave switch 220, an isolation driving circuit unit 230, an isolation voltage feedback branch 240, a main switch turn-on delay branch 250 and a slave switch delay branch 260.

[0065] The isolation driving circuit unit 230 is an existing conventional isolation driving circuit, such as an optocoupler or transformer isolation driving circuit, as shown in the following two examples:

[0066] Isolation drive circuit unit example 1: Figure 3 As shown in the figure, the drive signal CON_OUT_n output by MCU / FPGA is a PWM signal (PWM wave is sent when turned on, and the wave stops when turned off). Figure 3 The circuit implementation such as 12V (not limited to 12V) driving signal and power supply realizes electrical isolation through transformer T101; the specific voltage value depends on the opening requirement of the main switch component 210 (referred to as the main switch) and the transformer ratio and rectification circuit.

[0067] Isolation drive circuit unit example 2: Figure 4 As shown in the figure, the drive signal CON_OUT_n output by the MCU / FPGA is a high or low level signal, or a drive current signal amplified to 10mA by the drive circuit, which controls Figure 4 When current flows through the photocell obt1, the photocell outputs a voltage of about 10V. The specific voltage value depends on the main switch opening requirements and the photocell specifications.

[0068] The main switch component 210 is connected in series between the power connection terminal and the load connection terminal of the IO isolation drive circuit 200. The isolation drive circuit unit 230 is connected to the control terminal of the slave switch 220 through the slave switch delay branch 260; the isolation drive circuit unit 230 is also connected to the input terminal of the slave switch 220; the output terminal of the slave switch 220 is connected to the control terminal of the main switch component 210 through the main switch opening delay branch 250; the isolation drive circuit unit 230 is used to receive the drive signal output by the processor unit 100, and output the isolation voltage to the slave switch delay branch 260 to control the conduction of the slave switch 220, and then control the conduction of the main switch component 210 through the main switch opening delay branch; the isolation voltage feedback branch 240 is used to output a feedback signal to the processor unit 100 according to the on-off of the main switch component 210.

[0069] Specifically, the main switch component 210 is connected in series to the connection line between the power connection terminal and the load connection terminal of the IO isolation drive circuit 200 through its first end and the second end, and the second end is used for grounding. The main switch component 210 realizes the on-off of the circuit loop between the power connection terminal POWER_OUT_n and the load connection terminal OUT_n. The load connection terminal OUT_n is used as the output terminal of the isolation drive output main circuit, connected to the required load, or the control circuit node; the power connection terminal POWER_OUT_n is connected to the power port required when the load or node works, and when used as a bidirectional switch, it is connected to the other side of the control circuit node.

[0070] Further, the first end of the isolation driver is connected to the output end of the isolation driving circuit unit 230 outputting the isolation voltage, the second end is connected to the first end of the main switch component 210, and the third end is connected to the processor unit 100. Exemplarily, the isolation driver includes a photoelectric coupling element, a current limiting resistor, and a second diode connected in sequence. The positive electrode of the input end of the photoelectric coupling element is connected to the voltage output end of the isolation driving circuit unit 230, the negative electrode of the input end is connected to the current limiting resistor, and the second diode is connected to the first end of the main switch component 210; the positive electrode and the negative electrode of the output end of the photoelectric coupling element are both connected to the processor unit 100 to send the feedback signal to the processor unit 100.

[0071] The second diode is used to prevent the high voltage at the power connection terminal POWER_OUT_n from flowing back and burning the driver device.

[0072] Furthermore, the output end of the isolation driving circuit unit 230 is connected to the input end of the slave switch 220. The output end of the isolation driving circuit unit 230 is connected to one end of the slave switch delay branch 260; the other end of the slave switch delay branch 260 is used for grounding; the control end of the slave switch 220 is connected to the slave switch delay branch 260;

[0073] The output end of the slave switch 220 is connected to one end of the main switch on-delay branch 250; the other end of the main switch on-delay branch 250 is used for grounding; the control end of the main switch component 210 is connected to the main switch on-delay branch 250. Further, the IO isolation drive circuit 200 also includes a main switch off-delay branch; one end of the main switch off-delay branch is connected to the control end of the main switch component 210, and the other end is used for grounding. Exemplarily, the main switch on-delay branch 250 includes a first resistor and a first capacitor; the main switch off-delay branch includes a second resistor and the first capacitor; the slave switch delay branch 260 includes a third resistor and a second capacitor.

[0074] One end of the first resistor is connected to the output end of the slave switch 220, and the other end is connected to the control end of the main switch component 210, one end of the first capacitor and one end of the second resistor; the other ends of the first capacitor and the second resistor are both used for grounding.

[0075] One end of the third resistor is connected to the isolation driving circuit unit 230 , and the other end is connected to the control end of the slave switch 220 and one end of the second capacitor; the other end of the second capacitor is grounded.

[0076] Furthermore, the IO isolation driving circuit 200 further includes a discharge branch; the discharge branch includes a fourth resistor, a voltage stabilizing diode and a first diode;

[0077] One end of the fourth resistor is connected to a series node of the third resistor and the second capacitor, and the other end is connected to a first end of the main switch component 210 via the Zener diode and the first diode in sequence.

[0078] The diode D103 is used to prevent the high voltage backflow from the power connection terminal POWER_OUT_n from burning the driver. The voltage stabilizing diode is used to adjust the overcurrent value of the output. The calculation method is: overcurrent protection value = (isolation voltage-U) / Rds. Among them, U represents the sum of the voltage stabilizing value of the voltage stabilizing diode DZ101 and the forward voltage drop of the diode D103. Rds represents the internal resistance of the main switch component 210.

[0079] Further, the delay time of the slave switch delay branch 260 is greater than the delay time of the main switch opening delay branch 250. Further, the delay time of the slave switch delay branch 260 is greater than N times the delay time of the main switch opening delay branch 250, 2≤N≤5. It can be understood that the resistance of the third resistor multiplied by the capacitance of the second capacitor is greater than the resistance of the first resistor multiplied by the capacitance of the second capacitor; it can also be understood that the RC delay of the slave switch delay branch 260 is t2 (the delay time of the slave switch delay branch 260), and the RC delay of the main switch opening delay branch 250 (the delay time of the main switch opening delay branch 250) is t1, t2>t1, to ensure normal opening. In addition, the difference between the two should be large, so that the algorithm can distinguish and identify and perform related control. Preferably, t2=N*t1, wherein t1 is 100us, to ensure a faster switching speed and to ensure that the main switch component 210 can be shut down quickly during overload protection to ensure safety; the value range of t1 is (10us~1ms); the value range of N is (1.5~5). In order to ensure reliable opening, preferably, N is 2.

[0080] The resistance of the third resistor is equal to M times the resistance of the fourth resistor, wherein 2≤M≤10. It can be understood that the resistance of the corresponding fourth resistor is approximately equal to the resistance of the third resistor divided by 2-10 to ensure normal and effective opening.

[0081] Further, the main switch component 210 includes a single MOS tube or a dual MOS tube with a common gate. When unidirectional control is performed between the power connection terminal and the load connection terminal, the single MOS tube is used. When bidirectional control is performed between the power connection terminal and the load connection terminal, the dual MOS tube with a common gate is used.

[0082] like Figure 5 As shown, to achieve bidirectional control, the dual MOS tube includes a first NMOS tube Q101a and a second NMOS tube Q101b; the source of the first NMOS tube is connected to the source of the second NMOS tube; the gate of the first NMOS tube is connected to the gate of the second NMOS tube and serves as the control end of the switch component. The slave switch 220 is a triode; the emitter of the triode is the input end, and the collector is the output end.

[0083] Furthermore, the IO isolation driving circuit 200 also includes an absorption circuit; the absorption circuit is used to reduce the turn-off voltage drop of the main switch component 210 to protect the main switch component 210.

[0084] like Figure 6As shown, the absorption circuit includes a third capacitor C103 and a fifth resistor R103 connected in series; one end of the third capacitor is connected to the second end of the main switch component 210; the other end of the third capacitor is connected to the first end of the main switch component 210 through the fifth resistor.

[0085] When the main switch component 210 is the NMOS tube, the IO isolation drive circuit 200 further includes a third diode D105 and a pull-down resistor R108. The second end of the main switch component 210 is connected to the load connection end of the IO isolation drive circuit 200 through the third diode. One end of the pull-down resistor is connected to the series node of the third diode and the load connection end of the IO isolation drive circuit 200, and the other end is grounded. The third diode D105 is used to prevent current and voltage backflow, and the short circuit will be cancelled when used for bidirectional control. The pull-down resistor R108 is used to release the floating voltage and cancel the disconnection when used for bidirectional control.

[0086] The IO isolation driving circuit 200 further includes a fourth diode D108 , and the second end of the main switch component 210 is grounded through the fourth diode.

[0087] For example, Figure 6As shown, the processor unit 100 can be an MCU or an FPGA. The processor unit 100 outputs a driving signal (CON_OUT_n) to the isolation driving circuit unit 230; the isolation driving circuit unit 230 outputs an isolation voltage through a voltage output terminal. The voltage output terminal is respectively connected to the emitter of the transistor Q102, the positive input terminal of the photoelectric coupling element U101, and the third resistor R104. The collector of the transistor is connected to the first resistor R101, and the base of the transistor is connected to the second series node between the third resistor and the second capacitor C102. One end of the fourth resistor R105 is also connected to the second series node, and the other end is connected to the drain of the main switch MOS tube through the voltage stabilizing diode Dz101 and the first diode D103. The positive input terminal of the photoelectric coupling element U101 is connected to the drain of the main switch MOS tube Q101 through its negative input terminal through the first current limiting resistor R107 and the second diode D106. The control end of the main switch MOS tube is connected to the first series node between the first resistor R101 and the first capacitor C101. One end of the second resistor R102 is also connected to the first series node, and the other end is grounded. The source of the main switch MOS tube Q101 is grounded through the reverse-connected diode D108, and the source of the main switch MOS tube Q101 is also connected to the ground and the load connection terminal OUT_n through the third diode D105 and the pull-down resistor R108. The third capacitor C103 and the fifth resistor R103 connected in series are connected in series between the power connection terminal POWER_OUT_n and the load connection terminal OUT_n. The above-mentioned first diode D103 and the second diode D106 are used to prevent the high voltage backflow of the power connection terminal POWER_OUT_n from burning the driver.

[0088] Figure 6 In the embodiment, the power ground VSS2 is isolated from the power ground VSS of the processor unit 100 circuit.

[0089] The drive signal CON_OUT_n output by the processor unit 100 outputs an isolation voltage after isolation driving by the isolation driving circuit unit 230. The isolation voltage will turn on the transistor Q102 to obtain the control signal of the gate G1 of the main switch MOS tube Q101, and control the main switch MOS tube Q101 to turn on. If the drive signal CON_OUT_n output by the processor unit 100 disappears, the drive voltage of the transistor Q102 decreases, and then the control signal of the gate G1 disappears, and the main switch MOS tube Q101 is immediately turned off.

[0090] Before the main switch MOS tube Q101 is turned on, the second capacitor C102 provides a low voltage required for the base of the transistor Q102 to be turned on. After the main switch MOS tube Q101 is turned on, a loop is formed through the fourth resistor R105, the voltage stabilizing diode Dz101, the diode D103 and the main switch MOS tube Q101 to discharge and maintain the conduction of the main switch MOS tube.

[0091] When an overload occurs during the opening process, the voltage drop of the main switch MOS tube increases, and the second capacitor C102 cannot be discharged through the above-mentioned loop, while the third resistor R104 continues to charge the second capacitor C102. Therefore, the voltage of the second capacitor C102 increases, and then the base voltage of the transistor Q102 increases, and the transistor Q102 cannot be turned on, which causes the control signal of the gate G1 of the main switch MOS tube to disappear, and the main switch MOS tube Q101 is immediately overloaded and shut down.

[0092] When turned on, the RC constant of the first resistor R101 and the first capacitor C101 will determine the delay time (turn-on delay) of the main switch turn-on delay branch 250; during the turn-on process, the RC constant of the second resistor R102 and the first capacitor C101 will determine the delay time (turn-off delay) of the main switch turn-off delay branch, so as to realize turn-on / turn-off anti-interference respectively.

[0093] When turned on, the isolation voltage passes through the optocoupler U101, the current limiting resistor R107, the second diode D106, the main switch MOS tube Q101 to the current network Q1S, the optocoupler is turned on, and the output of the feedback signal FB_n is kept valid (valid state). When the output is shut down normally or shut down due to overload, the above loop cannot be formed, and the feedback signal FB_n feedback is invalid (invalid state).

[0094] The IO isolation drive system of the embodiment of the present application is controlled by a control method of the IO isolation drive system provided by the present application.

[0095] The control method of the IO isolation drive system is described below in conjunction with some specific embodiments.

[0096] Figure 7 A flow chart of a control method of an IO isolation drive system according to an embodiment of the present application is shown. Exemplarily, the control method of the IO isolation drive system is applicable to the processor unit 100, and includes the following steps:

[0097] S100, detecting a state of an output drive signal and a state of a received feedback signal.

[0098] MCU / FPGA collects the state of feedback signal FB_n in real time to determine whether the main switch component 210 is turned on or overloaded. The state of the drive signal includes a first state (valid state) and a second state (invalid state). The state of the feedback signal includes a valid state and an invalid state. Among them, when the optocoupler element U101 is turned on, the feedback signal is in a valid state, and when the optocoupler element U101 is turned off, the feedback signal is in an invalid state. Whether it is a high level or a low level is related to the connection method of the circuit, and this application does not limit it.

[0099] MCU / FPGA needs to collect the status of feedback signals CON_OUT_n and FB_n in real time to determine whether the main switch is turned on or overloaded. When there are many IO channels in the system, it is recommended to use FPGA to meet the response speed requirements of multi-channel simultaneous detection and control.

[0100] S200, counting the actual on-time of the main switch component 210 according to the first state of the drive signal, and identifying whether the main switch component 210 has a fault during the on-time process and the corresponding fault type according to the state of the feedback signal and the actual on-time. The first state is a valid state, when the drive signal changes from an invalid state to a valid state, the actual off-time is reset, and the actual on-time is accumulated according to the increase of the clock.

[0101] S300, counting the actual off-time of the main switch component 210 according to the second state of the driving signal, and identifying whether the main switch component 210 has a fault during the shutdown process and the corresponding fault type according to the state of the feedback signal and the actual off-time.

[0102] When the driving signal changes from a valid state to an invalid state, the actual on-time is reset, and the actual off-time is accumulated according to the increase of the clock.

[0103] S400: Controlling prohibition of output of the driving signal according to the fault and the corresponding fault type to disconnect the connection between the power connection terminal and the load connection terminal.

[0104] Comprehensive analysis shows that the third resistor R104, the first capacitor C101, the first resistor R101, the second capacitor C102, the delay (delay t0) of the isolation driving circuit unit 230 and other related parameters determine the switching speed of the drive. Comprehensive design, its typical time magnitude is 10us~1ms to obtain a faster response speed.

[0105] The normal opening time Ton0 of the main switch component 210 is t0+t1, and it is judged to be abnormal if it is too fast or too slow. When the opening speed is fast, if the actual opening time is less than the normal opening time-the first deviation value x, it is judged that the main switch component 210 is "broken down", the output is uncontrollable, and the output drive signal is prohibited. When the opening speed is slow, the actual opening time is greater than the normal opening time + the second deviation value y. At this time, it is judged that the main switch component 210 is "unable to conduct", the output is overloaded and the MOS is damaged, and it cannot be output. The first deviation value x and the second deviation value y are set according to the discreteness of each device in the IO isolation drive system. Among them, the opening delay of the switch device includes three values: minimum value min, typical value type, maximum value max, etc.; in the embodiment of the present application, the normal opening time refers to the type value, and min=normal opening time-first deviation value x; and max=normal opening time+second deviation value y. Among them, x and y are comprehensively determined by the RC constant device error in the circuit and the opening deviation of the main switch MOS device. They can be directly calculated approximately, or the error can be estimated through actual measurement.

[0106] It can be understood that the normal off time is also determined, and the normal off time is defined as t4, which is comprehensively determined by circuit parameters including the main switch component 210. If it is slower than the normal off time, the main switch component 210 will be determined to be abnormally broken down.

[0107] Further, in step S200, the identifying whether the main switch component 210 has a fault during the opening process and the corresponding fault type according to the state of the feedback signal and the actual opening time includes:

[0108] If Ton<t0+t1-x, and the feedback signal is in a valid state, it is confirmed that the main switch component 210 has a breakdown fault; wherein, Ton is the actual opening time, t0 is the delay duration of the isolation drive circuit unit 230, t1 is the delay duration of the main switch opening delay branch 250, and x is the first deviation value of the preset IO isolation drive circuit 200.

[0109] If t0+t1+y+k≥Ton≥t0+t1+y, and the feedback signal is in an invalid state, it is confirmed that the main switch component 210 has a conduction failure; wherein y is a second deviation value of the preset IO isolation drive circuit 200, 0.8s≤k≤1.2s;

[0110] If the feedback signal is in an invalid state, it is confirmed that the main switch component 210 has an overload fault.

[0111] Further, in step S300, the identifying whether the main switch component 210 has a fault during the shutdown process and the corresponding fault type according to the state of the feedback signal and the actual shutdown time includes:

[0112] If Toff≥t4, and the feedback signal is in a valid state, it is confirmed that the main switch component 210 has a breakdown fault; Toff is the actual turn-off time; t4 is the normal actual turn-off time of the IO isolation drive circuit 200.

[0113] Furthermore, the method further comprises:

[0114] If the IO isolation drive system is in a normal state and the feedback signal is in a valid state, it is determined that the main switch component 210 is in a normal on state, otherwise the main switch component 210 is in a normal off state.

[0115] Specifically, Figure 8 As shown, the following steps are included:

[0116] S510, continuously detecting the state of the driving signal and the state of the feedback signal.

[0117] S520, determine the state of the driving signal, if the driving signal is in a valid state (such as a high level), execute step S530. If the driving signal is in an invalid state (such as a low level), execute step S540.

[0118] S530, the actual on-time Ton is accumulated, and the actual off-time is reset.

[0119] S540, the actual on time is reset, and the actual off time Toff is accumulated.

[0120] S550, determine whether Ton<t0+t1-x is established. If yes, execute S560, otherwise execute S580.

[0121] S560, determining whether the feedback signal is valid. If the feedback signal is valid, executing step S570.

[0122] S570, confirming that the main switch (main switch assembly 210) has a breakdown fault.

[0123] S580, determine whether t0+t1+y+k≥Ton≥t0+t1+y is established. If yes, execute S590, otherwise execute S610.

[0124] S590, determining whether the feedback signal is valid. If the feedback signal is invalid, executing step S600.

[0125] S600: Confirm that the main switch has a conduction failure.

[0126] S610, determining whether the feedback signal is valid. If the feedback signal is invalid, executing step S620.

[0127] S620, confirm that the main switch has an overload fault.

[0128] S630, determine whether Toff≥t4 is established. If established, execute S640.

[0129] S640, determining whether the feedback signal is valid. If the feedback signal is valid, executing step S650.

[0130] S650, confirm that the main switch has a breakdown fault. The present application can feed back the state of the isolation voltage to the processor unit 100 by adding an isolation voltage feedback branch 240, obtain feedback signals and drive signals through the processor unit 100, and count the actual on-time and actual off-time according to the state of the drive signal; finally, determine whether the main switch component 210 has a fault according to the state of the feedback signal, the actual on-time, the actual off-time and the preset deviation value, so as to prohibit the output of the drive signal according to the fault. Therefore, the present application can effectively solve the problems of the existing IO isolation drive circuit being complex, having no feedback function for the isolated output, and having no self-test function.

[0131] The present application does not require a dedicated driver chip, and utilizes discrete devices including resistors, capacitors, diodes, etc. to form a simple circuit structure, and adopts the control method of the IO isolation drive system of the present application, so as to realize flexible protection and feedback diagnosis functions, and the hardware cost is very low.

[0132] By combining the control timing check in the control method of the IO isolation drive system to determine the actual opening time, the number of circuit components can be reduced, and the consistency of protection diagnosis and other characteristics can be guaranteed, including the improvement of reliability. Compared with relays, its switching speed is faster and can be easily achieved within 1ms.

[0133] In the control method of the IO isolation drive system of the present application, the method of collecting and determining whether the received feedback signal is output is not to directly collect the voltage of the output port, but to determine it through the voltage drop of the main switch. When the output voltage is high, the traditional sampling method can eliminate the large loss of sampling feedback, while the present application has nothing to do with the voltage level of the output circuit, which can reduce system heating.

[0134] The overcurrent protection in the present application utilizes the on-state voltage drop of the switch tube for protection, and there is no need to connect an additional resistor in series to sample the voltage for judgment, or to connect a self-recovery fuse hardware for self-protection. The loop loss of the present application is the lowest.

[0135] The embodiment of the present application also provides a control device for an IO isolation drive system. Exemplarily, the control device for the IO isolation drive system includes: a detection module, an on-duration statistics module, an off-duration statistics module, and a control module.

[0136] The detection module is used to detect the state of the output drive signal and the state of the received feedback signal.

[0137] The on-time statistics module is used to count the actual on-time of the main switch component 210 according to the first state of the driving signal.

[0138] The off-time statistics module is used to count the actual off-time of the main switch component 210 according to the second state of the driving signal.

[0139] The control module is used to determine whether the main switch component 210 has a fault according to the state of the feedback signal, the actual turn-on time, the actual turn-off time and a preset deviation value, so as to prohibit the output of the drive signal according to the fault.

[0140] It can be understood that the device of this embodiment corresponds to the control method of the IO isolation drive system of the above embodiment, and the options in the above embodiment are also applicable to this embodiment, so they will not be repeated here.

[0141] The present application also provides a terminal device, which exemplarily includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program to enable the terminal device to execute the control method of the IO isolation drive system or the functions of each module in the control device of the IO isolation drive system. Preferably, the terminal device is the processor unit 100.

[0142] Among them, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including a central processing unit (CPU), a single-chip microcomputer / microcontroller (MCU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or at least one of other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application.

[0143] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electric erasable programmable read-only memory (EEPROM), etc. The memory is used to store a computer program, and the processor may execute the computer program accordingly after receiving an execution instruction.

[0144] The present application also provides a computer-readable storage medium for storing the computer program used in the above terminal device. For example, the computer-readable storage medium may include but is not limited to: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0145] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0146] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0147] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0148] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. An IO isolation drive system, characterized in that: include: A processor unit and at least one IO isolation driver circuit; The IO isolation drive circuit includes a main switch component, a slave switch, an isolation drive circuit unit, an isolation voltage feedback branch, a main switch opening delay branch and a slave switch delay branch; The main switch component is connected in series between the power connection terminal and the load connection terminal of the IO isolation drive circuit; The isolation driving circuit unit is connected to the control end of the slave switch through the slave switch delay branch; The isolation driving circuit unit is also connected to the input end of the slave switch; the output end of the slave switch is connected to the control end of the main switch component through the main switch opening delay branch; The isolation driving circuit unit is used to receive the driving signal output by the processor unit, and output an isolation voltage to the slave switch delay branch to control the slave switch to be turned on, and then control the main switch component to be turned on through the main switch turn-on delay branch; The isolated voltage feedback branch is used to output a feedback signal to the processor unit according to the on-off of the main switch component; The isolation voltage feedback branch adopts an isolation driver; the first end of the isolation driver is connected to the output end of the isolation drive circuit unit outputting the isolation voltage, the second end is connected to the first end of the main switch component, and the third end is connected to the processor unit; The output end of the isolation driving circuit unit is connected to one end of the slave switch delay branch; the other end of the slave switch delay branch is used for grounding; the control end of the slave switch is connected to the slave switch delay branch; The output end of the slave switch is connected to one end of the main switch opening delay branch; the other end of the main switch opening delay branch is used for grounding; the control end of the main switch component is connected to the main switch opening delay branch; The IO isolation drive circuit also includes a main switch off delay branch; The main switch opening delay branch includes a first resistor and a first capacitor; The main switch turn-off delay branch includes a second resistor and the first capacitor; The slave switch delay branch includes a third resistor and a second capacitor; One end of the first resistor is connected to the output end of the slave switch, and the other end is connected to the control end of the main switch component, one end of the first capacitor and one end of the second resistor; the other ends of the first capacitor and the second resistor are both grounded; One end of the third resistor is connected to the isolation driving circuit unit, and the other end is connected to the control end of the slave switch and one end of the second capacitor; the other end of the second capacitor is used for grounding.

2. The IO isolation drive system according to claim 1, characterized in that: The IO isolation driving circuit further includes a discharge branch; the discharge branch includes a fourth resistor, a voltage stabilizing diode and a first diode; One end of the fourth resistor is connected to the series node of the third resistor and the second capacitor, and the other end is connected to the first end of the main switch component through the voltage regulator diode and the first diode in sequence.

3. The IO isolation drive system according to claim 2, characterized in that: The delay time of the slave switch delay branch is greater than the delay time of the main switch opening delay branch; the delay time of the main switch opening delay branch has a value range of (10us, 1ms); The resistance value of the third resistor is equal to M times the resistance value of the fourth resistor; wherein 2≤M≤10.

4. The IO isolation drive system according to claim 1, characterized in that: The main switch component includes a single MOS tube or a dual MOS tube with a common gate; wherein, when unidirectional control is performed between the power connection terminal and the load connection terminal, the single MOS tube is adopted; when bidirectional control is performed between the power connection terminal and the load connection terminal, the dual MOS tube with a common gate is adopted.

5. A control method for an IO isolation drive system, characterized in that: Applicable to the processor unit in the IO isolation drive system according to any one of claims 1 to 4; the method comprises: Detecting the state of the output drive signal and the state of the received feedback signal; Counting the actual on-time of the main switch component according to the first state of the drive signal, and identifying whether the main switch component has a fault during the on-time process and the corresponding fault type according to the state of the feedback signal and the actual on-time; Counting the actual off-time of the main switch component according to the second state of the drive signal, and identifying whether the main switch component has a fault during the off-time and the corresponding fault type according to the state of the feedback signal and the actual off-time; The output of the driving signal is prohibited according to the fault and the corresponding fault type, so as to disconnect the connection between the power connection terminal and the load connection terminal.

6. The control method of the IO isolation drive system according to claim 5, characterized in that: The method further comprises: If the IO isolation drive system is in a normal state and the feedback signal is in a valid state, it is determined that the main switch component is in a normal on state, otherwise the main switch component is in a normal off state.

7. The control method of the IO isolation drive system according to claim 5, characterized in that: The identifying, according to the state of the feedback signal and the actual opening time, whether the main switch component has a fault during the opening process and the corresponding fault type, includes: If Ton<t0+t1-x, and the feedback signal is in a valid state, it is confirmed that the main switch component has a breakdown fault; wherein Ton is the actual opening time, t0 is the delay time of the isolation drive circuit unit, t1 is the delay time of the main switch opening delay branch, and x is the first deviation value of the preset IO isolation drive circuit; If t0+t1+y+k≥Ton≥t0+t1+y, and the feedback signal is in an invalid state, it is confirmed that the main switch component has a conduction failure; wherein y is a second deviation value of the preset IO isolation drive circuit, 0.8s≤k≤1.2s; If the feedback signal is in an invalid state, it is confirmed that the main switch component has an overload fault.

8. The control method of the IO isolation drive system according to claim 5, characterized in that: The identifying, according to the state of the feedback signal and the actual shutdown time, whether the main switch component has a fault during the shutdown process and the corresponding fault type, includes: If Toff≥t4, and the feedback signal is in a valid state, it is confirmed that the main switch component has a breakdown fault; Toff is the actual turn-off time; t4 is the normal actual turn-off time of the IO isolation drive circuit.