Hello everyone,
I have a quite newbie question.
I have built a Zero Crossing Detector using a TLV3602 according to the attached schematic (sorry for the everycircuit schematic, I'm on the go).
The problem is that this circuit oscillates when the input is low/near ground/floating, I.e., the comparator instead of outputting zero volts it oscillates. I also tried to tie the non-inverting input to ground via a 10k resistor, but it didn't solve the problem.
The idea was to obtain a perfect ZCD, but clearly noise/offsets affect the output. Adding hysteresis could solve the issue, but it will shift the detection from zero to few mV. How can I fix this problem maintaining the ZCD feature?