Datasheet
RL78/L12 CHAPTER 11 A/D CONVERTER
R01UH0330EJ0200 Rev.2.00 356
Dec 13, 2013
11.3.10 A/D test register (ADTES)
This register is used to select the + side reference voltage or - side reference voltage for the converter, an analog input
channel (ANIxx), the temperature sensor output voltage, or the internal reference voltage (1.45 V) as the target for A/D
conversion.
When using this register to test the converter, set as follows.
• For zero-scale measurement, select the - side reference voltage as the target for conversion.
• For full-scale measurement, select the + side reference voltage as the target for conversion.
The ADTES register can be set by an 8-bit memory manipulation instruction.
Reset signal generation clears this register to 00H.
Figure 11-14. Format of A/D Test Register (ADTES)
Address: F0013H After reset: 00H R/W
Symbol 7 6 5 4 3 2 1 0
ADTES 0 0 0 0 0 0 ADTES1 ADTES0
ADTES1 ADTES0 A/D conversion target
0 0
ANIxx/temperature sensor output voltage
Note
/internal reference voltage (1.45 V)
Note
(This is specified using the analog input channel specification register (ADS).)
1 0 The - side reference voltage (selected by the ADREFM bit of the ADM2 register)
1 1
The + side reference voltage (selected by the ADREFP1 or ADREFP0 bit of the ADM2
register)
Other than the above Setting prohibited
Note The temperature sensor output voltage and internal reference voltage (1.45 V) can be selected only in
the HS (high-speed main) mode.
11.3.11 Registers controlling port function of analog input pins
Set up the registers for controlling the functions of the ports shared with the analog input pins of the A/D converter (port
mode registers (PMxx), port mode control registers (PMCxx), and A/D port configuration register (ADPC)). For details,
see 4.3.1 Port mode registers (PMxx), 4.3.6 Port mode control registers (PMCxx), and 4.3.7 A/D port configuration
register (ADPC).
When using the ANI0 and ANI1 pins for analog input of the A/D converter, set the port mode register (PMxx) bit
corresponding to each port to 1 and select analog input through the A/D port configuration register (ADPC).
When using the ANI16 to ANI23 pins for analog input of the A/D converter, set the port mode register (PMxx) bit and
port mode control register (PMCxx) bit corresponding to each port to 1.
<R>
<R>
<R>