R8C/38T-A Group
23. A/D Converter
Under development Preliminary document
Specifications in this document are tentative and subject to change.
R01UH0241EJ0010 Rev.0.10
Page 562 of 730
Aug 05, 2011
23.8
Repeat Sweep Mode
In repeat sweep mode, the input voltages to two, four, six, or eight pins selected from among AN0 to AN19 are A/D
converted repeatedly.
Note:
1. When executing repeat-sweep mode, set bits CH2 to CH0 in the ADINSEL register to 000b.
Table 23.10
Repeat Sweep Mode Specifications
Item
Specification
Function
The input voltages to the pins selected by bits ADGSEL0 and ADGSEL1 and bits
SCAN0 and SCAN1 in the ADINSEL register are A/D converted repeatedly.
Resolution
8 bits or 10 bits
A/D conversion start condition
Software trigger
Timer RC
Event input trigger from ELC
A/D conversion stop condition
Set the ADST bit in the ADCON0 register to 0
Interrupt request generation
timing
If two pins are selected, when A/D conversion of the two selected pins
completes.
If four pins are selected, when A/D conversion of the four selected pins
completes.
If six pins are selected, when A/D conversion of the six selected pins completes.
If eight pins are selected, when A/D conversion of the eight selected pins
completes.
AN0 and AN1 (2 pins), AN8 and AN9 (2 pins), AN12 and AN13 (2 pins),
AN0 to AN3 (4 pins), AN8 to AN11 (4 pins), AN12 to AN15 (4 pins),
AN0 to AN5 (6 pins), AN12 to AN17 (6 pins),
AN0 to AN7 (8 pins), AN12 to AN19 (8 pins)
(Selectable by bits SCAN0 and SCAN1 and bits ADGSEL0 and ADGSEL1.)
Storage resister for A/D
conversion result
AD0 register: AN0, AN8, AN12
AD1 register: AN1, AN9, AN13
AD2 register: AN2, AN10, AN14
AD3 register: AN3, AN11, AN15
AD4 register: AN4, AN16
AD5 register: AN5, AN17
AD6 register: AN6, AN18
AD7 register: AN7, AN19
Reading of result of A/D
converter
Read the registers from AD0 to AD7 corresponding to the selected pin.