Datasheet

Section 10 I/O Ports
REJ09B0465-0300 Rev. 3.00 Page 327 of 982
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
10.9.1 Port Control Register B (PCRB)
b7
PCRB7
0
b6
PCRB6
0
b5
PCRB5
0
b4
PCRB4
0
b3
PCRB3
0
b2
PCRB2
0
b1
PCRB1
0
b0
PCRB0
0
H'FFFFFA
Bit:
Address:
Value after reset:
Bit Symbol Bit Name Description R/W
7 PCRB7 Port B7 control R/W
6 PCRB6 Port B6 control R/W
5 PCRB5 Port B5 control R/W
4 PCRB4 Port B4 control R/W
3 PCRB3 Port B3 control R/W
2 PCRB2 Port B2 control R/W
1 PCRB1 Port B1 control R/W
0 PCRB0 Port B0 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.
PCRB is a register that selects inputs/outputs in bit
units for pins to be used as general I/O ports of port
B.
R/W
PCRB7 bit to PCRB0 bit (port B7 to B0 control)
When the corresponding pins are not selected for use as analog input or output channels by
A/D converter or D/A converter settings, they are available for use as general I/O pins. Setting
a PCRB bit to 1 makes the corresponding pin an output pin, while clearing the bit to 0 makes
the pin an input pin. However, for the PB0 pin, clearing the PMRA2 bit in PMRA to 0 is also
required.