CHAPTER 11 A/D CONVERTER
540
User’s Manual U15195EJ5V0UD
11.10.2 Operation in scan mode
Using the ADTRG0 or ADTRG1 signal as a trigger, pins from the conversion start analog input pin to the
conversion termination analog input pin specified by the ADSCM00 or ADSCM10 register are sequentially selected
and A/D converted. A/D conversion results are stored in the ADCR0m or ADCRN1n register corresponding to the
analog input (m = 0 to 5, n = 0 to 7). When conversion ends for all of the specified analog inputs, an INTAD0 or
INTAD1 interrupt is generated, which terminates A/D conversion (ADCS0, ADCS1 = 0).
Trigger
Analog Input
A/D Conversion Result Register
ANIn0 ADCRn0
ANIn1 ADCRn1
ANIn2 ADCRn2
ANIn3 ADCRn3
ANIn4 ADCRn4
ANIn5 ADCRn5
ANI16 ADCR16
ADTRGn signal
ANI17 ADCR17
Remark
n = 0, 1
After all specified A/D conversions have ended, A/D conversion is restarted when an external trigger signal occurs.
This is optimal for applications that regularly monitor multiple analog inputs in synchronization with an external
trigger.
Figure 11-13. Example of Scan Mode (External Trigger Scan) Operation: For A/D Converter 0
(a) When setting to scan ANI01 to ANI04
ANI00
ANI01
ANI02
ANI03
ANI04
ANI05
ADCR00
ADCR01
ADCR02
ADCR03
ADCR04
ADCR05
A/D converter 0
ADTRG0
(1) ADCE0 bit of ADSCM00 = 1 (Enabled)
(2) External trigger generation
(3) A/D conversion of ANI01
(4) Store conversion result in ADCR01
(5) A/D conversion of ANI02
(6) Store conversion result in ADCR02
(7) A/D conversion of ANI03
(8) Store conversion result in ADCR03
(9) A/D conversion of ANI04
(10) Store conversion result in ADCR04
(11) INTAD0 interrupt generation
Содержание PD703114
Страница 2: ...2 User s Manual U15195EJ5V0UD MEMO ...