CHAPTER 5 PORT FUNCTIONS
Page 84 of 920
5.3.7
A/D port configuration register (ADPC)
This register is used to switch the P20/ANI0, P21/ANI1, P22/ANI2, ANI13/P155, and ANI14/P156 pins to digital
I/O of port or analog function of A/D converter.
The ADPC register can be set by an 8-bit memory manipulation instruction.
Reset signal generation sets this register to 00H.
Figure 5 - 7 Format of A/D port configuration register (ADPC)
Caution 1. Set the port to analog input by ADPC register to the input mode by using port mode registers 2, 15
(PM2, PM15).
Caution 2. Do not set the pin set by the ADPC register as digital I/O by the analog input channel specification
register (ADS).
Caution 3. When using AV
REFP
and AV
REFM
, set ANI0 and ANI1 to analog input and set the port mode register to
the input mode.
Address: F0076H
After reset: 00H
Symbol
7
6
5
4
3
2
1
0
0
0
0
0
ADPC3
ADPC2
ADPC1
ADPC0
Analog function (A)/digital
I/O (D) switching
ANI
14/P156
ANI
13/P155
AN
I2/P22
AN
I1/P21
AN
I0/P20
0
0
0
0
A
A
A
A
A
0
0
0
1
D
D
D
D
D
0
0
1
0
D
D
D
D
A
0
0
1
1
D
D
D
A
A
0
1
0
0
D
D
A
A
A
1
1
1
1
D
A
A
A
A
Содержание RL78/G1H
Страница 941: ...R01UH0575EJ0120 RL78 G1H...