Datasheet

Section 8 I/O Ports
Rev. 4.00 Sep 27, 2006 page 270 of 1130
REJ09B0327-0400
Pin Selection Method and Pin Functions
PA2/A18/PS2AC/
KIN10/CIN10
The pin function is switched as shown below according to the combination of
operating mode, the KBIOE bit in KBCR0H of the keyboard buffer controller,
the IOSE bit in SYSCR, and bit PA2DDR.
Operating
mode
Modes 1, 2 (EXPE = 0), 3 Mode 2 (EXPE = 1)
KBIOE 0 1 0 1
PA2DDR 0 1 01
IOSE ———— 01
Pin function PA2
input
pin
PA2
output
pin
PS2AC
output
pin
PA2
input
pin
A18
output
pin
PA2
output
pin
PS2AC
output
pin
KIN10 input pin, CIN10 input pin, PS2AC input pin
This pin can always be used as the PS2AC, KIN10, or CIN10 input pin.
PA1/A17/KIN9/
CIN9
The pin function is switched as shown below according to the combination of
operating mode, the IOSE bit in SYSCR, and bit PA1DDR.
Operating
mode
Modes 1,
2 (EXPE = 0), 3
Mode 2 (EXPE = 1)
PA1DDR 0 1 0 1
IOSE —— 01
Pin function PA1
input pin
PA1
output pin
PA1
input pin
A17
output pin
PA1
output pin
KIN9 input pin, CIN9 input pin
This pin can always be used as the KIN9 or CIN9 input pin.
PA0/A16/KIN8/
CIN8
The pin function is switched as shown below according to the combination of
operating mode, the IOSE bit in SYSCR, and bit PA0DDR.
Operating
mode
Modes 1,
2 (EXPE = 0), 3
Mode 2 (EXPE = 1)
PA0DDR 0 1 0 1
IOSE —— 01
Pin function PA0
input pin
PA0
output pin
PA0
input pin
A16
output pin
PA0
output pin
KIN8 input pin, CIN8 input pin
This pin can always be used as the KIN8 or CIN8 input pin.