Author Topic: Latching Short-Circuit Detection Circuit  (Read 595 times)

0 Members and 1 Guest are viewing this topic.

Offline sean6541

  • Contributor
  • Posts: 15
  • Country: us
Latching Short-Circuit Detection Circuit
« on: December 09, 2021, 03:09:28 am »
Sorry to bother, I have a quick question regarding the LATCH functionality of a comparator (LT1711) that is being used in an overcurrent detection circuit (see attachment). The circuit is part of a hard-switched full bridge inverter that will be operating at about 200VDC with a frequency of ~100kHz. In the circuit, GND is the 0v power rail. BRIDGE_GND is connected to the sources of the lower NMOS transistors and to GND through the linear hall-effect current sensor. SGND is the isolated 0v rail for the logic side of the MOSFET drivers and microcontroller. I_SENSE is the analog output from the current sensor and is connected to the ADC of the microcontroller.

The functionality I am looking for is to have the microcontroller monitor current and if it exceeds a programmed value for a programmed time, stop the switching output to prevent overheating of the MOSFETS. For safety, I want the short-circuit protection handled without requiring the microcontroller. To achieve this, I have come up with the attached circuit, where RV1 sets the delay and RV2 sets the trip threshold. Once a short-circuit is detected, I want the DIS(able) output to latch and remain latched until the power has been cut.

My question: Can I feed the comparators output directly into it's LATCH enable pin to keep the output latched until the power is cut? Something about it seems to easy.  :-//
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 11263
Re: Latching Short-Circuit Detection Circuit
« Reply #1 on: December 09, 2021, 03:40:46 am »
The datasheet says the latch setup time is typ. 1 ns.  Unfortunately it doesn't specify upper or lower limits, but a small delay between the output and the latch control would be advisable.  However you have a bigger problem - What guarantee do you have that the comparator output won't glitch during powerup, resulting in it starting up latched?

The easy fix for both is a logic gate between the output and the latch control input so you can unlatch the comparator on powerup, and to provide a small delay.  I'd suggest a NOR gate, driven by the comparator's inverted output to isolate it from loading on the non-inverted output.

 

Offline sean6541

  • Contributor
  • Posts: 15
  • Country: us
Re: Latching Short-Circuit Detection Circuit
« Reply #2 on: December 09, 2021, 05:00:51 pm »
That makes sense. It will be fairly easy too since there is already a 7402 with an unused channel in the logic part of the circuit.
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 11263
Re: Latching Short-Circuit Detection Circuit
« Reply #3 on: December 09, 2021, 05:21:03 pm »
Its a *VERY* fast comparator.  Running long traces to/from it could be problematic.   Unless its conveniently very close to your spare NOR gate, I'd use a 74LVC02 single gate NOR right next to it.   Your spare NOR elsewhere could be used to generate the active high RESET pulse the gate needs on powerup, if you don't want that to be MCU controlled.
« Last Edit: December 09, 2021, 06:03:33 pm by Ian.M »
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 9141
  • Country: fr
Re: Latching Short-Circuit Detection Circuit
« Reply #4 on: December 09, 2021, 05:56:28 pm »
Yes, it's a fast comparator. The datasheet talks about that in the "High Speed Design Techniques" section.

In the OP's case, I suspect they chose it not because it was fast, but because it has this output latch feature? If so, a separate latch and a more tamed comparator could also be advisable. The latch itself can just be a set/reset flip-flop. Connect the "set" input to the comparator's output, and the "reset" input to a simple reset circuit (RC) that'll guarantee resetting it upon power-on. And with this setup, there won't be any possible glitch.




 
The following users thanked this post: Ian.M

Offline sean6541

  • Contributor
  • Posts: 15
  • Country: us
Re: Latching Short-Circuit Detection Circuit
« Reply #5 on: December 10, 2021, 12:02:41 am »
An LM393B and separate SR latch was my original plan, but I though I could cheat and end up with one less IC by using the latching function of the LT1711. If I'm going to add another IC, I'll just go back to using a separate latch.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 16798
  • Country: gb
  • 0999
Re: Latching Short-Circuit Detection Circuit
« Reply #6 on: December 10, 2021, 11:34:12 am »
Any comparator can be made to latch with positive feedback. A diode from the output to non-inverting input will cause it to latch on. If the voltage connected to the non-inverting input, has a low impedance, add a series resistor, so the comparator's output isn't loaded down. Care needs to be taken that the circuit will always start in the unlatched state, which can be done by connecting a capacitor from the inverting input to +V, or non-inverting input to 0V, depending on which is the reference. It might also be a good idea to add a diode across the capacitor and a resistor in series with the reference.
 
The following users thanked this post: Ian.M


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf