![background image](http://html.mh-extra.com/html/sharp/up-5300/up-5300_service-manual_373328055.webp)
9. PS/2 Keyboard Controller
9-1. Introduction
The keyboard and mouse are controlled using Mitsubishi Electric’s
M38802M270.
No PS/2 type mouse can be used for UP-5300 because IRQ12 is not
connected. In addition, A20M# of M38802M2 is not used because
Firestar’s A20M# is used.
9-2. Pin assignments
48
P0
0
47
P0
1
46
P0
2
45
P0
3
44
P0
4
43
P0
5
42
P0
6
41
P0
7
40
P1
0
39
P1
1
38
P1
2
37
P1
3
36
P1
4
35
P1
5
34
P1
6
33
P1
7
P37
P36
P35
P34
P33
P32
P31
P30
VCC
P61/CNTR0
P60/INT5/OBF2
DQ7
DQ6
DQ5
DQ4
DQ3
P20
P21
P22
P23
P24
P25
P26
P27
VSS
XOUT
XIN
P40
P40/INT0
RESET
CNVSS
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
P42/INT1
1
DQ2
2
DQ1
3
DQ0
4
W
5
R
6
S
7
A0
8
P5
3/
SR
DY
9
P5
2/
SC
LK
10
P
5
1/TX
D
11
P5
0/
RX
D
12
P4
7/
IN
T4
13
P4
6/
IN
T3
14
P
4
5/IBF/OB
F
0
15
P4
4/
OBF
1
16
P4
3/
IN
T2
M38802M2-XXXFP
M38802M2-XXXHP
9-3. Pin description
Pin
Name
Features
Features other than port
Vcc, Vss
Power input
Impresses Vcc with 2.7 to 5.5V, and Vss with 0V.
CNVss
CNVss
Pin controlling the operation mode of chip.
Connect this pin to Vss.
RESET
Reset input
Pin for the reset input of active "L".
XIN
Clock input
Pin for the I/O of clock generator. Connect a ceramic resonator or crystal oscillator between XIN and
XOUT.
When using external clock, connect a clock generator to XIN and open XOUT.
A feedback resistor is incorporated.
XOUT
Clock output
P00
∼
P07
I/O port P0
8-bit I/O port.
I/O can be specified in bits using a program.
When resetting, these ports go into input mode.
CMOS input level is used, and the form of output is CMOS 3-state.
P10
∼
P17
I/O port P1
P20
∼
P27
I/O port P2
8-bit I/O port with the same feature as P0.
CMOS input level is used, and the form of output is CMOS 3-state.
The 4 bits of P24 to P27 can output large current for driving LED’s.
P30
∼
P37
I/O port P3
8-bit I/O port with the same feature as P0.
CMOS input level is used, and the form of output
is CMOS 3-state.
Whether to use any internal pull up resister or not
can be selected using a program.
Key input (key on wakeup interrupt input) pin
Comparator input pin
P40
I/O port P4
8 bits I/O port with almost the same feature as P0.
Input level can be switched between CMOS and
TTL, and the form of output can be switched
between CMOS 3-state and N-channel open drain.
Pin level can be inputted regardless of the setting
of input port or output port.
P41/INT0,
P42/INT1,
P43/INT2
Interrupt input pin
P44/OBF0,
P45/IBF/
OBF1
Data bus buffering pin
P46/INT3,
P47/INT4
Interrupt input pin
P50/R
×
D,
P51/T
×
D,
P52/SCLK,
P53/SRDY
I/O port P5
4-bit I/O port with almost the same feature as P0.
CMOS input level is used, and the form of output
is CMOS 3-state.
Serial I/O pin
P60/INT5/
OBF2
I/O port P6
2-bit I/O port with almost the same feature as P0.
CMOS input level is used, and the form of output
is CMOS 3-state.
Interrupt input pin
Data bus buffering pin
P61/CNTR0
Timer X pin
5 – 22
Summary of Contents for UP-5300
Page 103: ... B S i d e 9 2 ...
Page 105: ... B S i d e 9 4 ...
Page 106: ...3 V G A P W B A S i d e B S i d e 9 5 ...
Page 107: ...4 R i s e r P W B A S i d e B S i d e 5 T P S w i t c h P W B S w i t c h P W B 9 6 ...
Page 108: ...6 I N V E R T E R P W B A S i d e B S i d e 7 L C D R E L A Y P W B A S i d e B S i d e 9 7 ...