CHAPTER 13 A/D CONVERTER
Preliminary User’s Manual U17260EJ3V1UD
313
(5) A/D port configuration register (ADPC)
This register switches the ANI0/P20 to ANI7/P27 pins to analog input of A/D converter or digital I/O of port.
ADPC can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets this register to 00H.
Figure 13-9. Format of A/D Port Configuration Register (ADPC)
ADPC0
ADPC1
ADPC2
ADPC3
0
0
0
0
Analog input (A)/digital I/O (D) switching
Setting prohibited
ADPC3
0
1
2
3
4
5
6
7
ADPC
Address: FF2FH After reset: 00H R/W
Symbol
ANI7/
P27
A
A
A
A
A
A
A
A
D
ANI6/
P26
A
A
A
A
A
A
A
D
D
ANI5/
P25
A
A
A
A
A
A
D
D
D
ANI4/
P24
A
A
A
A
A
D
D
D
D
ANI3/
P23
A
A
A
A
D
D
D
D
D
ANI2/
P22
A
A
A
D
D
D
D
D
D
ANI1/
P21
A
A
D
D
D
D
D
D
D
ANI0/
P20
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 a channel to be used for A/D conversion in 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 with 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.