Datasheet
Section 8 I/O Ports
Rev. 4.00 Sep 27, 2006 page 276 of 1130
REJ09B0327-0400
Pin Selection Method and Pin Functions
PB4/D4 The pin function is switched as shown below according to the combination of
the operating mode, bit PB4DDR, and bit ABW in WSCR.
Operating
mode
Modes 1, 2, 3
(EXPE = 1)
Modes 2, 3
(EXPE = 0)
ABW 0 1 —
PB4DDR — 0101
Pin function D4
I/O pin
PB4
input pin
PB4
output pin
PB4
input pin
PB4
output pin
PB3/D3/CS4 The pin function is switched as shown below according to the combination of
the operating mode, bits HI12E and CS4E in SYSCR2, bit ABW in WSCR, and
bit PB3DDR.
Operating
mode
Modes 1, 2, 3
(EXPE = 1)
Modes 2, 3
(EXPE = 0)
HI12E — Either cleared to 0 1
CS4E — 1
ABW 0 1 ——
PB3DDR — 0101—
Pin function D3
I/O pin
PB3
input pin
PB3
output pin
PB3
input pin
PB3
output pin
CS4
input pin
PB2/D2/CS3 The pin function is switched as shown below according to the combination of
the operating mode, bits HI12E and CS3E in SYSCR2, bit ABW in WSCR, and
bit PB2DDR.
Operating
mode
Modes 1, 2, 3
(EXPE = 1)
Modes 2, 3
(EXPE = 0)
HI12E — Either cleared to 0 1
CS3E — 1
ABW 0 1 ——
PB2DDR — 0101—
Pin function D2
I/O pin
PB2
input pin
PB2
output pin
PB2
input pin
PB2
output pin
CS3
input pin