Window comparator and method of providing a window comparator function
View Patent ↗A window comparator comprising a single comparator circuit that has a positive input, a differential negative input, and an output, wherein limits of a window are defined by a reference voltage and a window condition is defined for a differential voltage between a positive input voltage and a negative input voltage so that the differential voltage is within the limits of the window; including a common mode voltage, a first set of two switched capacitors connected to the positive comparator input, a second set of two switched capacitors connected to the negative comparator input, a switching array capable of assuming a plurality of different switching conditions, and detecting the output of the comparator in relation to the switching conditions of the switching array.
1. A method of providing a window comparator function with a single comparator unit that has a positive input (c p ), a differential negative input c n and an output (c out ), wherein limits of a window are defined by a reference voltage (V ref ) and a window condition is defined for a differential voltage between a positive input voltage (V inp ) and a negative input voltage (V inn ) so that the differential voltage is within the limits of the window, comprising the steps of:
a) providing a common mode voltage (V mid );
b) providing a first set of two switched capacitors (C 1p , C 2p ) each of which has a first electrode connected to the positive input (c p ) of the comparator unit;
c) providing a second set of two switched capacitors (C 1n , C 2n ) each of which has a first electrode connected to the negative input (c n ) of the comparator unit;
d) providing a switching array capable of assuming a plurality of different switching conditions;
e) switching the second electrodes of the capacitors (C 1p , C 2p ) in the first set selectively between the positive input voltage (V inp ), the reference voltage (V ref ) and zero voltage potential (0V);
f) switching the second electrodes of the capacitors (C 1n , C 2n ) in the second set selectively between the negative input voltage (V inn ) and zero voltage (0V); and
g) detecting the output (c out ) of the comparator unit in relation to the switching condition of the switching array.
2. The method of claim 1 , wherein the capacitors in the first and second set are all provided with the same capacitance.
3. The method of claim 1 , wherein the plurality of switching conditions comprise:
a first switching condition wherein the first electrodes of the capacitors (C 1p , C 2p ) in the first set are both connected to the common mode voltage (V mid ), the second electrodes of the capacitors (C 1p , C 2p ) in the first set are connected to the positive input voltage (V inp ) and to the reference voltage (V ref ), respectively, and the second electrodes of the capacitors (C 1n , C 2n ) in the second set are connected to the negative input voltage (V inn ) and to zero voltage potential (0V), respectively;
a second switching condition wherein the first electrodes of the capacitors (C 1p , C 2p ) in the first set are both disconnected from the common mode voltage (V mid ), the second electrodes of the capacitors (C 1p , C 2p ) in the first set are both connected to the reference voltage ref and the second electrodes of the capacitors (C 1n , C 2n ) in the second set are both connected to zero voltage potential (0V); and
a third switching condition wherein the first electrodes of the capacitors (C 1p , C 2p ) in the first set are both disconnected from the common mode voltage (V mid ), the second electrodes of the capacitors (C 1p , C 2p ) in the first set are both connected to zero voltage potential (0V) and the second electrodes of the capacitors (C 1n , C 2n ) in the second set are both connected to zero voltage potential (0V).
4. The method according to claim 3 , comprising the step of deciding that the differential input voltage is within the window limits when the output (c out(1) ) of the comparator unit in the second switching condition is in a first condition and the output (c out(2) ) of the comparator unit in the third switching condition is in a second condition opposite to the first condition.
5. The method of claim 3 , wherein the first through third switching conditions are cycled through continuously.
6. The method of claim 5 , wherein a clock signal is used to cycle through the switching conditions.
7. The method according to claim 1 , wherein the first and second sets of capacitors each comprise a third capacitor (C 3p , C 3n ) having a first electrode connected to the first electrodes of the capacitors in the same set and a second electrode connected to zero voltage potential (0V) when the differential input voltage is within the window limits and to a constant voltage (V const ) when the differential input voltage is outside of the window limits.
8. A window comparator ( 10 ) comprising a single comparator circuit ( 12 ) that has a positive input (c p ), a differential negative input (c n ) and an output (c out ), wherein limits of a window are defined by a reference voltage (V ref ) and a window condition is defined for a differential voltage between a positive input voltage (V inp ) and a negative input voltage (V inn ) so that the differential voltage is within the limits of the window, comprising:
i. a common mode voltage source ( 24 );
ii. a first set of two switched capacitors (C 1p , C 2p ) each of which has a first electrode connected to the positive input (c p ) of the comparator circuit ( 12 );
iii. a second set of two switched capacitors (C 1n , C 2n ) each of which has a first electrode connected to the negative input (c n ) of the comparator circuit ( 12 );
iv. a switching array ( 14 ) capable of assuming a plurality of different switching conditions;
v. means for switching the second electrodes of the capacitors (C 1p , C 2p ) in the first set selectively between the positive input voltage (V inp ), the reference voltage (V ref ) and zero voltage potential (0V);
vi. means for switching the second electrodes of the capacitors (C 1n , C 2n ) in the second set selectively between the negative input voltage (V inn ) and zero voltage potential; and
vii. detecting means ( 18 ) for detecting the output (c out ) of the comparator unit ( 12 ) in relation to the switching condition of the switching array.
9. The window comparator of claim 8 , comprising a clock generator ( 32 ) for controlling the switching array.
10. The window comparator according to claim 8 , comprising a constant voltage source ( 16 ), wherein the first and second sets of capacitors each comprise a third capacitor (C 3p , C 3n ) having a first electrode connected to the first electrodes of the capacitors in the same set and a second electrode connected to zero voltage potential (0V) when the differential input voltage is within the window limits and to the constant voltage (V const ) when the differential input voltage is outside of the window limits.
11. The window comparator of claim 10 , wherein the third capacitor (C 3p , C 3n ) in each set has a capacitance which is small in comparison to the capacitance of other capacitors in the same set.