CHAPTER 17 8/10-BIT A/D CONVERTER
[bit2, bit1, bit0] ANE2, ANE1, ANE0: ANalog End channel set
These bits specify the end channel for A/D conversion.
ANE2
0
0
0
0
1
1
1
1
•
Specifying the same channels as for ANS2 to ANS0 will result in one-channel conversion
(Single conversion).
•
If continuous mode or stop mode is set, the channels specified by ANS2 to ANS0 will be set
again when conversion of the channels specified by these bits ends.
•
If ANS < ANE, conversion will start from the channel set by ANS; after conversion has been
performed up to channel 7, the setting channel will be set to channel 0, and conversion will
be performed up to end channel set by ANE.
•
These bits are initialized to "000
Example: Channel setting: Single Mode with ANS = Channel 6 and ANE = Channel 3
Note:
Please do not set the A/D conversion mode setting bit (MD1, MD0) and the A/D conversion end
channel selection bit (ANE2, ANE1 and ANE0) by the read-modify-write type instruction after
setting the start channel to the A/D conversion start channel selection bit (ANS2, ANS1, ANS0).
The last conversion channel is read from the ANS2, ANS1 and ANS0 bits until the A/D conversion
operating starts.
Therefore, when MD1, MD0, ANE2, ANE1 and ANE0 bits are set by the read-modify-write type
instruction after setting the start channel to ANS2, ANS1 and ANS0 bits, the value of the ANE2,
ANE1 and ANE0 bits may be overwritten.
362
ANE1
ANE0
0
0
0
1
1
0
1
1
0
0
0
1
1
0
1
1
" at reset.
B
Operation conversion channel Ch6 → Ch7 → Ch0 → Ch1 → Ch2 → Ch3
End channel
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7