NEC 78K0 Series User Manual page 313

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0 Series:
Table of Contents

Advertisement

(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)
Address: FF2FH
Symbol
7
ADPC
0
ADPC3
0
0
0
0
0
0
0
0
1
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.
CHAPTER 13 A/D CONVERTER
After reset: 00H
R/W
6
5
0
0
ADPC2
ADPC1
ADPC0
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
0
0
Other than above
Preliminary User's Manual U17260EJ3V1UD
4
3
2
0
ADPC3
ADPC2
Analog input (A)/digital I/O (D) switching
ANI7/
ANI6/
ANI5/
ANI4/
P27
P26
P25
P24
A
A
A
0
A
1
A
A
A
A
0
A
A
A
A
A
A
A
1
A
0
A
A
A
A
1
A
A
A
D
A
A
D
D
0
D
D
D
1
A
0
D
D
D
D
Setting prohibited
1
0
ADPC1
ADPC0
ANI3/
ANI2/
ANI1/
ANI0/
P23
P22
P21
P20
A
A
A
A
A
A
A
D
A
A
D
D
A
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
313

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents