Detection circuit and detection device
By combining control circuits, optocoupler isolation circuits, and feedback circuits, the problem of the controller being unable to simultaneously drive and acquire bidirectional switch states was solved, realizing the functions of bidirectional signal transmission and state acquisition, and improving electromagnetic compatibility and protection performance.
Patent Information
- Application Number
- CN202111500501.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-09
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2041-12-09
AI Technical Summary
In the existing technology, the controller cannot simultaneously drive the bidirectional switch and obtain the working status of the bidirectional switch.
A combination of control circuit, optocoupler isolation circuit, drive circuit and feedback circuit is used. The optocoupler isolation circuit realizes bidirectional signal transmission, and the feedback circuit obtains the working state of the bidirectional switch.
This invention enables the controller to drive bidirectional switches while acquiring their operating status, thereby improving electromagnetic compatibility and protection performance.
Smart Images

Figure CN114414875B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of testing technology, and in particular relates to a testing circuit and testing equipment. Background Technology
[0002] In existing technologies, typical bidirectional switch isolation drive methods use isolation devices such as optocouplers and signal transformers. The drive signal passes through the isolation device before being transmitted to the bidirectional switch input. While enabling drive signal transmission, the isolation device effectively improves the controller's electromagnetic compatibility, surge protection, and electrostatic discharge (ESD) performance. However, whether it's an optocoupler or a signal transformer, the signal from the isolation device can generally only be transmitted in one direction. That is, the controller can only control the bidirectional switch through the isolation device but cannot obtain the operating status of the bidirectional switch. Summary of the Invention
[0003] This application provides an implementation scheme different from the prior art to solve the technical problem that the controller cannot acquire the working status of the bidirectional switch while simultaneously driving the bidirectional switch.
[0004] In a first aspect, this application provides a detection circuit, including: a control circuit, an optocoupler isolation circuit, a drive circuit, and a feedback circuit; wherein: the control circuit is connected to the optocoupler isolation circuit and is used to drive a working circuit through the optocoupler isolation circuit and the driven circuit; the optocoupler isolation circuit is connected to the drive circuit and is used to respond to a control signal from the control circuit to enable the control circuit to drive the working circuit through the drive circuit; the optocoupler isolation circuit is also connected to the feedback circuit so that the control circuit determines the load connection state of the working circuit through feedback information generated by the optocoupler isolation circuit and the feedback circuit; the drive circuit is also connected to the working circuit; the feedback circuit is connected to the working circuit and is used to generate the feedback information through the optocoupler isolation circuit in response to the load connection state of the working circuit, that is, to feed back the corresponding signal level to the control circuit.
[0005] Secondly, this application Lai693704 provides a detection device, including a detection circuit. The detection circuit includes a control circuit, an optocoupler isolation circuit, a drive circuit, and a feedback circuit. The control circuit is connected to the optocoupler isolation circuit and is used to drive a working circuit through the optocoupler isolation circuit and the drive circuit. The optocoupler isolation circuit is connected to the drive circuit and is used to respond to a control signal from the control circuit so that the control circuit drives the working circuit through the drive circuit. The optocoupler isolation circuit is also connected to the feedback circuit so that the control circuit determines the load connection state of the working circuit through feedback information generated by the optocoupler isolation circuit and the feedback circuit. The drive circuit is also connected to the working circuit. The feedback circuit is connected to the working circuit and is used to generate the feedback information through the optocoupler isolation circuit in response to the load connection state of the working circuit.
[0006] The detection circuit provided in this application includes: a control circuit, an optocoupler isolation circuit, a drive circuit, and a feedback circuit; wherein: the control circuit is connected to the optocoupler isolation circuit and is used to drive the working circuit through the optocoupler isolation circuit and the drive circuit; the optocoupler isolation circuit is connected to the drive circuit and is used to respond to the control signal of the control circuit so that the control circuit drives the working circuit through the drive circuit; the optocoupler isolation circuit is also connected to the feedback circuit so that the control circuit determines the load connection state of the working circuit through the feedback information generated by the optocoupler isolation circuit and the feedback circuit; the drive circuit is also connected to the working circuit; the feedback circuit is connected to the working circuit and is used to respond to the load connection state of the working circuit and generate the feedback information through the optocoupler isolation circuit, that is, to feed back the corresponding signal level to the control circuit, so as to achieve the technical effect that the control circuit has the function of driving a bidirectional switch while also having the function of acquiring the working state of the bidirectional switch. Attached Figure Description
[0007] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings:
[0008] Figure 1 This is a schematic diagram of the detection circuit provided in one embodiment of this application;
[0009] Figure 2 This is a schematic diagram of the detection circuit provided in another embodiment of this application;
[0010] Figure 3 This is a schematic diagram of the detection circuit provided in another embodiment of this application;
[0011] Figure 4 This is a schematic diagram of the detection circuit provided in another embodiment of this application;
[0012] Figure 5 This is a schematic diagram of the detection circuit provided in another embodiment of this application;
[0013] Figure 6 A schematic diagram of the structure of an electronic device provided in another embodiment of this application. Detailed Implementation
[0014] The embodiments of this application are described in detail below, with examples of the embodiments illustrated in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0015] The terms "first" and "second," etc., used in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the present application described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0016] The technical solution of this application and how it solves the above-mentioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.
[0017] Figure 1 A schematic diagram of a detection circuit provided in an embodiment of this application includes: a control circuit 11, an optocoupler isolation circuit 12, a driving circuit 13, and a feedback circuit 14; wherein:
[0018] The control circuit 11 is connected to the optocoupler isolation circuit 12 and is used to drive the working circuit 10 through the driven circuit 13 via the optocoupler isolation circuit 12.
[0019] The connection between the optocoupler isolation circuit 12 and the drive circuit 13 is used to respond to the control signal of the control circuit 11 so that the control circuit 11 drives the working circuit 10 to work through the drive circuit 13; the optocoupler isolation circuit 12 is also connected to the feedback circuit 14 so that the control circuit 11 determines the load connection status of the working circuit 10 through the feedback information generated by the optocoupler isolation circuit 12 and the feedback circuit 14.
[0020] The drive circuit 13 is also connected to the working circuit 10;
[0021] The feedback circuit 14 is connected to the working circuit 10 and is used to respond to the load access state of the working circuit 10. It generates the feedback information through the optocoupler isolation circuit 12, that is, it feeds back the corresponding signal level to the control circuit 11.
[0022] For more details, please refer to [link / reference]. Figure 2As shown, the feedback circuit 14 may include an impedance detection circuit 142 and an impedance transformation circuit 141. The impedance detection circuit 142 is connected to the optocoupler isolation circuit 12 and the impedance transformation circuit 141. The impedance transformation circuit 141 is connected to the working circuit 10. The impedance transformation circuit 141 is used to conduct the connection between the impedance detection circuit 142 and the optocoupler isolation circuit 12 according to the signal level of the connection terminal connected to the working circuit 10, so that the control circuit 11 determines the load connection status of the working circuit 10 through the feedback information generated by the optocoupler isolation circuit 12 and the impedance detection circuit 142.
[0023] Further, see Figure 3 As shown, the driving circuit 13 includes a first diode D1, a first capacitor C1, and a first resistor R1. Specifically, one end of the first diode D1 (e.g., the anode) is connected to the first end of the working circuit 10, and the other end (e.g., the cathode) is connected to the optocoupler isolation circuit 12 and one end of the first capacitor C1. The other end of the first capacitor C1 is connected to the second end of the working circuit 10. One end of the first resistor R1 is connected to the optocoupler isolation circuit 12, and the other end is connected to the third and fourth ends of the working circuit 10.
[0024] Furthermore, the operating circuit 10 includes a load connection circuit and a switching group. The load connection circuit is used to connect a load, and the switching group may include: a first NMOS transistor Q1, a second NMOS transistor Q2, a second diode D2, and a third diode D3, wherein:
[0025] The drain of the first NMOS transistor Q1 is connected to the load connection circuit and the feedback circuit 14. The gate of the first NMOS transistor Q1 is connected to the other end of the first resistor R1. The source of the first NMOS transistor Q1 is connected to the source of the second NMOS transistor Q2 and the other end of the first capacitor C1. The gate of the second NMOS transistor Q2 is connected to the other end of the first resistor R1. The drain of the second NMOS transistor Q2 is connected to the feedback circuit 14.
[0026] One end (e.g., the anode) of the second diode D2 is connected to the source of the first NMOS transistor Q1, and the other end (e.g., the cathode) is connected to the drain of the first NMOS transistor Q1.
[0027] One end (e.g., the anode) of the third diode D3 is connected to the source of the second NMOS transistor Q2, and the other end (e.g., the cathode) is connected to the drain of the second NMOS transistor Q2.
[0028] One end of the load access circuit is connected to one end of the AC power supply, and the other end is connected to the drain of the first NMOS transistor Q1. The drain of the second NMOS transistor Q2 is connected to the other end of the AC power supply.
[0029] Specifically, the first and fifth terminals of the working circuit 10 are respectively connected to the two ends of the AC power supply. For details on the connection between the first and fifth terminals of the working circuit 10, please refer to [link to relevant documentation]. Figure 3 As shown, the two ends of the alternating current can be respectively Figure 3 The R and C terminals in the diagram represent loads including lamps and / or relays.
[0030] Further, see Figure 4 As shown, the aforementioned detection circuit also includes a protection circuit 15, which is connected to the other end of the first resistor R1 and the working circuit 10, and is used to limit the current in the working circuit 10.
[0031] Furthermore, the protection circuit 15 includes a second resistor R2, a third resistor R3, a first transistor Q1', and a second transistor Q2', wherein: one end of the second resistor R2 is connected to the source of the first NMOS transistor Q1 and the base of the first transistor Q1' in the working circuit 10; the other end of the second resistor R2 is connected to the emitter of the first transistor Q1' and one end of the third resistor R3; the other end of the third resistor R3 is connected to the source of the second NMOS transistor and the base of the second transistor Q2'; the emitter of the first transistor Q1' and the emitter of the second transistor Q2' are connected to the other end of the second resistor R2; the collectors of the first transistor Q1' and the second transistor Q2' are both connected to the other end of the first resistor R1; one end of the third resistor is also connected to the other end of the first capacitor.
[0032] It should be noted that, in combination Figure 3 and Figure 4 As shown, when the detection circuit includes the protection circuit 15, the first NMOS transistor Q1 and the second NMOS transistor Q2 are no longer directly connected. The protection circuit 15 can be connected between the source of the first NMOS transistor Q1 and the source of the second NMOS transistor Q2 in the working circuit 10, such as between the second and sixth terminals in the working circuit. Specifically, one end of the second resistor R2 in the protection circuit 15 is connected to the second terminal of the working circuit 10 (i.e., the source of the first NMOS transistor Q1), and the other end of the third resistor R3 in the protection circuit 15 is connected to the sixth terminal of the working circuit 10 (i.e., the source of the second NMOS transistor Q2). Furthermore, the other end of the first capacitor C1 is connected to the other end of the second resistor R2. When the detection circuit does not include the protection circuit 15, the second and sixth terminals in the working circuit 10 are connected.
[0033] Furthermore, the control circuit 11 includes a first MCU, which is connected to the optocoupler isolation circuit 12 and is used to determine the load connection state of the working circuit 10 based on the signal level at the connection end with the optocoupler isolation circuit 12.
[0034] Furthermore, combined Figure 2and Figure 5 As shown, the detection circuit also includes:
[0035] The pulse width modulation (PWM) wave generator 1421 and the impedance detection circuit 142 include a response circuit 1422. The PWM wave generator 1421 provides an initial stable voltage across the target capacitor in the impedance transformation circuit 141. When a load is connected to the operating circuit 10, the initial stable voltage decreases, and the impedance transformation circuit 141 activates the impedance detection circuit 142 based on the decreased voltage. The target capacitor can be a third capacitor C3. The PWM wave generator 1421 can be implemented using a second MCU. Specifically, the voltage change is fed back to the primary winding via the signal transformer T, and the impedance transformation circuit 141 activates the impedance detection circuit 142 based on the voltage change in the primary winding. The first MCU and the second MCU can be the same MCU or different MCUs; this application does not limit this.
[0036] Furthermore, one end of the load connection circuit is connected to the anode of the first diode D1, and the other end of the first resistor R1 is connected to the gate of the first NMOS transistor Q1.
[0037] Further, see Figure 5 As shown, the impedance transformation circuit 141 includes: a fourth diode D4, a second capacitor C2, a fourth resistor R4, a third NMOS transistor Q3, a fifth resistor R5, a third capacitor C3, a fifth diode D5, a sixth resistor R6, a transformer T, a fourth capacitor C4, a seventh resistor R7, and a sixth diode D6; wherein, one end (e.g., the anode) of the fourth diode D4 is connected to the drain of the first NMOS transistor Q1, and the other end (e.g., the cathode) is connected to one end of the fourth resistor R4 and one end of the second capacitor C2, and the other end of the second capacitor C2 is connected to the drain of the second NMOS transistor Q2 (i.e., connected to terminal C); the fourth resistor R4... The other end of 4 is connected to the gate of the third NMOS transistor Q3. The drain of the third NMOS transistor Q3 is connected to one end of the fifth resistor R5. The other end of the fifth resistor R5 is connected to one end of the third capacitor C3 and one end (such as the cathode) of the fifth diode D5. The source of the third NMOS transistor Q3 is connected to the other end of the third capacitor C3 and the C terminal of the AC power supply. The other end (such as the anode) of the fifth diode D5 is connected to one end of the sixth resistor R6 and the same-name terminal of the secondary winding of the transformer, and one end of the sixth resistor R6. The other end of the secondary winding of the transformer is connected to the other end of the sixth resistor R6 and the other end of the third capacitor C3.
[0038] Furthermore, the primary terminal of the transformer is connected to one end of the fourth capacitor C4 and one end of the seventh resistor R7. The other end of the seventh resistor R7 is connected to the other end of the fourth capacitor C4 and one end (e.g., the cathode) of the sixth diode D6. The other end (e.g., the anode) of the sixth diode D6 is connected to the other end of the primary terminal of the transformer. One end of the fourth capacitor C4 is also connected to the first power supply terminal VCC1.
[0039] Furthermore, the aforementioned pulse width modulation wave generator 1421 may also be included together with the response circuit 1422 in the impedance detection circuit 142. Optionally, the impedance detection circuit 142 may also include only the response circuit 1422.
[0040] The aforementioned response circuit 1422 specifically includes: a fourth NMOS transistor Q4, an eighth resistor R8, a ninth resistor R9, a fifth capacitor C5, a seventh diode D7, a tenth resistor R10, an eleventh resistor R11, a twelfth resistor R12, a third transistor Q3', and a second power supply terminal VCC2.
[0041] Specifically, the drain of the fourth NMOS transistor Q4 is connected to the other end (anode) of the sixth diode D6; the gate of the fourth NMOS transistor Q4 is connected to one end of the eighth resistor R8; the other end of the eighth resistor R8 is connected to the pulse width modulation wave generator 1421; the source of the fourth NMOS transistor Q4 is connected to one end of the ninth resistor R9 and one end (anode) of the seventh diode; the other end of the ninth resistor R9 is grounded; and the other end (cathode) of the seventh diode D7 is connected to one end of the fifth capacitor C5 and one end of the tenth resistor R10. One end of the eleventh resistor R11 is connected to the other end of the fifth capacitor C5, which is connected to the other end of the ninth resistor R9 and the other end of the tenth resistor R10. The other end of the eleventh resistor R11 is connected to the base of the third transistor Q3', and the other end of the tenth resistor R10 is connected to the emitter of the third transistor Q3'. The collector of the third transistor Q3' is connected to one end of the twelfth resistor R12, and the other end of the twelfth resistor R12 is connected to the second power supply terminal VCC2. The collector of the third transistor Q3' is also connected to the optocoupler isolation circuit 12.
[0042] Furthermore, the control circuit 11 may also include a thirteenth resistor R13. One end of the thirteenth resistor R13 is connected to the third power supply terminal VCC3, and the other end is connected to the optocoupler isolation circuit 12 and the first MCU. For specific connection methods, please refer to [reference needed]. Figure 5 As shown.
[0043] It should be noted that the "one end" and "the other end" mentioned in this application can be understood as the first end and the second end of an element having two connection ends.
[0044] The following section provides a further explanation of the execution principle of this solution, using specific scenarios as examples:
[0045] Can be combined Figure 5 As shown, when no load is connected to the load connection circuit, there is no current in D4 and C2, R4 and Q3 are not conducting, and R5 has no effect. The second MCU outputs a PWM (Pulse Width Modulation) wave, and Q4 switches on and off periodically accordingly. At this time, a pulse current flows through R9, and the voltage drop across R9 causes D7 to conduct, thereby charging C5. The voltage across C5 is constant. Specifically, the voltage of C5 can be relatively low at this time, for example, less than 0.6V, which is insufficient to turn on Q3'; that is, when no load is connected to the load connection circuit, Q3' does not conduct.
[0046] Furthermore, if a load is connected to the circuit, after the load is connected, there is current in D4 and C2. This current causes a voltage to be applied to C2, Q3 conducts, and the resistance of R5 is relatively small. C3 is connected in parallel with R5. At this time, C3 discharges into R5 (the resistance of R5 can be 0.5Ω). Due to the large discharge current, the voltage of C3 drops below the previous voltage and remains stable. This voltage causes the voltage of Q4 to increase. After the voltage of C3 decreases, the voltage between the drain of Q4 and VCC1 also decreases, causing the voltage at Q4 to increase. The voltage across R9 then decreases. When the voltage across C5 increases, Q3' conducts. When the voltage across C5 is greater than 0.7V, Q3' conducts. The conduction of Q3' affects the signal level at the optocoupler, i.e., the signal level detected by the first MCU. At this time, optocoupler diode OPTO1 (included in optocoupler isolation circuit 12) emits light, and the signal level of GPIO in the first MCU is pulled low (e.g., less than 1V). At this time, it can be determined that the load is connected. That is, if the first MCU detects that the signal level of GPIO is less than the preset level, it determines that the load is connected; otherwise, it determines that the load is not connected.
[0047] Optionally, C5 has two stable states: in one state, its voltage is less than 0.6V, and in the other state, its voltage is greater than 0.7V.
[0048] It should be noted that when no load is connected, Q3' is not conducting, and the switch group cannot be driven regardless of the input signal of the first MCU; the resistance of R13 needs to be large enough to prevent OPTO1 from entering the conducting state when the first MCU has no signal output.
[0049] When a load is connected and the switching group needs to be driven, the current of Q3' is provided by VCC3. When the switching group does not need to be driven, and Q3' is used to detect the connection status of the load, the current of Q3' is provided by VCC2 (at this time, the optocoupler is not conducting). The state of the collector of Q3' indicates whether the load is connected.
[0050] Furthermore, since Q4 periodically switches on and off, energy can be transferred to the secondary winding through the transformer. When Q4 is on, the current increases; when it is off, the current decreases. This process repeats, allowing energy to be transferred to the secondary winding. Furthermore, transformer T charges C3 through its corresponding terminal. When the voltage of C3 is stable, a stable voltage drop occurs across R9. The voltage across R9 charges C5. The voltage across C5 can be adjusted to be less than 0.6V by changing the resistance value of R9 or the duty cycle of the PWM wave.
[0051] Furthermore, when AC power supplies the circuit, C1 can be charged within one AC half-cycle. For example, when the AC voltage is positive, the current through R terminal, D1, C1, R3, D3 and C terminal will charge C1; when C1 discharges, Q1 and Q2 can be driven.
[0052] When Q3' is in the ON state, i.e., when the load is connected, the first MCU can drive the switch group by outputting a high level. Specifically, after the first MCU outputs a high level, C1 discharges, and one end of C1, the optocoupler, R1, the gate of Q1, the source of Q1, R2, and the other end of C1 are turned on, forming a circuit to drive Q1; and one end of C1, the optocoupler, R1, the gate of Q2, the source of Q2, R3, and the other end of C1 are turned on, forming a circuit to drive Q2.
[0053] Furthermore, regarding the operation of the protection circuit, when current flows through optocouplers OPTO1 and Q3' and the switching group is driven; when the current flowing through the switching group reaches the threshold, the voltage drop across R2 and R3 causes Q1' or Q2' to conduct, triggering a self-locking mechanism in the protection circuit. The gate and source of Q1 or Q2 are at a low impedance, preventing Q1 or Q2 from conducting, thus achieving current limiting and short-circuit protection. Adjusting the values of R2 and R3 can adjust the current limiting point.
[0054] The pulse width modulation wave generator can be implemented by a second MCU or a multivibrator. The output high-frequency square wave is used to drive the transformer T. The frequency of the pulse width modulation wave should be as high as possible, within the limits allowed by the switching transistor, to improve the sensitivity of impedance detection.
[0055] The signal transformer T can only handle high-frequency pulse width modulation (PWM) signals and has difficulty handling power frequency signals. When a load is connected, the power supply charges C2 through D4. When the charging voltage exceeds the conduction threshold of Q3, Q3 conducts, and resistor R5 is connected to the secondary winding, causing a change in the impedance of the transformer's secondary winding. This change is detected by the impedance change detection circuit in the primary winding.
[0056] The R and C terminals are the two AC power supply terminals. The AC power supply parameters can be 100–240Vac 50 / 60Hz for lighting systems, or 18–30Vac 50 / 60Hz for HVAC systems. Furthermore, the load in this application is often a passive load. The load connection detection in this application can be used for remote monitoring of load status or as an input variable for automatic control systems. It provides automatic protection after overcurrent or short circuit in a bidirectional switch, and the current limiting point and short circuit protection sensitivity are freely adjustable.
[0057] The detection circuit provided in this application includes: a control circuit, an optocoupler isolation circuit, a drive circuit, and a feedback circuit; wherein: the control circuit is connected to the optocoupler isolation circuit and is used to drive the working circuit through the optocoupler isolation circuit and the drive circuit; the optocoupler isolation circuit is connected to the drive circuit and is used to respond to the control signal of the control circuit so that the control circuit drives the working circuit through the drive circuit; the optocoupler isolation circuit is also connected to the feedback circuit so that the control circuit determines the load connection state of the working circuit through the feedback information generated by the optocoupler isolation circuit and the feedback circuit; the drive circuit is also connected to the working circuit; the feedback circuit is connected to the working circuit and is used to respond to the load connection state of the working circuit and generate the feedback information through the optocoupler isolation circuit, that is, to feed back the corresponding signal level to the control circuit, so as to achieve the technical effect that the control circuit has the function of driving a bidirectional switch while also having the function of acquiring the working state of the bidirectional switch.
[0058] An exemplary embodiment of this application provides a data processing method applicable to a control circuit. The method may include: detecting the signal level at a connection port to an optocoupler isolation circuit; if the signal level is greater than a preset level, determining that a load is connected to the operating circuit, wherein:
[0059] The control circuit is connected to the optocoupler isolation circuit and is used to drive the working circuit through the optocoupler isolation circuit and the driven circuit.
[0060] The optocoupler isolation circuit is connected to the drive circuit and is used to respond to the control signal of the control circuit so that the control circuit drives the working circuit through the drive circuit. The optocoupler isolation circuit is also connected to the feedback circuit so that the control circuit can determine the load connection status of the working circuit through the feedback information generated by the optocoupler isolation circuit and the feedback circuit.
[0061] The drive circuit is also connected to the working circuit;
[0062] The feedback circuit is connected to the working circuit and is used to respond to the load connection status of the working circuit. It generates the feedback information through the optocoupler isolation circuit, that is, it feeds back the corresponding signal level to the control circuit.
[0063] An exemplary embodiment of this application also provides a data processing apparatus, wherein the apparatus includes:
[0064] The detection module is used to detect the signal level at the connection port with the optocoupler isolation circuit;
[0065] The determination module is used to determine that there is a load connected to the working circuit when the detection module detects that the signal level is greater than the preset level.
[0066] It should be understood that the device embodiments and method embodiments can correspond to each other, and similar descriptions can be referred to the method embodiments. To avoid repetition, they will not be repeated here. Specifically, the device can execute the above method embodiments, and the foregoing and other operations and / or functions of each module in the device correspond to the corresponding processes in the various methods in the above method embodiments, which will not be repeated here for the sake of brevity.
[0067] The apparatus of this application embodiment has been described above from the perspective of functional modules in conjunction with the accompanying drawings. It should be understood that this functional module can be implemented in hardware, in software instructions, or in a combination of hardware and software modules. Specifically, the steps of the method embodiments in this application can be completed by integrated logic circuits in the processor's hardware and / or by software instructions. The steps of the method disclosed in this application embodiment can be directly embodied as being executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. Optionally, the software module can reside in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps in the above method embodiments.
[0068] Figure 6 This is a schematic block diagram of an electronic device provided in an embodiment of this application. The electronic device may include:
[0069] The system includes a memory 601 and a processor 602. The memory 601 stores computer programs and transfers the program code to the processor 602. In other words, the processor 602 can retrieve and run the computer programs from the memory 601 to implement the methods described in the embodiments of this application.
[0070] For example, the processor 602 can be used to execute the above-described method embodiments according to instructions in the computer program.
[0071] In some embodiments of this application, the processor 602 may include, but is not limited to:
[0072] General-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0073] In some embodiments of this application, the memory 601 includes, but is not limited to:
[0074] Volatile memory and / or non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Memory Bus RAM (DRRAM).
[0075] In some embodiments of this application, the computer program may be divided into one or more modules, which are stored in the memory 601 and executed by the processor 602 to perform the method provided in this application. The one or more modules may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the electronic device.
[0076] like Figure 6 As shown, the electronic device may also include:
[0077] Transceiver 603, which may be connected to processor 602 or memory 601.
[0078] The processor 602 can control the transceiver 603 to communicate with other devices; specifically, it can send information or data to other devices or receive information or data sent by other devices. The transceiver 603 may include a transmitter and a receiver. The transceiver 603 may further include antennas, and the number of antennas may be one or more.
[0079] It should be understood that the various components in the electronic device are connected through a bus system, which includes a data bus, a power bus, a control bus, and a status signal bus.
[0080] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer, enables the computer to perform the methods of the above-described method embodiments. Alternatively, embodiments of this application also provide a computer program product containing instructions that, when executed by a computer, cause the computer to perform the methods of the above-described method embodiments.
[0081] When implemented using software, it can be implemented entirely or partially as a computer program product. This computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DVD)), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0082] Those skilled in the art will recognize that the modules and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0083] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.
[0084] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. For example, the functional modules in the various embodiments of this application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0085] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A detection circuit, characterized in that, include: The circuit includes a control circuit, an optocoupler isolation circuit, a drive circuit, and a feedback circuit; among which: The control circuit is connected to the optocoupler isolation circuit and is used to drive the working circuit through the optocoupler isolation circuit and the driven circuit. The control circuit includes a first MCU, which is connected to the optocoupler isolation circuit and is used to determine the load connection state of the working circuit according to the signal level of the connection terminal with the optocoupler isolation circuit. The optocoupler isolation circuit is connected to the driving circuit and is used to respond to the control signal of the control circuit so that the control circuit drives the working circuit to work through the driving circuit; the optocoupler isolation circuit is also connected to the feedback circuit so that the control circuit determines the load connection status of the working circuit through the feedback information generated by the optocoupler isolation circuit and the feedback circuit. The driving circuit is also connected to the working circuit; The feedback circuit is connected to the working circuit and is used to respond to the load access status of the working circuit and generate the feedback information through the optocoupler isolation circuit; The feedback circuit includes an impedance detection circuit and an impedance transformation circuit. The impedance detection circuit is connected to the optocoupler isolation circuit and the impedance transformation circuit. The impedance transformation circuit is connected to the working circuit. The impedance transformation circuit is used to conduct the connection between the impedance detection circuit and the optocoupler isolation circuit according to the voltage of the connection terminal connected to the working circuit. The impedance transformation circuit includes a transformer T, a fourth diode D4, a second capacitor C2, a fourth resistor R4, and a third NMOS transistor Q3; the anode of the fourth diode D4 is connected to the drain of the first NMOS transistor Q1, and the cathode is connected to one end of the second capacitor C2; one end of the fourth resistor R4 is connected to one end of the second capacitor C2, and the other end is connected to the gate of the third NMOS transistor Q3. The detection circuit also includes a pulse width modulation wave generator, which is used to output a high-frequency square wave to drive the transformer T. The working circuit includes a load connection circuit and a switching group, the switching group including: a first NMOS transistor, a second NMOS transistor, a second diode and a third diode; When no load is connected, the voltage across the second capacitor C2 is insufficient to turn on the third NMOS transistor Q3, the impedance detection circuit cannot detect the impedance change, and the signal level detected by the first MCU is not greater than the preset level, so the first MCU cannot drive the switch group. When a load is connected, the power supply charges the second capacitor C2 through the fourth diode D4. When the charging voltage is higher than the conduction threshold of the third NMOS transistor Q3, the third NMOS transistor Q3 turns on, the impedance of the transformer secondary changes, and this change is detected by the primary impedance detection circuit. The signal level detected by the first MCU is greater than the preset level, and the first MCU drives the switch group by outputting a high level.
2. The detection circuit according to claim 1, characterized in that, The driving circuit includes a first diode, a first capacitor, and a first resistor. One end of the first diode is connected to the working circuit, and the other end is connected to the optocoupler isolation circuit and one end of the first capacitor. The other end of the first capacitor is connected to the working circuit. One end of the first resistor is connected to the optocoupler isolation circuit, and the other end is connected to the working circuit.
3. The detection circuit according to claim 2, characterized in that, The drain of the first NMOS transistor is connected to the load access circuit and the feedback circuit. The gate of the first NMOS transistor is connected to the other end of the first resistor. The source of the first NMOS transistor is connected to the source of the second NMOS transistor and the other end of the first capacitor C1. The gate of the second NMOS transistor is connected to the other end of the first resistor. The drain of the second NMOS transistor is connected to the feedback circuit. One end of the second diode is connected to the source of the first NMOS transistor, and the other end is connected to the drain of the first NMOS transistor; One end of the third diode is connected to the source of the second NMOS transistor, and the other end is connected to the drain of the second NMOS transistor.
4. The detection circuit according to claim 2, characterized in that, It also includes a protection circuit, which is connected to the other end of the first resistor and the working circuit to limit the current in the working circuit. The protection circuit includes a second resistor, a third resistor, a first transistor, and a second transistor, wherein: one end of the second resistor is connected to the source of the first NMOS transistor and the base of the first transistor in the working circuit; the other end of the second resistor is connected to the emitter of the first transistor; one end of the third resistor is connected to the source of the second NMOS transistor and the base of the second transistor in the working circuit; the emitter of the first transistor and the emitter of the second transistor are connected to the other end of the second resistor; and the collectors of the first transistor and the second transistor are both connected to the other end of the first resistor. One end of the third resistor is connected to the other end of the first capacitor.
5. The detection circuit according to claim 1, characterized in that, Also includes: A pulse width modulation wave generator is used to provide an initial stable voltage across the target capacitor in the impedance transformation circuit. When a load is connected to the working circuit, the initial stable voltage decreases, and the impedance transformation circuit turns on the impedance detection circuit based on the decreased voltage.
6. The detection circuit according to claim 3, characterized in that, One end of the load access circuit is connected to one end of the AC power supply, and the other end is connected to the drain of the first NMOS transistor. The drain of the second NMOS transistor is connected to the other end of the AC power supply.
7. The detection circuit according to claim 1, characterized in that, The load includes lamps and / or relays.
8. A testing device, characterized in that, The detection circuit includes the detection circuit described in any one of claims 1-7, wherein the detection circuit comprises: a control circuit, an optocoupler isolation circuit, a drive circuit, and a feedback circuit; wherein: The control circuit is connected to the optocoupler isolation circuit and is used to drive the working circuit through the optocoupler isolation circuit and the driving circuit. The control circuit includes a first MCU, which is connected to the optocoupler isolation circuit and is used to determine the load connection state of the working circuit based on the signal level of the connection terminal with the optocoupler isolation circuit. The optocoupler isolation circuit is connected to the driving circuit and is used to respond to the control signal of the control circuit so that the control circuit drives the working circuit to work through the driving circuit; the optocoupler isolation circuit is also connected to the feedback circuit so that the control circuit determines the load connection status of the working circuit through the feedback information generated by the optocoupler isolation circuit and the feedback circuit. The driving circuit is also connected to the working circuit; The feedback circuit is connected to the working circuit and is used to respond to the load access status of the working circuit and generate the feedback information through the optocoupler isolation circuit; The working circuit includes a load connection circuit and a switching group, the switching group including: a first NMOS transistor, a second NMOS transistor, a second diode and a third diode; When no load is connected, the first MCU cannot drive the switch group; when the load is connected, the first MCU drives the switch group by outputting a high level.
Citation Information
Patent Citations
Intelligent circuit breakers with solid-state bidirectional switches
US20200365346A1