This bit field enables the Window Comparator and defines when the
Window Comparator Interrupt Flag (WCMP) in the Interrupt Flags (ADCn.INTFLAGS)
register is set. In the table below, RESULT is the accumulated 16-bit result.
WINLT and WINHT are the 16-bit lower threshold value and the 16-bit upper
threshold value given by the ADCn.WINLT and ADCn.WINHT registers,
respectively.
Value | Name | Description |
---|
0x0 |
NONE |
No Window Comparison
(default) |
0x1 |
BELOW |
RESULT < WINLT |
0x2 |
ABOVE |
RESULT > WINHT |
0x3 |
INSIDE |
WINLT ≤ RESULT ≤ WINHT |
0x4 |
OUTSIDE |
RESULT < WINLT or RESULT >WINHT |
Other |
- |
Reserved |