Datasheet

Section 9 I/O Ports
Rev. 1.50 Sep. 18, 2007 Page 180 of 584
REJ09B0240-0150
9.12.2 Port Data Register H (PDRH)
PDRH is a general I/O port data register of port H.
Bit Bit Name
Initial
Value R/W Description
7
6
5
4
3
2
1
0
PH7
PH6
PH5
PH4
PH3
PH2
PH1
PH0
0
0
0
0
0
0
0
0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
PDRH stores output data for port H pins.
If PDRH is read while PCRH bits are set to 1, the
values stored in PDRH are read. If PDRH is read while
PCRH bits are cleared to 0, the pin states are read
regardless of the value stored in PDRH.
9.12.3 Pin Functions
The correspondence between the register specification and the port functions is shown below.
PH7/FTIOD pin
Register TRCOER TRCMR TRCIOR1 PCRH
Bit Name ED PWM2 PWMD IOD2 IOD1 IOD0 PCRH7 Pin Function
1 X X X X X 0 PH7 input/FTIOD input pin
1 PH7 output pin
0 0 X X X X 0 PH7 input/FTIOD input pin
1 PH7 output pin
1 1 X X X X FTIOD (PWM) output pin
0 0 1 X X FTIOD output pin
0 1 X FTIOD output pin
0 0 PH7 input/FTIOD input pin
1 PH7 output pin
1 X X 0 PH7 input/FTIOD input pin
Setting
Value
1 PH7 output pin
[Legend] X: Don't care.