Hitachi H8/3692 ユーザーズマニュアル

ページ / 397
Rev. 1.0, 07/01, page 120 of 372
Bit
Bit Name Initial Value R/W Description
0
WKP0
0
R/W P50/
WKP0
 Pin Function Switch
Selects whether pin P50/
WKP0
 is used as P50 or as 
WKP0
.
0: P50 I/O port
1: 
WKP0
 input pin
9.3.2
Port Control Register 5(PCR5)
PCR5 selects inputs/outputs in bit units for pins to be used as general I/O ports of port 5.
Bit
Bit Name
Initial Value R/W
Description
7
6
5
4
3
2
1
0
PCR57
PCR56
PCR55
PCR54
PCR53
PCR52
PCR51
PCR50
0
0
0
0
0
0
0
0
W
W
W
W
W
W
W
W
When each of the port 5 pins P57 to P50 functions as an
general I/O port, setting a PCR5 bit to 1 makes the
corresponding pin an output port, while clearing the bit to 0
makes the pin an input port.
9.3.3
 
Port Data Register 5(PDR5)
PDR5 is a general I/O port data register of port 5.
Bit
Bit Name
Initial Value R/W
Description
7
6
5
4
3
2
1
0
P57
P56
P55
P54
P53
P52
P51
P50
0
0
0
0
0
0
0
0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Stores output data for port 5 pins.
If PDR5 is read while PCR5 bits are set to 1, the value
stored in PDR5 are read. If PDR5 is read while PCR5 bits
are cleared to 0, the pin states are read regardless of the
value stored in PDR5