Disclosure of Invention
In order to overcome the defects in the prior art, the invention aims to solve the problems that the device to be driven is possibly burnt down due to the too slow corresponding speed of realizing the fault signal by software in the prior art, and the MCU is likely to not inquire the fault signal in the data processing processNumber (number)Accordingly, the present invention provides a circuit and a driving system for rapidly responding to a fault signal.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
the circuit for rapidly responding to fault signals comprises a first NAND gate U11A, a second NAND gate U11C and a third NAND gate U11D, wherein one input end of the first NAND gate U11A is used as a low-level enabling end of the fault signals, the other input end of the first NAND gate U11A is respectively connected with one input end of the second NAND gate U11C and the output end of the third NAND gate U11D, the output end of the third NAND gate U11D is used as a fault signal uploading end, the other input end of the second NAND gate U11C is used as a control enabling end, the output end of the second NAND gate U11C is used as a low-level enabling end, the output end of the first NAND gate U11A is connected with one input end of the third NAND gate U11D, and the other input end of the third NAND gate U11D is used as a fault signal resetting end.
The power supply VDD is connected with the ground through the resistor R1 and the capacitor C1 in sequence, and the fault signal low-level enabling end is connected with a connecting point of the resistor R1 and the capacitor C1.
Preferably, the capacitance C1 is 100-1000pF.
Preferably, the first nand gate U11A, the second nand gate U11C, and the third nand gate U11D are integrated in the nand gate U11, and a chip of the nand gate U11 is 74LS00.
Optimally, the 1 st pin of the NAND gate U11 is used as a receiving end of a fault signal, the 2 nd pin, the 10 th pin and the 11 th pin of the NAND gate U11 are connected and then used as an uploading end of the fault signal, the 3 rd pin is connected with the 12 th pin, the 8 th pin is used as a low level enabling end, the 9 th pin is used as a control enabling end, the 7 th pin is connected with the ground, the 13 th pin is used as a reset end of the fault signal, and the 14 th pin is connected with the power supply VDD.
The driving system comprises the circuit for rapidly responding to the fault signal, and further comprises a singlechip MCU, a buffer and a driving acquisition circuit, wherein the singlechip MCU comprises a first input end, a first output end, a second output end and a third output end; the buffer comprises a first input end, a second input end, a first output end and a drive acquisition circuit, wherein the drive acquisition circuit comprises a first input end and a first output end;
the first output end of the MCU is connected with the first input end of the buffer, and the first output end of the buffer is connected with the first input end of the drive acquisition circuit;
the fault signal uploading end, the fault signal resetting end and the control enabling end are respectively connected with the first input end, the second output end and the third output end of the MCU, the low-level enabling end is connected with the second input end of the buffer, and the first output end of the driving acquisition circuit is connected with the low-level enabling end of the fault signal.
The driving acquisition circuit is connected with the device to be driven in a bidirectional manner through the second input end and the second output end.
Preferably, the device to be driven is a MOS tube, a grid electrode of the MOS tube is connected with a second output end of the driving acquisition circuit, and a source electrode of the MOS tube is connected with a second input end.
Preferably, the device to be driven is an IGBT tube, a grid electrode of the IGBT tube is connected with a second output end of the drive acquisition circuit, and a source electrode of the IGBT tube is connected with a second input end.
Preferably, the device to be driven is a triode, a base electrode of the triode is connected with a second output end of the driving acquisition circuit, and an emitting electrode of the triode is connected with a second input end.
The invention has the advantages that:
(1) The circuit of the invention can rapidly acquire the fault signalControl high enable signal +.>The drive acquisition circuit is closed,thereby protecting the component to be driven and the circuit is capable of latching a fault signal + ->Preventing fault signalsLost.
(2) The larger the value of the capacitor C1 is, the slower the value is correspondingly, but the better the burr filtering effect is, and the value of the C1 is determined according to multiple experimental detection.
Detailed Description
Example 1
As shown in fig. 2, a circuit for rapidly responding to a fault signal includes a power supply VDD, a resistor R1, a capacitor C1, a first nand gate U11A, a second nand gate U11C, and a third nand gate U11D. The first nand gate U11A, the second nand gate U11C, and the third nand gate U11D are integrated in the nand gate U11, and the model of the chip where the nand gate U11 is located is 74LS00.
One input terminal of the first nand gate U11A, i.e., the 1 st pin of the nand gate U11, is used as a low-level enable terminal of the fault signal. The other input end of the first NAND gate U11A is respectively connected with one input end of the second NAND gate U11C and the output end of the third NAND gate U11D, namely the 2 nd pin, the 10 th pin and the 11 th pin of the NAND gate U11 are connected and then serve as fault signal uploading ends. The other input end of the second nand gate U11C, namely the 9 th pin of the nand gate U11 is used as a control enabling end, the output end of the second nand gate U11C, namely the 8 th pin of the nand gate U11 is used as a low level enabling end, and the output end of the first nand gate U11A is connected with one input end of the third nand gate U11D, namely the 3 rd pin and the 12 th pin of the nand gate U11. The other input end of the third nand gate U11D, i.e. the 13 th pin of the nand gate U11, is used as a fault signal reset end. The 7 th pin of the NAND gate U11 is connected with the ground, and the 14 th pin is connected with the power supply VDD.
In order to filter burrs input by the low-level enabling end of the fault signal, the power supply VDD is connected with the ground through the resistor R1 and the capacitor C1 in sequence, and the low-level enabling end of the fault signal is connected with a connecting point of the resistor R1 and the capacitor C1. Since the larger the capacitance is, the slower the response speed is, but the better the burr filtering effect is, after a plurality of tests, the capacitance C1 is determined to be 100pF.
In the figureA reset signal received by the FAULT signal reset terminal for the FAULT signal low level enable terminal, a reset signal received by the fault_rst for the FAULT signal reset terminal, a control enable signal received by the control enable terminal for the control enable terminal, and->For the enable signal sent by the low level enable terminal, contrl OE is control +.>Enable, when->Under the condition that three signals of FAULT_RST and Contrl OE are high level, each pin randomly presents the following two states after being electrified:
state one:
1 foot
|
9 feet
|
13 feet
|
2 feet/10 feet/11 feet
|
3 feet/12 feet
|
8 feet
|
1
|
1
|
1
|
1
|
0
|
0 |
State two:
1 foot
|
9 feet
|
13 feet
|
2 feet/10 feet/11 feet
|
3 feet/12 feet
|
8 feet
|
1
|
1
|
1
|
0
|
1
|
1 |
After power-on, firstly, the 1 foot, the 9 foot and the 13 foot are set high through the control of an external circuit or a chip, then the 13 foot starts to reset, finally the 13 foot is set low, and finally the obtained state of each foot is changed into:
1 foot
|
9 feet
|
13 feet
|
2 feet/10 feet/11 feet
|
3 feet/12 feet
|
8 feet
|
1
|
1
|
0
|
1
|
0
|
0 |
And then the 13 feet are placed high, and each foot is changed into:
1 foot
|
9 feet
|
13 feet
|
2 feet/10 feet/11 feet
|
3 feet/12 feet
|
8 feet
|
1
|
1
|
1
|
1
|
0
|
0 |
At this time, the circuit for rapidly responding to the fault signal is in a monitoring state, onceAt low level, each foot state changes vertically and latches as:
the enable signal of the process from the beginning to the 8 th footThe set high lasts for a few nanoseconds, and then the fault signal is uploaded through the 11 th foot fault signal uploading end.
Even if the 1 st pin is changed to the high level again, the state remains the original state, namely, is latched as:
1 foot
|
9 feet
|
13 feet
|
2 feet/10 feet/11 feet
|
3 feet/12 feet
|
8 feet
|
0
|
1
|
1
|
0
|
1
|
1 |
If the monitoring state is to be restored, the FAULT_RST reset operation is repeated.
If the control chip is actively turned off, the control chip is enabled to be set highOnly the Contrl OE needs to be set low, the state changes as follows:
1 foot
|
9 feet
|
13 feet
|
2 feet/10 feet/11 feet
|
3 feet/12 feet
|
8 feet
|
1
|
0
|
1
|
0
|
1
|
1 |
Example 2
As shown in fig. 2-3, a driving system comprises a singlechip microcomputer MCU, a buffer 1, a driving acquisition circuit 2, a device to be driven 3 and a circuit 4 for rapidly responding to fault signals. The MCU comprises a first input end, a second input end, a first output end, a second output end and a third output end; the buffer 1 includes a first input terminal, a second input terminal, a first output terminal, and the drive acquisition circuit 2 includes a first input terminal, a second input terminal, a first output terminal, and a second output terminal.
The first output end of the singlechip MCU is connected with the first input end of the buffer 1, the first output end of the buffer 1 is connected with the first input end of the drive acquisition circuit 2, and the drive acquisition circuit 2 is in bidirectional connection with the device to be driven 3 through the second input end and the second output end. The driving acquisition circuit 2 judges whether faults such as overcurrent and short circuit exist or not by sampling signals of the power device, so that fault signals sent by the low-level enabling end of the fault signals are sent to the first input end of the singlechip.
The device 3 to be driven is a power device, the part 3 to be driven can be an MOS tube, the grid electrode of the MOS tube is connected with the second output end of the drive acquisition circuit, and the source electrode of the MOS tube is connected with the second input end.
The device 3 to be driven can also be an IGBT tube, the grid electrode of the IGBT tube is connected with the second output end of the drive acquisition circuit, and the source electrode of the IGBT tube is connected with the second input end.
The device 3 to be driven can also be a triode, the base electrode of the triode is connected with the second output end of the drive acquisition circuit, and the emitting electrode of the triode is connected with the second input end.
The circuit 4 for rapidly responding to the fault signal comprises a NAND gate U11, a power supply VDD, a resistor R1 and a capacitor C1, wherein the chip model number of the NAND gate U11 is 74LS00. The NAND gate chip comprises a first NAND gate U11A, a second NAND gate U11C and a third NAND gate U11D.
One input end of the first nand gate U11A, i.e. the 1 st pin of the nand gate U11, is connected to the first output end of the driving acquisition circuit 2 as a low-level enabling end of the fault signal. The other input end of the first NAND gate U11A is respectively connected with one input end of the second NAND gate U11C and the output end of the third NAND gate U11D, namely, the 2 nd pin, the 10 th pin and the 11 th pin of the NAND gate U11 are connected and then serve as fault signal uploading ends to be connected with the first input end of the single chip microcomputer MCU. The other input end of the second NAND gate U11C, namely the 9 th pin of the NAND gate U11, is used as a control enabling end to be connected with the third input end of the singlechip MCU, the output end of the second NAND gate U11C, namely the 8 th pin of the NAND gate U11, is used as a low level enabling end, and the low level enabling end is connected with the second input end of the buffer 1. The output end of the first nand gate U11A is connected to one input end of the third nand gate U11D, i.e. the 3 rd pin and the 12 th pin of the nand gate U11. The other input end of the third NAND gate U11D, namely the 13 th pin of the NAND gate U11, is used as a fault signal reset end, and the fault signal reset end is connected with the second input end of the singlechip MCU. The 7 th pin of the NAND gate U11 is connected with the ground, and the 14 th pin is connected with the power supply VDD.
In order to filter burrs input by the low-level enabling end of the fault signal, the power supply VDD is connected with the ground through the resistor R1 and the capacitor C1 in sequence, and the low-level enabling end of the fault signal is connected with a connecting point of the resistor R1 and the capacitor C1. Since the larger the capacitance is, the slower the response speed is, but the better the burr filtering effect is, after a plurality of tests, the capacitance C1 is determined to be 100pF.
In the figure, the low-level enabling end of the fault signal receivesFor FAULT signals, fault_rst received by the FAULT signal reset terminal is a reset signal, contrl OE received by the control enabling terminal is a control enabling signal, and low level enabling terminal sends out +.>For enabling the signal, contrl OE is control +.>Enabled. When->Under the condition that three signals of FAULT_RST and Contrl OE are all high level, each pin randomly presents the following two states after being electrified:
state one:
1 foot
|
9 feet
|
13 feet
|
2 feet/10 feet/11 feet
|
3 feet/12 feet
|
8 feet
|
1
|
1
|
1
|
1
|
0
|
0 |
State two:
1 foot
|
9 feet
|
13 feet
|
2 feet/10 feet/11 feet
|
3 feet/12 feet
|
8 feet
|
1
|
1
|
1
|
0
|
1
|
1 |
After power-on, the singlechip MCU firstly sets the pins 1, 9 and 13 high, then the pins 13 start to reset, finally sets the pins 13 low, and finally obtains the state change of each pin as follows:
1 foot
|
9 feet
|
13 feet
|
2 feet/10 feet/11 feet
|
3 feet/12 feet
|
8 feet
|
1
|
1
|
0
|
1
|
0
|
0 |
And then the 13 feet are placed high, and each foot is changed into:
1 foot
|
9 feet
|
13 feet
|
2 feet/10 feet/11 feet
|
3 feet/12 feet
|
8 feet
|
1
|
1
|
1
|
1
|
0
|
0 |
At this time, the circuit for rapidly responding to the fault signal is in a monitoring state, onceAt low level, each foot state changes vertically and latches as:
this process starts from the beginning toThe single chip microcomputer MCU receives the fault signal uploaded by the 11 th pin after the single chip microcomputer MCU is set high for a few nanoseconds.
Even if the 1 st pin is changed to the high level again, the state remains the original state, namely, is latched as:
1 foot
|
9 feet
|
13 feet
|
2 feet/10 feet/11 feet
|
3 feet/12 feet
|
8 feet
|
0
|
1
|
1
|
0
|
1
|
1 |
If the monitoring state is to be restored, the FAULT_RST reset operation is repeated.
If the MCU is actively turned off, the MCU is enabled to be set highOnly the Contrl OE needs to be set low, the state changes as follows:
1 foot
|
9 feet
|
13 feet
|
2 feet/10 feet/11 feet
|
3 feet/12 feet
|
8 feet
|
1
|
0
|
1
|
0
|
1
|
1 |
Example 3
The difference from the two embodiments described above is that the capacitor C1 has a value of 1000PF.
Example 4
The difference from example 1 and example 2 is that the capacitor C1 has a value of 500PF.
The above description is given for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, but is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.