CHAPTER 12 A/D CONVERTER
423
User’s Manual U14359EJ4V0UM
12.6.1 Select mode operation
In this mode, an analog input (ANI0 to ANI3) specified by the ADM0 register is A/D converted. The conversion
results are stored in the ADCRn register. In the select mode, the 1-buffer mode and 4-buffer mode are provided
according to the storing method of the A/D conversion results (n = 0 to 3).
(1) 1-buffer mode operation (timer trigger select: 1 buffer)
In this mode, one analog input is A/D converted once and the conversion results are stored in one ADCRn
register.
There are two modes in the 1-buffer mode: 1-trigger mode and 4-trigger mode, according to the number of
triggers.
(a) 1-trigger mode (timer trigger select: 1 buffer, 1 trigger)
In this mode, one analog input is A/D converted once using the trigger of the match interrupt signal
(INTM000) and the results are stored in one ADCRn register. An A/D conversion end interrupt (INTAD)
is generated for each A/D conversion and A/D conversion is stopped (n = 0 to 3).
Trigger
Analog Input
A/D Conversion Result Register
INTM000 interrupt
ANIn
ADCRn
In 1-shot mode, A/D conversion stops after one conversion. To restart A/D conversion, set the TMCCE0
bit of the TMCC00 register to 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.
Figure 12-9. Example of 1-Trigger Mode Operation (Timer Trigger Select: 1 Buffer 1 Trigger)
ANI0
ANI1
ANI2
ANI3
ADCR0
ADCR1
ADCR2
ADCR3
ADCR4
ADCR5
ADCR6
ADCR7
A/D converter
INTM000
(1)
The ADCE bit of ADM0 is set to 1 (enable)
(2)
The CCC00 compare is generated
(3)
ANI1 is A/D converted
(4)
The conversion result is stored in ADCR1
(5)
The INTAD interrupt is generated