423
16.6 Operation of the 8/10-Bit A/D Converter
The 8/10-bit A/D converter has four conversion modes: single conversion mode 1,
single conversion mode 2, continuous conversion mode, and stop conversion mode.
This section explains each of these modes.
s Operation in Single Conversion Mode 1/Operation in Single Conversion Mode 2
In single operation mode 1 and single operation mode 2, analog input from the start channel
specified by the A/D conversion start channel setting bits (ANS2 to ANS0) of the A/D control
status register (ADCS0) to the end channel specified by the A/D conversion end channel setting
bits (ANE2 to ANE0) is A/D converted before terminating.
If the start channel and the end channel are the same, only one channel specified by the A/D
conversion start channel setting bits (ANS2 to ANS0) is A/D converted.
Reactivation during operation is possible in single conversion mode 1, but is not possible in
single conversion mode 2. For operation in single conversion mode 1 or 2, settings shown in
Figure 16.6-1 "Settings for Single Conversion Mode" are required.
Figure 16.6-1 Settings for Single Conversion Mode
Reference:
The following are sample conversion sequences in single conversion mode:
ANS = 000B, ANE = 011B:AN0 --> AN1 --> AN2 --> AN3 --> End
ANS = 110B, ANE = 010B:AN6 --> AN7 --> AN0 --> AN1 --> AN2 --> End
ANS = 011B, ANE = 011B:AN3 --> END
: Used
: Set to 1 the bit corresponding to the pin used.
0 : Set 0.
PAUS STS1
STRT RESV
STS0
BUSY INT INTE
0
ANS1 ANS0
ANE1 ANE0
ANE2
MD1 MD0 ANS2
CT1 CT0
Holds the conversion data (Only bit7 to bit0 are valid in 8-bit mode)
S10 ST1 ST0
ADCR0/ADCR1
ADER
ADCS0/ADCS1
bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0