CHAPTER 13 A/D CONVERTER
667
User’s Manual U14492EJ3V0UD
13.8 Operation in Timer Trigger Mode
The A/D converter can set an interrupt signal specified by the A/D internal trigger selection register 0 (ITRG0) as a
conversion trigger for up to 8 channels (a total of 16 channels in 2 circuits) of analog input (ANI00 to ANI07, ANI10 to
ANI17).
The four interrupt signals that can be selected as triggers are the TM0n timer 0 register underflow interrupt signals
(INTTM00 and INTTM01) and the CM003 and CM013 match interrupt signals (INTCM003 and INTCM013) (n = 0, 1).
13.8.1 Operation in select mode
Taking the interrupt signal specified by the A/D internal trigger selection register 0 (ITRG0) as a trigger, one analog
input (ANI00 to ANI07, ANI10 to ANI17) specified by the ADSCM00 or ADSCM10 register is A/D converted once. The
conversion result is stored in the ADCR0n or ADCR1n register corresponding to the analog input (n = 0 to 7). An A/D
conversion termination interrupt (INTAD0 or INTAD1) is generated for each A/D conversion, which terminates A/D
conversion (ADCS0 or 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 register
ANIx
ADCRx
Remark
x = 00 to 07, 10 to 17
After A/D conversion termination, A/D converter 0 or 1 changes to trigger wait status (ADCE0 or ADCE1 = 1). It
performs A/D conversion operation again when the interrupt signal specified in the ITRG0 register occurs.
Figure 13-10. Example of Timer Trigger Select Mode Operation (ANI04): For A/D Converter 0
(a) When selecting INTTM00 by ITRG0 register
ANI00
ANI01
ANI02
ANI03
ANI04
ANI05
ANI06
ANI07
ADCR00
ADCR01
ADCR02
ADCR03
ADCR04
ADCR05
ADCR06
ADCR07
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
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...