CHAPTER 12 A/D CONVERTER
420
User’s Manual U14359EJ4V0UM
(2) 4-buffer mode (A/D trigger select: 4 buffers)
In this mode, one analog input is A/D converted four times and the results are stored in the ADCR0 to ADCR3
registers. When the 4th A/D conversion ends, an A/D conversion end interrupt (INTAD) is generated and the
A/D conversion is stopped.
Analog Input
A/D Conversion Result Register
ANIn
ADCR0
ANIn
ADCR1
ANIn
ADCR2
ANIn
ADCR3
If 1 is written in the ADCE bit of the ADM0 register, A/D conversion can be restarted.
This mode is suitable for applications in which the average of the A/D conversion results is calculated.
Figure 12-7. Example of 4-Buffer Mode Operation (A/D Trigger Select: 4 Buffers)
ANI0
ANI1
ANI2
ANI3
ANI4
ANI5
ANI6
ANI7
ADCR0
ADCR1
ADCR2
ADCR3
ADCR4
ADCR5
ADCR6
ADCR7
A/D converter
ADM0
(
×
4)
(
×
4)
(1)
The ADCE bit of ADM0 is set to 1 (enable)
(6)
ANI4 is A/D converted
(2)
ANI4 is A/D converted
(7)
The conversion result is stored in ADCR2
(3)
The conversion result is stored in ADCR0
(8)
ANI4 is A/D converted
(4)
ANI4 is A/D converted
(9)
The conversion result is stored in ADCR3
(5)
The conversion result is stored in ADCR1
(10) The INTAD interrupt is generated