41.5.4 Control D
| Name: | CTRLD |
| Offset: | 0x03 |
| Reset: | 0x00 |
| Property: | - |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| WINSRC | WINCM[2:0] | ||||||||
| Access | R/W | R/W | R/W | R/W | |||||
| Reset | 0 | 0 | 0 | 0 | |||||
Bit 3 – WINSRC Window Mode Source
| Value | Name | Description |
|---|---|---|
| 0 | RESULT | ADCn.RESULT is used as the Window Comparator source |
| 1 | SAMPLE | ADCn.SAMPLE is used as the Window Comparator source |
Bits 2:0 – WINCM[2:0] Window Comparator Mode
This bit field controls whether the Window Comparator is enabled and which thresholds will set the Window Comparator (WCMP) interrupt flag.
In the table below, OUTPUT is the 16-bit result or sample selected by WINSRC. WINLT and WINHT are the 16-bit low and high threshold registers, respectively.
| Value | Name | Description |
|---|---|---|
| 0x0 | NONE | Window Comparator disabled |
| 0x1 | BELOW | OUTPUT < WINLT |
| 0x2 | ABOVE | OUTPUT > WINHT |
| 0x3 | INSIDE | WINLT < OUTPUT < WINHT |
| 0x4 | OUTSIDE | OUTPUT < WINLT or OUTPUT >WINHT |
| Other | - | Reserved |
