Control E
Bit7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
WINCM[2:0] | |||||||
Access | R/W | R/W | R/W | ||||
Reset | 0 | 0 | 0 |
Window Comparator Mode
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 |