Chapter 14
A/D Converter
XIV - 30 Operation
■ Multiple Channels/One-time Conversion for Each (AD0 , AD1)
Continuous multiple A/D input is converted only once. The A/D interrupt is generated at the same time when all
conversions of multiple channels end. Set the first channel to be converted by the ANnCH2-0 flags of the
ANnCTR0 register and the last channel by the ANnNCH2-0 flags of the ANnCTR1 register.
When conversion is started by the ANnEN flag (conversion start-execution flag), set the ANnTRG flag to “0” and
the ANnEN flag to “1”. The ANnEN flag is “1” during conversion and changes to “0” after conversion of all
channels is completed. The ANnCH2-0 flags become the channel number being converted during conversion and
change to the first channel number after conversion of all multiple channels is completed.
■ Multiple Channels/One-time Conversion for Each (AD2)
Continuous multiple A/D input is converted only once. The A/D interrupt is generated at the same time when all
conversions of multiple channel end. Set the first channel number to be converted by the AN2CH3-0 flags of the
AN2CTR0 register and the last channel by the AN2NCH3-0 flags of the AN2CTR1 register.
When conversion is started by the AN2EN flag (conversion start-execution flag), set the AN2TRG flag to “0” and
the AN2EN flag to “1”. The AN2EN flag is “1” during conversion and changes to “0” after conversion ends. The
AN2CH3-0 flags become the channel number being converted during conversion and change to the first channel
number after conversion of all multiple channels is completed.
Figure:14.3.3 Multiple Channels/Timing of One-time Conversion for Each
..
Multiple channels are converted in the following order.
..
Start
Nch conversion
Stop
interrupt request
Status
ANEN
N+1ch conversion
N+2ch conversion
ADIN00
AD0
ADIN01 ADIN02
ADIN05 ADIN04 ADIN03
ADIN02
AD1
ADIN03 ADIN04 ADIN05
ADIN09 ADIN08 ADIN07 ADIN06
ADIN06
AD2
ADIN07 ADIN08 ADIN09
ADIN15 ADIN14 ADIN13 ADIN12
ADIN10
ADIN11