Renesas RL78 Series User Manual page 773

16-bit single-chip microcontrollers
Hide thumbs Also See for RL78 Series:
Table of Contents

Advertisement

RL78/G1D
23.3.8.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 voltage/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 23-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
1
1
Note This setting can be used only in HS (high-speed main) mode.
Cautions 1. Be sure to clear bits 5 and 6 to 0.
2. Select input mode for the ports which are set to analog input with the ADPC and PMC registers,
using the port mode registers 0, 2, 12, and 14 (PM0, PM2, PM12, and PM14).
3. Do not use the ADS register to set the pins which should be set as digital I/O with the A/D port
configuration register (ADPC).
4. Do not use the ADS register to set the pins which should be set as digital I/O with the port mode
control register 0 (PMC0).
5. Only rewrite the value of the ADISS bit while conversion operation is stopped (ADCS = 0, ADCE =
0).
6. If using AV
as an A/D conversion channel.
7. If using AV
as an A/D conversion channel.
8. When ADISS is 1, the internal reference voltage (1.45 V) cannot be used for the positive reference
voltage. In addition, the first conversion result obtained after setting ADISS to 1 is not available.
For detailed setting flow, see 12.7.4 Setup when temperature sensor output voltage/internal
reference voltage is selected (example for software trigger mode and one-shot conversion mode).
9. If a transition is made to STOP mode or a transition is made to HALT mode during CPU operation
with subsystem clock, do not set ADISS to 1. When ADISS is 1, the A/D converter reference
voltage current (I
R01UH0515EJ0120 Rev.1.20
Dec 16, 2016
R/W
6
5
0
0
ADS4
ADS3
ADS2
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
0
Other than above
as the positive reference voltage source of the A/D converter, do not select ANI0
REFP
as the negative reference voltage source of the A/D converter, do not select ANI1
REFM
) shown in 30.5.1 Supply current characteristics is added.
ADREF
CHAPTER 23 SAFETY FUNCTIONS
4
3
ADS4
ADS3
ADS1
ADS0
Analog input
0
0
ANI0
0
1
ANI1
1
0
ANI2
1
1
ANI3
0
0
ANI16
0
1
ANI17
1
0
ANI18
1
1
ANI19
0
0
0
1
Setting prohibited
2
1
ADS2
ADS1
Input source
channel
P20/ANI0/AV
REFP
P21/ANI1/AV
REFM
P22/ANI2 pin
P23/ANI3 pin
P03/ANI16 pin
P02/ANI17 pin
P147/ANI18 pin
P120/ANI19 pin
Temperature sensor output
Note
voltage
Internal reference voltage
Note
output (1.45 V)
0
ADS0
pin
pin
752

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rl78/g1dR5f11aggR5f11aghR5f11agj

Table of Contents