CHAPTER 13 A/D CONVERTER
Page 296 of 920
13.3.4
A/D converter mode register 2 (ADM2)
This register is used to select the + side or - side reference voltage of the A/D converter, 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 13 - 7 Format of A/D converter mode register 2 (ADM2) (1/2)
Caution 1. Rewrite the value of the ADM2 register while conversion is stopped (ADCS = 0, ADCE = 0).
Caution 2. When using AV
REFP
and AV
REFM
, specify ANI0 and ANI1 as the analog input channels and specify
input mode by using the port mode register.
Address: F0010H
After reset: 00H
Symbol
7
6
5
4
<3>
<2>
1
<0>
ADM2
0
ADREFP0
ADREFM
0
ADRCK
AWC
0
ADTYP
Selection of the + side reference voltage source of the A/D converter
0
Supplied from V
DD
1
Supplied from P20/AV
REFP
/ANI0
• When ADREFP0 bit is rewritten, this must be configured in accordance with the following procedures.
(1) Set ADCE = 0
(2) Change the values of ADREFP0
(3) Set ADCE = 1
(4) Reference voltage stabilization wait time (1
μ
s)
Start A/D conversion after the time described in (4) has elapsed.
Selection of the - side reference voltage of the A/D converter
0
Supplied from V
SS
1
Supplied from P21/AV
REFM
/ANI1
Summary of Contents for RL78/G1H
Page 941: ...R01UH0575EJ0120 RL78 G1H...