I know how to calculate the resistor values for a comparator circuit for both the inverting and non-inverting case given known, fixed high and low switching points, and the supply voltage.
So far so good.
Now I have a situation where the reference for the comparator is derived from an error amplifier, so the voltage at which the comparator will switch is also variable (though bounded to the range [0V, 5V]).
The input voltage is from a ramp generator, and when the input ramp exceeds the reference voltage, the output used to arm a trigger, and is supposed to also discharge the capacitor to ground via a 74HC05. The problem is that the output pulse is very short without hysteresis, and the (1nF) capacitor doesn't discharge fully.
The problem is to either:
1) Configure the comparator hysteresis so that the output pulse lasts long enough (0.5uS should be enough) even though I don't know what the reference voltage is.
or
2) Stretch the output pulse to 0.5uS or so.
I'd welcome suggestions for either (note that I don't really want to add a monostable like a 74HC221 to the circuit for reasons of board space).
Thanks
So far so good.
Now I have a situation where the reference for the comparator is derived from an error amplifier, so the voltage at which the comparator will switch is also variable (though bounded to the range [0V, 5V]).
The input voltage is from a ramp generator, and when the input ramp exceeds the reference voltage, the output used to arm a trigger, and is supposed to also discharge the capacitor to ground via a 74HC05. The problem is that the output pulse is very short without hysteresis, and the (1nF) capacitor doesn't discharge fully.
The problem is to either:
1) Configure the comparator hysteresis so that the output pulse lasts long enough (0.5uS should be enough) even though I don't know what the reference voltage is.
or
2) Stretch the output pulse to 0.5uS or so.
I'd welcome suggestions for either (note that I don't really want to add a monostable like a 74HC221 to the circuit for reasons of board space).
Thanks
Last edited: