Rev. 1.0, 02/00, page 190 of 1141
10.2.2
Register Configuration
Table 10.3 shows the port 0 register configuration.
Table 10.3
Port 0 Register Configuration
Name
Abbrev.
R/W
Size
Initial Value
Address
*
Port mode register 0
PMR0
R/W
Byte
H'00
H'FFCD
Port data register 0
PDR0
R
Byte
H'FFC0
Note:
*
Lower 16 bits of the address.
(1) Port Mode Register 0 (PMR0)
0
0
1
0
R/W
2
0
R/W
3
0
4
0
R/W
0
R/W
5
0
7
0
R/W
R/W
R/W
R/W
6
PMR04
PMR03
PMR02
PMR01
PMR00
PMR07
PMR06
PMR05
Bit :
Initial value :
R/W :
Port mode register 0 (PMR0) controls switching of each pin function of port 0. The switching is
specified in a unit of bit.
PMR0 is an 8-bit read/write enable register. When reset, PMR0 is initialized to H'00.
Bits 7 to 0
P07/AN7 to P00/AN0 Pin Switching (PMR07 to PMR00): PMR07 to PMR00 sets
whether the P0n/ANn pin is used as a P0n input pin or an ANn pin for the analog input channel of
an A/D converter.
Bit n
PMR0n
Description
0
The P0n/ANn pin functions as a P0n input pin
(Initial value)
1
The P0n/ANn pin functions as an ANn input pin
(n = 7 to 0)