Datasheet
Section 10 I/O Ports
REJ09B0465-0300 Rev. 3.00 Page 279 of 982
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
10.2.2 Port Control Register 2 (PCR2)
b7
PCR27
0
b6
PCR26
0
b5
PCR25
0
b4
PCR24
0
b3
PCR23
0
b2
PCR22
0
b1
PCR21
0
b0
PCR20
0
H'FFFFF1
Bit:
Address:
Value after reset:
Bit Symbol Bit Name Description R/W
7 PCR27 Port 27 control R/W
6 PCR26 Port 26 control R/W
5 PCR25 Port 25 control R/W
4 PCR24 Port 24 control R/W
3 PCR23 Port 23 control R/W
2 PCR22 Port 22 control R/W
1 PCR21 Port 21 control R/W
0 PCR20 Port 20 control
0: When the corresponding pin is designated as a
general I/O port, the pin functions as an input
port.
1: When the corresponding pin is designated as a
general I/O port, the pin functions as an output
port.
PCR2 is a register that selects inputs/outputs in bit
units for pins to be used as general I/O ports of port
2.
R/W
• PCR27 bit to PCR20 bit (port 27 to 20 control)
When the corresponding pin is designated in PMR2 as a general I/O pin, 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.