Datasheet

Section 8 I/O Ports
Rev. 4.00 Sep 27, 2006 page 275 of 1130
REJ09B0327-0400
8.12.3 Pin Functions
Port B pins also function as HIF input pins (CS3, CS4, HIRQ3, HIRQ4) [H8S/2148 Group and
H8S/2147N only] and data bus I/O pins (D7 to D0). The port B pin functions are shown in table
8.26.
Table 8.26 Port B Pin Functions
Pin Selection Method and Pin Functions
PB7/D7 The pin function is switched as shown below according to the combination of
the operating mode, bit PB7DDR, and bit ABW in WSCR.
Operating
mode
Modes 1, 2, 3
(EXPE = 1)
Modes 2, 3
(EXPE = 0)
ABW 0 1
PB7DDR 0101
Pin function D7
I/O pin
PB7
input pin
PB7
output pin
PB7
input pin
PB7
output pin
PB6/D6 The pin function is switched as shown below according to the combination of
the operating mode, bit PB6DDR, and bit ABW in WSCR.
Operating
mode
Modes 1, 2, 3
(EXPE = 1)
Modes 2, 3
(EXPE = 0)
ABW 0 1
PB6DDR 0101
Pin function D6
I/O pin
PB6
input pin
PB6
output pin
PB6
input pin
PB6
output pin
PB5/D5 The pin function is switched as shown below according to the combination of
the operating mode, bit PB5DDR, and bit ABW in WSCR.
Operating
mode
Modes 1, 2, 3
(EXPE = 1)
Modes 2, 3
(EXPE = 0)
ABW 0 1
PB5DDR 0101
Pin function D5
I/O pin
PB5
input pin
PB5
output pin
PB5
input pin
PB5
output pin