CHAPTER 5 PORT FUNCTIONS
Preliminary User’s Manual U17260EJ3V1UD
129
(4) A/D port configuration register (ADPC)
This register switches the P20/ANI0 to P27/ANI7 pins to digital I/O of port or analog input of A/D converter.
ADPC can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets this register to 00H.
Figure 5-29. Format of A/D Port Configuration Register (ADPC)
ADPC0
ADPC1
ADPC2
ADPC3
0
0
0
0
Digital I/O (D)/analog input (A) switching
Setting prohibited
ADPC3
0
1
2
3
4
5
6
7
ADPC
Address: FF2FH After reset: 00H R/W
Symbol
P27/
ANI7
A
A
A
A
A
A
A
A
D
P26/
ANI6
A
A
A
A
A
A
A
D
D
P25/
ANI5
A
A
A
A
A
A
D
D
D
P24/
ANI4
A
A
A
A
A
D
D
D
D
P23/
ANI3
A
A
A
A
D
D
D
D
D
P22/
ANI2
A
A
A
D
D
D
D
D
D
P21/
ANI1
A
A
D
D
D
D
D
D
D
P20/
ANI0
A
D
D
D
D
D
D
D
D
0
0
0
0
0
0
0
0
1
ADPC2
0
0
0
0
1
1
1
1
0
ADPC1
0
0
1
1
0
0
1
1
0
ADPC0
0
1
0
1
0
1
0
1
0
Other than above
Cautions 1. Set the channel used for A/D conversion to the input mode by using port mode register 2
(PM2).
2. Do not set a pin to be used as a digital I/O pin with ADPC by using the analog input channel
specification register (ADS).
3. If data is written to ADPC, a wait cycle is generated. Do not write data to ADPC when the CPU
is operating on the subsystem clock and the peripheral hardware clock is stopped. For
details, see CHAPTER 31 CAUTIONS FOR WAIT.