Datasheet

Section 9 I/O Ports
Rev. 3.00 Sep. 14, 2006 Page 119 of 408
REJ09B0105-0300
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
6
5
4
3
2
1
0
PCR17
PCR14
0
0
W
W
When the corresponding pin is designated in PMR1 as a
general I/O pin, setting a PCR1 bit to 1 makes the
corresponding pin an output port, while clearing the bit to
0 makes the pin an input port.
Bits 6, 5, and 3 to 0 are reserved.
9.1.3 Port Data Register 1 (PDR1)
PDR1 is a general I/O port data register of port 1.
Bit Bit Name
Initial
Value R/W Description
7
6
5
4
3
2
1
0
P17
P14
0
1
1
0
1
1
1
1
R/W
R/W
These bits store output data for port 1 pins.
If PDR1 is read while PCR1 bits are set to 1, the value
stored in PDR1 are read. If PDR1 is read while PCR1 bits
are cleared to 0, the pin states are read regardless of the
value stored in PDR1.
Bits 6, 5, and 3 to 0 are reserved. These bits are always
read as 1.