English
Language : 

HD6433694 Datasheet, PDF (137/432 Pages) Renesas Technology Corp – 16-Bit Single-Chip Microcomputer H8 Family/H8/300H Tiny Series
9.2.1 Port Control Register 2 (PCR2)
PCR2 selects inputs/outputs in bit units for pins to be used as general I/O ports of port 2.
Bit
7 to 3
2
1
0
Bit Name

PCR22
PCR21
PCR20
Initial
Value

0
0
0
R/W

W
W
W
Description
Reserved
When each of the port 2 pins P22 to P20 functions as an
general I/O port, setting a PCR2 bit to 1 makes the
corresponding pin an output port, while clearing the bit to
0 makes the pin an input port.
9.2.2 Port Data Register 2 (PDR2)
PDR2 is a general I/O port data register of port 2.
Bit
7 to 3
Bit Name

Initial
Value
All 1
2
P22
0
1
P21
0
0
P20
0
R/W

R/W
R/W
R/W
Description
Reserved
These bits are always read as 1.
PDR2 stores output data for port 2 pins.
If PDR2 is read while PCR2 bits are set to 1, the value
stored in PDR2 is read. If PDR2 is read while PCR2 bits
are cleared to 0, the pin states are read regardless of the
value stored in PDR2.
9.2.3 Pin Functions
The correspondence between the register specification and the port functions is shown below.
P22/TXD pin
Register PMR1
Bit Name TXD
Setting Value 0
1
Legend X: Don't care.
PCR2
PCR22
0
1
X
Pin Function
P22 input pin
P22 output pin
TXD output pin
Rev. 4.00, 03/04, page 109 of 400