
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 560 of 730
Aug 05, 2011
23.7
Single Sweep Mode
In single sweep mode, the input voltages to two, four, six, or eight pins selected from among AN0 to AN19 are A/D
converted once.
Note:
1. When executing single-sweep mode, set bits CH2 to CH0 in the ADINSEL register to 000b.
Table 23.9
Single 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 once.
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
If two pins are selected, when A/D conversion of the two selected pins
completes (the ADST bit in the ADCON0 register is set to 0).
If four pins are selected, when A/D conversion of the four selected pins
completes (the ADST bit is set to 0).
If six pins are selected, when A/D conversion of the six selected pins completes
(the ADST bit is set to 0).
If eight pins are selected, when A/D conversion of the eight selected pins
completes (the ADST bit is set to 0).
Set the ADST bit 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 to AN1 (2 pins), AN8 to AN9 (2 pins), AN12 to 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 SCAN1 and SCAN0 and bits ADGSEL1 and ADGSEL0.)
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.