Latch Comparator - 0.264V above 1.65V or below 1.65V

Thread Starter

mriksman

Joined Aug 31, 2010
113
OK, so I have the Window Comparator, and a delay on the Vlo threshold. That should allow startup/power-up delay.

But V_notfault is still 0V right at start up; so won't any latch circuit immediately occur?

The circuit below is also using the LM339. And it's working. Has it something to do with the circuit below using a pull-up..?
1644001236781.png
 

Attachments

Thread Starter

mriksman

Joined Aug 31, 2010
113
I have this. It appears to be working. But I can't say I love it...
1644004612911.png
I don't understand why the resistor values for R3 and R6 either make or break or the circuit.

And I don't think that LED will light up with such little current.

I also fear that R3 will affect the voltage from the sensor. LTSpice says they match (V(n002) and V(vsensor)) until the trip happens; so it appears OK.

I'm interested in any improvements guys!
 

Attachments

crutschow

Joined Mar 14, 2008
34,473
Here's my modified circuit from post #13 using an LM393:
I added a Reset signal so the circuit starts out in the unlatched state.
It that what you wanted?

1644008663295.png
 

Attachments

sghioto

Joined Dec 31, 2017
5,392
Would something like this work?
First half of the LM393 provides the turn on delay and S1 provides a manual reset after the circuit is latched.
1644013503752.png
 
Last edited:

Thread Starter

mriksman

Joined Aug 31, 2010
113
Here my suggestion.
I used a CD4093B to make latch.
R1-R3 will need to change to the closest available values.
I really like this. And the simulated sensor signal is cool too.
I'll have to see what SMD ICs there are for SR or NAND gates.
Question; are the 10k input resistors, or 1Meg feedback resistors necessary? It seems to function without them.
1644050864696.png
 

Attachments

ericgibbs

Joined Jan 29, 2010
18,879
Question; are the 10k input resistors, or 1Meg feedback resistors necessary? It seems to function without them.
Hi mrik,
Question for you,
What do you think is the purpose of those 10k's and 1meg's in the circuit, what is their effect.?
E
 
Last edited:

Thread Starter

mriksman

Joined Aug 31, 2010
113
Hi mrik,
Question for you,
What do you think is the purpose of those 10k's and 1meg's in the circuit, what is their effect.?
E
Well. Ummm...
  • The feedback resistor could be for hysteresis? To stop chattering close to the trip point? Is that a problem though with the NAND/SR use? Once it latches, it doesn't matter what the Comparator is doing...
  • The input resistors I guess are for managing current into the Comparator? But I already have resistors being used for the voltage dividers...
  • I can only see a possible requirement for a resistor on the Vout of the current sensor; that might need current limiting.

Or is there some other fundamental design need for them?
 

Alec_t

Joined Sep 17, 2013
14,338
Here's my latest offering, using a window comparator.
Latcher3.jpg
R5/C1 provide a latch hold-off delay during start-up conditions. I've assumed a 1ms rise time for V+ and the high/low reference voltages.
Q1/2 provide the latching function.
The input signal phase was set to show the comparator trip occurring when the lower reference was crossed. J1/2 represent allowance for a trim resistor if required, to cope with component tolerances.
 

Attachments

ronsimpson

Joined Oct 7, 2019
3,053
There are a number of voltage comparators on the market that have a reference and a latch. Some are used to monitor power supplies. Here is one that I use. In this family there is 1 or 2 comparators and the output can be "OC" or push-pull. Also you have a choice of Q or /Q output.
1644072399629.png
See MIC833,
 

eetech00

Joined Jun 8, 2013
3,961
Well. Ummm...
  • The feedback resistor could be for hysteresis? To stop chattering close to the trip point? Is that a problem though with the NAND/SR use? Once it latches, it doesn't matter what the Comparator is doing...
Yes...for hysteresis. A slow moving signal isn't a problem for the schmitt gates, but without it, the comparators can oscillate, become noise generators, and get hot.
  • The input resistors I guess are for managing current into the Comparator? But I already have resistors being used for the voltage dividers...
The resistors are required for implementing hysteresis. But we also want to keep the resistor divider load to a minumim and keep the reference voltages as stable as possible. You might want to add a small cap (0.1u) to each divider leg.
  • I can only see a possible requirement for a resistor on the Vout of the current sensor; that might need current limiting.
I don't think that is necessary.
 

Thread Starter

mriksman

Joined Aug 31, 2010
113
@ronsimpson Thanks. Yeah I saw those, but I want the current sensor isolated from the uC. Hence I like the Hall Effect sensor ICs. I just haven’t found one that has a latch built in.
 

eetech00

Joined Jun 8, 2013
3,961
I really like this. And the simulated sensor signal is cool too.
I'll have to see what SMD ICs there are for SR or NAND gates.
Question; are the 10k input resistors, or 1Meg feedback resistors necessary? It seems to function without them.
The resistors implement hysteresis.
The comparators will function without hysteresis, but their reliability will be questionable, escpecially with a slow changing signal.
See post #33.
 

Thread Starter

mriksman

Joined Aug 31, 2010
113
Thanks @eetech00. So at a minimum I should add a resistor on the non-inverting input and a feedback resistor?
1644074748777.png
Is it OK to leave the inverting input without one?
Just trying to keep component count down.
 

Thread Starter

mriksman

Joined Aug 31, 2010
113
Hey Guys; this could possibly be another question - but what is the best way to kill the ZCD signal when a FAULT signal has latched. ZCD is normally HIGH and sends low pulses. I think when a FAULT is latched, I just want to keep the ZCD pin HIGH.

I have this
1644178397586.png

But that means I am always powering the NPN base under normal conditions. I feel as though, to save power, it should be positioned elsewhere, and only enabled when there is a FAULT?
 

eetech00

Joined Jun 8, 2013
3,961
Hey Guys; this could possibly be another question - but what is the best way to kill the ZCD signal when a FAULT signal has latched. ZCD is normally HIGH and sends low pulses. I think when a FAULT is latched, I just want to keep the ZCD pin HIGH.
Maybe this:
You have 2 unused NAND gates leftover.

1644183345494.png
 
Top