Zero cross detection circuit and sensor device
A zero cross detection circuit has a first comparator circuit receiving a first input signal n 1 and a second input signal n 2 and outputting a first comparison result, a second comparator circuit having a hysteresis, receiving the first input signal n 1 and the second input signal n 2 , and providing a second comparison result, and a logic circuit providing a zero cross detection signal based on the first comparison result and the second comparison result. The logic circuit provides a reverse signal to the second comparator circuit based on the first comparison result and the second comparison result.
1. A zero cross detection circuit, comprising:
a first comparator circuit configured to receive a first input signal and a second input signal which are output signals from a sensor element, and provide a first comparison result;
a second comparator circuit having a hysteresis and configured to receive the first input signal and the second input signal and provide a second comparison result; and
a logic circuit configured to provide a zero cross detection signal based on the first comparison result and the second comparison result, and provide a reverse signal to the second comparator circuit based on the first comparison result and the second comparison result.
2. The zero cross detection circuit according to claim 1 , wherein
the logic circuit has a flag which indicates a reversal of an output signal from the sensor element based on the first comparison result and the second comparison result, and provides the zero cross detection signal according to a state of the flag.
3. The zero cross detection circuit according to claim 1 , wherein
the second comparator circuit has a first threshold voltage and a second threshold voltage which are switched according to a state of the first input signal and the second input signal, and
after receiving the reverse signal from the logic circuit, inverts a logic state of the second comparison result and provides the second comparison result with an inverted logic state and switches the first threshold voltage and the second threshold voltage.
4. The zero cross detection circuit according to claim 2 , wherein
the second comparator circuit has a first threshold voltage and a second threshold voltage which are switched according to a state of the first input signal and the second input signal, and
after receiving the reverse signal from the logic circuit, inverts a logic state of the second comparison result and provides the second comparison result with an inverted logic state and switches the first threshold voltage and the second threshold voltage.
5. A sensor device comprising:
a sensor element configured to output a signal according to strength of a physical quantity to be applied; and
the zero cross detection circuit according to claim 1 configured to perform zero cross detection of the signal supplied from the sensor element.
6. A sensor device comprising:
a sensor element configured to output a signal according to strength of a physical quantity to be applied; and
the zero cross detection circuit according to claim 2 configured to perform zero cross detection of the signal supplied from the sensor element.
7. A sensor device comprising:
a sensor element configured to output a signal according to strength of a physical quantity to be applied; and
the zero cross detection circuit according to claim 3 configured to perform zero cross detection of the signal supplied from the sensor element.
8. A sensor device comprising:
a sensor element configured to output a signal according to strength of a physical quantity to be applied; and
the zero cross detection circuit according to claim 4 configured to perform zero cross detection of the signal supplied from the sensor element.