WO2023116050A1 - Driving circuit of relay - Google Patents

Driving circuit of relay Download PDF

Info

Publication number
WO2023116050A1
WO2023116050A1 PCT/CN2022/116964 CN2022116964W WO2023116050A1 WO 2023116050 A1 WO2023116050 A1 WO 2023116050A1 CN 2022116964 W CN2022116964 W CN 2022116964W WO 2023116050 A1 WO2023116050 A1 WO 2023116050A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
relay
module
output
trigger
Prior art date
Application number
PCT/CN2022/116964
Other languages
French (fr)
Chinese (zh)
Inventor
李强
叶太强
汤殷霞
李闯
Original Assignee
联合汽车电子有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 联合汽车电子有限公司 filed Critical 联合汽车电子有限公司
Publication of WO2023116050A1 publication Critical patent/WO2023116050A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01HELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
    • H01H47/00Circuit arrangements not adapted to a particular application of the relay and designed to obtain desired operating characteristics or to provide energising current
    • H01H47/02Circuit arrangements not adapted to a particular application of the relay and designed to obtain desired operating characteristics or to provide energising current for modifying the operation of the relay
    • H01H47/18Circuit arrangements not adapted to a particular application of the relay and designed to obtain desired operating characteristics or to provide energising current for modifying the operation of the relay for introducing delay in the operation of the relay
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01HELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
    • H01H47/00Circuit arrangements not adapted to a particular application of the relay and designed to obtain desired operating characteristics or to provide energising current
    • H01H47/02Circuit arrangements not adapted to a particular application of the relay and designed to obtain desired operating characteristics or to provide energising current for modifying the operation of the relay

Definitions

  • the invention relates to the technical field of relay driving, in particular to a driving circuit of a relay.
  • Electric vehicles usually use high-voltage power batteries to provide power.
  • the battery system needs to provide different power supply circuits. For example, when the vehicle is running, the discharge circuit needs to be connected; when the battery is charging, the charging circuit needs to be connected; when the battery is heated , the heating circuit needs to be switched on. In order to ensure the control of these different circuits, it is necessary to control the on-off of the high-voltage relay in the circuit according to the requirements.
  • a delay module is generally added between the processor of the relay drive circuit and the high-voltage relay.
  • the function of the delay module is that when the processor is reset, It can keep the high-voltage relay closed for a period of time to ensure that the vehicle power is not lost. When the processor completes the reset, it takes over the control of the high-voltage relay.
  • the delay module is abnormally enabled, it will lead to unexpected combination of high-voltage relays, unexpected high-voltage power supply to the vehicle, resulting in safety accidents such as vehicle acceleration or electric shock, and the safety and robustness of the system are poor.
  • the delay holding function of the delay module due to the delay holding function of the delay module, there is still a large current on the high-voltage relay when the vehicle is running.
  • the power supply of the high-voltage relay drops for a short time, which will cause the high-voltage relay to be connected immediately after disconnection Burn out the high-voltage relay; at the same time, if the power supply of the delay module drops, causing the delay module to not work normally, the high-voltage relay may malfunction due to the delay module.
  • the purpose of the present invention is to provide a driving circuit of a relay, which can turn off the time-delay holding function of the driving circuit of the relay when needed.
  • the present invention provides a driving circuit for a relay, comprising:
  • a processing module configured to output an enabling signal
  • a delay module connected to the output terminal of the processing module, for delaying the enable signal to output a delayed signal
  • a trigger module configured to output a valid trigger signal according to a predetermined trigger condition
  • An enabling module connected to the output terminals of the processing module, the delay module, and the trigger module, for controlling the relay to close when the enabling signal or the delay signal is valid, and when the The relay is controlled to be turned off when the trigger signal is valid during the reset process of the processing module.
  • a power supply module at least for providing a power supply voltage to the delay module
  • a relay driving module connected to the output terminal of the enabling module, and used to output a driving signal to control the on-off of the relay according to the output signal of the enabling module;
  • the trigger condition includes that the supply voltage is lower than a first reference voltage and/or the voltage of the driving signal is lower than a second reference voltage.
  • the trigger module includes:
  • a first comparator the first input terminal of the first comparator is connected to the output terminal of the power supply module, the second input terminal of the first comparator is connected to the first reference voltage, and the first comparator
  • the device is used to compare the power supply voltage and the first reference voltage, and output a valid first comparison signal when the power supply voltage is lower than the first reference voltage;
  • the second comparator the first input terminal of the second comparator is connected to the output terminal of the relay driving module, the second input terminal of the second comparator is connected to the second reference voltage, and the second The comparator is used to compare the voltage of the driving signal with the second reference voltage, and output a valid second comparison signal when the voltage of the driving signal is lower than the second reference voltage;
  • the first OR gate is connected to the output terminals of the first comparator and the second comparator, and is used for performing an OR operation on the first comparison signal and the second comparison signal, and performing an OR operation on the first comparison signal output a valid trigger signal when the signal or the second comparison signal is valid.
  • the trigger module includes:
  • a first comparator the first input terminal of the first comparator is connected to the output terminal of the power supply module, the second input terminal of the first comparator is connected to the first reference voltage, and the first comparator
  • the device is used to compare the power supply voltage with the first reference voltage, and output the valid trigger signal when the power supply voltage is lower than the first reference voltage; or,
  • the second comparator the first input terminal of the second comparator is connected to the output terminal of the relay driving module, the second input terminal of the second comparator is connected to the second reference voltage, and the second The comparator is used for comparing the voltage of the driving signal with the second reference voltage, and outputting the valid trigger signal when the voltage of the driving signal is lower than the second reference voltage.
  • the enabling module includes:
  • the input end of the latch is connected to the output end of the processing module, the reset end of the latch is connected to the trigger signal, and when the trigger signal is invalid, the latch is in In a latch state, when the trigger signal is valid, the latch is in a reset state;
  • An AND gate connected to the delay module and the output terminal of the latch, is used to perform an AND operation on the delay signal and the output signal of the latch;
  • the second OR gate is connected to the processing module and the output terminal of the AND gate, and is used to perform an OR operation on the enable signal and the output signal of the AND gate, and output a logic signal to control the on-off of the relay .
  • the relay is a bilaterally controlled relay
  • the delay module, the relay drive module, the AND gate and the second OR gate all have two groups, which are respectively used to control the high sides and low sides;
  • the trigger condition includes that the supply voltage is lower than a first reference voltage and/or the voltage of the high-side driving signal is lower than a second reference voltage.
  • the output terminal of the latch is provided with a first sampling point, and the processing module collects the signal on the first sampling point in real time; and/or, the output terminal of the AND gate is provided with For a second sampling point, the processing module collects the signal at the second sampling point in real time.
  • the relay is a unilaterally controlled relay.
  • the relay driving circuit is used to drive at least two of the relays, and the operating voltages of the relays are the same or different.
  • the relay shares the trigger module, the delay module, the latch and the AND gate;
  • the trigger condition includes that the power supply voltage is lower than a first reference voltage and/or the voltage of the driving signal corresponding to any one of the relays is lower than the corresponding second reference voltage.
  • the driving circuit of the relay includes a processing module, a delay module, a trigger module and an enabling module, the processing module is used to output an enabling signal, and the delay module is used to Delaying to output a delayed signal, the trigger module is used to output a valid trigger signal according to a predetermined trigger condition during the reset process of the processing module, and the enable module is used to output a valid trigger signal when the enable signal or the When the delay signal is valid, the relay is controlled to be closed, and when the trigger signal is valid, the relay is controlled to be disconnected.
  • the present invention presets trigger conditions through the trigger module, and when the trigger conditions are satisfied, the trigger module can output the valid trigger signal, and the enable module can reset the processing module according to the
  • the trigger signal controls the disconnection of the relay, which is equivalent to turning off the delay hold function of the delay module as required during the reset process of the processing module, thereby protecting the drive circuit of the relay.
  • the trigger condition includes that the power supply voltage is lower than the first reference voltage and/or the voltage of the drive signal is lower than the second reference voltage, so as to prevent the power supply of the relay from occurring during the reset process of the processing module.
  • the relay When falling for a short time, the relay will be combined immediately after being disconnected, causing the problem of burning out the relay; at the same time, it can also prevent the delay module from not working normally when the power supply of the delay module drops, causing the The relay is due to the malfunction of the delay module.
  • Fig. 1 is the circuit diagram of the driving circuit of the relay that the embodiment 1 of the present invention provides;
  • Embodiment 2 is a specific circuit diagram of an enabling module and a triggering module provided by Embodiment 1 of the present invention
  • FIG. 3 is a partial schematic diagram of a drive circuit of a relay provided in Embodiment 2 of the present invention.
  • FIG. 4 is a partial schematic diagram of a drive circuit of a relay provided in Embodiment 3 of the present invention.
  • FIG. 5 is a partial schematic diagram of a drive circuit of a relay provided in Embodiment 4 of the present invention.
  • 10-processing module 20, 21, 22-delay module; 30-enabling module; 31-latch; 32, 321, 322-AND gate; 33, 331, 332, 333, 334, 335, 336- 2nd OR gate; 40-trigger module; 41-first comparator; 42-second comparator; 43-first OR gate; 50, 51, 52, 53, 54, 55, 56-relay drive module; 60 - power supply modules; 70, 71, 72, 73, 74 - relays;
  • FIG. 1 is a circuit diagram of a driving circuit of a relay provided in this embodiment.
  • the relay driving circuit includes a processing module 10 , a delay module 20 , an enabling module 30 , a trigger module 40 , a relay driving module 50 and a power supply module 60 .
  • the driving circuit of the relay is used to drive a single relay 70, and the relay 70 is a unilaterally controlled relay.
  • the relay 70 driven by the drive circuit of the relay is a high-voltage relay in a battery management system (Battery Management System, BMS), but it should not be limited thereto.
  • BMS Battery Management System
  • the drive circuit of the relay can be used for Drive any possible relay.
  • the processing module 10 is configured to output an enable signal En to control the relay 70 to be powered on at high voltage or at low voltage.
  • the enable signal En output by the processing module 10 is simplified as one signal, but it should be understood that the enable signal En output by the processing module 10 may be one or more, No more details here.
  • the delay module 20 is connected to the output end of the processing module 10 for accessing the enable signal En and delaying the enable signal En to output a delay signal Delay.
  • the delay module 20 can be, for example, a circuit that uses the charging and discharging effect of a capacitor to delay time.
  • the enable signal En is invalid, the capacitor in the delay module 20 starts to charge, and the voltage at both ends of the capacitor starts to rise.
  • the delay signal Delay output by the delay module 20 is invalid until it is fully charged.
  • the enable signal En is valid; the capacitor in the delay module 20 starts to discharge, and the voltage at both ends of the capacitor starts to drop until the delay signal Delay output by the delay module 20 becomes valid after the discharge is completed. It can be seen that the delay module 20 can realize the function of delay output, and the delay time is the time for charging and discharging the capacitor.
  • the power supply module 60 is used to provide a power supply voltage V1 for the delay module 20 to ensure the normal operation of the delay module 20 .
  • the power supply module 60 can not only supply power to the delay module 20, but also provide a power supply voltage to the processing module 10, and the power supply voltage V1 provided to the delay module 20 can be the same as The power supply voltages provided by the processing module 10 are the same or different.
  • the power supply module 60 can also supply power to other modules in the drive circuit of the relay, which will not be illustrated here one by one.
  • a trigger condition is preset in the trigger module 40, and the trigger module 40 can output a valid trigger signal CP according to the preset trigger condition.
  • the trigger conditions can be designed according to actual needs, which will be described in detail below.
  • the enable module 30 is connected to the output terminals of the processing module 10, the delay module 20 and the trigger module 40 for accessing the enable signal En, the delay signal Delay and the trigger signal CP, and output a logic signal Logic that can be used to control the on-off of the relay 70 according to the enable signal En, the delay signal Delay and the trigger signal CP.
  • the enable module 30 may output a valid logic signal Logic to control the relay 70 to close when the enable signal En or the delay signal Delay is valid, and when the enable signal En or the delay signal Delay When the delay signal Delay is invalid, an invalid logic signal Logic is output to control the relay 70 to turn off, and when the trigger signal CP is valid during the reset process of the processing module 10, an invalid logic signal Logic is output to control the relay 70 disconnect.
  • the relay driving module 50 is connected to the output end of the enabling module 30 for accessing the logic signal Logic, and outputs a driving signal Vout according to the logic signal Logic, and the relay 70 is connected to the relay driving module 50
  • the output end of the drive signal Vout is connected to the drive signal Vout, and is turned on or off under the control of the drive signal Vout.
  • the driving signal Vout is an analog signal
  • the relay driving module 50 will output the driving signal Vout whose voltage is greater than or equal to the second reference voltage Vref2, thereby controlling the The relay 70 is closed, and when the logic signal Logic is invalid, the relay driving module 50 outputs the driving signal Vout with a voltage lower than the second reference voltage Vref2 to control the relay 70 to be turned off.
  • the second reference voltage Vref2 can be designed according to the operating voltage of the relay 70, for example, the operating voltage of the relay 70 can be 5V, the second reference voltage Vref2 can be set to 3.5V, when the driving When the voltage of the signal Vout is greater than or equal to 3.5V, the relay 70 can be controlled to close, and when the voltage of the driving signal Vout is less than 3.5V, the relay 70 can be turned off.
  • the trigger condition can be designed according to the power supply drop of the delay module 20 and the power supply drop of the relay 70.
  • the trigger condition includes that the power supply voltage V1 is lower than the first reference voltage Vref1 and/or the voltage of the driving signal Vout is lower than the second reference voltage Vref2, that is, when the power supply voltage V1 is lower than the first reference voltage Vref1 and/or the voltage of the driving signal Vout is lower than
  • the trigger module 40 will output an effective trigger signal CP, thereby controlling the relay 70 to be disconnected, preventing the power supply of the relay 70 from short-circuiting during the reset process of the processing module 10.
  • the relay 70 When the time drops, the relay 70 will be combined immediately after disconnection, causing the problem of burning out the relay 70; at the same time, it can also prevent the delay module 20 from not working properly when the power supply of the delay module 20 drops. This leads to the problem that the relay 70 malfunctions due to the delay module 20 .
  • the trigger condition is not limited to this, and may also be other possible trigger conditions, which will not be explained one by one here.
  • the trigger condition is preset through the trigger module 40.
  • the trigger module 40 can output the effective trigger signal CP, and the enabling module 30 can control the relay 70 to be disconnected according to the trigger signal CP during the reset process of the processing module 10, which is equivalent to During the reset process of the processing module 10, the delay holding function of the delay module 20 is turned off as required, so as to protect the driving circuit of the relay.
  • FIG. 2 is a specific circuit diagram of the enabling module 30 and the triggering module 40 provided in this embodiment.
  • the trigger module 40 includes a first comparator 41 , a second comparator 42 and a first OR gate 43 .
  • the first input end of the first comparator 41 is connected to the output end of the power supply module 60 for accessing the power supply voltage V1; the second input end of the first comparator 41 is connected to the The first reference voltage Vref1, the first comparator 41 is used to compare the power supply voltage V1 and the first reference voltage Vref1, and output a valid voltage when the power supply voltage V1 is lower than the first reference voltage Vref1 first compare signal.
  • the first input end of the second comparator 42 is connected to the output end of the relay driving module 50 for accessing the drive signal Vout, and the second input end of the second comparator 42 is connected to the first Two reference voltages Vref2, the second comparator 42 is used to compare the voltage of the driving signal Vout with the second reference voltage Vref2, and when the voltage of the driving signal Vout is lower than the second reference voltage Vref2 Output a valid second comparison signal.
  • the first OR gate 43 is connected to the output terminals of the first comparator 41 and the second comparator 42, for accessing the first comparison signal and the second comparison signal, for the An OR operation is performed on the first comparison signal and the second comparison signal, and a valid trigger signal CP is output when the first comparison signal or the second comparison signal is valid.
  • the trigger module 40 can output a valid The trigger signal CP, in other cases, the trigger module 40 outputs the trigger signal CP that is invalid.
  • the trigger module 40 may only include a first comparator 41, and the first input terminal of the first comparator 41 is connected to the output terminal of the power supply module 60 for accessing the power supply voltage V1; the second input terminal of the first comparator 41 is connected to the first reference voltage Vref1, and the first comparator 41 is used to compare the power supply voltage V1 and the first reference voltage Vref1, and When the power supply voltage V1 is lower than the first reference voltage Vref1, the trigger signal CP is valid. In this way, when the power supply voltage V1 is lower than the first reference voltage Vref1, the trigger module 40 can output the valid trigger signal CP; in other cases, the trigger module 40 can output the invalid trigger signal CP. Trigger signal CP.
  • the trigger module 40 may only include a second comparator 42, the first input terminal of the second comparator 42 is connected to the output terminal of the relay drive module 50 for connecting the drive signal Vout, the second input terminal of the second comparator 42 is connected to the second reference voltage Vref2, and the second comparator 42 is used to compare the voltage of the driving signal Vout with the second reference voltage Vref2 , and output the effective trigger signal CP when the voltage of the driving signal Vout is lower than the second reference voltage Vref2. In this way, when the voltage of the driving signal Vout is lower than the second reference voltage Vref2, the trigger module 40 can output the valid trigger signal CP, and in other cases, the trigger module 40 can output an invalid The trigger signal CP.
  • the enabling module 30 includes a latch 31 , an AND gate 32 and a second OR gate 33 .
  • the input terminal D of the latch 31 is connected to the output terminal of the processing module 10 for accessing the enable signal En, and the reset terminal E of the latch 31 is connected to the trigger signal CP, when When the trigger signal CP is invalid, the latch 31 is in a latch state, and when the trigger signal CP is active, the latch 31 is in a reset state.
  • the AND gate 32 is connected to the delay module 20 and the output terminal Y of the latch 31 for accessing the delay signal Delay and the output signal of the latch 31 and delaying the delay An AND operation is performed on the signal Delay and the output signal of the latch 31 .
  • the second OR gate 33 is connected to the processing module 10 and the output end of the AND gate 32, and is used for accessing the enable signal En and the output signal of the AND gate 32 and controlling the enable signal En. and the output signal of the AND gate 32 to perform an OR operation, and output the logic signal Logic.
  • the enable signal En, the delay signal Delay, the logic signal Logic and the trigger signal CP are all digital signals.
  • the sequence of the triggering module 40 and the enabling module 30 will be described in detail assuming that the digital signal is valid when it is “1” and invalid when it is "0".
  • the enable signal En is “1"
  • the second OR gate 33 outputs The logic signal Logic is "1”
  • the relay drive module 50 outputs the drive signal Vout to control the relay 70 to close.
  • the enable signal En is "0"
  • the delay signal Delay becomes “0” after the delay time "
  • the latch 31 is in the latched state (the enable signal En when the latch is powered on)
  • the output of the latch 31 is "1”
  • the output of the AND gate 32 is delayed becomes “0” after the time elapses
  • the logic signal Logic output by the second OR gate 33 becomes “0” after the delay time elapses
  • the relay drive module 50 outputs the drive signal Vout to control the relay 70 disconnect.
  • the The first OR gate 43 outputs an effective trigger signal CP
  • the latch 31 is in a reset state
  • the output of the latch 31 immediately becomes "0”
  • the output of the AND gate 32 immediately becomes "0”
  • the logic signal Logic output by the second OR gate 33 immediately becomes “0”
  • the relay driving module 50 immediately outputs the driving signal Vout to control the relay 70 to turn off.
  • the enable module 30 can control the relay 70 to close when the enable signal En or the delay signal Delay is valid, and when the trigger signal CP is valid during the reset process of the processing module 10
  • the relay 70 is controlled to be turned off.
  • the output terminal Y of the latch 31 is provided with a first sampling point K1, and the processing module 10 collects the signal on the first sampling point K1 in real time; and/or, the AND gate 32
  • a second sampling point K2 is set on the output end, and the processing module 10 collects the signal on the second sampling point K2 in real time. Since the signal on the first sampling point K1 can represent the output signal of the latch 31, the signal on the second sampling point K2 can represent the delay signal Delay and the output of the latch 31 signal, the processing module 10 can diagnose the fault of the latch 31 or the delay module 20 by collecting the signals at the first sampling point K1 and the second sampling point K2 in real time.
  • FIG. 3 is a partial schematic diagram of the driving circuit of the relay provided in this embodiment.
  • the relay 70 is a bilaterally controlled relay, and the delay module, the relay drive module, the AND gate and the second Each OR gate has two groups, which are respectively used to control the high side and low side of the relay 70 .
  • the delay module includes a delay module 21 and a delay module 22, the relay driver module includes a relay driver module 51 and a relay driver module 52, and the AND gate includes an AND gate 321 and an AND gate 322, so
  • the second OR gate includes a second OR gate 331 and a second OR gate 332 .
  • the delay module 21 and the delay module 22 are connected to the output end of the processing module 10 for accessing the enable signal En, and the delay module 21 and the delay module 22 are respectively based on The enable signal En outputs the delay signal Delay1 and the delay signal Delay2.
  • the AND gate 321 is connected to the delay module 21 and the output terminal Y of the latch 31 for accessing the delay signal Delay1 and the output signal of the latch 31 and delaying the delay
  • the signal Delay1 is ANDed with the output signal of the latch 31;
  • the AND gate 322 is connected to the delay module 22 and the output terminal Y of the latch 31 for accessing the delay signal Delay2 and the output signal of the latch 31 and perform an AND operation on the delay signal Delay2 and the output signal of the latch 31 .
  • the second OR gate 331 is connected to the processing module 10 and the output end of the AND gate 321, and is used for accessing the enable signal En and the output signal of the AND gate 321 and performing an operation on the enable signal En.
  • the second OR gate 332 is connected to the processing module 10 and the output end of the AND gate 322 for accessing the The enable signal En and the output signal of the AND gate 322 perform an OR operation on the enable signal En and the output signal of the AND gate 322 to output the logic signal Logic2.
  • the relay driving module 51 and the relay driving module 52 are respectively connected to the output terminals of the second OR gate 331 and the second OR gate 332, and output the output terminals according to the logic signal Logic1 and the logic signal Logic2 respectively.
  • the driving signal Vout1 and the driving signal Vout2 jointly drive the high side and the low side of the relay 70 .
  • the high side and the low side of the relay 70 share the trigger module 40 and the latch 31, and the trigger condition includes that the power supply voltage V1 is lower than the first reference voltage Vref1 and/or Or the voltage of the driving signal Vout1 of the high side of the relay 70 is lower than the second reference voltage Vref2. Therefore, the first input terminal of the second comparator 42 can be connected to the output terminal of the relay driving module 51 for accessing the driving signal Vout1, and the second comparator 42 is used for comparing the driving signal the voltage of Vout1 and the second reference voltage Vref2, and output a valid second comparison signal when the voltage of the driving signal Vout1 is lower than the second reference voltage Vref2.
  • the output terminals of the AND gate 321 and the AND gate 322 are respectively provided with a second sampling point K21 and a second sampling point K22, since the signal on the first sampling point K1 can represent The output signal of the latch 31, the signal on the second sampling point K21 can represent the delay signal Delay1 and the output signal of the latch 31, and the signal on the second sampling point K22
  • the delay signal Delay2 and the output signal of the latch 31 can also be characterized, and the processing module 10 collects the first sampling point K1, the second sampling point K21 and the second sampling point in real time
  • the signal on K22 can perform fault diagnosis on the latch 31 , the delay module 21 and the delay module 22 .
  • FIG. 4 is a partial schematic diagram of the driving circuit of the relay provided in this embodiment. As shown in FIG. 4 , the difference from Embodiment 1 is that in this embodiment, the relay driving circuit is used to drive two unilaterally controlled relays, and the working voltages of the two relays may be the same or different.
  • the relays include a relay 71 and a relay 72 , and the relay 71 and the relay 72 share the trigger module 40 , the delay module 20 , the latch 31 and the AND gate 32 .
  • Both the second OR gate and the relay drive module have two groups, the second OR gate includes a second OR gate 333 and the second OR gate 334, and the relay drive module includes a relay drive module 53 and a relay drive module 54.
  • the second OR gate 333 is connected to the processing module 10 and the output end of the AND gate 32, and is used for accessing the enable signal En and the output signal of the AND gate 32 and performing an operation on the enable signal En. and the output signal of the AND gate 32 to perform an OR operation, and output the logic signal Logic3;
  • the second OR gate 334 is connected to the processing module 10 and the output end of the AND gate 32 for accessing the The enable signal En and the output signal of the AND gate 32 perform an OR operation on the enable signal En and the output signal of the AND gate 32 to output the logic signal Logic4.
  • the relay driving module 53 and the relay driving module 54 are respectively connected to the output terminals of the second OR gate 333 and the second OR gate 334, and output driving signals according to the logic signal Logic3 and the logic signal Logic4 respectively.
  • the driving signal Vout3 and the driving signal Vout4 respectively drive the relay 71 and the relay 72 .
  • the working voltages of the relay 71 and the relay 72 are the same, and the trigger condition includes that the power supply voltage V1 is lower than the first reference voltage Vref1 and/or the voltage of the driving signal Vout3 is lower than The second reference voltage Vref2; or, the trigger condition includes that the power supply voltage V1 is lower than the first reference voltage Vref1 and/or the voltage of the driving signal Vout4 is lower than the second reference voltage Vref2.
  • the first input terminal of the second comparator 42 can be connected to the output terminal of the relay driving module 53 for accessing the driving signal Vout3, and the second comparator 42 is used for comparing the driving signal the voltage of Vout3 and the second reference voltage Vref2, and output a valid second comparison signal when the voltage of the driving signal Vout3 is lower than the second reference voltage Vref2; or, the first comparator 42 of the second comparator 42 An input terminal can be connected to the output terminal of the relay driving module 54 for accessing the driving signal Vout4, and the second comparator 42 is used for comparing the voltage of the driving signal Vout4 with the second reference voltage Vref2 , and output a valid second comparison signal when the voltage of the driving signal Vout4 is lower than the second reference voltage Vref2.
  • the value of the second reference voltage Vref2 inputted by the second input terminal of the second comparator 42 should be the same as that of the relay 71 and the relay 72.
  • the operating voltage of the relay 71 is 5V.
  • the relay 71 can be controlled to close.
  • the operating voltage of the relay 72 is 10V.
  • the voltage of the driving signal Vout4 When the voltage is greater than 8V, the relay 72 can be controlled to close.
  • the second input terminal of the second comparator 42 When the first input terminal of the second comparator 42 is connected to the output terminal of the relay drive module 53, the second input terminal of the second comparator 42 The input value of the second reference voltage Vref2 should be 3.5V; when the first input terminal of the second comparator 42 is connected to the output terminal of the relay drive module 54, the second comparator 42 of the second The value of the second reference voltage Vref2 input by the two input terminals should be 8V.
  • the driving circuit of the relay is not limited to driving two unilaterally controlled relays, and may also drive three or more unilaterally controlled relays.
  • FIG. 5 is a partial schematic diagram of the driving circuit of the relay provided in this embodiment. As shown in Figure 5, the difference from Embodiment 2 is that in this embodiment, the relay driving circuit is used to drive two bilaterally controlled relays, and the working voltages of the two relays may be the same or different.
  • the relay includes a relay 73 and a relay 74, and the relay 73 and the relay 74 share the trigger module 40, the delay module 21, the delay module 22, and the latch 31. , the AND gate 321 and the AND gate 322 .
  • the second OR gate and the relay drive module each have four groups, the relay 73 and the relay 74 respectively correspond to two groups of the second OR gate and the relay drive module, and each two groups of the second OR gate
  • the OR gate and the relay driving module are used to control the high side and the low side of the relay 73 and the relay 74 respectively.
  • the second OR gate includes a second OR gate 331, a second OR gate 332, a second OR gate 335, and a second OR gate 336
  • the relay drive module includes a relay drive module 51, a relay drive module 52 , a relay driving module 55 , and a relay driving module 56 .
  • Both the second OR gate 331 and the second OR gate 335 are connected to the processing module 10 and the output end of the AND gate 321 for accessing the enable signal En and the output of the AND gate 321 signal and perform an OR operation on the enable signal En and the output signal of the AND gate 321, and output the logic signal Logic1 and the logic signal Logic5 respectively;
  • the second OR gate 332 and the second OR gate 336 Connect the processing module 10 and the output end of the AND gate 322, for accessing the enable signal En and the output signal of the AND gate 322 and controlling the enable signal En and the AND gate 322 An OR operation is performed on the output signal, and the logic signal Logic2 and the logic signal Logic6 are respectively output.
  • the relay driving module 51 and the relay driving module 52 are respectively connected to the output terminals of the second OR gate 331 and the second OR gate 332, and output the output terminals according to the logic signal Logic1 and the logic signal Logic2 respectively.
  • the driving signal Vout1 and the driving signal Vout2, the driving signal Vout1 and the driving signal Vout2 jointly drive the high side and the low side of the relay 73 .
  • the relay drive module 55 and the relay drive module 56 are respectively connected to the output terminals of the second OR gate 335 and the second OR gate 336, and output the output terminals according to the logic signal Logic5 and the logic signal Logic6 respectively.
  • the driving signal Vout5 and the driving signal Vout6 , the driving signal Vout5 and the driving signal Vout6 jointly drive the high side and the low side of the relay 74 .
  • the working voltages of the relay 73 and the relay 74 are the same, and the trigger condition includes that the power supply voltage V1 is lower than the first reference voltage Vref1 and/or the driving of the high side of the relay 73 The voltage of the signal Vout1 is lower than the second reference voltage Vref2; or, the trigger condition includes that the power supply voltage V1 is lower than the first reference voltage Vref1 and/or the driving signal Vout5 of the high side of the relay 74 The voltage is lower than the second reference voltage Vref2.
  • the first input terminal of the second comparator 42 can be connected to the output terminal of the relay driving module 51 for accessing the driving signal Vout1, and the second comparator 42 is used for comparing the driving signal the voltage of Vout1 and the second reference voltage Vref2, and output a valid second comparison signal when the voltage of the driving signal Vout1 is lower than the second reference voltage Vref2; or, the first comparator 42 of the second comparator 42 An input terminal can be connected to the output terminal of the relay driving module 55 for accessing the driving signal Vout5, and the second comparator 42 is used for comparing the voltage of the driving signal Vout5 with the second reference voltage Vref2 , and output a valid second comparison signal when the voltage of the driving signal Vout5 is lower than the second reference voltage Vref2.
  • the value of the second reference voltage Vref2 inputted by the second input terminal of the second comparator 42 should be the same as that of the relay 73 and the relay 74.
  • the operating voltage of the relay 73 is 5V.
  • the relay 73 can be controlled to close.
  • the operating voltage of the relay 74 is 10V.
  • the voltage of the driving signal Vout5 When the voltage is greater than 8V, the relay 72 can be controlled to close.
  • the second input terminal of the second comparator 42 When the first input terminal of the second comparator 42 is connected to the output terminal of the relay drive module 51, the second input terminal of the second comparator 42 The input value of the second reference voltage Vref2 should be 3.5V; when the first input terminal of the second comparator 42 is connected to the output terminal of the relay drive module 55, the second comparator 42 of the second The value of the second reference voltage Vref2 input by the two input terminals should be 8V.
  • the driving circuit of the relay is not limited to driving two bilaterally controlled relays, and can also drive three or more bilaterally controlled relays.
  • the driving circuit of the relay includes a processing module, a delay module, a trigger module and an enabling module, the processing module is used to output the enable signal, and the delay module is used to The enable signal is delayed to output a delayed signal, and the trigger module is used to output a valid trigger signal according to a predetermined trigger condition during the reset process of the processing module.
  • the enable signal or the delay signal is valid, the relay is controlled to be closed, and when the trigger signal is valid, the relay is controlled to be disconnected.
  • the present invention presets trigger conditions through the trigger module, and when the trigger conditions are satisfied, the trigger module can output the valid trigger signal, and the enable module can reset the processing module according to the
  • the trigger signal controls the disconnection of the relay, which is equivalent to turning off the delay hold function of the delay module as required during the reset process of the processing module, thereby protecting the drive circuit of the relay.
  • the trigger condition includes that the power supply voltage is lower than the first reference voltage and/or the driving signal voltage is lower than the second reference voltage, so as to prevent the relay from shutting down when the power supply of the relay drops for a short time. Combined immediately after opening, causing the problem of burning out the relay; at the same time, it can also prevent the delay module from not working properly when the power supply of the delay module drops, causing the relay to malfunction due to the delay module The problem.
  • each embodiment in this specification is described in a progressive manner, each embodiment focuses on the differences from other embodiments, and the same and similar parts of each embodiment can be referred to each other.
  • the description is relatively simple, and for relevant information, please refer to the description of the method part.

Abstract

The present invention provides a driving circuit of a relay. The driving circuit comprises a processing module, a delay module, a trigger module and an enabling module. The processing module is used for outputting an enable signal, the delay module is used for delaying the enable signal to output a delay signal, the trigger module is used for outputting an active trigger signal according to a preset trigger condition during a reset process of the processing module, and the enabling module is used for controlling a relay to be closed when the enable signal or the delay signal is active and for controlling the relay to be disconnected when the trigger signal is active. In the present invention, the trigger condition is preset by means of the trigger module. When the trigger condition is satisfied, the trigger module can output the active trigger signal, and the enabling module can control the relay to be disconnected according to the trigger signal during the reset process of the processing module. That is, during the reset process of the processing module, a delay holding function of the delay module can be disabled as needed, so that the driving circuit of the relay is protected.

Description

继电器的驱动电路Relay drive circuit 技术领域technical field
本发明涉及继电器驱动技术领域,尤其涉及一种继电器的驱动电路。The invention relates to the technical field of relay driving, in particular to a driving circuit of a relay.
背景技术Background technique
电动汽车通常采用高压动力电池提供动力,为满足整车的需求,需要电池系统提供不同供电回路,例如整车行驶时,放电回路需要接通;电池充电时,充电回路需要接通;电池加热时,加热回路需要接通。为确保这些不同回路的控制,需要根据要求,控制回路中的高压继电器的通断。Electric vehicles usually use high-voltage power batteries to provide power. In order to meet the needs of the vehicle, the battery system needs to provide different power supply circuits. For example, when the vehicle is running, the discharge circuit needs to be connected; when the battery is charging, the charging circuit needs to be connected; when the battery is heated , the heating circuit needs to be switched on. In order to ensure the control of these different circuits, it is necessary to control the on-off of the high-voltage relay in the circuit according to the requirements.
对于运行中的电动汽车,如果高压继电器与高压动力电池之间产生非预期的脱开,将导致车辆动力丢失,出现安全问题。由于高压继电器是由继电器驱动电路进行驱动的,为了解决以上问题,一般会在继电器驱动电路的处理器与高压继电器之间增加一个延时模块,延时模块的功能是在处理器出现复位时,能够保持高压继电器闭合一段时间,保证车辆动力不丢失,当处理器完成复位后,接管高压继电器的控制。For a running electric vehicle, if there is an unexpected disengagement between the high-voltage relay and the high-voltage power battery, the power of the vehicle will be lost and safety problems will arise. Since the high-voltage relay is driven by the relay drive circuit, in order to solve the above problems, a delay module is generally added between the processor of the relay drive circuit and the high-voltage relay. The function of the delay module is that when the processor is reset, It can keep the high-voltage relay closed for a period of time to ensure that the vehicle power is not lost. When the processor completes the reset, it takes over the control of the high-voltage relay.
然而,如果延时模块异常使能,将导致高压继电器非预期结合,车辆非预期上高压电,导致发生车辆加速或人员触电的安全事故,系统的安全性和鲁棒性较差。并且在处理器复位过程中,由于延时模块的延时保持作用,车辆运行时高压继电器上仍有大电流,此时高压继电器的供电出现短时间跌落,将导致高压继电器断开后立即结合,烧坏高压继电器;同时,若延时模块的供电出现跌落,导致延时模块不能正常工作,高压继电器可能会因为延时模块误动作。However, if the delay module is abnormally enabled, it will lead to unexpected combination of high-voltage relays, unexpected high-voltage power supply to the vehicle, resulting in safety accidents such as vehicle acceleration or electric shock, and the safety and robustness of the system are poor. And during the processor reset process, due to the delay holding function of the delay module, there is still a large current on the high-voltage relay when the vehicle is running. At this time, the power supply of the high-voltage relay drops for a short time, which will cause the high-voltage relay to be connected immediately after disconnection Burn out the high-voltage relay; at the same time, if the power supply of the delay module drops, causing the delay module to not work normally, the high-voltage relay may malfunction due to the delay module.
发明内容Contents of the invention
本发明的目的在于提供一种继电器的驱动电路,能够在需要的时候关闭继电器的驱动电路的延时保持功能。The purpose of the present invention is to provide a driving circuit of a relay, which can turn off the time-delay holding function of the driving circuit of the relay when needed.
为了达到上述目的,本发明提供了一种继电器的驱动电路,包括:In order to achieve the above object, the present invention provides a driving circuit for a relay, comprising:
处理模块,用于输出使能信号;A processing module, configured to output an enabling signal;
延时模块,连接所述处理模块的输出端,用于对所述使能信号进行延时,以输出延时信号;a delay module, connected to the output terminal of the processing module, for delaying the enable signal to output a delayed signal;
触发模块,用于根据预定的触发条件输出有效的触发信号;以及,a trigger module, configured to output a valid trigger signal according to a predetermined trigger condition; and,
使能模块,连接所述处理模块、所述延时模块及所述触发模块的输出端,用于在所述使能信号或所述延时信号有效时控制所述继电器闭合,且在所述处理模块复位过程中当所述触发信号有效时控制所述继电器断开。An enabling module, connected to the output terminals of the processing module, the delay module, and the trigger module, for controlling the relay to close when the enabling signal or the delay signal is valid, and when the The relay is controlled to be turned off when the trigger signal is valid during the reset process of the processing module.
可选的,还包括:Optionally, also include:
供电模块,至少用于向所述延时模块提供供电电压;A power supply module, at least for providing a power supply voltage to the delay module;
继电器驱动模块,连接所述使能模块的输出端,用于根据所述使能模块的输出信号输出驱动信号控制所述继电器的通断;以及,a relay driving module, connected to the output terminal of the enabling module, and used to output a driving signal to control the on-off of the relay according to the output signal of the enabling module; and,
所述触发条件包括所述供电电压低于第一参考电压和/或所述驱动信号的电压低于第二参考电压。The trigger condition includes that the supply voltage is lower than a first reference voltage and/or the voltage of the driving signal is lower than a second reference voltage.
可选的,所述触发模块包括:Optionally, the trigger module includes:
第一比较器,所述第一比较器的第一输入端连接所述供电模块的输出端,所述第一比较器的第二输入端接入所述第一参考电压,所述第一比较器用于比较所述供电电压和所述第一参考电压,并在所述供电电压低于所述第一参考电压时输出有效的第一比较信号;A first comparator, the first input terminal of the first comparator is connected to the output terminal of the power supply module, the second input terminal of the first comparator is connected to the first reference voltage, and the first comparator The device is used to compare the power supply voltage and the first reference voltage, and output a valid first comparison signal when the power supply voltage is lower than the first reference voltage;
第二比较器,所述第二比较器的第一输入端连接所述继电器驱动模块的输出端,所述第二比较器的第二输入端接入所述第二参考电压,所述第二比较器用于比较所述驱动信号的电压和所述第二参考电压,并在所述驱动信号 的电压低于所述第二参考电压时输出有效的第二比较信号;以及,The second comparator, the first input terminal of the second comparator is connected to the output terminal of the relay driving module, the second input terminal of the second comparator is connected to the second reference voltage, and the second The comparator is used to compare the voltage of the driving signal with the second reference voltage, and output a valid second comparison signal when the voltage of the driving signal is lower than the second reference voltage; and,
第一或门,连接所述第一比较器和所述第二比较器的输出端,用于对所述第一比较信号和所述第二比较信号进行或运算,并在所述第一比较信号或所述第二比较信号有效时输出有效的所述触发信号。The first OR gate is connected to the output terminals of the first comparator and the second comparator, and is used for performing an OR operation on the first comparison signal and the second comparison signal, and performing an OR operation on the first comparison signal output a valid trigger signal when the signal or the second comparison signal is valid.
可选的,所述触发模块包括:Optionally, the trigger module includes:
第一比较器,所述第一比较器的第一输入端连接所述供电模块的输出端,所述第一比较器的第二输入端接入所述第一参考电压,所述第一比较器用于比较所述供电电压和所述第一参考电压,并在所述供电电压低于所述第一参考电压时输出有效的所述触发信号;或者,A first comparator, the first input terminal of the first comparator is connected to the output terminal of the power supply module, the second input terminal of the first comparator is connected to the first reference voltage, and the first comparator The device is used to compare the power supply voltage with the first reference voltage, and output the valid trigger signal when the power supply voltage is lower than the first reference voltage; or,
第二比较器,所述第二比较器的第一输入端连接所述继电器驱动模块的输出端,所述第二比较器的第二输入端接入所述第二参考电压,所述第二比较器用于比较所述驱动信号的电压和所述第二参考电压,并在所述驱动信号的电压低于所述第二参考电压时输出有效的所述触发信号。The second comparator, the first input terminal of the second comparator is connected to the output terminal of the relay driving module, the second input terminal of the second comparator is connected to the second reference voltage, and the second The comparator is used for comparing the voltage of the driving signal with the second reference voltage, and outputting the valid trigger signal when the voltage of the driving signal is lower than the second reference voltage.
可选的,所述使能模块包括:Optionally, the enabling module includes:
锁存器,所述锁存器的输入端连接所述处理模块的输出端,所述锁存器的复位端接入所述触发信号,当所述触发信号无效时,所述锁存器处于锁存状态,当所述触发信号有效时,所述锁存器处于复位状态;a latch, the input end of the latch is connected to the output end of the processing module, the reset end of the latch is connected to the trigger signal, and when the trigger signal is invalid, the latch is in In a latch state, when the trigger signal is valid, the latch is in a reset state;
与门,连接所述延时模块及所述锁存器的输出端,用于对所述延时信号及所述锁存器的输出信号进行与运算;以及,An AND gate, connected to the delay module and the output terminal of the latch, is used to perform an AND operation on the delay signal and the output signal of the latch; and,
第二或门,连接所述处理模块及所述与门的输出端,用于对所述使能信号和所述与门的输出信号进行或运算,并输出逻辑信号控制所述继电器的通断。The second OR gate is connected to the processing module and the output terminal of the AND gate, and is used to perform an OR operation on the enable signal and the output signal of the AND gate, and output a logic signal to control the on-off of the relay .
可选的,所述继电器为双边控制的继电器,所述延时模块、所述继电器驱动模块、所述与门及所述第二或门均具有两组,分别用于控制所述继电器 的高边和低边;以及,Optionally, the relay is a bilaterally controlled relay, and the delay module, the relay drive module, the AND gate and the second OR gate all have two groups, which are respectively used to control the high sides and low sides; and,
所述触发条件包括所述供电电压低于第一参考电压和/或高边的所述驱动信号的电压低于第二参考电压。The trigger condition includes that the supply voltage is lower than a first reference voltage and/or the voltage of the high-side driving signal is lower than a second reference voltage.
可选的,所述锁存器的输出端上设置有第一采样点,所述处理模块实时采集所述第一采样点上的信号;和/或,所述与门的输出端上设置有第二采样点,所述处理模块实时采集所述第二采样点上的信号。Optionally, the output terminal of the latch is provided with a first sampling point, and the processing module collects the signal on the first sampling point in real time; and/or, the output terminal of the AND gate is provided with For a second sampling point, the processing module collects the signal at the second sampling point in real time.
可选的,所述继电器为单边控制的继电器。Optionally, the relay is a unilaterally controlled relay.
可选的,所述继电器驱动电路用于驱动至少两个所述继电器,所述继电器的工作电压相同或不相同。Optionally, the relay driving circuit is used to drive at least two of the relays, and the operating voltages of the relays are the same or different.
可选的,所述继电器共用所述触发模块、所述延时模块、所述锁存器和所述与门;Optionally, the relay shares the trigger module, the delay module, the latch and the AND gate;
所述触发条件包括所述供电电压低于第一参考电压和/或任一所述继电器对应的所述驱动信号的电压低于对应的所述第二参考电压。The trigger condition includes that the power supply voltage is lower than a first reference voltage and/or the voltage of the driving signal corresponding to any one of the relays is lower than the corresponding second reference voltage.
在本发明提供的继电器的驱动电路中,包括处理模块、延时模块、触发模块及使能模块,所述处理模块用于输出使能信号,所述延时模块用于对所述使能信号进行延时,以输出延时信号,所述触发模块用于在所述处理模块复位过程中根据预定的触发条件输出有效的触发信号,所述使能模块用于在所述使能信号或所述延时信号有效时控制所述继电器闭合,并在所述触发信号有效时控制所述继电器断开。本发明通过所述触发模块预设了触发条件,当满足所述触发条件时,所述触发模块可以输出有效的所述触发信号,所述使能模块可以在所述处理模块复位过程中根据所述触发信号控制所述继电器断开,相当于可以在所述处理模块的复位过程中根据需要关闭所述延时模块的延时保持功能,从而保护所述继电器的驱动电路。In the driving circuit of the relay provided by the present invention, it includes a processing module, a delay module, a trigger module and an enabling module, the processing module is used to output an enabling signal, and the delay module is used to Delaying to output a delayed signal, the trigger module is used to output a valid trigger signal according to a predetermined trigger condition during the reset process of the processing module, and the enable module is used to output a valid trigger signal when the enable signal or the When the delay signal is valid, the relay is controlled to be closed, and when the trigger signal is valid, the relay is controlled to be disconnected. The present invention presets trigger conditions through the trigger module, and when the trigger conditions are satisfied, the trigger module can output the valid trigger signal, and the enable module can reset the processing module according to the The trigger signal controls the disconnection of the relay, which is equivalent to turning off the delay hold function of the delay module as required during the reset process of the processing module, thereby protecting the drive circuit of the relay.
此外,所述触发条件包括所述供电电压低于第一参考电压和/或所述驱动 信号的电压低于第二参考电压,从而防止所述处理模块在复位过程中,所述继电器的供电出现短时间跌落时,所述继电器断开后立即结合,导致烧坏所述继电器的问题;同时还可以防止所述延时模块的供电出现跌落时,所述延时模块不能正常工作,导致所述继电器因为所述延时模块误动作的问题。In addition, the trigger condition includes that the power supply voltage is lower than the first reference voltage and/or the voltage of the drive signal is lower than the second reference voltage, so as to prevent the power supply of the relay from occurring during the reset process of the processing module. When falling for a short time, the relay will be combined immediately after being disconnected, causing the problem of burning out the relay; at the same time, it can also prevent the delay module from not working normally when the power supply of the delay module drops, causing the The relay is due to the malfunction of the delay module.
附图说明Description of drawings
图1为本发明实施例一提供的继电器的驱动电路的电路图;Fig. 1 is the circuit diagram of the driving circuit of the relay that the embodiment 1 of the present invention provides;
图2为本发明实施例一提供的使能模块及触发模块的具体电路图;2 is a specific circuit diagram of an enabling module and a triggering module provided by Embodiment 1 of the present invention;
图3为本发明实施例二提供的继电器的驱动电路的局部示意图;3 is a partial schematic diagram of a drive circuit of a relay provided in Embodiment 2 of the present invention;
图4为本发明实施例三提供的继电器的驱动电路的局部示意图;4 is a partial schematic diagram of a drive circuit of a relay provided in Embodiment 3 of the present invention;
图5为本发明实施例四提供的继电器的驱动电路的局部示意图;5 is a partial schematic diagram of a drive circuit of a relay provided in Embodiment 4 of the present invention;
其中,附图标记为:Wherein, reference sign is:
10-处理模块;20、21、22-延时模块;30-使能模块;31-锁存器;32、321、322-与门;33、331、332、333、334、335、336-第二或门;40-触发模块;41-第一比较器;42-第二比较器;43-第一或门;50、51、52、53、54、55、56-继电器驱动模块;60-供电模块;70、71、72、73、74-继电器;10-processing module; 20, 21, 22-delay module; 30-enabling module; 31-latch; 32, 321, 322-AND gate; 33, 331, 332, 333, 334, 335, 336- 2nd OR gate; 40-trigger module; 41-first comparator; 42-second comparator; 43-first OR gate; 50, 51, 52, 53, 54, 55, 56-relay drive module; 60 - power supply modules; 70, 71, 72, 73, 74 - relays;
En-使能信号;Delay、Delay1、Delay2-延时信号;V1-供电电压;CP-触发信号;Logic、Logic1、Logic2、Logic3、Logic4、Logic5、Logic6-逻辑信号;Vout、Vout1、Vout2、Vout3、Vout4、Vout5、Vout6-驱动信号;Vref1-第一参考电压;Vref2-第二参考电压;K1-第一采样点;K2、K21、K22-第二采样点;D-锁存器的输入端;E-锁存器的复位端;Y-锁存器的输出端。En-enable signal; Delay, Delay1, Delay2-delay signal; V1-supply voltage; CP-trigger signal; Logic, Logic1, Logic2, Logic3, Logic4, Logic5, Logic6-logic signal; Vout, Vout1, Vout2, Vout3 , Vout4, Vout5, Vout6-drive signal; Vref1-first reference voltage; Vref2-second reference voltage; K1-first sampling point; K2, K21, K22-second sampling point; D-Latch input ; The reset terminal of the E-latch; the output terminal of the Y-latch.
具体实施方式Detailed ways
下面将结合示意图对本发明的具体实施方式进行更详细的描述。根据下列描述,本发明的优点和特征将更清楚。需说明的是,附图均采用非常简化的形式且均使用非精准的比例,仅用以方便、明晰地辅助说明本发明实施例的目的。The specific implementation manner of the present invention will be described in more detail below with reference to schematic diagrams. The advantages and features of the present invention will be more apparent from the following description. It should be noted that all the drawings are in very simplified form and use inaccurate scales, and are only used to facilitate and clearly assist the purpose of illustrating the embodiments of the present invention.
实施例一Embodiment one
图1为本实施例提供的继电器的驱动电路的电路图。如图1所示,所述继电器的驱动电路包括处理模块10、延时模块20、使能模块30、触发模块40、继电器驱动模块50及供电模块60。本实施例中,所述继电器的驱动电路用于驱动单个的继电器70,且所述继电器70为单边控制的继电器。FIG. 1 is a circuit diagram of a driving circuit of a relay provided in this embodiment. As shown in FIG. 1 , the relay driving circuit includes a processing module 10 , a delay module 20 , an enabling module 30 , a trigger module 40 , a relay driving module 50 and a power supply module 60 . In this embodiment, the driving circuit of the relay is used to drive a single relay 70, and the relay 70 is a unilaterally controlled relay.
本实施例中,所述继电器的驱动电路驱动的所述继电器70为电池管理系统(Battery Management System,BMS)中的高压继电器,但不应以此为限,所述继电器的驱动电路可以用于驱动任何可能的继电器。In this embodiment, the relay 70 driven by the drive circuit of the relay is a high-voltage relay in a battery management system (Battery Management System, BMS), but it should not be limited thereto. The drive circuit of the relay can be used for Drive any possible relay.
具体而言,所述处理模块10用于输出使能信号En,以控制所述继电器70高压上电或低压上电。本实施例中,为了便于描述,将所述处理模块10输出的使能信号En简化为一个信号,但应理解,所述处理模块10输出的所述使能信号En可以是一个或多个,此处不再过多赘述。Specifically, the processing module 10 is configured to output an enable signal En to control the relay 70 to be powered on at high voltage or at low voltage. In this embodiment, for ease of description, the enable signal En output by the processing module 10 is simplified as one signal, but it should be understood that the enable signal En output by the processing module 10 may be one or more, No more details here.
所述延时模块20连接所述处理模块10的输出端,用于接入所述使能信号En,并对所述使能信号En进行延时,从而输出延时信号Delay。所述延时模块20例如可以是采用电容的充放电效应进行延时的电路,当所述使能信号En无效时,所述延时模块20中的电容开始充电,电容两端的电压开始上升,直至充满电后,所述延时模块20输出的所述延时信号Delay无效。当所述使能信号En有效时;所述延时模块20中的电容开始放电,电容两端的电压开始下降,直至放电完成后,所述延时模块20输出的所述延时信号Delay有效。可见,所述延时模块20可以实现延时输出的功能,延时时间即为电容充放电 的时间。The delay module 20 is connected to the output end of the processing module 10 for accessing the enable signal En and delaying the enable signal En to output a delay signal Delay. The delay module 20 can be, for example, a circuit that uses the charging and discharging effect of a capacitor to delay time. When the enable signal En is invalid, the capacitor in the delay module 20 starts to charge, and the voltage at both ends of the capacitor starts to rise. The delay signal Delay output by the delay module 20 is invalid until it is fully charged. When the enable signal En is valid; the capacitor in the delay module 20 starts to discharge, and the voltage at both ends of the capacitor starts to drop until the delay signal Delay output by the delay module 20 becomes valid after the discharge is completed. It can be seen that the delay module 20 can realize the function of delay output, and the delay time is the time for charging and discharging the capacitor.
所述供电模块60用于为所述延时模块20提供供电电压V1,以保证所述延时模块20正常工作。作为可选实施例,所述供电模块60不仅可以为所述延时模块20供电,还可以为所述处理模块10提供供电电压,且为所述延时模块20提供的供电电压V1可以与为所述处理模块10提供的供电电压相同或不相同,当然,所述供电模块60还可以为所述继电器的驱动电路中的其他模块供电,此处不再一一举例说明。The power supply module 60 is used to provide a power supply voltage V1 for the delay module 20 to ensure the normal operation of the delay module 20 . As an optional embodiment, the power supply module 60 can not only supply power to the delay module 20, but also provide a power supply voltage to the processing module 10, and the power supply voltage V1 provided to the delay module 20 can be the same as The power supply voltages provided by the processing module 10 are the same or different. Of course, the power supply module 60 can also supply power to other modules in the drive circuit of the relay, which will not be illustrated here one by one.
所述触发模块40中预设有触发条件,所述触发模块40可以根据预定的所述触发条件输出有效的触发信号CP。所述触发条件可以根据实际需要进行设计,具体将在下文中描述。A trigger condition is preset in the trigger module 40, and the trigger module 40 can output a valid trigger signal CP according to the preset trigger condition. The trigger conditions can be designed according to actual needs, which will be described in detail below.
所述使能模块30连接所述处理模块10、所述延时模块20及所述触发模块40的输出端,用于接入所述使能信号En、所述延时信号Delay及所述触发信号CP,并根据所述使能信号En、所述延时信号Delay及所述触发信号CP输出可用于控制所述继电器70通断的逻辑信号Logic。具体而言,所述使能模块30可以在所述使能信号En或所述延时信号Delay有效时输出有效的逻辑信号Logic控制所述继电器70闭合,在所述使能信号En或所述延时信号Delay均无效时输出无效的逻辑信号Logic控制所述继电器70断开,以及在所述处理模块10复位过程中当所述触发信号CP有效时输出无效的逻辑信号Logic控制所述继电器70断开。The enable module 30 is connected to the output terminals of the processing module 10, the delay module 20 and the trigger module 40 for accessing the enable signal En, the delay signal Delay and the trigger signal CP, and output a logic signal Logic that can be used to control the on-off of the relay 70 according to the enable signal En, the delay signal Delay and the trigger signal CP. Specifically, the enable module 30 may output a valid logic signal Logic to control the relay 70 to close when the enable signal En or the delay signal Delay is valid, and when the enable signal En or the delay signal Delay When the delay signal Delay is invalid, an invalid logic signal Logic is output to control the relay 70 to turn off, and when the trigger signal CP is valid during the reset process of the processing module 10, an invalid logic signal Logic is output to control the relay 70 disconnect.
所述继电器驱动模块50连接所述使能模块30的输出端,用于接入所述逻辑信号Logic,并根据所述逻辑信号Logic输出驱动信号Vout,所述继电器70连接所述继电器驱动模块50的输出端,用于接入所述驱动信号Vout,并在所述驱动信号Vout的控制下闭合或断开。具体而言,所述驱动信号Vout为模拟信号,当所述逻辑信号Logic有效时,所述继电器驱动模块50会输出电压 大于或等于第二参考电压Vref2的所述驱动信号Vout,从而控制所述继电器70闭合,当所述逻辑信号Logic无效时,所述继电器驱动模块50会输出电压小于所述第二参考电压Vref2的所述驱动信号Vout,控制所述继电器70断开。The relay driving module 50 is connected to the output end of the enabling module 30 for accessing the logic signal Logic, and outputs a driving signal Vout according to the logic signal Logic, and the relay 70 is connected to the relay driving module 50 The output end of the drive signal Vout is connected to the drive signal Vout, and is turned on or off under the control of the drive signal Vout. Specifically, the driving signal Vout is an analog signal, and when the logic signal Logic is valid, the relay driving module 50 will output the driving signal Vout whose voltage is greater than or equal to the second reference voltage Vref2, thereby controlling the The relay 70 is closed, and when the logic signal Logic is invalid, the relay driving module 50 outputs the driving signal Vout with a voltage lower than the second reference voltage Vref2 to control the relay 70 to be turned off.
所述第二参考电压Vref2可以根据所述继电器70的工作电压进行设计,例如,所述继电器70的工作电压可以为5V,所述第二参考电压Vref2可以设定为3.5V,当所述驱动信号Vout的电压大于或等于3.5V时,即可控制所述继电器70闭合,当所述驱动信号Vout的电压小于3.5V时,所述继电器70断开。The second reference voltage Vref2 can be designed according to the operating voltage of the relay 70, for example, the operating voltage of the relay 70 can be 5V, the second reference voltage Vref2 can be set to 3.5V, when the driving When the voltage of the signal Vout is greater than or equal to 3.5V, the relay 70 can be controlled to close, and when the voltage of the driving signal Vout is less than 3.5V, the relay 70 can be turned off.
所述处理模块10在复位过程中,由于所述延时模块20的延时保持作用,车辆运行时所述继电器70上仍有大电流,此时所述继电器70的供电出现短时间跌落,将导致所述继电器70断开后立即结合,烧坏所述继电器70;同时,若所述延时模块20的供电出现跌落,导致所述延时模块20不能正常工作,所述继电器70可能会因为所述延时模块20误动作。基于此,所述触发条件可以根据所述延时模块20的供电跌落和所述继电器70的供电跌落进行设计,本实施例中,所述触发条件包括所述供电电压V1低于第一参考电压Vref1和/或所述驱动信号Vout的电压低于所述第二参考电压Vref2,也即当所述供电电压V1低于所述第一参考电压Vref1和/或所述驱动信号Vout的电压低于所述第二参考电压Vref2时,所述触发模块40会输出有效的触发信号CP,从而控制所述继电器70断开,防止所述处理模块10在复位过程中,所述继电器70的供电出现短时间跌落时,所述继电器70断开后立即结合,导致烧坏所述继电器70的问题;同时还可以防止所述延时模块20的供电出现跌落时,所述延时模块20不能正常工作,导致所述继电器70因为所述延时模块20误动作的问题。During the reset process of the processing module 10, due to the delay holding function of the delay module 20, there is still a large current on the relay 70 when the vehicle is running. At this time, the power supply of the relay 70 drops for a short time, and the Cause described relay 70 to combine immediately after being disconnected, burn out described relay 70; Simultaneously, if the power supply of described delay module 20 drops, causes described delay module 20 not to work normally, described relay 70 may be because of The delay module 20 malfunctions. Based on this, the trigger condition can be designed according to the power supply drop of the delay module 20 and the power supply drop of the relay 70. In this embodiment, the trigger condition includes that the power supply voltage V1 is lower than the first reference voltage Vref1 and/or the voltage of the driving signal Vout is lower than the second reference voltage Vref2, that is, when the power supply voltage V1 is lower than the first reference voltage Vref1 and/or the voltage of the driving signal Vout is lower than When the second reference voltage Vref2 is reached, the trigger module 40 will output an effective trigger signal CP, thereby controlling the relay 70 to be disconnected, preventing the power supply of the relay 70 from short-circuiting during the reset process of the processing module 10. When the time drops, the relay 70 will be combined immediately after disconnection, causing the problem of burning out the relay 70; at the same time, it can also prevent the delay module 20 from not working properly when the power supply of the delay module 20 drops. This leads to the problem that the relay 70 malfunctions due to the delay module 20 .
当然,所述触发条件不限于此,还可以是其他可能的触发条件,此处不 再一一解释说明,本实施例通过所述触发模块40预设了触发条件,当满足所述触发条件时,所述触发模块40可以输出有效的所述触发信号CP,所述使能模块30可以在所述处理模块10复位过程中根据所述触发信号CP控制所述继电器70断开,相当于可以在所述处理模块10的复位过程中根据需要关闭所述延时模块20的延时保持功能,从而保护所述继电器的驱动电路。Of course, the trigger condition is not limited to this, and may also be other possible trigger conditions, which will not be explained one by one here. In this embodiment, the trigger condition is preset through the trigger module 40. When the trigger condition is satisfied , the trigger module 40 can output the effective trigger signal CP, and the enabling module 30 can control the relay 70 to be disconnected according to the trigger signal CP during the reset process of the processing module 10, which is equivalent to During the reset process of the processing module 10, the delay holding function of the delay module 20 is turned off as required, so as to protect the driving circuit of the relay.
图2为本实施例提供的使能模块30及触发模块40的具体电路图。如图2所示,所述触发模块40包括第一比较器41、第二比较器42和第一或门43。其中,所述第一比较器41的第一输入端连接所述供电模块60的输出端,用于接入所述供电电压V1;所述第一比较器41的第二输入端接入所述第一参考电压Vref1,所述第一比较器41用于比较所述供电电压V1和所述第一参考电压Vref1,并在所述供电电压V1低于所述第一参考电压Vref1时输出有效的第一比较信号。所述第二比较器42的第一输入端连接所述继电器驱动模块50的输出端,用于接入所述驱动信号Vout,所述第二比较器42的第二输入端接入所述第二参考电压Vref2,所述第二比较器42用于比较所述驱动信号Vout的电压和所述第二参考电压Vref2,并在所述驱动信号Vout的电压低于所述第二参考电压Vref2时输出有效的第二比较信号。所述第一或门43连接所述第一比较器41和所述第二比较器42的输出端,用于接入所述第一比较信号和所述第二比较信号,用于对所述第一比较信号和所述第二比较信号进行或运算,并在所述第一比较信号或所述第二比较信号有效时输出有效的所述触发信号CP。如此一来,当所述供电电压V1低于所述第一参考电压Vref1和/或所述驱动信号Vout的电压低于所述第二参考电压Vref2时,所述触发模块40均可以输出有效的所述触发信号CP,其它情况下,所述触发模块40输出无效的所述触发信号CP。FIG. 2 is a specific circuit diagram of the enabling module 30 and the triggering module 40 provided in this embodiment. As shown in FIG. 2 , the trigger module 40 includes a first comparator 41 , a second comparator 42 and a first OR gate 43 . Wherein, the first input end of the first comparator 41 is connected to the output end of the power supply module 60 for accessing the power supply voltage V1; the second input end of the first comparator 41 is connected to the The first reference voltage Vref1, the first comparator 41 is used to compare the power supply voltage V1 and the first reference voltage Vref1, and output a valid voltage when the power supply voltage V1 is lower than the first reference voltage Vref1 first compare signal. The first input end of the second comparator 42 is connected to the output end of the relay driving module 50 for accessing the drive signal Vout, and the second input end of the second comparator 42 is connected to the first Two reference voltages Vref2, the second comparator 42 is used to compare the voltage of the driving signal Vout with the second reference voltage Vref2, and when the voltage of the driving signal Vout is lower than the second reference voltage Vref2 Output a valid second comparison signal. The first OR gate 43 is connected to the output terminals of the first comparator 41 and the second comparator 42, for accessing the first comparison signal and the second comparison signal, for the An OR operation is performed on the first comparison signal and the second comparison signal, and a valid trigger signal CP is output when the first comparison signal or the second comparison signal is valid. In this way, when the power supply voltage V1 is lower than the first reference voltage Vref1 and/or the voltage of the driving signal Vout is lower than the second reference voltage Vref2, the trigger module 40 can output a valid The trigger signal CP, in other cases, the trigger module 40 outputs the trigger signal CP that is invalid.
作为可选实施例,所述触发模块40可以仅包括第一比较器41,所述第一 比较器41的第一输入端连接所述供电模块60的输出端,用于接入所述供电电压V1;所述第一比较器41的第二输入端接入所述第一参考电压Vref1,所述第一比较器41用于比较所述供电电压V1和所述第一参考电压Vref1,并在所述供电电压V1低于所述第一参考电压Vref1时输出有效的所述触发信号CP。如此一来,当所述供电电压V1低于所述第一参考电压Vref1时,所述触发模块40可以输出有效的所述触发信号CP,其它情况下,所述触发模块40输出无效的所述触发信号CP。As an optional embodiment, the trigger module 40 may only include a first comparator 41, and the first input terminal of the first comparator 41 is connected to the output terminal of the power supply module 60 for accessing the power supply voltage V1; the second input terminal of the first comparator 41 is connected to the first reference voltage Vref1, and the first comparator 41 is used to compare the power supply voltage V1 and the first reference voltage Vref1, and When the power supply voltage V1 is lower than the first reference voltage Vref1, the trigger signal CP is valid. In this way, when the power supply voltage V1 is lower than the first reference voltage Vref1, the trigger module 40 can output the valid trigger signal CP; in other cases, the trigger module 40 can output the invalid trigger signal CP. Trigger signal CP.
作为可选实施例,所述触发模块40可以仅包括第二比较器42,所述第二比较器42的第一输入端连接所述继电器驱动模块50的输出端,用于接入所述驱动信号Vout,所述第二比较器42的第二输入端接入所述第二参考电压Vref2,所述第二比较器42用于比较所述驱动信号Vout的电压和所述第二参考电压Vref2,并在所述驱动信号Vout的电压低于所述第二参考电压Vref2时输出有效的所述触发信号CP。如此一来,当所述驱动信号Vout的电压低于所述第二参考电压Vref2时,所述触发模块40可以输出有效的所述触发信号CP,其它情况下,所述触发模块40输出无效的所述触发信号CP。As an optional embodiment, the trigger module 40 may only include a second comparator 42, the first input terminal of the second comparator 42 is connected to the output terminal of the relay drive module 50 for connecting the drive signal Vout, the second input terminal of the second comparator 42 is connected to the second reference voltage Vref2, and the second comparator 42 is used to compare the voltage of the driving signal Vout with the second reference voltage Vref2 , and output the effective trigger signal CP when the voltage of the driving signal Vout is lower than the second reference voltage Vref2. In this way, when the voltage of the driving signal Vout is lower than the second reference voltage Vref2, the trigger module 40 can output the valid trigger signal CP, and in other cases, the trigger module 40 can output an invalid The trigger signal CP.
进一步地,请继续参阅图2,本实施例中,所述使能模块30包括锁存器31、与门32及第二或门33。所述锁存器31的输入端D连接所述处理模块10的输出端,用于接入所述使能信号En,所述锁存器31的复位端E接入所述触发信号CP,当所述触发信号CP无效时,所述锁存器31处于锁存状态,当所述触发信号CP有效时,所述锁存器31处于复位状态。所述与门32连接所述延时模块20及所述锁存器31的输出端Y,用于接入所述延时信号Delay与所述锁存器31的输出信号并对所述延时信号Delay和所述锁存器31的输出信号进行与运算。所述第二或门33连接所述处理模块10及所述与门32的输出端,用于接入所述使能信号En及所述与门32的输出信号并对所述使能信 号En及所述与门32的输出信号进行或运算,并输出所述逻辑信号Logic。Further, please continue to refer to FIG. 2 , in this embodiment, the enabling module 30 includes a latch 31 , an AND gate 32 and a second OR gate 33 . The input terminal D of the latch 31 is connected to the output terminal of the processing module 10 for accessing the enable signal En, and the reset terminal E of the latch 31 is connected to the trigger signal CP, when When the trigger signal CP is invalid, the latch 31 is in a latch state, and when the trigger signal CP is active, the latch 31 is in a reset state. The AND gate 32 is connected to the delay module 20 and the output terminal Y of the latch 31 for accessing the delay signal Delay and the output signal of the latch 31 and delaying the delay An AND operation is performed on the signal Delay and the output signal of the latch 31 . The second OR gate 33 is connected to the processing module 10 and the output end of the AND gate 32, and is used for accessing the enable signal En and the output signal of the AND gate 32 and controlling the enable signal En. and the output signal of the AND gate 32 to perform an OR operation, and output the logic signal Logic.
本实施例中,所述使能信号En、延时信号Delay、所述逻辑信号Logic及所述触发信号CP均为数字信号。接下来将以数字信号为“1”时有效,为“0”时无效详细说明所述触发模块40及所述使能模块30的时序。In this embodiment, the enable signal En, the delay signal Delay, the logic signal Logic and the trigger signal CP are all digital signals. Next, the sequence of the triggering module 40 and the enabling module 30 will be described in detail assuming that the digital signal is valid when it is "1" and invalid when it is "0".
当所述处理模块10上电时,所述使能信号En为“1”,不论所述第二或门33的另一个输入是“1”还是“0”,所述第二或门33输出的所述逻辑信号Logic为“1”,所述继电器驱动模块50输出所述驱动信号Vout控制所述继电器70闭合。所述处理模块10正常下电/复位时,所述使能信号En为“0”,由于所述延时模块20的延时作用,所述延时信号Delay在延时时间过后变为“0”,此时所述锁存器31处于锁存状态(锁存上电时的使能信号En),所述锁存器31的输出为“1”,所述与门32的输出在延时时间过后变为“0”,所述第二或门33输出的所述逻辑信号Logic在延时时间过后变为“0”,所述继电器驱动模块50输出所述驱动信号Vout控制所述继电器70断开。所述处理模块10在复位过程中,在所述延时时间内,若所述供电电压V1低于第一参考电压Vref1和/或所述驱动信号Vout的电压低于第二参考电压Vref2,所述第一或门43输出有效的触发信号CP,所述锁存器31处于复位状态,所述锁存器31的输出立即变为“0”,所述与门32的输出立即变为“0”,所述第二或门33输出的所述逻辑信号Logic立即变为“0”,所述继电器驱动模块50立即输出所述驱动信号Vout控制所述继电器70断开。可见,所述使能模块30可以在所述使能信号En或所述延时信号Delay有效时控制所述继电器70闭合,且在所述处理模块10复位过程中当所述触发信号CP有效时控制所述继电器70断开。When the processing module 10 is powered on, the enable signal En is "1", regardless of whether the other input of the second OR gate 33 is "1" or "0", the second OR gate 33 outputs The logic signal Logic is "1", and the relay drive module 50 outputs the drive signal Vout to control the relay 70 to close. When the processing module 10 is normally powered off/reset, the enable signal En is "0", and due to the delay function of the delay module 20, the delay signal Delay becomes "0" after the delay time ", now the latch 31 is in the latched state (the enable signal En when the latch is powered on), the output of the latch 31 is "1", and the output of the AND gate 32 is delayed becomes "0" after the time elapses, the logic signal Logic output by the second OR gate 33 becomes "0" after the delay time elapses, and the relay drive module 50 outputs the drive signal Vout to control the relay 70 disconnect. During the reset process of the processing module 10, if the power supply voltage V1 is lower than the first reference voltage Vref1 and/or the voltage of the driving signal Vout is lower than the second reference voltage Vref2 within the delay time, the The first OR gate 43 outputs an effective trigger signal CP, the latch 31 is in a reset state, the output of the latch 31 immediately becomes "0", and the output of the AND gate 32 immediately becomes "0" ”, the logic signal Logic output by the second OR gate 33 immediately becomes “0”, and the relay driving module 50 immediately outputs the driving signal Vout to control the relay 70 to turn off. It can be seen that the enable module 30 can control the relay 70 to close when the enable signal En or the delay signal Delay is valid, and when the trigger signal CP is valid during the reset process of the processing module 10 The relay 70 is controlled to be turned off.
进一步地,所述锁存器31的输出端Y上设置有第一采样点K1,所述处理模块10实时采集所述第一采样点K1上的信号;和/或,所述与门32的输 出端上设置有第二采样点K2,所述处理模块10实时采集所述第二采样点K2上的信号。由于所述第一采样点K1上的信号可以表征所述锁存器31的输出信号,所述第二采样点K2上的信号可以表征所述延时信号Delay及所述锁存器31的输出信号,所述处理模块10通过实时采集所述第一采样点K1及所述第二采样点K2上的信号可以对所述锁存器31或所述延时模块20进行故障诊断。Further, the output terminal Y of the latch 31 is provided with a first sampling point K1, and the processing module 10 collects the signal on the first sampling point K1 in real time; and/or, the AND gate 32 A second sampling point K2 is set on the output end, and the processing module 10 collects the signal on the second sampling point K2 in real time. Since the signal on the first sampling point K1 can represent the output signal of the latch 31, the signal on the second sampling point K2 can represent the delay signal Delay and the output of the latch 31 signal, the processing module 10 can diagnose the fault of the latch 31 or the delay module 20 by collecting the signals at the first sampling point K1 and the second sampling point K2 in real time.
实施例二Embodiment two
图3为本实施例提供的继电器的驱动电路的局部示意图。如图3所示,与实施例一的区别在于,本实施例中,所述继电器70为双边控制的继电器,所述延时模块、所述继电器驱动模块、所述与门及所述第二或门均具有两组,分别用于控制所述继电器70的高边和低边。FIG. 3 is a partial schematic diagram of the driving circuit of the relay provided in this embodiment. As shown in Figure 3, the difference from Embodiment 1 is that in this embodiment, the relay 70 is a bilaterally controlled relay, and the delay module, the relay drive module, the AND gate and the second Each OR gate has two groups, which are respectively used to control the high side and low side of the relay 70 .
具体而言,所述延时模块包括延时模块21和延时模块22,所述继电器驱动模块包括继电器驱动模块51和继电器驱动模块52,所述与门包括与门321及与门322,所述第二或门包括第二或门331及第二或门332。所述延时模块21及所述延时模块22均连接所述处理模块10的输出端,用于接入所述使能信号En,所述延时模块21及所述延时模块22分别根据所述使能信号En输出所述延时信号Delay1和所述延时信号Delay2。所述与门321连接所述延时模块21及所述锁存器31的输出端Y,用于接入所述延时信号Delay1和所述锁存器31的输出信号并对所述延时信号Delay1与所述锁存器31的输出信号进行与运算;所述与门322连接所述延时模块22及所述锁存器31的输出端Y,用于接入所述延时信号Delay2和所述锁存器31的输出信号并对所述延时信号Delay2与所述锁存器31的输出信号进行与运算。所述第二或门331连接所述处理模块10及所述与门321的输出端,用于接入所述使能信号En及所述与 门321的输出信号并对所述使能信号En及所述与门321的输出信号进行或运算,并输出所述逻辑信号Logic1;所述第二或门332连接所述处理模块10及所述与门322的输出端,用于接入所述使能信号En及所述与门322的输出信号并对所述使能信号En及所述与门322的输出信号进行或运算,并输出所述逻辑信号Logic2。所述继电器驱动模块51和所述继电器驱动模块52分别连接所述第二或门331及所述第二或门332的输出端,并分别根据所述逻辑信号Logic1和所述逻辑信号Logic2输出所述驱动信号Vout1和所述驱动信号Vout2。所述驱动信号Vout1和所述驱动信号Vout2共同驱动所述继电器70的高边和低边。Specifically, the delay module includes a delay module 21 and a delay module 22, the relay driver module includes a relay driver module 51 and a relay driver module 52, and the AND gate includes an AND gate 321 and an AND gate 322, so The second OR gate includes a second OR gate 331 and a second OR gate 332 . The delay module 21 and the delay module 22 are connected to the output end of the processing module 10 for accessing the enable signal En, and the delay module 21 and the delay module 22 are respectively based on The enable signal En outputs the delay signal Delay1 and the delay signal Delay2. The AND gate 321 is connected to the delay module 21 and the output terminal Y of the latch 31 for accessing the delay signal Delay1 and the output signal of the latch 31 and delaying the delay The signal Delay1 is ANDed with the output signal of the latch 31; the AND gate 322 is connected to the delay module 22 and the output terminal Y of the latch 31 for accessing the delay signal Delay2 and the output signal of the latch 31 and perform an AND operation on the delay signal Delay2 and the output signal of the latch 31 . The second OR gate 331 is connected to the processing module 10 and the output end of the AND gate 321, and is used for accessing the enable signal En and the output signal of the AND gate 321 and performing an operation on the enable signal En. and the output signal of the AND gate 321 to perform an OR operation, and output the logic signal Logic1; the second OR gate 332 is connected to the processing module 10 and the output end of the AND gate 322 for accessing the The enable signal En and the output signal of the AND gate 322 perform an OR operation on the enable signal En and the output signal of the AND gate 322 to output the logic signal Logic2. The relay driving module 51 and the relay driving module 52 are respectively connected to the output terminals of the second OR gate 331 and the second OR gate 332, and output the output terminals according to the logic signal Logic1 and the logic signal Logic2 respectively. The driving signal Vout1 and the driving signal Vout2. The driving signal Vout1 and the driving signal Vout2 jointly drive the high side and the low side of the relay 70 .
本实施例中,所述继电器70的高边和低边共用所述触发模块40及所述锁存器31,所述触发条件包括所述供电电压V1低于所述第一参考电压Vref1和/或所述继电器70的高边的所述驱动信号Vout1的电压低于所述第二参考电压Vref2。因此,所述第二比较器42的第一输入端可以连接所述继电器驱动模块51的输出端,用于接入所述驱动信号Vout1,所述第二比较器42用于比较所述驱动信号Vout1的电压和所述第二参考电压Vref2,并在所述驱动信号Vout1的电压低于所述第二参考电压Vref2时输出有效的第二比较信号。In this embodiment, the high side and the low side of the relay 70 share the trigger module 40 and the latch 31, and the trigger condition includes that the power supply voltage V1 is lower than the first reference voltage Vref1 and/or Or the voltage of the driving signal Vout1 of the high side of the relay 70 is lower than the second reference voltage Vref2. Therefore, the first input terminal of the second comparator 42 can be connected to the output terminal of the relay driving module 51 for accessing the driving signal Vout1, and the second comparator 42 is used for comparing the driving signal the voltage of Vout1 and the second reference voltage Vref2, and output a valid second comparison signal when the voltage of the driving signal Vout1 is lower than the second reference voltage Vref2.
进一步地,本实施例中,所述与门321及所述与门322的输出端分别设置了第二采样点K21和第二采样点K22,由于所述第一采样点K1上的信号可以表征所述锁存器31的输出信号,所述第二采样点K21上的信号又可以表征所述延时信号Delay1及所述锁存器31的输出信号,所述第二采样点K22上的信号又可以表征所述延时信号Delay2及所述锁存器31的输出信号,所述处理模块10通过实时采集所述第一采样点K1、所述第二采样点K21及所述第二采样点K22上的信号可以对所述锁存器31、所述延时模块21及所述延时模块22进行故障诊断。Further, in this embodiment, the output terminals of the AND gate 321 and the AND gate 322 are respectively provided with a second sampling point K21 and a second sampling point K22, since the signal on the first sampling point K1 can represent The output signal of the latch 31, the signal on the second sampling point K21 can represent the delay signal Delay1 and the output signal of the latch 31, and the signal on the second sampling point K22 The delay signal Delay2 and the output signal of the latch 31 can also be characterized, and the processing module 10 collects the first sampling point K1, the second sampling point K21 and the second sampling point in real time The signal on K22 can perform fault diagnosis on the latch 31 , the delay module 21 and the delay module 22 .
实施例三Embodiment three
图4为本实施例提供的继电器的驱动电路的局部示意图。如图4所示,与实施例一的区别在于,本实施例中,所述继电器驱动电路用于驱动两个单边控制的继电器,两个所述继电器的工作电压可以相同或不相同。FIG. 4 is a partial schematic diagram of the driving circuit of the relay provided in this embodiment. As shown in FIG. 4 , the difference from Embodiment 1 is that in this embodiment, the relay driving circuit is used to drive two unilaterally controlled relays, and the working voltages of the two relays may be the same or different.
具体而言,所述继电器包括继电器71和继电器72,所述继电器71和所述继电器72共用所述触发模块40、所述延时模块20、所述锁存器31及所述与门32。所述第二或门和所述继电器驱动模块均具有两组,所述第二或门包括第二或门333及第二或门334,所述继电器驱动模块包括继电器驱动模块53和继电器驱动模块54。Specifically, the relays include a relay 71 and a relay 72 , and the relay 71 and the relay 72 share the trigger module 40 , the delay module 20 , the latch 31 and the AND gate 32 . Both the second OR gate and the relay drive module have two groups, the second OR gate includes a second OR gate 333 and the second OR gate 334, and the relay drive module includes a relay drive module 53 and a relay drive module 54.
所述第二或门333连接所述处理模块10及所述与门32的输出端,用于接入所述使能信号En及所述与门32的输出信号并对所述使能信号En及所述与门32的输出信号进行或运算,并输出所述逻辑信号Logic3;所述第二或门334连接所述处理模块10及所述与门32的输出端,用于接入所述使能信号En及所述与门32的输出信号并对所述使能信号En及所述与门32的输出信号进行或运算,并输出所述逻辑信号Logic4。所述继电器驱动模块53和所述继电器驱动模块54分别连接所述第二或门333及所述第二或门334的输出端,并分别根据所述逻辑信号Logic3和所述逻辑信号Logic4输出驱动信号Vout3和驱动信号Vout4。所述驱动信号Vout3和所述驱动信号Vout4分别驱动所述继电器71和所述继电器72。The second OR gate 333 is connected to the processing module 10 and the output end of the AND gate 32, and is used for accessing the enable signal En and the output signal of the AND gate 32 and performing an operation on the enable signal En. and the output signal of the AND gate 32 to perform an OR operation, and output the logic signal Logic3; the second OR gate 334 is connected to the processing module 10 and the output end of the AND gate 32 for accessing the The enable signal En and the output signal of the AND gate 32 perform an OR operation on the enable signal En and the output signal of the AND gate 32 to output the logic signal Logic4. The relay driving module 53 and the relay driving module 54 are respectively connected to the output terminals of the second OR gate 333 and the second OR gate 334, and output driving signals according to the logic signal Logic3 and the logic signal Logic4 respectively. Signal Vout3 and drive signal Vout4. The driving signal Vout3 and the driving signal Vout4 respectively drive the relay 71 and the relay 72 .
本实施例中,所述继电器71和所述继电器72的工作电压相同,所述触发条件包括所述供电电压V1低于所述第一参考电压Vref1和/或所述驱动信号Vout3的电压低于所述第二参考电压Vref2;或者,所述触发条件包括所述供电电压V1低于所述第一参考电压Vref1和/或所述驱动信号Vout4的电压低于 所述第二参考电压Vref2。因此,所述第二比较器42的第一输入端可以连接所述继电器驱动模块53的输出端,用于接入所述驱动信号Vout3,所述第二比较器42用于比较所述驱动信号Vout3的电压和所述第二参考电压Vref2,并在所述驱动信号Vout3的电压低于所述第二参考电压Vref2时输出有效的第二比较信号;或者,所述第二比较器42的第一输入端可以连接所述继电器驱动模块54的输出端,用于接入所述驱动信号Vout4,所述第二比较器42用于比较所述驱动信号Vout4的电压和所述第二参考电压Vref2,并在所述驱动信号Vout4的电压低于所述第二参考电压Vref2时输出有效的第二比较信号。In this embodiment, the working voltages of the relay 71 and the relay 72 are the same, and the trigger condition includes that the power supply voltage V1 is lower than the first reference voltage Vref1 and/or the voltage of the driving signal Vout3 is lower than The second reference voltage Vref2; or, the trigger condition includes that the power supply voltage V1 is lower than the first reference voltage Vref1 and/or the voltage of the driving signal Vout4 is lower than the second reference voltage Vref2. Therefore, the first input terminal of the second comparator 42 can be connected to the output terminal of the relay driving module 53 for accessing the driving signal Vout3, and the second comparator 42 is used for comparing the driving signal the voltage of Vout3 and the second reference voltage Vref2, and output a valid second comparison signal when the voltage of the driving signal Vout3 is lower than the second reference voltage Vref2; or, the first comparator 42 of the second comparator 42 An input terminal can be connected to the output terminal of the relay driving module 54 for accessing the driving signal Vout4, and the second comparator 42 is used for comparing the voltage of the driving signal Vout4 with the second reference voltage Vref2 , and output a valid second comparison signal when the voltage of the driving signal Vout4 is lower than the second reference voltage Vref2.
当然,若所述继电器71和所述继电器72的工作电压不相同,则所述第二比较器42的第二输入端输入的所述第二参考电压Vref2的数值应该与所述继电器71和所述继电器72对应。例如,所述继电器71的工作电压为5V,当所述驱动信号Vout3的电压大于3.5V时即可控制所述继电器71闭合,所述继电器72的工作电压为10V,当所述驱动信号Vout4的电压大于8V时即可控制所述继电器72闭合,当所述第二比较器42的第一输入端连接所述继电器驱动模块53的输出端时,所述第二比较器42的第二输入端输入的所述第二参考电压Vref2的数值应该为3.5V;当所述第二比较器42的第一输入端连接所述继电器驱动模块54的输出端时,所述第二比较器42的第二输入端输入的所述第二参考电压Vref2的数值应该为8V。Of course, if the operating voltages of the relay 71 and the relay 72 are different, the value of the second reference voltage Vref2 inputted by the second input terminal of the second comparator 42 should be the same as that of the relay 71 and the relay 72. Corresponds to the above relay 72. For example, the operating voltage of the relay 71 is 5V. When the voltage of the driving signal Vout3 is greater than 3.5V, the relay 71 can be controlled to close. The operating voltage of the relay 72 is 10V. When the voltage of the driving signal Vout4 When the voltage is greater than 8V, the relay 72 can be controlled to close. When the first input terminal of the second comparator 42 is connected to the output terminal of the relay drive module 53, the second input terminal of the second comparator 42 The input value of the second reference voltage Vref2 should be 3.5V; when the first input terminal of the second comparator 42 is connected to the output terminal of the relay drive module 54, the second comparator 42 of the second The value of the second reference voltage Vref2 input by the two input terminals should be 8V.
应理解,所述继电器的驱动电路不限于驱动两个单边控制的继电器,还可以驱动三个或三个以上的单边控制的继电器。It should be understood that the driving circuit of the relay is not limited to driving two unilaterally controlled relays, and may also drive three or more unilaterally controlled relays.
实施例四Embodiment four
图5为本实施例提供的继电器的驱动电路的局部示意图。如图5所示,与实施例二的区别在于,本实施例中,所述继电器驱动电路用于驱动两个双 边控制的继电器,两个所述继电器的工作电压可以相同或不相同。FIG. 5 is a partial schematic diagram of the driving circuit of the relay provided in this embodiment. As shown in Figure 5, the difference from Embodiment 2 is that in this embodiment, the relay driving circuit is used to drive two bilaterally controlled relays, and the working voltages of the two relays may be the same or different.
具体而言,所述继电器包括继电器73和继电器74,所述继电器73和所述继电器74共用所述触发模块40、所述延时模块21、所述延时模块22、所述锁存器31、所述与门321及所述与门322。所述第二或门及所述继电器驱动模块均具有四组,所述继电器73和所述继电器74分别对应两组所述第二或门及所述继电器驱动模块,每两组所述第二或门及所述继电器驱动模块分别用于控制所述继电器73和所述继电器74的高边和低边。Specifically, the relay includes a relay 73 and a relay 74, and the relay 73 and the relay 74 share the trigger module 40, the delay module 21, the delay module 22, and the latch 31. , the AND gate 321 and the AND gate 322 . The second OR gate and the relay drive module each have four groups, the relay 73 and the relay 74 respectively correspond to two groups of the second OR gate and the relay drive module, and each two groups of the second OR gate The OR gate and the relay driving module are used to control the high side and the low side of the relay 73 and the relay 74 respectively.
具体而言,所述第二或门包括第二或门331、第二或门332、第二或门335、第二或门336,所述继电器驱动模块包括继电器驱动模块51、继电器驱动模块52、继电器驱动模块55、继电器驱动模块56。所述第二或门331及所述第二或门335均连接所述处理模块10及所述与门321的输出端,用于接入所述使能信号En及所述与门321的输出信号并对所述使能信号En及所述与门321的输出信号进行或运算,并分别输出所述逻辑信号Logic1及逻辑信号Logic5;所述第二或门332和所述第二或门336连接所述处理模块10及所述与门322的输出端,用于接入所述使能信号En及所述与门322的输出信号并对所述使能信号En及所述与门322的输出信号进行或运算,并分别输出所述逻辑信号Logic2及逻辑信号Logic6。所述继电器驱动模块51和所述继电器驱动模块52分别连接所述第二或门331及所述第二或门332的输出端,并分别根据所述逻辑信号Logic1和所述逻辑信号Logic2输出所述驱动信号Vout1和所述驱动信号Vout2,所述驱动信号Vout1和所述驱动信号Vout2共同驱动所述继电器73的高边和低边。所述继电器驱动模块55和所述继电器驱动模块56分别连接所述第二或门335及所述第二或门336的输出端,并分别根据所述逻辑信号Logic5和所述逻辑信号Logic6输出所述驱动信号Vout5和所述驱动信号Vout6,所述驱动信号Vout5和所述驱动信号Vout6共同驱动所述继电器74的 高边和低边。Specifically, the second OR gate includes a second OR gate 331, a second OR gate 332, a second OR gate 335, and a second OR gate 336, and the relay drive module includes a relay drive module 51, a relay drive module 52 , a relay driving module 55 , and a relay driving module 56 . Both the second OR gate 331 and the second OR gate 335 are connected to the processing module 10 and the output end of the AND gate 321 for accessing the enable signal En and the output of the AND gate 321 signal and perform an OR operation on the enable signal En and the output signal of the AND gate 321, and output the logic signal Logic1 and the logic signal Logic5 respectively; the second OR gate 332 and the second OR gate 336 Connect the processing module 10 and the output end of the AND gate 322, for accessing the enable signal En and the output signal of the AND gate 322 and controlling the enable signal En and the AND gate 322 An OR operation is performed on the output signal, and the logic signal Logic2 and the logic signal Logic6 are respectively output. The relay driving module 51 and the relay driving module 52 are respectively connected to the output terminals of the second OR gate 331 and the second OR gate 332, and output the output terminals according to the logic signal Logic1 and the logic signal Logic2 respectively. The driving signal Vout1 and the driving signal Vout2, the driving signal Vout1 and the driving signal Vout2 jointly drive the high side and the low side of the relay 73 . The relay drive module 55 and the relay drive module 56 are respectively connected to the output terminals of the second OR gate 335 and the second OR gate 336, and output the output terminals according to the logic signal Logic5 and the logic signal Logic6 respectively. The driving signal Vout5 and the driving signal Vout6 , the driving signal Vout5 and the driving signal Vout6 jointly drive the high side and the low side of the relay 74 .
本实施例中,所述继电器73和所述继电器74的工作电压相同,所述触发条件包括所述供电电压V1低于所述第一参考电压Vref1和/或所述继电器73的高边的驱动信号Vout1的电压低于所述第二参考电压Vref2;或者,所述触发条件包括所述供电电压V1低于所述第一参考电压Vref1和/或所述继电器74的高边的驱动信号Vout5的电压低于所述第二参考电压Vref2。因此,所述第二比较器42的第一输入端可以连接所述继电器驱动模块51的输出端,用于接入所述驱动信号Vout1,所述第二比较器42用于比较所述驱动信号Vout1的电压和所述第二参考电压Vref2,并在所述驱动信号Vout1的电压低于所述第二参考电压Vref2时输出有效的第二比较信号;或者,所述第二比较器42的第一输入端可以连接所述继电器驱动模块55的输出端,用于接入所述驱动信号Vout5,所述第二比较器42用于比较所述驱动信号Vout5的电压和所述第二参考电压Vref2,并在所述驱动信号Vout5的电压低于所述第二参考电压Vref2时输出有效的第二比较信号。In this embodiment, the working voltages of the relay 73 and the relay 74 are the same, and the trigger condition includes that the power supply voltage V1 is lower than the first reference voltage Vref1 and/or the driving of the high side of the relay 73 The voltage of the signal Vout1 is lower than the second reference voltage Vref2; or, the trigger condition includes that the power supply voltage V1 is lower than the first reference voltage Vref1 and/or the driving signal Vout5 of the high side of the relay 74 The voltage is lower than the second reference voltage Vref2. Therefore, the first input terminal of the second comparator 42 can be connected to the output terminal of the relay driving module 51 for accessing the driving signal Vout1, and the second comparator 42 is used for comparing the driving signal the voltage of Vout1 and the second reference voltage Vref2, and output a valid second comparison signal when the voltage of the driving signal Vout1 is lower than the second reference voltage Vref2; or, the first comparator 42 of the second comparator 42 An input terminal can be connected to the output terminal of the relay driving module 55 for accessing the driving signal Vout5, and the second comparator 42 is used for comparing the voltage of the driving signal Vout5 with the second reference voltage Vref2 , and output a valid second comparison signal when the voltage of the driving signal Vout5 is lower than the second reference voltage Vref2.
当然,若所述继电器73和所述继电器74的工作电压不相同,则所述第二比较器42的第二输入端输入的所述第二参考电压Vref2的数值应该与所述继电器73和所述继电器74对应。例如,所述继电器73的工作电压为5V,当所述驱动信号Vout1的电压大于3.5V时即可控制所述继电器73闭合,所述继电器74的工作电压为10V,当所述驱动信号Vout5的电压大于8V时即可控制所述继电器72闭合,当所述第二比较器42的第一输入端连接所述继电器驱动模块51的输出端时,所述第二比较器42的第二输入端输入的所述第二参考电压Vref2的数值应该为3.5V;当所述第二比较器42的第一输入端连接所述继电器驱动模块55的输出端时,所述第二比较器42的第二输入端输入的所述第二参考电压Vref2的数值应该为8V。Of course, if the operating voltages of the relay 73 and the relay 74 are different, the value of the second reference voltage Vref2 inputted by the second input terminal of the second comparator 42 should be the same as that of the relay 73 and the relay 74. Corresponding to the above relay 74. For example, the operating voltage of the relay 73 is 5V. When the voltage of the driving signal Vout1 is greater than 3.5V, the relay 73 can be controlled to close. The operating voltage of the relay 74 is 10V. When the voltage of the driving signal Vout5 When the voltage is greater than 8V, the relay 72 can be controlled to close. When the first input terminal of the second comparator 42 is connected to the output terminal of the relay drive module 51, the second input terminal of the second comparator 42 The input value of the second reference voltage Vref2 should be 3.5V; when the first input terminal of the second comparator 42 is connected to the output terminal of the relay drive module 55, the second comparator 42 of the second The value of the second reference voltage Vref2 input by the two input terminals should be 8V.
应理解,所述继电器的驱动电路不限于驱动两个双边控制的继电器,还可以驱动三个或三个以上的双边控制的继电器。It should be understood that the driving circuit of the relay is not limited to driving two bilaterally controlled relays, and can also drive three or more bilaterally controlled relays.
综上,在本发明实施例提供的继电器的驱动电路中,包括处理模块、延时模块、触发模块及使能模块,所述处理模块用于输出使能信号,所述延时模块用于对所述使能信号进行延时,以输出延时信号,所述触发模块用于在所述处理模块复位过程中根据预定的触发条件输出有效的触发信号,所述使能模块用于在所述使能信号或所述延时信号有效时控制所述继电器闭合,并在所述触发信号有效时控制所述继电器断开。本发明通过所述触发模块预设了触发条件,当满足所述触发条件时,所述触发模块可以输出有效的所述触发信号,所述使能模块可以在所述处理模块复位过程中根据所述触发信号控制所述继电器断开,相当于可以在所述处理模块的复位过程中根据需要关闭所述延时模块的延时保持功能,从而保护所述继电器的驱动电路。To sum up, the driving circuit of the relay provided in the embodiment of the present invention includes a processing module, a delay module, a trigger module and an enabling module, the processing module is used to output the enable signal, and the delay module is used to The enable signal is delayed to output a delayed signal, and the trigger module is used to output a valid trigger signal according to a predetermined trigger condition during the reset process of the processing module. When the enable signal or the delay signal is valid, the relay is controlled to be closed, and when the trigger signal is valid, the relay is controlled to be disconnected. The present invention presets trigger conditions through the trigger module, and when the trigger conditions are satisfied, the trigger module can output the valid trigger signal, and the enable module can reset the processing module according to the The trigger signal controls the disconnection of the relay, which is equivalent to turning off the delay hold function of the delay module as required during the reset process of the processing module, thereby protecting the drive circuit of the relay.
此外,所述触发条件包括所述供电电压低于第一参考电压和/或所述驱动信号的电压低于第二参考电压,从而防止所述继电器的供电出现短时间跌落时,所述继电器断开后立即结合,导致烧坏所述继电器的问题;同时还可以防止所述延时模块的供电出现跌落时,所述延时模块不能正常工作,导致所述继电器因为所述延时模块误动作的问题。In addition, the trigger condition includes that the power supply voltage is lower than the first reference voltage and/or the driving signal voltage is lower than the second reference voltage, so as to prevent the relay from shutting down when the power supply of the relay drops for a short time. Combined immediately after opening, causing the problem of burning out the relay; at the same time, it can also prevent the delay module from not working properly when the power supply of the delay module drops, causing the relay to malfunction due to the delay module The problem.
需要说明的是,本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的系统而言,由于与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment focuses on the differences from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for relevant information, please refer to the description of the method part.
还需要说明的是,虽然本发明已以较佳实施例披露如上,然而上述实施例并非用以限定本发明。对于任何熟悉本领域的技术人员而言,在不脱离本 发明技术方案范围情况下,都可利用上述揭示的技术内容对本发明技术方案作出许多可能的变动和修饰,或修改为等同变化的等效实施例。因此,凡是未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所做的任何简单修改、等同变化及修饰,均仍属于本发明技术方案保护的范围。It should also be noted that although the present invention has been disclosed above with preferred embodiments, the above embodiments are not intended to limit the present invention. For any person skilled in the art, without departing from the scope of the technical solution of the present invention, the technical content disclosed above can be used to make many possible changes and modifications to the technical solution of the present invention, or be modified to be equivalent to equivalent changes. Example. Therefore, any simple modifications, equivalent changes and modifications made to the above embodiments according to the technical essence of the present invention, which do not deviate from the content of the technical solution of the present invention, still belong to the scope of protection of the technical solution of the present invention.
还应当理解的是,除非特别说明或者指出,否则说明书中的术语“第一”、“第二”、“第三”等描述仅仅用于区分说明书中的各个组件、元素、步骤等,而不是用于表示各个组件、元素、步骤之间的逻辑关系或者顺序关系等。It should also be understood that, unless otherwise specified or pointed out, the terms “first”, “second”, “third” and other descriptions in the specification are only used to distinguish each component, element, step, etc. in the specification, rather than It is used to express the logical relationship or sequence relationship between various components, elements, and steps.
此外还应该认识到,此处描述的术语仅仅用来描述特定实施例,而不是用来限制本发明的范围。必须注意的是,此处的以及所附权利要求中使用的单数形式“一个”和“一种”包括复数基准,除非上下文明确表示相反意思。例如,对“一个步骤”或“一个装置”的引述意味着对一个或多个步骤或装置的引述,并且可能包括次级步骤以及次级装置。应该以最广义的含义来理解使用的所有连词。以及,词语“或”应该被理解为具有逻辑“或”的定义,而不是逻辑“异或”的定义,除非上下文明确表示相反意思。此外,本发明实施例中的方法和/或设备的实现可包括手动、自动或组合地执行所选任务。In addition, it should be understood that the terminology described herein is used to describe particular embodiments only and is not intended to limit the scope of the invention. It must be noted that as used herein and in the appended claims, the singular forms "a" and "an" include plural referents unless the context clearly dictates otherwise. For example, a reference to "a step" or "a means" means a reference to one or more steps or means, and may include sub-steps as well as sub-means. All conjunctions used should be understood in their broadest sense. And, the word "or" should be understood as having the definition of logical "or" rather than logical "exclusive or", unless the context clearly expresses the contrary meaning. Additionally, implementation of the method and/or apparatus in embodiments of the present invention may include performing selected tasks manually, automatically, or in combination.

Claims (10)

  1. 一种继电器的驱动电路,其特征在于,包括:A drive circuit for a relay, characterized in that it comprises:
    处理模块,用于输出使能信号;A processing module, configured to output an enabling signal;
    延时模块,连接所述处理模块的输出端,用于对所述使能信号进行延时,以输出延时信号;a delay module, connected to the output terminal of the processing module, for delaying the enable signal to output a delayed signal;
    触发模块,用于根据预定的触发条件输出有效的触发信号;以及,a trigger module, configured to output a valid trigger signal according to a predetermined trigger condition; and,
    使能模块,连接所述处理模块、所述延时模块及所述触发模块的输出端,用于在所述使能信号或所述延时信号有效时控制所述继电器闭合,且在所述处理模块复位过程中当所述触发信号有效时控制所述继电器断开。An enabling module, connected to the output terminals of the processing module, the delay module, and the trigger module, for controlling the relay to close when the enabling signal or the delay signal is valid, and when the The relay is controlled to be turned off when the trigger signal is valid during the reset process of the processing module.
  2. 如权利要求1所述的继电器的驱动电路,其特征在于,还包括:The driving circuit of the relay according to claim 1, further comprising:
    供电模块,至少用于向所述延时模块提供供电电压;A power supply module, at least for providing a power supply voltage to the delay module;
    继电器驱动模块,连接所述使能模块的输出端,用于根据所述使能模块的输出信号输出驱动信号控制所述继电器的通断;以及,a relay driving module, connected to the output terminal of the enabling module, and used to output a driving signal to control the on-off of the relay according to the output signal of the enabling module; and,
    所述触发条件包括所述供电电压低于第一参考电压和/或所述驱动信号的电压低于第二参考电压。The trigger condition includes that the supply voltage is lower than a first reference voltage and/or the voltage of the driving signal is lower than a second reference voltage.
  3. 如权利要求2所述的继电器的驱动电路,其特征在于,所述触发模块包括:The driving circuit of the relay according to claim 2, wherein the trigger module comprises:
    第一比较器,所述第一比较器的第一输入端连接所述供电模块的输出端,所述第一比较器的第二输入端接入所述第一参考电压,所述第一比较器用于比较所述供电电压和所述第一参考电压,并在所述供电电压低于所述第一参考电压时输出有效的第一比较信号;A first comparator, the first input terminal of the first comparator is connected to the output terminal of the power supply module, the second input terminal of the first comparator is connected to the first reference voltage, and the first comparator The device is used to compare the power supply voltage and the first reference voltage, and output a valid first comparison signal when the power supply voltage is lower than the first reference voltage;
    第二比较器,所述第二比较器的第一输入端连接所述继电器驱动模块的输出端,所述第二比较器的第二输入端接入所述第二参考电压,所述第二比较器用于比较所述驱动信号的电压和所述第二参考电压,并在所述驱动信号 的电压低于所述第二参考电压时输出有效的第二比较信号;以及,The second comparator, the first input terminal of the second comparator is connected to the output terminal of the relay driving module, the second input terminal of the second comparator is connected to the second reference voltage, and the second The comparator is used to compare the voltage of the driving signal with the second reference voltage, and output a valid second comparison signal when the voltage of the driving signal is lower than the second reference voltage; and,
    第一或门,连接所述第一比较器和所述第二比较器的输出端,用于对所述第一比较信号和所述第二比较信号进行或运算,并在所述第一比较信号或所述第二比较信号有效时输出有效的所述触发信号。The first OR gate is connected to the output terminals of the first comparator and the second comparator, and is used for performing an OR operation on the first comparison signal and the second comparison signal, and performing an OR operation on the first comparison signal output a valid trigger signal when the signal or the second comparison signal is valid.
  4. 如权利要求2所述的继电器的驱动电路,其特征在于,所述触发模块包括:The driving circuit of the relay according to claim 2, wherein the trigger module comprises:
    第一比较器,所述第一比较器的第一输入端连接所述供电模块的输出端,所述第一比较器的第二输入端接入所述第一参考电压,所述第一比较器用于比较所述供电电压和所述第一参考电压,并在所述供电电压低于所述第一参考电压时输出有效的所述触发信号;或者,A first comparator, the first input terminal of the first comparator is connected to the output terminal of the power supply module, the second input terminal of the first comparator is connected to the first reference voltage, and the first comparator The device is used to compare the power supply voltage with the first reference voltage, and output the valid trigger signal when the power supply voltage is lower than the first reference voltage; or,
    第二比较器,所述第二比较器的第一输入端连接所述继电器驱动模块的输出端,所述第二比较器的第二输入端接入所述第二参考电压,所述第二比较器用于比较所述驱动信号的电压和所述第二参考电压,并在所述驱动信号的电压低于所述第二参考电压时输出有效的所述触发信号。The second comparator, the first input terminal of the second comparator is connected to the output terminal of the relay driving module, the second input terminal of the second comparator is connected to the second reference voltage, and the second The comparator is used for comparing the voltage of the driving signal with the second reference voltage, and outputting the valid trigger signal when the voltage of the driving signal is lower than the second reference voltage.
  5. 如权利要求2所述的继电器的驱动电路,其特征在于,所述使能模块包括:The driving circuit of the relay according to claim 2, wherein the enabling module comprises:
    锁存器,所述锁存器的输入端连接所述处理模块的输出端,所述锁存器的复位端接入所述触发信号,当所述触发信号无效时,所述锁存器处于锁存状态,当所述触发信号有效时,所述锁存器处于复位状态;a latch, the input end of the latch is connected to the output end of the processing module, the reset end of the latch is connected to the trigger signal, and when the trigger signal is invalid, the latch is in In a latch state, when the trigger signal is valid, the latch is in a reset state;
    与门,连接所述延时模块及所述锁存器的输出端,用于对所述延时信号及所述锁存器的输出信号进行与运算;以及,An AND gate, connected to the delay module and the output terminal of the latch, is used to perform an AND operation on the delay signal and the output signal of the latch; and,
    第二或门,连接所述处理模块及所述与门的输出端,用于对所述使能信号和所述与门的输出信号进行或运算,并输出逻辑信号控制所述继电器的通断。The second OR gate is connected to the processing module and the output terminal of the AND gate, and is used to perform an OR operation on the enable signal and the output signal of the AND gate, and output a logic signal to control the on-off of the relay .
  6. 如权利要求5所述的继电器的驱动电路,其特征在于,所述继电器为双边控制的继电器,所述延时模块、所述继电器驱动模块、所述与门及所述第二或门均具有两组,分别用于控制所述继电器的高边和低边;以及,The drive circuit of the relay according to claim 5, wherein the relay is a bilaterally controlled relay, and the delay module, the relay drive module, the AND gate and the second OR gate all have two sets, one for controlling the high side and one low side of the relay; and,
    所述触发条件包括所述供电电压低于第一参考电压和/或高边的所述驱动信号的电压低于第二参考电压。The trigger condition includes that the supply voltage is lower than a first reference voltage and/or the voltage of the high-side driving signal is lower than a second reference voltage.
  7. 如权利要求5或6所述的继电器的驱动电路,其特征在于,所述锁存器的输出端上设置有第一采样点,所述处理模块实时采集所述第一采样点上的信号;和/或,所述与门的输出端上设置有第二采样点,所述处理模块实时采集所述第二采样点上的信号。The driving circuit of the relay according to claim 5 or 6, wherein the output terminal of the latch is provided with a first sampling point, and the processing module collects the signal on the first sampling point in real time; And/or, the output terminal of the AND gate is provided with a second sampling point, and the processing module collects the signal at the second sampling point in real time.
  8. 如权利要求1所述的继电器的驱动电路,其特征在于,所述继电器为单边控制的继电器。The drive circuit for a relay according to claim 1, wherein the relay is a unilaterally controlled relay.
  9. 如权利要求5或8所述的继电器的驱动电路,其特征在于,所述继电器驱动电路用于驱动至少两个所述继电器,所述继电器的工作电压相同或不相同。The relay drive circuit according to claim 5 or 8, wherein the relay drive circuit is used to drive at least two of the relays, and the operating voltages of the relays are the same or different.
  10. 如权利要求9所述的继电器的驱动电路,其特征在于,所述继电器共用所述触发模块、所述延时模块、所述锁存器和所述与门;The driving circuit of the relay according to claim 9, wherein the relay shares the trigger module, the delay module, the latch and the AND gate;
    所述触发条件包括所述供电电压低于第一参考电压和/或任一所述继电器对应的所述驱动信号的电压低于对应的所述第二参考电压。The trigger condition includes that the power supply voltage is lower than a first reference voltage and/or the voltage of the driving signal corresponding to any one of the relays is lower than the corresponding second reference voltage.
PCT/CN2022/116964 2021-12-20 2022-09-05 Driving circuit of relay WO2023116050A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111566583.0 2021-12-20
CN202111566583.0A CN114188188A (en) 2021-12-20 2021-12-20 Driving circuit of relay

Publications (1)

Publication Number Publication Date
WO2023116050A1 true WO2023116050A1 (en) 2023-06-29

Family

ID=80544586

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/116964 WO2023116050A1 (en) 2021-12-20 2022-09-05 Driving circuit of relay

Country Status (2)

Country Link
CN (1) CN114188188A (en)
WO (1) WO2023116050A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114188188A (en) * 2021-12-20 2022-03-15 联合汽车电子有限公司 Driving circuit of relay
CN117080018B (en) * 2023-09-27 2024-01-19 德力西电气有限公司 Contactor coil control system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110262297A (en) * 2018-09-21 2019-09-20 宁德时代新能源科技股份有限公司 Relay control device and power supply system
CN110962602A (en) * 2019-04-15 2020-04-07 宁德时代新能源科技股份有限公司 Load holding circuit applied to battery management system
CN113746462A (en) * 2020-05-29 2021-12-03 宁德时代新能源科技股份有限公司 Driving circuit
CN114188188A (en) * 2021-12-20 2022-03-15 联合汽车电子有限公司 Driving circuit of relay

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102969200B (en) * 2012-11-05 2014-12-10 北京易艾斯德科技有限公司 High-reliable single-chip microcomputer control relay device
CN103871784B (en) * 2014-04-04 2016-08-17 大连鼎创科技开发有限公司 relay mutation impact protection system and method thereof
DE102016121255A1 (en) * 2016-11-07 2018-05-09 Weinzierl Engineering Gmbh Control module for an electromechanical switching unit, relay module and control device
CN109302169B (en) * 2018-08-23 2022-04-22 北京长峰天通科技有限公司 SiC MOSFET drive protection circuit and protection method thereof
CN111211007B (en) * 2018-11-16 2021-06-08 宁德时代新能源科技股份有限公司 Relay holding circuit and battery management system
TWI684087B (en) * 2019-03-11 2020-02-01 聚積科技股份有限公司 Voltage stabilizing system
CN109741992A (en) * 2019-03-26 2019-05-10 上海度普新能源科技有限公司 A kind of relay driving control system, method and battery management system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110262297A (en) * 2018-09-21 2019-09-20 宁德时代新能源科技股份有限公司 Relay control device and power supply system
CN110962602A (en) * 2019-04-15 2020-04-07 宁德时代新能源科技股份有限公司 Load holding circuit applied to battery management system
CN113746462A (en) * 2020-05-29 2021-12-03 宁德时代新能源科技股份有限公司 Driving circuit
CN114188188A (en) * 2021-12-20 2022-03-15 联合汽车电子有限公司 Driving circuit of relay

Also Published As

Publication number Publication date
CN114188188A (en) 2022-03-15

Similar Documents

Publication Publication Date Title
WO2023116050A1 (en) Driving circuit of relay
US5990663A (en) Charge/discharge control circuit and charging type power-supply unit
JP6647912B2 (en) Vehicle power control method and system for jump start
TWI410019B (en) Method and apparatus for battery management and method for charging and discharging a battery system
TWI418109B (en) Battery apparatus, integrated circuit for battery system and battery protection method
US10622819B2 (en) Rechargeable battery protection integrated circuit, rechargeable battery protection device, and battery pack
US20040066168A1 (en) Jump start and reverse battery protection circuit
US6642694B2 (en) Overcharge protection circuit capable of preventing damage to a charge control switch on flowing an excessive current
TW200533032A (en) Battery state monitoring circuit and battery device
US9871371B2 (en) Battery short-circuit protection circuit
JP2002238173A (en) Charging/discharging control circuit and chargeable power supply
TWI673932B (en) Battery device
US10164628B2 (en) Switch box
JP3190587B2 (en) Charge / discharge control circuit
JPH1012282A (en) Pack battery having protective circuit
CN106249830B (en) Electric energy transmission system and method
WO2021124684A1 (en) Method, system and apparatus for diagnosing malfunction in a power distribution unit
US20130055002A1 (en) Interface connection control
CN116165500A (en) Fault detection device and detection method for charge-discharge MOS tube
KR100571109B1 (en) Charging and discharging control circuit and charging type power supply device
US11245272B2 (en) Output protector for charger
CN113922443A (en) Charging control circuit, method, device and equipment for electric automobile
CN113933742A (en) Switch identification circuit and electric device
JP2021530187A (en) Systems for controlling switches, switching arms, and electrical equipment
CN115313551B (en) Battery charging protection chip and battery device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22909373

Country of ref document: EP

Kind code of ref document: A1