CHAPTER 12 A/D CONVERTER
418
User’s Manual U14359EJ4V0UM
(b) Scan mode
In this mode, the analog inputs specified by the ADM0 register are selected sequentially from the ANI0
pin, and A/D conversion is executed. The A/D conversion results are stored in the ADCRn register
corresponding to the analog input (n = 0 to 7). When the conversion of the specified analog input ends,
the A/D conversion end interrupt (INTAD) is generated.
Figure 12-5. Scan Mode Operation Timing: 4-Channel Scan (ANI0 to ANI3)
ANI3
(input)
ANI0
(input)
ANI1
(input)
ANI2
(input)
A/D
conversion
Data 1
(ANI0)
Data 2
(ANI1)
Data 3
(ANI2)
Data 4
(ANI3)
Data 5
(ANI0)
Data 6
(ANI0)
Data 7
(ANI1)
Data 1
Data 2
Data 3
Data 4
Data 5
Data 6
Data 7
Data 1
(ANI0)
ADCR0
Data 2
(ANI1)
ADCR1
Data 3
(ANI2)
ADCR2
Data 4
(ANI3)
ADCR3
Data 6
(ANI0)
ADCR0
ADCRn
register
INTAD
interrupt
Conversion start
(ADM0 register setting)
Conversion start
(ADM0 register setting)
ANI0
ANI1
ANI2
ANI3
ANI4
ANI5
ANI6
ANI7
ADCR0
ADCR1
ADCR2
ADCR3
ADCR4
ADCR5
ADCR6
ADCR7
A/D converter
ADCRn register
Analog input