CHAPTER 12 A/D CONVERTER
426
User’s Manual U14359EJ4V0UM
(b) 4-trigger mode
In this mode, one analog input is A/D converted four times using four match interrupt signals (INTM000,
INTM001, INTM010, INTM011) as triggers and the results are stored in four ADCRn registers. The A/D
conversion end interrupt (INTAD) is generated when the four A/D conversions end, the ADCS bit is reset
(0), and A/D conversion is stopped.
Trigger
Analog Input
A/D Conversion Result Register
INTM000 interrupt
ANIn
ADCR0
INTM001 interrupt
ANIn
ADCR1
INTM010 interrupt
ANIn
ADCR2
INTM011 interrupt
ANIn
ADCR3
In 1-shot mode, A/D conversion stops after four conversions. To restart the A/D conversion, set the
TMCCEn bit of the TMCCn0 register to 1 to restart TMCn. When the first match interrupt after TMCn is
restarted is generated, the ADCS bit is set (1) and A/D conversion is started (n = 0, 1).
When set to the loop mode, unless the ADCE bit of the ADM0 register is set to 0, A/D conversion is
repeated each time a match interrupt is generated.
The match interrupts (INTM000, INTM001, INTM010, INTM011) can be generated in any order, and the
conversion results are stored in the ADCRn register corresponding to the input trigger. Also, even in
cases where the same trigger is input continuously, it is received as a trigger.
Figure 12-12. Example of 4-Trigger Mode Operation (Timer Trigger Select: 4 Buffers 4 Triggers)
ANI0
ANI1
ANI2
ANI3
ADCR0
ADCR1
ADCR2
ADCR3
ADCR4
ADCR5
ADCR6
ADCR7
A/D converter
INTM000
INTM001
INTM010
INTM011
No particular
order
No particular
order
(1)
The ADCE bit of ADM0 is set to 1 (enable)
(8)
The CCC10 compare is generated (random)
(2)
The CCC01 compare is generated (random)
(9)
ANI2 is A/D converted
(3)
ANI2 is A/D converted
(10) The conversion result is stored in ADCR2
(4)
The conversion result is stored in ADCR1
(11) The CCC00 compare is generated (random)
(5)
The CCC11 compare is generated (random)
(12) ANI2 is A/D converted
(6)
ANI2 is A/D converted
(13) The conversion result is stored in ADCR0
(7)
The conversion result is stored in ADCR3
(14) The INTAD interrupt is generated