Datasheet

Section 8 I/O Ports
Rev. 2.00 Sep. 28, 2009 Page 249 of 870
REJ09B0429-0200
8.15 Port F
Port F is a 4-bit I/O port. Port F has the following registers.
Port F data direction register (PFDDR)
Port F output data register (PFODR)
Port F input data register (PFPIN)
8.15.1 Port F Data Direction Register (PFDDR)
The individual bits of PFDDR specify input or output for the port F pins. PFDDR is initialized
only by a system reset, and retains the value even if an internal reset signal of the WDT is
generated.
Bit Bit Name Initial Value R/W Description
7 to 4 Reserved
3
2
1
0
PF3DDR
PF2DDR
PF1DDR
PF0DDR
0
0
0
0
W
W
W
W
When set to 1, the corresponding pin functions as an
output port pin; when cleared to 0, functions as an
input port pin.
Since this register is allocated to the same address as
PFPIN, states of the port F pins are returned when
this register is read.
8.15.2 Port F Output Data Register (PFODR)
PFODR stores output data for the port F pins. PFODR is initialized only by a system reset, and
retains the value even if an internal reset signal of the WDT is generated.
Bit Bit Name Initial Value R/W Description
7 to 4 Reserved
Undefined value is read from this bit.
3
2
1
0
PF3ODR
PF2ODR
PF1ODR
PF0ODR
0
0
0
0
R/W
R/W
R/W
R/W
Store the output data for the pins that are used as the
general output port.