Datasheet
Section 8 I/O Ports
Rev. 3.00 Mar 21, 2006 page 213 of 788
REJ09B0300-0300
8.12.4 Pin Functions
• PB7/D7/WUE7
*
2
, PB6/D6/WUE6
*
2
, PB5/D5/WUE5
*
2
, PB4/D4/WUE4
*
2
The pin function is switched as shown below according to the combination of the operating
mode, the PBnDDR bit, and the ABW bit in WSCR.
Operating
Mode
Mode 1 and Modes 2, 3 (EXPE = 1) Modes 2, 3 (EXPE = 0)
ABW 0 1 —
PBnDDR — 0 1 0 1
PBn
input pin
PBn
output pin
PBn
input pin
PBn
output pin
Pin
Function
Dn
I/O pin
WUEn input pin
*
1
Notes: 1. Except when used as a data bus pin, this pin can always be used as the WUEn input
pin. (n = 7 to 4)
2. Not supported by the H8S/2148B and H8S/2145B (5-V version).
• PB3/D3/WUE3
*
2
/CS4
The pin function is switched as shown below according to the combination of the operating
mode, the HI12E and CS4E bits in SYSCR2, the ABW bit in WSCR, and the PB3DDR bit.
Operating
Mode
Mode 1 and Modes 2, 3 (EXPE = 1) Modes 2, 3 (EXPE = 0)
HI12E — 1
CS4E —
Either cleared to 0
1
ABW 0 1 — —
PB3DDR — 0 1 0 1 —
PB3
input pin
PB3
output pin
PB3
input pin
PB3
output pin
CS4
input pin
Pin
Function
D3 I/O pin
WUE3 input pin
*
1
Notes: 1. Except when used as a data bus pin, this pin can always be used as the WUE3 input
pin. The CS4 input pin can only be used in mode 2 or 3 (EXPE = 0).
2. Not supported by the H8S/2148B and H8S/2145B (5-V version).
• PB2/D2/WUE2
*
2
/CS3
The pin function is switched as shown below according to the combination of the operating
mode, the HI12E and CS3E bits in SYSCR2, the ABW bit in WSCR, and the PB2DDR bit.