RL78/G1P
CHAPTER 9 A/D CONVERTER
R01UH0895EJ0100 Rev.1.00
241
Nov 29, 2019
CHAPTER 9 A/D CONVERTER
The number of analog input channels of the A/D converter differs, depending on the product.
24-pin
32-pin
Analog input channels
Total
6 ch
8 ch
High accuracy channel
5 ch
(ANI0 to ANI3, ANI7)
8 ch
(ANI0 to ANI7)
Standard channel
1 ch
(ANI16)
0 ch
Remark
Most of the following descriptions in this chapter use the 32-pin products as an example.
9.1 Function of A/D Converter
The A/D converter converts analog input signals into digital values, and is configured to control analog inputs, including
up to 8 channels of A/D converter analog inputs (ANI0 to ANI7, ANI16).
12-bit or 8-bit resolution can be selected by the ADTYP bit of the A/D converter mode register 2 (ADM2).
The A/D converter has the following function.
12-bit or 8-bit resolution A/D conversion
12-bit or 8-bit resolution A/D conversion is carried out repeatedly for one analog input channel selected from ANI0 to
ANI7 and ANI16. Each time an A/D conversion operation ends, an interrupt request (INTAD) is generated (when in
the select mode).
Caution The valid resolution also depends on the selection of the positive and negative reference voltage
sources for the A/D converter.
For details, see 27.6.1 A/D converter characteristics.
Remark
When using the converter with a resolution of 10 bits, select the 12-bit resolution mode (ADTYP = 0).
Use the higher 10 bits of the conversion result. Do not use the lower 2 bits.