RL78/G1P
CHAPTER 9 A/D CONVERTER
R01UH0895EJ0100 Rev.1.00
263
Nov 29, 2019
9.3.7 Analog input channel specification register (ADS)
This register specifies the input channel of the analog voltage to be A/D converted.
The ADS register can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation clears this register to 00H.
Figure 9-11. Format of Analog Input Channel Specification Register (ADS) (1/2)
Address: FFF31H After reset: 00H R/W
Symbol
7 6 5 4 3 2 1 0
ADS
ADISS 0 0 ADS4 0 ADS2
ADS1
ADS0
Select mode (ADMD = 0)
ADISS ADS4 ADS2 ADS1 ADS0 Analog input
channel
Input source
0 0 0 0 0
ANI0 P20/ANI0/AV
REFP
pin
0 0 0 0 1
ANI1 P21/ANI1/AV
REFM
pin
0 0 0 1 0
ANI2 P22/ANI2
pin
0 0 0 1 1
ANI3 P23/ANI3
pin
0 0 1 0 0
ANI4 P24/ANI4
pin
Note 1
0 0 1 0 1
ANI5 P25/ANI5
pin
Note 1
0 0 1 1 0
ANI6 P26/ANI6
pin
Note 1
0 0 1 1 1
ANI7 P27/ANI7
pin
0 1 0 0 0
ANI16 P10/ANI16
pin
Note 2
1 0 0 0 0
Temperature sensor output voltage
Note 3
1 0 0 0 1
Internal reference voltage output (1.45 V)
Note 3
Other than above
Setting prohibited
Notes 1.
ANI4 to ANI6: 32-pin products only
2.
ANI16: 24-pin products only
3.
This setting can be used only in HS (high-speed main) mode. For detail, refer to
Figure 22-3
Format of User Option Byte (000C2H)
.