CHAPTER 12 A/D CONVERTER
434
User’s Manual U14359EJ4V0UM
Figure 12-17. Example of Scan Mode Operation (External Trigger Scan)
(a) Setting when scanning ANI0 to ANI3
ANI0
ANI1
ANI2
ANI3
ANI4
ANI5
ANI6
ANI7
ADCR0
ADCR1
ADCR2
ADCR3
ADCR4
ADCR5
ADCR6
ADCR7
A/D converter
ADTRG
(1)
The ADCE bit of ADM0 is set to 1 (enable)
(8)
The external trigger is generated
(2)
The external trigger is generated
(9)
ANI2 is A/D converted
(3)
ANI0 is A/D converted
(10) The conversion result is stored in ADCR2
(4)
The conversion result is stored in ADCR0
(11) The external trigger is generated
(5)
The external trigger is generated
(12) ANI3 is A/D converted
(6)
ANI1 is A/D converted
(13) The conversion result is stored in ADCR3
(7)
The conversion result is stored in ADCR1
(14) The INTAD interrupt is generated
Caution
ADTRG cannot be used as a trigger for the analog inputs enclosed in the broken lines.
When a setting is made to scan ANI0 to ANI7, ANI4 to ANI7 are converted in A/D trigger
mode (see (b) below).
(b) Setting when scanning ANI0 to ANI7
ANI0
ANI1
ANI2
ANI3
ANI4
ANI5
ANI6
ANI7
ADCR0
ADCR1
ADCR2
ADCR3
ADCR4
ADCR5
ADCR6
ADCR7
A/D converter
ADTRG
(1) to (13)
Same as (a)
(18) ANI6 is A/D converted
(14) ANI4 is A/D converted
(19) The conversion result is stored in ADCR6
(15) The conversion result is stored in ADCR4
(20) ANI7 is A/D converted
(16) ANI5 is A/D converted
(21) The conversion result is stored in ADCR7
(17) The conversion result is stored in ADCR5
(22) The INTAD interrupt is generated