33.5.5 Control E

Name: CTRLE
Offset: 0x04
Reset: 0x00
Property: -

Bit 76543210 
      WINCM[2:0] 
Access R/WR/WR/W 
Reset 000 

Bits 2:0 – WINCM[2: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.

ValueNameDescription
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