Datasheet
Section 10 I/O Ports
REJ09B0465-0300 Rev. 3.00 Page 319 of 982
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
10.8.6 Port Control Register A (PCRA)
b7
PCRA7
0
b6
PCRA6
0
b5
PCRA5
0
b4
PCRA4
0
b3
PCRA3
0
b2
PCRA2
0
b1
PCRA1
0
b0
PCRA0
0
H'FFFFF9
Bit:
Address:
Value after reset:
Bit Symbol Bit Name Description R/W
7 PCRA7 Port A7 control R/W
6 PCRA6 Port A6 control R/W
5 PCRA5 Port A5 control R/W
4 PCRA4 Port A4 control R/W
3 PCRA3 Port A3 control R/W
2 PCRA2 Port A2 control R/W
1 PCRA1 Port A1 control R/W
0 PCRA0 Port A0 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.
PCRA is a register that selects inputs/outputs in bit
units for pins to be used as general I/O ports of port
A.
R/W
• PCRA7 bit to PCRA0 bit (port A7 to A0 control)
When pins PA7 to PA4 are designated in PMRA as general I/O pins, setting a corresponding
bit to 1 makes the pin an output port, while clearing the bit to 0 makes the pin an input port.
When pins PA3 to PA0 are not selected for use as analog input channels by A/D converter
settings, they are available for use as general I/O pins. Setting a PCRA bit to 1 makes the
corresponding pin an output pin, while clearing the bit to 0 makes the pin an input pin.