Method for performing a tri-state comparison of two input signals in a window comparator circuit, characterized in that the method consists in a first phase: - to store the voltage of a first input signal (V INN) on a first capacitor (C 1n), and a ground voltage on a second capacitor (C 2n); - to store an offset voltage (Offset) on a third capacitor (C 2p), and the voltage of a second input signal (V INP) on a fourth capacitor (C 1p); - to compare in a comparator the first input voltage (V INN), which is adapted by a first factor defined by the ratio N/(N+M), where N is the capacitive value of the first capacitor (C 1n), and M is the capacitive value of the second capacitor (C 2n), with the second input voltage, which is adapted by a second factor defined by the ratio N'/(N'+M'), where N' is the capacitive value of the fourth capacitor (C 1p), and M' is the capacitive value of the third capacitor (C 2p), and added to the offset voltage, which is adapted by a third factor defined by M'/(N'+M'), to provide a first output signal (OUT 1), and - in that the method consists in a second phase: - to store the voltage of the first input signal (V INN) on the first capacitor (C 1n), and the offset voltage (Offset) on the second capacitor (C 2n); - to store the ground voltage on the third capacitor (C 2p), and the voltage of the second input signal (V INP) on the fourth capacitor (C 1p); - to compare in the comparator the first input voltage, which is adapted by the first factor defined by the ratio N/(N+M), added to the offset voltage (Offset), which is adapted by a fourth factor defined by the ratio M/(N+M), with the second input voltage, which is adapted by the second factor defined by the ratio N'/(N'+M'), to provide a second output signal (OUT 2), and - to control the state of the first and second output signals to determine if the comparison of the first and second input signals is in a low state or in a high state if the first and second output signals have a same low or high output level, or in an intermediate state if the first and second output signals have a different output level. - to store the voltage of a first input signal (V INN) on a first capacitor (C 1n), and a ground voltage on a second capacitor (C 2n); - to store an offset voltage (Offset) on a third capacitor (C 2p), and the voltage of a second input signal (V INP) on a fourth capacitor (C 1p); - to compare in a comparator the first input voltage (V INN), which is adapted by a first factor defined by the ratio N/(N+M), where N is the capacitive value of the first capacitor (C 1n), and M is the capacitive value of the second capacitor (C 2n), with the second input voltage, which is adapted by a second factor defined by the ratio N'/(N'+M'), where N' is the capacitive value of the fourth capacitor (C 1p), and M' is the capacitive value of the third capacitor (C 2p), and added to the offset voltage, which is adapted by a third factor defined by M'/(N'+M'), to provide a first output signal (OUT 1), and - in that the method consists in a second phase: - to store the voltage of the first input signal (V INN) on the first capacitor (C 1n), and the offset voltage (Offset) on the second capacitor (C 2n); - to store the ground voltage on the third capacitor (C 2p), and the voltage of the second input signal (V INP) on the fourth capacitor (C 1p); - to compare in the comparator the first input voltage, which is adapted by the first factor defined by the ratio N/(N+M), added to the offset voltage (Offset), which is adapted by a fourth factor defined by the ratio M/(N+M), with the second input voltage, which is adapted by the second factor defined by the ratio N'/(N'+M'), to provide a second output signal (OUT 2), and - to control the state of the first and second output signals to determine if the comparison of the first and second input signals is in a low state or in a high state if the first and second output signals have a same low or high output level, or in an intermediate state if the first and second output signals have a different output level.