Renesas RL78 Series User Manual page 353

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

Advertisement

RL78/G1D
12.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 12-11. 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.
○ Scan mode (ADMD = 1)
ADISS
0
Cautions 1. Be sure to clear bits 5 and 6 to "0".
2. Set a channel to be set the analog input by ADPC and PMCx registers in the input mode
3. Do not set the pin that is set by the A/D port configuration register (ADPC) as digital I/O
4. Do not set the pin that is set by port mode control register 0 (PMC0) as digital I/O by the
5. Rewrite the value of the ADISS bit while conversion is stopped (ADCS = 0, ADCE = 0).
6. If using AV
7. If using AV
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
ADS4
ADS3
ADS2
0
0
0
Other than above
by using port mode registers 0, 2, 12, or 14 (PM0, PM2, PM12, PM14).
by the ADS register.
ADS register.
as the + side reference voltage of the A/D converter, do not select ANI0 as
REFP
an A/D conversion channel.
as the – side reference voltage of the A/D converter, do not select ANI1 as
REFM
an A/D conversion channel.
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
ADS1
ADS0
0
0
CHAPTER 12 A/D CONVERTER
2
1
ADS2
ADS1
Input source
channel
P20/ANI0/AVREFP pin
P21/ANI1/AVREFM pin
P22/ANI2 pin
P23/ANI3 pin
P03/ANI16 pin
P02/ANI17 pin
P147/ANI18 pin
P120/ANI19 pin
Temperature sensor
Note
output
Internal reference voltage
Note
output (1.45 V)
Analog input channel
0
1
2
ANI0
ANI1
ANI2
Setting prohibited
0
ADS0
3
ANI3
332

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rl78/g1dR5f11aggR5f11aghR5f11agj

Table of Contents