Datasheet
RL78/L12 CHAPTER 4 PORT FUNCTIONS
R01UH0330EJ0200 Rev.2.00 111
Dec 13, 2013
4.3.7 A/D port configuration register (ADPC)
This register switches the P20/ANI0, P21/AN21 pins to digital I/O of port or analog input 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 4-7. Format of A/D Port Configuration Register (ADPC)
Address: F0076H After reset: 00H R/W
Symbol 7 6 5 4 3 2 1 0
ADPC 0 0 0 0 0 0 ADPC1 ADPC0
ADPC1 ADPC0 Analog input (A)/digital I/O (D) switching
ANI1/P21 ANI0/P20
0 0
A A
0 1
D D
1 0
D A
1 1
A A
Cautions 1. Set the port to analog input by ADPC register to the input mode by using port mode
registers 2 (PM2).
2. Do not set the pin set by the ADPC register as digital I/O by the analog input channel
specification register (ADS).
3. When using AV
REFP and AVREFM, set ANI0 and ANI1 to analog input and set the port mode
register to the input mode.
<R>