Renesas RL78/G1P Hardware User Manual page 679

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P
20.10.2 Analog input channel specification register (ADS)
This register specifies the input channel of the analog voltage to be A/D converted.
Set A/D test register (ADTES) to 00H when measuring the ANIxx/temperature sensor output /internal reference voltage
(1.45 V).
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 20-17. Format of Analog Input Channel Specification Register (ADS)
Address: FFF31H
After reset: 00H
Symbol
7
ADS
ADISS
 Select mode (ADMD = 0)
ADISS
0
0
0
0
0
0
0
0
0
1
1
Notes 1.
24-pin products only
2.
32-pin products only
3.
This setting can be used only in HS (high-speed main) mode.
Cautions 1. Be sure to clear bits 3, 5, and 6 to "0".
2. Only rewrite the value of the ADISS bit while A/D voltage comparator operation is stopped
(ADCS = 0 and ADCE = 0 in A/D converter mode register 0 (ADM0)).
3. If using AV
conversion channel.
4. If using AV
conversion channel.
5. If ADISS is set to 1, the internal reference voltage (1.45 V) cannot be used for the + side reference
voltage.
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
R/W
6
5
0
0
Note 1
ADS4
ADS2
0
0
0
0
0
0
0
0
0
1
0
1
0
1
0
1
1
0
0
0
0
0
Other than above
as the + side reference voltage of the A/D converter, do not select ANI0 as an A/D
REFP
as the  side reference voltage of the A/D converter, do not select ANI1 as an A/D
REFM
CHAPTER 20 SAFETY FUNCTIONS
4
3
Note 1
ADS4
0
ADS1
ADS0
0
0
0
1
1
0
1
1
0
0
0
1
1
0
1
1
0
0
0
0
0
1
2
1
ADS2
ADS1
Analog input
Input source
channel
ANI0
P20/ANI0/AV
REFP
ANI1
P21/ANI1/AV
REFM
ANI2
P22/ANI2 pin
ANI3
P23/ANI3 pin
Note 2
ANI4
P24/ANI4 pin
Note 2
ANI5
P25/ANI5 pin
Note 2
ANI6
P26/ANI6 pin
ANI7
P27/ANI7 pin
Note 1
ANI16
P10/ANI16 pin
Temperature sensor
Note 3
output
Internal reference voltage
output (1.45 V)
Setting prohibited
0
ADS0
pin
pin
Note 3
660

Advertisement

Table of Contents
loading

Table of Contents