Datasheet
Rev. 3.00, 03/04, page 247 of 830
8.15.3 Port F Input Data Register (PFPIN)
PFPIN indicates the pin states of port F.
Bit Bit Name Initial Value R/W Description
7 to 3 Reserved. When this bit is read, an undefined value is
returned.
2 PF2PIN Undefined* R
1 PF1PIN Undefined* R
0 PF0PIN Undefined* R
When PFPIN is read, the pin states are returned.
This register is assigned to the same address as that
of PFDDR. When this register is written to, data is
written to PFDDR and the port F setting is then
changed.
Note: The initial value of these pins is determined in accordance with the state of pins PF2 to
PF0.
8.15.4 Pin Functions
Port F is a 3-bit input/output port that functions as a PWM output. The relationship between the
register settings and pin functions is depicted below.
• PF2/ExPW2, PF1/ExPW1, PF0/ExPW0
The pin function is switched as shown below according to the combination of the OEn bit in
PWOERA of PWM, the PWMS bit in PTCNT0, and PFnDDR bit.
PFnDDR 0 1
PWMS 0 1 0 1 1
OEn 0 0 1
Pin Function PFn input pin PFn output pin PWn output pin
[Legend]
n = 2 to 0