Field
Function
COCO
This is a read-only field that is set each time a conversion is completed when one or more of the following
is true:
• The compare function is disabled
• SC2[ACFE]=0 and the hardware average function is disabled
• SC3[AVGE]=0
If the compare result is true, then COCO is set upon completion of a conversion if one or more of the
following is true:
• The compare function is enabled
• SC2[ACFE]=1
COCO is set upon completion of the selected number of conversions (determined by AVGS) if one or
more of the following is true:
• The hardware average function is enabled
• SC3[AVGE]=1
COCO in SC1A is also set at the completion of a calibration sequence.
COCO is cleared when one of the following is true:
• The respective SC1n register is written
• The respective Rn register is read
0b - Conversion is not completed.
1b - Conversion is completed.
6
AIEN
Interrupt Enable
Enables conversion complete interrupts. When COCO becomes set while the respective AIEN is high, an
interrupt is asserted.
0b - Conversion complete interrupt is disabled.
1b - Conversion complete interrupt is enabled.
5-0
ADCH
Input channel select
Selects one of the input channels.
NOTE: Some of the input channel options in the bitfield-setting descriptions might not be available for
your chip. For the actual ADC channel assignments for your device, see the chip-specific
information.
The successive approximation converter subsystem is turned off when the channel bits are all set (i.e.
ADCH set to all 1s). This feature allows explicit disabling of the ADC and isolation of the input channel
from all sources. Terminating continuous conversions this way prevents an additional single conversion
from being performed. It is not necessary to set ADCH to all 1s to place the ADC in a low-power state
when continuous conversions are not enabled because the module automatically enters a low-power
state when a conversion completes.
000000b - External channel 0 is selected as input.
000001b - External channel 1 is selected as input.
000010b - External channel 2 is selected as input.
000011b - External channel 3 is selected as input.
000100b - External channel 4 is selected as input.
000101b - External channel 5 is selected as input.
000110b - External channel 6 is selected as input.
000111b - External channel 7 is selected as input.
001000b - External channel 8 is selected as input.
001001b - External channel 9 is selected as input.
001010b - External channel 10 is selected as input.
001011b - External channel 11 is selected as input.
001100b - External channel 12 is selected as input.
001101b - External channel 13 is selected as input.
001110b - External channel 14 is selected as input.
ADC register descriptions
MWCT101xS Series Reference Manual, Rev. 3, 07/2019
1000
NXP Semiconductors
Summary of Contents for MWCT101 S Series
Page 2: ...MWCT101xS Series Reference Manual Rev 3 07 2019 2 NXP Semiconductors...
Page 42: ...MWCT101xS Series Reference Manual Rev 3 07 2019 42 NXP Semiconductors...
Page 50: ...Conventions MWCT101xS Series Reference Manual Rev 3 07 2019 50 NXP Semiconductors...
Page 70: ...Aliased bit band regions MWCT101xS Series Reference Manual Rev 3 07 2019 70 NXP Semiconductors...
Page 78: ...Pinout diagrams MWCT101xS Series Reference Manual Rev 3 07 2019 78 NXP Semiconductors...
Page 96: ...WCT101xS safety concept MWCT101xS Series Reference Manual Rev 3 07 2019 96 NXP Semiconductors...
Page 130: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 130 NXP Semiconductors...
Page 284: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 284 NXP Semiconductors...
Page 430: ...Functional Description MWCT101xS Series Reference Manual Rev 3 07 2019 430 NXP Semiconductors...
Page 472: ...Application Information MWCT101xS Series Reference Manual Rev 3 07 2019 472 NXP Semiconductors...
Page 528: ...Module clocks MWCT101xS Series Reference Manual Rev 3 07 2019 528 NXP Semiconductors...
Page 634: ...SRAM configuration MWCT101xS Series Reference Manual Rev 3 07 2019 634 NXP Semiconductors...
Page 818: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 818 NXP Semiconductors...
Page 960: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 960 NXP Semiconductors...
Page 992: ...ADC calibration scheme MWCT101xS Series Reference Manual Rev 3 07 2019 992 NXP Semiconductors...
Page 1348: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1348 NXP Semiconductors...
Page 1366: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1366 NXP Semiconductors...
Page 1514: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1514 NXP Semiconductors...
Page 1726: ...Debug and security MWCT101xS Series Reference Manual Rev 3 07 2019 1726 NXP Semiconductors...
Page 1760: ...MWCT101xS Series Reference Manual Rev 3 07 2019 1760 NXP Semiconductors...