2.6 10-Bit 8-Input Channel A/D Converter (with 8-bit Resolution Mode)
134
Chapter 2: Hardware
[Bits 5, 4, 3] ANS2, ANS1, ANS0 (Analog start channel set)
These bits determine the starting channel for A/D conversion. When the A/D converter starts up, A/
D conversion will begin from the channel selected by these bits.
Table 2.6.3 Conversion Start Channel Selected by ANS Bit Values
While A/D conversion is in progress, this bit group can be read to indicate the number of the channel
on which A/D conversion is taking place. While A/D conversion is not executed in stop mode, this
bit group indicates the channel on which the last conversion was performed immediately prior to
stoppage. This bit group is initialized to ‘000’ at a reset.
[Bits 2, 1, 0] ANE2, ANE1, ANE0 (Analog end channel set)
These bits determine the ending channel for A/D conversion. When the A/D converter starts up, A/
D conversion will end at the channel selected by these bits.
Table 2.6.4 Conversion End Channel Selected by ANE Bit Values
When the setting is the same as the channel setting in bits ANS2 to ANS0, conversion will be
performed on the selected channel only. If continuous mode or stop mode is selected, the conversion
channel will reach the channel designated by this bit group and then return to the channel selected
by the ANS2 to ANS0 bits. Also if the ANS channel number is greater than the ANE channel
number, channel conversion will proceed to AN7, after beginning with the channel selected by the
ANS bits and then return to AN0 before ending at the channel designated by the ANE bit group, as
in the following example.
Example:
Channel settings: ANS = Ch6, ANE = Ch3, single conversion mode
Operation: Conversion channel Ch6
→ Ch7 → Ch0 → Ch1 → Ch2 → Ch3
This bit group is initialized to ‘000’ at a reset.
ANS2
ANS1
ANS0
Start channel
0
AN0
0
1
AN1
0
1
0
AN2
0
1
AN3
1
0
AN4
1
0
1
AN5
1
0
AN6
1
AN7
ANE2
ANE1
ANE0
End channel
0
AN0
0
1
AN1
0
1
0
AN2
0
1
AN3
1
0
AN4
1
0
1
AN5
1
0
AN6
1
AN7