Switching state detection circuit, detection method and inverter for DRED
By combining digital detection methods with analog signal conditioning, digital encoding, and isolation modules, the problem of switching status detection for photovoltaic grid-connected inverters and energy storage inverters in demand response mode is solved, achieving accurate detection of the controlled switch status of DRED and safe protection of the main control module.
Patent Information
- Application Number
- CN202611373468.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-04
- Publication Date
- 2026-11-24
AI Technical Summary
Existing photovoltaic grid-connected inverters and energy storage inverters cannot effectively detect the switching status of DREDs under demand response mode, resulting in the inability to recognize control commands and posing safety hazards.
The digital detection method uses a combination of analog signal conditioning module, digital encoding module, digital isolation module and main control module to detect the state of the DRED controlled switch, and the digital isolation module realizes signal isolation between the main control module and DRED to protect the safety of the main control module.
It enables accurate detection of the DRED controlled switch status, improves the overall insulation withstand voltage performance, protects the safety of the main control module, simplifies the circuit structure, and reduces costs.
Smart Images

Figure CN123156002A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of inverter technology, and specifically to a DRED switching state detection circuit, detection method, and inverter. Background Technology
[0002] Currently, some countries and regions have issued safety standards for photovoltaic grid-connected inverters and energy storage inverters that explicitly define demand response modes. For example, the Australian and New Zealand joint standard AS NZS 4777.22020 clearly specifies the requirements for DRMs (Demand Response Modes). This standard requires the use of an external DRED (Demand Response Enabling Device) to transmit commands to control the inverter to switch to different operating modes.
[0003] To meet the above requirements, a signal detection circuit needs to be added to detect the switch status in the DRED, and then identify the control commands of the DRED. Summary of the Invention
[0004] In view of this, this application provides a switch state detection circuit, detection method and inverter for DRED, which can detect the controlled switch state of DRED through digital detection, and sets digital isolation between the main control module and DRED to protect the safety of the main control module.
[0005] In a first aspect, embodiments of the present invention provide a switch state detection circuit for a DRED, wherein the DRED includes a group of switches to be tested and a common group of switches, and the switch state detection circuit includes: Analog signal conditioning module, digital encoding module, digital isolation module, and main control module; The analog signal conditioning module is connected to the switch group under test and outputs a signal to be encoded to the digital encoding module to represent the switch state in the switch group under test. The analog signal conditioning module is connected to the common switch group and outputs a common voltage signal to the digital isolation module to indicate the switch status in the common switch group. The digital encoding module performs digital encoding on the signal to be encoded to obtain a digital encoded signal, and outputs it to the digital isolation module; The digital isolation module outputs the digital coded signal and the common voltage signal to the main control module; The main control module determines the state of the controlled switch in the DRED based on the digital encoded signal and the common voltage signal.
[0006] In some embodiments, the DRED includes a plurality of the groups of switches under test; The switch state detection circuit further includes: a multiplexing selection module; The multiplexing selection module receives the multiplexing selection signal sent by the main control module and the signal to be encoded from the multiple groups of switches under test output by the analog signal conditioning module through the digital isolation module; and selects the signal to be encoded from one of the multiple groups of switches under test according to the multiplexing selection signal and outputs it to the digital encoding module for digital encoding.
[0007] In some embodiments, the DRED includes a plurality of the switch groups under test, and the analog signal conditioning module outputs the signals to be encoded for each of the plurality of switch groups under test. The number of the digital encoding modules is multiple; Each of the multiple digital encoding modules corresponds one-to-one with the signals to be encoded from the multiple groups of switches under test output by the analog signal conditioning module, and is used to digitally encode the received signals to be encoded.
[0008] In some embodiments, the switch group under test includes: a first controlled switch and a second controlled switch; The common switch group includes: a third controlled switch and a fourth controlled switch; The second controlled switch is connected in series with the first controlled switch; The third controlled switch is connected in parallel with the series branch of the second controlled switch and the first controlled switch; The first terminal of the fourth controlled switch is connected to the parallel node of the third controlled switch and the first controlled switch; The DRED further includes a first resistor, which is connected in parallel with the series branch of the second controlled switch and the first controlled switch; The analog signal conditioning module includes: Power supply; Grounding terminal; The voltage divider branch includes a second resistor and a third resistor, which are connected in series between the power supply and ground. The series connection of the second resistor and the third resistor is connected to the series connection of the second controlled switch and the first controlled switch via a first signal line, which is used to output the encoded signal of the connected switch group under test. The parallel node of the third controlled switch and the second controlled switch is connected to the power supply. The second terminal of the fourth controlled switch is connected to the fourth resistor via a second signal line. The fourth resistor is grounded, and the second signal line is used to output the common voltage signal.
[0009] In some embodiments, the digital encoding module includes: a first comparator and a second comparator; The inverting input of the first comparator is connected to the first reference voltage, and the non-inverting input is connected to the output of the signal to be encoded of the analog signal conditioning module. The inverting input of the second comparator is connected to the second reference voltage, and the non-inverting input is connected to the output of the signal to be encoded of the analog signal conditioning module. The first comparator outputs a first digital signal based on the comparison result between the signal to be encoded and the first reference voltage; The second comparator outputs a second digital signal based on the comparison result between the signal to be encoded and the second reference voltage; The first digital signal and the second digital signal constitute the digital coded signal.
[0010] In some embodiments, the signal to be encoded for the switch group under test output by the analog signal conditioning module is a high-level signal, a low-level signal, or an intermediate-level signal, wherein the intermediate-level signal is greater than the low-level signal and less than the high-level signal; The digital encoding module encodes the signal to be encoded into a two-digit coded signal containing 0 and / or 1.
[0011] Secondly, embodiments of the present invention provide a method for detecting the switching state of a DRED, the method being applied to the switching state detection circuit of the DRED described in the first aspect or any one of the first aspects, the method comprising: Receive common voltage signal; Receive digitally encoded signals; Determine whether the controlled switch in the DRED is in an undefined state based on the common voltage signal; If not, the state of the controlled switch in DRED is determined based on the value of each digital bit in the digital encoded signal.
[0012] In some embodiments, the DRED's switch group under test includes: a first controlled switch and a second controlled switch; The common switch group of the DRED includes: a third controlled switch and a fourth controlled switch, wherein the fourth controlled switch is normally closed; The controlled switch in the DRED is in an undefined state, including: Both the first controlled switch and the second controlled switch in the switch group under test are in the closed state; or... The third controlled switch in the common switch group is in the closed state; Specifically, when the common voltage signal is high, it is determined that the controlled switch in the DRED is in an undefined state.
[0013] In some embodiments, determining the state of the controlled switch in DRED based on the value of each digital bit in the digitally encoded signal includes: When the digital encoding signal is 10, both the first controlled switch and the second controlled switch are in the off state; When the digital encoding signal is 00, the first controlled switch is in the closed state and the second controlled switch is in the open state; When the digital encoding signal is 11, the first controlled switch is in the open state and the second controlled switch is in the closed state.
[0014] Thirdly, embodiments of the present invention provide an inverter, the inverter including the switching state detection circuit of the DRED as described in the first aspect or any one of the first aspects.
[0015] The switching state detection circuit, detection method, and inverter of the DRED according to embodiments of the present invention have at least the following beneficial effects: In the switch state detection circuit of the DRED in this embodiment of the invention, the detection of the controlled switch state of the DRED is realized by digital detection. Moreover, the DRED switch signal is isolated from the signal of the main control module through a digital isolation module, thereby improving the insulation withstand voltage performance of the whole machine and protecting the safety of the main control module. Attached Figure Description
[0016] Figure 1 This is a schematic diagram of the switching state detection circuit of a DRED provided in an embodiment of the present invention; Figure 2 A schematic diagram of another DRED switch state detection circuit provided in an embodiment of the present invention; Figure 3 A schematic diagram of another DRED switching state detection circuit provided in an embodiment of the present invention; Figure 4 A circuit structure diagram of a DRED and an analog signal conditioning module provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of the switching state detection circuit of a DRED provided in an embodiment of the present invention; Figure 6 A schematic diagram of the switching state detection circuit of another DRED provided in an embodiment of the present invention; Figure 7 This is a schematic diagram of the structure of a digital encoding module provided in an embodiment of the present invention; Figure 8A table relating digital coded signals to switch states is provided for embodiments of the present invention. Figure 9 A flowchart of a DRED switch state detection method provided in an embodiment of the present invention; Figure 10 A flowchart of another DRED switching state detection method provided in an embodiment of the present invention. Detailed Implementation
[0017] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0018] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0019] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0020] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0021] See Figure 1 This is a schematic diagram of the switching state detection circuit of a DRED provided in an embodiment of the present invention. Figure 1 As shown, the DRED includes a group of switches under test and a common switch group. The switch state detection circuit includes: an analog signal conditioning module, a digital encoding module, a digital isolation module, and a main control module. The analog signal conditioning module is connected to the group of switches under test and the common switch group in the DRED. The analog signal conditioning module is also connected to the digital encoding module and the digital isolation module, and the digital isolation module is connected to the main control module.
[0022] exist Figure 1 In the switch state detection circuit shown, the analog signal conditioning module is connected to the DRED's switch group under test and can output an coded signal representing the switch state of the switch group to the digital encoding module. The analog signal conditioning module is connected to the DRED's common switch group and can output a common voltage signal representing the switch state of the common switch group to the digital isolation module.
[0023] The digital encoding module digitally encodes the signal to be encoded output from the analog signal conditioning module to obtain a digitally encoded signal, which is then output to the digital isolation module. In other words, the digital encoding module digitally encodes the signal used to represent the switching state of the switch group under test in the DRED, and the resulting digitally encoded signal is used to represent the switching state of the switch group under test.
[0024] The digital isolation module transmits the digitally encoded signal and the common voltage signal to the main control module. The main control module determines the state of the controlled switches in the DRED based on the digitally encoded signal and the common voltage signal.
[0025] Understandable, Figure 1 In the switch state detection circuit shown, the digital encoding signal output by the digital encoding module represents the switch state of the switch group under test in the DRED, and the common voltage signal output by the analog signal conditioning module represents the switch state of the common switch group in the DRED. The digital encoding signal and the common voltage signal are sent to the main control module through the digital isolation module. The main control module can determine the switch state of each controlled switch in the DRED based on the digital encoding signal and the common voltage signal, and then identify the control command of the DRED. In this embodiment of the invention, the switch state detection circuit of the DRED uses digital detection to detect the state of the controlled switches of the DRED, and the signal isolation between the DRED switch signal and the main control module is achieved through the digital isolation module, which improves the insulation withstand voltage performance of the whole machine and protects the safety of the main control module.
[0026] See Figure 2 This is a schematic diagram of another DRED switch state detection circuit provided in an embodiment of the present invention. Figure 2 As shown, the DRED includes multiple groups of switches under test (DUTs), each connected to an analog signal conditioning module. The analog signal conditioning module detects and outputs the coded signals for these multiple DUTs. To facilitate the main control module's detection of the switching states of these multiple DUTs, the DRED's switch state detection circuit also includes a multiplexing selection module. For example... Figure 2As shown, the multiplexing selection module is connected to the main control module via a digital isolation module. The multiplexing selection module is also connected to a digital encoding module and an analog signal conditioning module. The multiplexing selection module receives the multiplexing selection signal sent by the main control module and the signals to be encoded from multiple switch groups under test (DUTs) output by the analog signal conditioning module via the digital isolation module. Based on the multiplexing selection signal output by the main control module, the multiplexing selection module selects one DUT signal from the multiple DUT signals and outputs it to the digital encoding module for digital encoding. The digital encoding module outputs a digitally encoded signal for one DUT to the digital isolation module. The digital isolation module sends the received digitally encoded signal and a common voltage signal to the main control module. The main control module determines the switching state of the corresponding DUT based on the multiplexing selection signal, the digitally encoded signal, and the common voltage signal.
[0027] In a specific example, DRED includes four groups of switches under test. The main control module can encode these four groups of switches using a two-digit code, for example, 00, 01, 10, and 11 respectively. The multiplexing selection signal issued by the main control module can include the code for one group of switches under test, such as 01. Based on the code 01 in the multiplexing selection signal, the multiplexing selection module can send the signal to be encoded for the group of switches under test corresponding to 01 (referred to as group 01 of switches under test) to the digital encoding module. The digital encoding module performs digital encoding on the signal to be encoded for group 01 of switches under test. Based on the digitally encoded signal of group 01 of switches under test and the common voltage signal, the main control module can determine the switch status of group 01 of switches under test and the common switch group.
[0028] exist Figure 2 In the switch state detection circuit shown, a multiplexing selection module is provided. This module allows for flexible configuration of the switch groups to be detected. Furthermore, by selecting and outputting the signal to be encoded from one switch group for digital encoding and transmission via the multiplexing selection module, the number of pins occupied by the signal to be encoded in the digital encoding module and the digitally encoded signal in the digital isolation module can be reduced, simplifying the structure of the switch state detection circuit. Moreover, in this embodiment, the detection of the DRED switch state is achieved through a fully digital scheme. Furthermore, the switch state of all controlled switches in the DRED can be determined by combining the digitally encoded signals of each switch group and the common voltage signal of the common switch group, achieving full coverage detection of the controlled switches in the DRED.
[0029] See Figure 3 This is a schematic diagram of another DRED switching state detection circuit provided in an embodiment of the present invention. Figure 3As shown, the DRED includes multiple groups of switches under test. Each group of switches under test in the DRED is connected to an analog signal conditioning module, which outputs the signal to be encoded for each of the multiple groups of switches under test. Figure 2 Unlike the circuit shown, the switch state detection circuit in this embodiment of the invention does not include a multiplexing selection module, but instead includes multiple digital encoding modules. Each of the multiple digital encoding modules corresponds one-to-one with the encoding signals of multiple switch groups under test output by the analog signal conditioning module. Each digital encoding module digitally encodes the encoding signal of one switch group under test that it receives.
[0030] In this embodiment of the invention, each digital encoding module digitally encodes the signal to be encoded for one group of switches under test and sends the digitally encoded signal to a digital isolation module. The digital isolation module then sends the digitally encoded signals from each digital encoding module to the main control module. Multiple digital isolation modules can be used. For example, if there are four groups of switches under test, the digital isolation module includes a digital isolator 1, a digital isolator 2, and an optocoupler. Digital isolator 1 sends the encoded signals of two groups of switches under test to the main control module, digital isolator 2 sends the encoded signals of the remaining two groups of switches under test to the main control module, and the optocoupler sends the common voltage signal to the main control module. The main control module determines the switch state of each group of switches under test and the common switch group based on the received digitally encoded signals and the common voltage signal.
[0031] exist Figure 3 In the circuit shown, the detection of the DRED switch state is achieved through a fully digital scheme, and the isolation between the DRED and the main control module is achieved through digital isolators and optocouplers. This eliminates the need for linear isolators such as isolation operational amplifiers and proportional amplifier circuits, reducing circuit complexity and cost, and simplifying the processing difficulty of the main control module.
[0032] Furthermore, this embodiment of the invention also provides a specific structure for a switch group under test and a common switch group. The switch group under test includes two controlled switches (such as a first controlled switch and a second controlled switch), and the common switch group includes two controlled switches (such as a third controlled switch and a fourth controlled switch). The second controlled switch is connected in series with the first controlled switch, the third controlled switch is connected in parallel with the series branch of the second and first controlled switches, and the first terminal of the fourth controlled switch is connected to the parallel node of the third controlled switch. The DRED also includes a first resistor, which is connected in parallel with the series branch of the second and first controlled switches. Under this structural design of the switch group under test and the common switch group, this embodiment of the invention also provides a structure for an analog signal conditioning module. The analog signal conditioning module includes a power supply, a ground terminal, and a voltage divider branch. The voltage divider branch includes a second resistor and a third resistor, which are connected in series between the power supply and ground; that is, the second resistor is a pull-up resistor, and the third resistor is a pull-down resistor. The series connection of the second and third resistors is connected to the series connection of the second and first controlled switches via a first signal line. This first signal line is used to output the encoded signal of the connected switch group under test. The parallel connection of the third and second controlled switches is connected to the power supply. The second terminal of the fourth controlled switch is connected to one end of the fourth resistor via the second signal line, and the other end of the fourth resistor is grounded. This second signal line is used to output the common voltage signal of the common switch group.
[0033] Based on the aforementioned structures of the under-test switch group, common switch group, and analog signal conditioning module, this embodiment of the invention provides a specific circuit structure for the DRED and the analog signal conditioning module. For example... Figure 4 As shown, DRED includes controlled switches S0-S9, which are divided into 4 groups of switches under test and 1 common switch group. Controlled switches S1 and S5 are connected in series to form the first group of switches under test, with S1 corresponding to the first controlled switch in the same group and S5 corresponding to the second controlled switch. Controlled switches S2 and S6 are connected in series to form the second group of switches under test, with S2 corresponding to the first controlled switch in the same group and S6 corresponding to the second controlled switch. Controlled switches S3 and S7 are connected in series to form the third group of switches under test, with S3 corresponding to the first controlled switch in the same group and S7 corresponding to the second controlled switch. Controlled switches S4 and S8 are connected in series to form the fourth group of switches under test, with S4 corresponding to the first controlled switch in the same group and S8 corresponding to the second controlled switch. Controlled switches S0 and S9 form a common switch group, where controlled switch S0 corresponds to the third controlled switch, and controlled switch S9 corresponds to the fourth controlled switch. For example... Figure 4As shown, four groups of switches under test are connected in parallel. Specifically, the first terminals (indicated by number 1) of controlled switches S1, S2, S3, and S4 are connected in parallel, and the second terminals (indicated by number 2) of controlled switches S5, S6, S7, and S8 are connected in parallel. Resistor R10 is connected in parallel with each group of switches under test. The parallel connection node of controlled switches S5, S6, S7, S8, and resistor R10 is connected to the power supply V-ISO via the signal line REF_GEN. The second terminal (indicated by number 2) of controlled switch S0 (corresponding to the third controlled switch mentioned above) is connected to the parallel connection node of S5, S6, S7, and S8. The first terminal (indicated by number 1) of controlled switch S0 is connected to the first terminal (indicated by number 1) of controlled switch S9 (corresponding to the fourth controlled switch). The second terminal (indicated by number 2) of controlled switch S9 is connected to resistor R9 via the signal line COM_LOAD. Resistor R9 is grounded.
[0034] Furthermore, such as Figure 4 As shown, the analog signal conditioning module includes the aforementioned power supply V-ISO and ground terminal ISO-GND, and also includes four voltage divider branches connected in parallel between the power supply V-ISO and the ground terminal ISO-GND. These four voltage divider branches are specifically: the first branch consisting of resistors R1 and R5 in series; the second branch consisting of resistors R2 and R6 in series; the third branch consisting of resistors R3 and R7 in series; and the fourth branch consisting of resistors R4 and R8 in series. Figure 4 As shown, the four groups of switches under test correspond one-to-one with the four voltage divider branches. In the first group of switches under test, the series connection of controlled switches S1 and S5 is connected to the series connection of resistors R1 and R5 in the first voltage divider branch via signal line DRM1 / 5. Signal line DRM1 / 5 is used to output the encoded signal indicating the switching state of controlled switches S1 and S5. In the second group of switches under test, the series connection of controlled switches S2 and S6 is connected to the series connection of resistors R2 and R6 in the second voltage divider branch via signal line DRM2 / 6. Signal line DRM2 / 6 is used to output the encoded signal indicating the switching state of controlled switches S2 and S6. In the third group of switches under test, the series connection of controlled switches S3 and S7 is connected to the series connection of resistors R3 and R7 in the third voltage divider branch via signal line DRM3 / 7. Signal line DRM3 / 7 is used to output the encoded signal indicating the switching state of controlled switches S3 and S7. In the fourth test switch group, the series connection of controlled switches S4 and S8 is connected to the series connection of resistors R4 and R8 in the fourth voltage divider branch via signal line DRM4 / 8. Signal line DRM4 / 8 is used to output the encoded signal indicating the switching state of controlled switches S4 and S8. Signal line COM_LOAD is used to output the common voltage signal indicating the switching state of controlled switches S0 and S9 in the common switch group.
[0035] exist Figure 4In the circuit, signal line REF_GEN is directly connected to power supply V_ISO, signal line COM_LOAD is pulled down to ground ISO_GND through resistor R9, and signal lines DRM1 / 5~DRM4 / 8 are pulled up to power supply V_ISO and pulled down to ground ISO_GND through resistors respectively.
[0036] exist Figure 4 In the circuit shown, resistor R9 is much smaller than resistor R10. The two resistors in each voltage divider branch have the same resistance value and are much larger than resistor R9. For example, resistor R1=R5=200KΩ, resistor R9=510Ω, and resistor R10=15KΩ.
[0037] based on Figure 4 The present invention also provides a switching state detection circuit for the DRED, as shown in the DRED and analog signal conditioning module embodiments. Figure 5 As shown, the switch state detection circuit includes a main control module, a digital isolation module, a digital encoding module, an analog signal conditioning module, and a DRED. The digital isolation module includes a digital isolator and an optocoupler. The digital isolator is used to send the encoded signal of a switch group under test output by the digital encoding module to the main control module, and the optocoupler is used to send the common voltage signal of the common switch group to the main control module. Figure 5 In the circuit shown, the main control module sends a multiplexing selection signal and receives the encoded signal of a switch group under test corresponding to the multiplexing selection signal. Based on the encoded signal of the switch group under test and the common switch signal, the main control module determines the switching state of each controlled switch in the switch group under test and the common switch group. When the main control module needs to determine the switching state of other switch groups under test, it can send the numbers of the other switch groups under test to the multiplexing selection module, thereby controlling the multiplexing selection module to send the encoded signals of the other switch groups under test to the main control module.
[0038] based on Figure 4 The DRED and analog signal conditioning module shown in the embodiment of the present invention provide yet another DRED switching state detection circuit. For example... Figure 6 As shown, the switch state detection circuit includes a main control module, a digital isolation module, a digital encoding module, an analog signal conditioning module, and a DRED. There are four digital encoding modules, each corresponding to one of the four groups of switches under test in the DRED. Each digital encoding module outputs the encoded signal for one group of switches under test. The digital isolation module includes digital isolator 1, digital isolator 2, and an optocoupler. Digital isolator 1 sends the encoded signals of two groups of switches under test to the main control module, digital isolator 2 sends the encoded signals of the remaining two groups of switches under test to the main control module, and the optocoupler sends the common voltage signal of the common switch group to the main control module. Figure 6In the circuit shown, the main control module obtains the encoded signal of each switch group to be tested, and receives the common switch signal. The main control module determines the switching state of each controlled switch in each switch group to be tested and the common switch group according to the encoded signal of each switch group to be tested and the common switch signal.
[0039] In conjunction with Figures 4-6 , the following description takes one switch group to be tested, such as the first switch group to be tested (controlled switch S1 and controlled switch S5) as an example, to describe the closed / open state of each controlled switch in the switch group to be tested, and the signal to be encoded output by the analog signal conditioning module.
[0040] In the circuit shown in Figures 4-6 , the controlled switch S9 is in a normally closed state. When the controlled switch S0 is closed, the signal line COM_LOAD is short-circuited with the signal line REF_GEN, and the voltage on the signal line COM_LOAD is at a high level, which corresponds to the mode DRM0. When the controlled switch S0 is open, the signal line COM_LOAD is pulled down to the ground terminal ISO_GND through the resistor R9 and divided by the internal resistor R10 of DRED. Since R9 << R10, the voltage on the signal line COM_LOAD is at a low level, which corresponds to the non-DRM0 mode. In the non-DRM0 mode, the switching states of the controlled switches S1 to S8 need to be determined.
[0041] Specifically, in the non-DRM0 mode, when the controlled switches S1 and S5 are in different closed / open states, the voltage on the signal line DRM1 / 5 is different, specifically: (1) When the controlled switch S1 is closed and S5 is open, the signal line DRM1 / 5 is connected to ISO_GND through S1 → S9 → R9. Since the resistor R9 is much smaller than all other resistors, the signal to be encoded output by the signal line DRM1 / 5 is: low level ISO_GND.
[0042] (2) When the controlled switch S1 is open and S5 is closed, the signal line DRM1 / 5 is directly connected to the power supply V_ISO through the controlled switch S5, and the signal to be encoded output by the signal line DRM1 / 5 is: high level V_ISO.
[0043] (3) When the controlled switches S1 and S5 are both open, the signal line DRM1 / 5 is divided by the equal resistors R1 and R5, and the signal to be encoded output by the signal line DRM1 / 5 is: intermediate level 0.5 V_ISO.
[0044] (4) When both the controlled switches S1 and S5 are closed, the signal line DRM1 / 5 outputs a high level, and the signal line COM_LOAD also outputs a high level. At this time, this state is equivalent to the controlled switch S0 being closed, and the current state is equivalent to the mode DRM0. The embodiment of the present invention refers to the mode DRM0 and the state where both the controlled switches S1 and S5 are closed as an undefined state.
[0045] It can be understood from the above description that the analog signal conditioning module is connected to the switch group to be tested, and the output signal to be encoded includes: a low-level signal (such as low level ISO_GND), a high-level signal (such as high level V_ISO), and an intermediate-level signal (such as intermediate level 0.5 V_ISO). The analog signal conditioning module sends the signal to be encoded to the digital encoding module, and the digital encoding module can encode the signal to be encoded into a two-bit digital encoding signal including 0 and / or 1.
[0046] Refer to Figure 7 , which is a schematic structural diagram of a digital encoding module provided by an embodiment of the present invention. As shown in Figure 7 , the digital encoding module includes a first comparator U1 and a second comparator U2. The inverting input terminal of the first comparator U1 is connected to a first reference voltage V-REF1, and the inverting input terminal of the second comparator U2 is connected to a second reference voltage V-REF2. The non-inverting input terminals of the first comparator U1 and the second comparator U2 are both connected to the signal-to-be-encoded output terminal of the analog signal conditioning module, for example, the non-inverting input terminals of the first comparator U1 and the second comparator U2 are both connected to the signal line DRM1 / 5. The first comparator U1 outputs a first digital signal according to the comparison result between the signal to be encoded and the first reference voltage V-REF1. The second comparator U2 outputs a second digital signal according to the comparison result between the signal to be encoded and the second reference voltage V-REF2. The first digital signal and the second digital signal form a digital encoding signal.
[0047] In a specific example, the first reference voltage V-REF1 is set to 1 / 3 V_ISO, and the second reference voltage V-REF2 is set to 2 / 3 VISO.
[0048] (1) When the signal to be encoded on the signal line DRM1 / 5 is the low level ISO_GND, DRM1 / 5 < V_REF1 and DRM1 / 5 < V_REF2, then the output terminal DRM1 / 5-1 of the first comparator U1 outputs digital encoding 0, and the output terminal DRM1 / 5-2 of the second comparator U2 outputs digital encoding 0.
[0049] (2) When the signal to be encoded on the signal line DRM1 / 5 is at the high level V_ISO, DRM1 / 5>V_REF1 and DRM1 / 5>V_REF2, the output terminal DRM1 / 5-1 of the first comparator U1 outputs a digital code 1, and the output terminal DRM1 / 5-2 of the second comparator U2 outputs a digital code 1.
[0050] (3) When the signal to be encoded on the signal line DRM1 / 5 is at the intermediate level 0.5 V_ISO, DRM1 / 5>V_REF1 and DRM1 / 5<V_REF2, the output terminal DRM1 / 5-1 of the first comparator U1 outputs a digital code 1, and the output terminal DRM1 / 5-2 of the second comparator U2 outputs a digital code 0.
[0051] After receiving the digital encoded signal through the digital isolation module, the main control module can infer the switch states of each controlled switch in the switch group to be tested and the common switch group according to the digital encoded signal. The digital isolation module shown in Figure 7 can be applied to the circuits shown in Figure 5 and Figure 6 . In the circuit shown in Figure 5 , adding a multiplexing selection module after the analog signal conditioning module, only one digital encoding module as shown in Figure 7 is required to encode the signal to be encoded, and it can reduce the occupation of data transmission channels of digital isolation devices and the main control module, simplifying the circuit structure. In the circuits shown in Figure 5 and Figure 6 , the common voltage signal is a digital quantity, and a single-channel isolation device (such as an optocoupler) can be used for isolation, without occupying the data channel of the digital isolator.
[0052] See Figure 8 , which is a comparison table of digital encoded signals and switch states provided by an embodiment of the present invention. As shown in Figure 8 , when the COM_LOAD output is 0, the DRM1 / 5-1 output is 1, and the DRM1 / 5-2 output is 0, both controlled switches S1 and S5 are in an open state. When the COM_LOAD output is 0, the DRM1 / 5-1 output is 0, and the DRM1 / 5-2 output is 0, the controlled switch S1 is in a closed state, and the controlled switch S5 is in an open state. When the COM_LOAD output is 0, the DRM1 / 5-1 output is 1, and the DRM1 / 5-2 output is 1, the controlled switch S1 is in an open state, and the controlled switch S5 is in a closed state. When the COM_LOAD output is 1, both controlled switches S1 and S5 are in a closed state, which is an undefined state.
[0053] Combining the DRED's switch state detection circuit and the correspondence between the controlled switch state and the encoded signal, this embodiment of the invention also provides a DRED switch state detection method. The main control module is the primary execution unit of this method. Figure 9 As shown, the processing steps of this method include: S701 receives a common voltage signal.
[0054] S702 receives digitally encoded signals.
[0055] S703: Determine whether the controlled switch in DRED is in an undefined state based on the common voltage signal. If the controlled switch in DRED is in an undefined state, an alarm message needs to be issued to allow manual maintenance of DRED. If the controlled switch in DRED is not in an undefined state, proceed to step S704.
[0056] S704 determines the state of the controlled switch in DRED based on the values of each digital bit in the digital encoded signal.
[0057] In some embodiments, the DRED's test switch group includes a first controlled switch and a second controlled switch; the DRED's common switch group includes a third controlled switch and a fourth controlled switch, with the fourth controlled switch being normally closed. Therefore, the controlled switches in the DRED being in an undefined state includes: both the first and second controlled switches in the test switch group being closed; or, the third controlled switch in the common switch group being closed.
[0058] In some embodiments, when the common voltage signal received by the main control module is high, it is determined that the controlled switch in the DRED is in an undefined state.
[0059] In some embodiments, determining the state of the controlled switch in the DRED based on the values of each digital bit in the digitally encoded signal includes: When the digital encoding signal is 10, both the first and second controlled switches are in the off state.
[0060] When the digital encoding signal is 00, the first controlled switch is in the closed state and the second controlled switch is in the open state.
[0061] When the digital encoding signal is 11, the first controlled switch is in the open state and the second controlled switch is in the closed state.
[0062] See Figure 10 This is a flowchart of another DRED switching state detection method provided by an embodiment of the present invention. Figure 10 As shown, the processing steps of this method include: S801 receives common voltage signals and digitally encoded signals.
[0063] S802, determine whether the common voltage signal is a high-level signal; if yes, issue an alarm command. If no, proceed to step S803.
[0064] S803, when the multiplexing selection signal output is 00, selects the first switch group under test and obtains the digital encoding signal of signal line DRM1 / 5. When the digital encoding signal is 10, both S1 and S5 are open; when the digital encoding signal is 00, S1 is closed and S5 is open; when the digital encoding signal is 11, S1 is open and S5 is closed.
[0065] S804, the multiplexing selection signal output is 01, which corresponds to the selection of the second switch group under test, and obtains the digital encoding signal of signal line DRM2 / 6. When the digital encoding signal is 10, S2 and S6 are both open; when the digital encoding signal is 00, S2 is closed and S6 is open; when the digital encoding signal is 11, S2 is open and S6 is closed.
[0066] S805, the multiplexing selection signal output is 10, which corresponds to the selection of the third switch group under test, and obtains the digital encoding signal of signal line DRM3 / 7. When the digital encoding signal is 10, both S3 and S7 are open; when the digital encoding signal is 00, S3 is closed and S7 is open; when the digital encoding signal is 11, S3 is open and S7 is closed.
[0067] S806, the multiplexing selection signal output is 11, which corresponds to the selection of the fourth switch group under test, and obtains the digital encoding signal of signal line DRM4 / 8. When the digital encoding signal is 10, S4 and S8 are both open; when the digital encoding signal is 00, S4 is closed and S8 is open; when the digital encoding signal is 11, S4 is open and S8 is closed.
[0068] Furthermore, this embodiment of the invention also provides an inverter that includes the switching state detection circuit of the DRED described above.
[0069] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the device embodiments and terminal embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.
Claims
1. A switch state detection circuit for a DRED, wherein the DRED includes a group of switches to be tested and a common switch group, characterized in that, The switch state detection circuit includes: Analog signal conditioning module, digital encoding module, digital isolation module, and main control module; The analog signal conditioning module is connected to the switch group under test and outputs a signal to be encoded to the digital encoding module to represent the switch state in the switch group under test. The analog signal conditioning module is connected to the common switch group and outputs a common voltage signal to the digital isolation module to indicate the switch status in the common switch group. The digital encoding module performs digital encoding on the signal to be encoded to obtain a digital encoded signal, and outputs it to the digital isolation module; The digital isolation module outputs the digital coded signal and the common voltage signal to the main control module; The main control module determines the state of the controlled switch in the DRED based on the digital encoded signal and the common voltage signal.
2. The DRED switch state detection circuit according to claim 1, characterized in that, The DRED includes multiple groups of switches under test; The switch state detection circuit further includes: a multiplexing selection module; The multiplexing selection module receives the multiplexing selection signal sent by the main control module and the signal to be encoded from the multiple groups of switches under test output by the analog signal conditioning module through the digital isolation module; and selects the signal to be encoded from one of the multiple groups of switches under test according to the multiplexing selection signal and outputs it to the digital encoding module for digital encoding.
3. The DRED switch state detection circuit according to claim 1, characterized in that, The DRED includes multiple groups of switches under test, and the analog signal conditioning module outputs the signals to be encoded for each of the multiple groups of switches under test. The number of the digital encoding modules is multiple; Each of the multiple digital encoding modules corresponds one-to-one with the signals to be encoded from the multiple groups of switches under test output by the analog signal conditioning module, and is used to digitally encode the received signals to be encoded.
4. The switching state detection circuit of DRED according to any one of claims 1-3, characterized in that, The switch group under test includes: a first controlled switch and a second controlled switch; The common switch group includes: a third controlled switch and a fourth controlled switch; The second controlled switch is connected in series with the first controlled switch; The third controlled switch is connected in parallel with the series branch of the second controlled switch and the first controlled switch; The first terminal of the fourth controlled switch is connected to the parallel node of the third controlled switch and the first controlled switch; The DRED further includes a first resistor, which is connected in parallel with the series branch of the second controlled switch and the first controlled switch; The analog signal conditioning module includes: Power supply; Grounding terminal; The voltage divider branch includes a second resistor and a third resistor, which are connected in series between the power supply and ground. The series connection of the second resistor and the third resistor is connected to the series connection of the second controlled switch and the first controlled switch via a first signal line, which is used to output the encoded signal of the connected switch group under test. The parallel node of the third controlled switch and the second controlled switch is connected to the power supply. The second terminal of the fourth controlled switch is connected to the fourth resistor via a second signal line. The fourth resistor is grounded, and the second signal line is used to output the common voltage signal.
5. The DRED switch state detection circuit according to claim 1 or 3, characterized in that, The digital encoding module includes: a first comparator and a second comparator; The inverting input of the first comparator is connected to the first reference voltage, and the non-inverting input is connected to the output of the signal to be encoded of the analog signal conditioning module. The inverting input of the second comparator is connected to the second reference voltage, and the non-inverting input is connected to the output of the signal to be encoded of the analog signal conditioning module. The first comparator outputs a first digital signal based on the comparison result between the signal to be encoded and the first reference voltage; The second comparator outputs a second digital signal based on the comparison result between the signal to be encoded and the second reference voltage; The first digital signal and the second digital signal constitute the digital coded signal.
6. The DRED switch state detection circuit according to claim 5, characterized in that, The signal to be encoded for the switch group under test output by the analog signal conditioning module is: a high-level signal, a low-level signal, or an intermediate-level signal, wherein the intermediate-level signal is greater than the low-level signal and less than the high-level signal; The digital encoding module encodes the signal to be encoded into a two-digit coded signal containing 0 and / or 1.
7. A method for detecting the switching state of a DRED, characterized in that, The method is applied to the switch state detection circuit of the DRED according to any one of claims 1 to 6, and the method includes: Receive common voltage signal; Receive digitally encoded signals; Determine whether the controlled switch in the DRED is in an undefined state based on the common voltage signal; If not, the state of the controlled switch in DRED is determined based on the value of each digital bit in the digital encoded signal.
8. The switching state detection method for DRED according to claim 7, characterized in that, The DRED's switch group under test includes: a first controlled switch and a second controlled switch; The common switch group of the DRED includes: a third controlled switch and a fourth controlled switch, wherein the fourth controlled switch is normally closed; The controlled switch in the DRED is in an undefined state, including: Both the first controlled switch and the second controlled switch in the switch group under test are in the closed state; or... The third controlled switch in the common switch group is in the closed state; Specifically, when the common voltage signal is high, it is determined that the controlled switch in the DRED is in an undefined state.
9. The switching state detection method for DRED according to claim 8, characterized in that, Determining the state of the controlled switch in DRED based on the values of each digital bit in the digitally encoded signal includes: When the digital encoding signal is 10, both the first controlled switch and the second controlled switch are in the off state; When the digital encoding signal is 00, the first controlled switch is in the closed state and the second controlled switch is in the open state; When the digital encoding signal is 11, the first controlled switch is in the open state and the second controlled switch is in the closed state.
10. An inverter, characterized in that, The inverter includes the switching state detection circuit of the DRED as described in any one of claims 1 to 6.
