Window comparator configuration
UM1955
16/28
DocID028405 Rev 1
Equation 8
•
If P2 equals its maximum value (500 k):
–
V
th_low
= 62 mV
–
V
th_high
= 3.238 V
•
If P2 equals its minimum value (0):
–
V
th_low
= 1.1 V
–
V
th_high
= 2.2 V
From a software standpoint, the D2 and D4 pins on the Arduino UNO R3 connectors or
PA10 and PB5 on the ST morpho connectors (not mounted in the expansion board) must be
monitored.
7.3 Theoretical
output
The operational amplifier output toggles when the signal is out of the specified window.
V
in
< V
threshold_low
:
D2: high state
D4: low state
V
threshold_low
< V
in
< V
threshold_high
:
D2: high state
D4:high state
V
threshold_high
< V
in
:
D2: low state
D4: high state
Figure 10
depicts the different states:
Figure 10. Window comparator explanation