Datasheet

Table Of Contents
Section 9 I/O Ports
Rev. 2.00 Jul. 04, 2007 Page 152 of 692
REJ09B0309-0200
9.1.1 Port Data Register 1 (PDR1)
PDR1 is a register that stores data of port 1.
Bit Bit Name
Initial
Value
R/W Description
7 1 Reserved
This bit is always read as 1 and cannot be modified.
6
5
4
3
2
1
0
P16
P15
P14
P13
P12
P11
P10
0
0
0
0
0
0
0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
If port 1 is read while PCR1 bits are set to 1, the values
stored in PDR1 are read, regardless of the actual pin
states. If port 1 is read while PCR1 bits are cleared to 0,
the pin states are read.
9.1.2 Port Control Register 1 (PCR1)
PCR1 selects inputs/outputs in bit units for pins to be used as general I/O ports of
port 1.
Bit Bit Name
Initial
Value
R/W Description
7 1 Reserved
This bit is always read as 1 and cannot be modified.
6
5
4
3
2
1
0
PCR16
PCR15
PCR14
PCR13
PCR12
PCR11
PCR10
0
0
0
0
0
0
0
W
W
W
W
W
W
W
Setting a PCR1 bit to 1 makes the corresponding pin
(P16 to P10) an output pin, while clearing the bit to 0
makes the pin an input pin. The settings in PCR1 and in
PDR1 are valid when the corresponding pin is
designated as a general I/O pin.
PCR1 is a write-only register. These bits are always
read as 1.