Renesas RL78 Series User Manual page 349

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

Advertisement

RL78/G1D
12.3.4 A/D converter mode register 2 (ADM2)
This register is used to select the A/D converter reference voltage, check the upper limit and lower limit A/D conversion
result values, select the resolution, and specify whether to use the SNOOZE mode.
The ADM2 register can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation clears this register to 00H.
Figure 12-7. Format of A/D Converter Mode Register 2 (ADM2) (1/2)
Address: F0010H
After reset: 00H
Symbol
7
ADM2
ADREFP1
ADREFP1
0
0
1
1
● When ADREFP1 or ADREFP0 bit is rewritten, this must be configured in accordance with the following procedures.
(1) Set ADCE = 0
(2) Change the values of ADREFP1 and ADREFP0
(3) Reference voltage stabilization wait time (A)
(4) Set ADCE = 1
(5) Reference voltage stabilization wait time (B)
When ADREFP1 and ADREFP0 are set to 1 and 0, the setting is changed to A = 5 µs, B = 1 µs.
When ADREFP1 and ADREFP0 are set to 0 and 0 or 0 and 1, A needs no wait and B = 1 µs.
After (5) stabilization time, start the A/D conversion.
● When ADREFP1 and ADREFP0 are set to 1 and 0, respectively, A/D conversion cannot be performed on the
temperature sensor output voltage and internal reference voltage output.
Be sure to perform A/D conversion while ADISS = 0.
ADREFM
0
1
Note This setting can be used only in HS (high-speed main) mode.
Cautions 1. Rewrite the value of the ADM2 register while conversion is stopped (ADCS = 0, ADCE = 0).
2. Do not set the ADREFP1 bit to 1 when shifting to STOP mode, or to HALT mode while the CPU is
operating on the subsystem clock. When the internal reference voltage is selected (ADREFP1,
ADREFP0 = 1, 0), the A/D converter reference voltage current (I
current characteristics will be added.
3. When using AV
input mode by using the port mode register.
R01UH0515EJ0120 Rev.1.20
Dec 16, 2016
R/W
6
5
ADREFP0
ADREFM
ADREFP0
Selection of the + side reference voltage source of the A/D converter
0
Supplied from V
1
Supplied from P20/AV
0
Supplied from the internal reference voltage (1.45 V)
1
Setting prohibited
Selection of the – side reference voltage source of the A/D converter
Supplied from V
SS
Supplied from P21/AV
/ANI1
REFM
and AV
REFP
REFM
4
<3>
0
ADRCK
DD
/ANI0
REFP
, specify ANI0 and ANI1 as the analog input channels and specify
CHAPTER 12 A/D CONVERTER
<2>
1
AWC
0
Note
) indicated in 30.5.2 Supply
ADREF
<0>
ADTYP
328

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rl78/g1dR5f11aggR5f11aghR5f11agj

Table of Contents