CHAPTER 11 A/D CONVERTER
537
User’s Manual U15195EJ5V0UD
11.9 Operation in Timer Trigger Mode
A/D converters 0 and 1 have a total of 14 channels of analog inputs (ANI00 to ANI05 and ANI10 to ANI17). For
these channels, an interrupt signal specified by A/D internal trigger selection registers 0 and 1 (ITRG0, INTRG1) can
be set as a conversion trigger.
The eight interrupt signals that can be selected as triggers are the TM0n timer 0 register underflow interrupt signals
(INTTM00 and INTTM01) and the CM003 to CM005 and CM013 to CM015 match interrupt signals (INTCM003 to
INTCM005 and INTCM013 to INTCM015) (n = 0, 1).
11.9.1 Operation in select mode
Taking the interrupt signal specified by A/D internal trigger selection registers 0 and 1 (ITRG0, ITRG1) as a trigger,
one analog input (ANI00 to ANI05, ANI10 to ANI17) specified by the ADSCM00 or ADSCM10 register is A/D
converted once. The conversion result is stored in the ADCR0m or ADCR1n register corresponding to the analog
input (m = 0 to 5, n = 0 to 7). The A/D conversion end interrupt (INTAD0 or INTAD1) is generated at the end of each
A/D conversion, which terminates A/D conversion (ADCS0, ADCS1 = 0).
This is optimal for applications that read A/D conversion values synchronized to a timer trigger.
Trigger
Analog Input
A/D Conversion Result Register
Interrupt specified by ITRG0, ITRG1 register
ANIx
ADCRx
Remark
n = 00 to 05, 10 to 17
After the end of A/D conversion, A/D converter 0 or 1 changes to the trigger wait status (ADCE0, ADCE1 = 1). A/D
conversion is performed again when the interrupt signal specified by the ITRG0 or ITRG1register is generated.
Figure 11-10. Example of Timer Trigger Select Mode Operation (ANI04): For A/D Converter 0
(a) When selecting INTTM00 by ITRG0, ITRG1 register
ANI00
ANI01
ANI02
ANI03
ANI04
ANI05
ADCR00
ADCR01
ADCR02
ADCR03
ADCR04
ADCR05
A/D converter 0
INTTM00
(1) ADCE0 bit of ADSCM00 = 1 (Enabled)
(2) INTTM00 interrupt generation
(3) A/D conversion of ANI04
(4) Store conversion result in ADCR04
(5) INTAD0 interrupt generation
Содержание PD703114
Страница 2: ...2 User s Manual U15195EJ5V0UD MEMO ...