ChipFind - Datasheet

Part Number eKM8021

Download:  PDF   ZIP

Document Outline

eKM8021
Preliminary USB & PS/2 Mouse Controller
This specification may change without further notice
.
1
SPECIFICATION
1. General Description
The EKM8021 is an Mouse Controller designed to control both USB & PS/2 Mouse device.
This Mouse Controller can auto detect USB or PS/2 mode, and supports X,Y,Z three axes , and
three buttons under both USB and PS2 mode.
2. Features
Universal Serial Bus Specification, version 1.1
USB HID Specification, version 1.1
Auto-detecting PS/2 port or USB port.
Compatible with Microsoft 3D PS/2 mouse.
Support 3D (X,Y,Z) 3 Key (L,R,M) input.
Support Z/2 mechanical, Z/2 Photo, and Z/4 Photo(eKM8021B) Z-axis input type.
Support Agilent HDNS-2000 Optical Mouse Sensor.
Applications
3D, 3 Buttons USB and PS/2 Combo Mouse.
eKM8021
Preliminary USB & PS/2 Mouse Controller
This specification may change without further notice
.
2
3. Applications
USB & PS/2 3D 3Key Mouse
USB & PS/2 3D 3Key Optical Mouse
4. Pin Configuration
Z1 1
18 X1
Z2 2 17 X2
L Key 3 16 Y1
R Key 4 15 Y2
M Key 5 14 IR_C
VSS 6 13 D+/CLK
VSS 7 12 D-/Data
V3.3 8 11 VDD
OSCI 9 10 OSCO
eKM8021A (18-Pin)
Z1 1
18 X1
Z2 2 17 X2
L Key 3 16 Y1
R Key 4 15 Y2
M Key 5 14 IR_C
Z_SEL 6 13 D+/CLK
VSS 7 12 D-/Data
V3.3 8 11 VDD
OSCI 9 10 OSCO
eKM8021B (18-Pin)
eKM8021
Preliminary USB & PS/2 Mouse Controller
This specification may change without further notice
.
3
5. Pin Description
Symbol
I/O
Pin
Function
OSCI
I
9
6MHz ceramic resonator input.
OSCO
I/O
10
Return path for 6-MHz ceramic resonator.
V
3.3V
O 8
3.3V DC voltage output from internal regulator. This pin has to be
tied to a 4.7
F capacitor.
X1
I
18
X axis Input 1
X2 I
17
X axis Input 2
Y1 I
16
Y axis Input 1
Y2 I
15
Y axis Input 2
Z1 I
1
Z axis Input 1
Z2 I
2
Z axis Input 2
R I
4
Right Key Input
M I
5
Middle Key Input
L
I
3
Left Key Input
IR_C
I/O
14
IR Control Pin.
D+ / CLK
I/O
13
USB D+ or PS/2 CLK I/O
D- / DATA
I/O
12
USB D- or PS/2 Data I/O
VDD
-
11
5 V Power Input
VSS
-
6,7
GND. EKM8021A Type both two pin should tired to GND
Z_SEL I 6
Z/2 : Floating Z/4: Ground This function only support by
eKM8021B
eKM8021
Preliminary USB & PS/2 Mouse Controller
This specification may change without further notice
.
4
6. Function Description
X
Y
Z
DETECT
CIRCUIT
X-COUNTER
Y-COUNTER
Z-COUNTER
MODE
SELECTOR
DATA
I/O
D+/CLK
D-/DATA
BTM REGISTER
L M R
X1
X2
Y1
Y2
Z1
Z2
L
M
R
DATA
PROCESS
MULTIPLEXER
USB PROTOCOL
CONTROLLER
PS/2 PROTOCOL
CONTROLLER
IR_C
IR_C
Fig-1 : Function block
6.1 PS/2 Mouse Function Description
PS/2 Mouse Commands Description
Hex Code
Command
EKM8021 echo code
FF Reset
FA,AA,00
FE Resend
XX,(XX,XX)
F6 Set
Default FA
F5 Disable
FA
F4 Enable
FA
F3,XX
Set Sampling Rate
FA,FA
F2
Read Device Type
FA,00
F0
Set Remote Mode
FA
EE
Set Wrap Mode
FA
EC
Reset Wrap Mode
FA
EB Read
Data
FA,XX,XX,XX
EA
Set Stream Mode
FA
E9 Status
Request FA,XX,XX,XX
E8 Set
Resolution FA,FA
E7 Set
Autospeed FA
E6 Reset
Autospeed
FA
eKM8021
Preliminary USB & PS/2 Mouse Controller
This specification may change without further notice
.
5
Microsoft PS/2 scrolling mouse
(A) Entering procedure: Except in WRAP mode, while eKM8021 received the following
consecutive
command.
i. F3 C8 ---- set sampling rate 200/sec
ii. F3 64 ---- set sampling rate 100/sec
iii. F3 50 ---- set sampling rate 80/sec
(B) Operating:
a. All of the commands in legacy mode still be valid.
b. The ID code of read device type command (F2) will changed from "00" to be "03".
c. Data report will be four bytes format:
Byte Bit
Description
1
0
Left button status; 1 = pressed
1
Right buton status; 1 = pressed
2
Middle button status; 1 = pressed
3
Reserve
4
X data sign; 1 = negative
5
Y data sign; 1 = negative
6
X data overflow; 1 = overflow
7
Y data overflow; 1 = overflow
2
0-7
X data (D0-D7)
3
0-7
Y data (D0-D7)
4
0-7
Z data (D0-D7)

(C) Exiting Microsoft scrolling mode:
There are two ways to exit:
a. Power off.
b. Reset command (FF).
Z-axis Input Function : The Z0-Z7 limit value is
±7
Z-axis counter accumulates the Z1, Z2 phase changed by movement. This mode includes
noise immunity.
Z/2 : 2 dot per count. The wheel should stay at Z1=0, Z2=0 or Z1=1, Z2=1 Phase
Z/4 : 4 dots per count. the wheel should stay at Z1=0, Z2=0 phase.