EMC EKM8050

eKM8050
Preliminary
USB & PS/2 Optical Mouse Controller
1. General Description
The eKM8050 is a Mouse Controller designed to control both USB & PS/2 Optical Mouse device.
This Mouse Controller can auto detect USB or PS/2 mode, and supports X,Y,Z three axes , and
L, R, M 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(eKM8050B) Z-axis input type.
Support Agilent HDNS-2051 & 2610 & 2620 Optical Mouse Sensor.
Applications
3D, 3 Buttons USB and PS/2 Combo Mouse.
3. Pin assignment
CPIS 1
18 Z1
L KEY 2
17 Z2
R KEY 3
16 IR_C
M KEY 4
15 PD
SCLK 5
14 SDIO
VSS 6
13 D+/CLK
VSS 7
12 D-/Data
V3.3 8
11 VDD
OSCI 9
10 OSCO
eKM8050A (18-Pin)
1
2003/7/1
eKM8050
Preliminary
USB & PS/2 Optical Mouse Controller
CPIS 1
18 Z1
L KEY 2
17 Z2
R KEY 3
16 IR_C
M KEY 4
15 PD
SCLK 5
14 SDIO
Z_SEL 6
13 D+/CLK
VSS 7
12 D-/Data
V3.3 8
11 VDD
OSCI 9
10 OSCO
eKM8050B (18-Pin)
2
Symbol
I/O
PIN
Function
OSCI
I
9
6MHz ceramic resonator input.
OSCO
I/O
10
Return path for 6-MHz ceramic resonator.
V3.3V
O
8
3.3V DC voltage output from internal regulator. This pin has to be tied to a 4.7μF capacitor.
Z1
I
18
Z axis Input 1
Z2
I
17
Z axis Input 2
IR_C
I/O
16
IR Control Pin
PD
I
15
2051 Power Down Pin
CPIS
I
1
400/800 CPI Selection Pin ; 1 : 800 CPI ; 0 : 400 CPI
R
I
3
Right Key Input
M
I
4
Middle Key Input
L
I
2
Left Key Input
SCLK
I/O
5
Serial Clock to Agilent sensor IC SCLK
SDIO
I/O
14
Serial Data from Agilent sensor IC SDIO
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
Z_SEL
I
6
Z/2 : Ground;Z/4: Floating
This function only support by eKM8050B
2003/7/1
eKM8050
Preliminary
USB & PS/2 Optical Mouse Controller
4. Function description
CPIS
SCLK
X-COUNTER
SENSOR
Interface
SDIO
USB PROTOCOL
CONTROLLER
DATA
PROCESS
Y-COUNTER
PD
PS/2 PROTOCOL
CONTROLLER
Z1
Z2
Z
IR_C
IR_C
BTM
REGISTER
Z-COUNTER
MULTIPLEXER
DATA
I/O
D+/CLK
D-/DATA
LMR
MODE
SELECTOR
DETECT
CIRCUIT
L MR
Fig-1 : Function block
PS/2 function description
PS/2 Mouse Commands Description
Hex Code
3
Command
eKM8050 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
2003/7/1
eKM8050
Preliminary
USB & PS/2 Optical Mouse Controller
Microsoft PS/2 scrolling mouse
(A) Entering procedure: Except in WRAP mode, while eKM8050 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
1
2
3
4
Bit
0
1
2
3
4
5
6
7
0-7
0-7
0-7
Description
Left button status; 1 = pressed
Right buton status; 1 = pressed
Middle button status; 1 = pressed
Reserve
X data sign; 1 = negative
Y data sign; 1 = negative
X data overflow; 1 = overflow
Y data overflow; 1 = overflow
X data (D0-D7)
Y data (D0-D7)
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.
4
2003/7/1
eKM8050
Preliminary
USB & PS/2 Optical Mouse Controller
USB function Description
Each Descriptor in USB Mode.
Descriptor Type
Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7 Byte8
Device Descriptor
Configuration Descriptor
12
01
10
01
00
00
00
08
67
12
02
02
01
00
00
02
00
01
09
02
22
00
01
01
00
A0
04
00
00
01
03
01
02
21
10
01
00
01
22
48
07
05
81
03
04
00
0A
05
01
09
02
A1
01
05
09
19
01
29
03
15
00
25
01
95
03
75
01
81
02
95
01
75
05
81
03
05
01
09
01
A1
00
09
30
09
31
15
81
25
7F
75
08
95
02
81
06
C0
09
38
95
01
81
06
09
3C
15
00
25
01
75
01
95
01
B1
22
95
07
B1
01
C0
32
09
Interface Descriptor
00
09
HID Descriptor
00
Endpoint
HID Report Descriptor
USB Mouse Report Data Type
Byte0
Byte1
Byte2
Byte3
5
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
0
0
0
0
0
M
R
L
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Bit2
Bit1
Bit0
Bit2
Bit1
Bit0
X-AXIS
Bit7
Bit6
Bit5
Bit4
Bit3
Y-AXIS
Bit7
Bit6
Bit5
Bit4
Bit3
2003/7/1
eKM8050
Preliminary
USB & PS/2 Optical Mouse Controller
Z-AXIS
5. Absolute Maximum Rating
Symbol
Temperature under bias
Storage temperature
Input voltage
Output voltage
min
0
-65
-0.5
-0.5
Max
70
150
6.0
6.0
unit
ºC
ºC
V
V
6. Electrical Characteristic
(T = 25ºC, VDD=4.4~5.2V, VSS=0V)
Symbol
Parameter
Condition
Min
Type
Max
Unit
3.0
3.3
3.6
V
-
2.3
V
3.3V Regulator
VRag
Output voltage of 3.3v Regulator
VDD = 4.2V ~ 5.2V
VResetL
Low Power Reset detecting low Voltage
VResetH
Low Power Reset detecting high Voltage
2.4
-
V
-
-
1
μA
MCU operating
Input Leakage Current for input pins
VIN=VDD,VSS
VIHX
Clock Input High Voltage
OSCI
2.5
-
-
V
VILX
Clock Input Low Voltage
OSCI
-
-
1.0
V
1.1
-
V
IIL
GPIO Pins
VHL
High/Low level transfer point
Input
VOH
Output High Voltage
IDrive = 5.0mA
2.4
-
-
V
VOL
Output Low Voltage
ISink = 5.0mA
-
-
0.4
V
IPH
Input current with pull-high resister
-
25
-
μA
IPL
Input current with pull-low resister
-
330
-
μA
2.8
-
3.6
V
-
-
0.3
V
The input pin with internal
pull-high resistor of Port6 or
port7 is connected to VSS.
The input pin with internal
pull-low resistor of Port6 is
connected to VDD.
USB Interface
6
VOH
Static Output High
VOL
Static Output Low
VDI
Differential Input Sensitivity
0.2
-
-
V
VCM
Differential Input Command Mode Range
0.8
-
2.5
V
VSE
Single Ended Receiver Threshold
0.8
-
2.0
V
CIN
Transceiver Capacitance
-
-
20
pF
3.0
-
3.6
V
-20%
1.5
+20
%
kΩ
VRG
Output Voltage of Internal Regulator
RPH
Internal Pull-high Resistor
(USB Spec 5%)
USB operation Mode
USB operation Mode
2003/7/1
eKM8050
Preliminary
USB & PS/2 Optical Mouse Controller
7. Application circuit
eKM8050 for ADNS-2051
V3.3
100K
10
VDD
11
13
D+/CLK
12
D-/DATA
7
VSS
6
PORT
VDD
CPIS
1
1
2
VDD
D+/CLK
D-/DATA
L
VSS
R
Z_SEL
M
2
4.7uF
3
0.1uF
ADNS-2051
4
4.7uF
13
+
8
V3.3
VDD
SCLK
SDIO
10uF
1
+
2
18
0.1uF
1
2
17
PD
5
1
14
16
15
15
Z1
OSCO
2
Z2
IR_Control
3
OSCI
9
4
20P
eKM8050_B
OSC_OUT
5
18M
SDIO
OSC_IN
PD
XA
REFA
HLMP-ED80
9
6
7
+
XB
2.2uF
YB
REFB
YA
GND
14
11
SCLK
XY_LED
10
6M
16
VDD
20P
Z-AXIS
+
R_BIN
GND
0.1uF
8
10
12
R1
V3.3
VDD
100K
10
VDD
11
13
D+/CLK
12
D-/DATA
7
VSS
6
PORT
3K
PNP
VDD
CPIS
1
1
IR_Control
2
300
D+/CLK
D-/DATA
L
VSS
R
Z_SEL
M
2
4.7uF
3
0.1uF
13
+
V3.3
VDD
SDIO
10uF
+
SCLK
1
2
18
0.1uF
1
2
17
PD
5
1
14
16
15
15
Z1
OSCO
10
Z2
3
IR_Control
eKM8050_B
OSCI
9
4
20P
OSC_OUT
5
18M
SDIO
OSC_IN
PD
XA
REFA
YB
6
7
+
2.2uF
REFB
YA
R_BIN
HLMP-ED80
9
XB
GND
14
11
SCLK
XY_LED
2
6M
16
VDD
20P
Z-AXIS
+
ADNS-2051_5
4
4.7uF
8
ZENER 3V
GND
0.1uF
8
10
12
R1
Guarantee Suspend Current under 500 uA
7
2003/7/1
eKM8050
Preliminary
USB & PS/2 Optical Mouse Controller
eKM8050 for ADNS-2610
VDD
10uF
V3.3
+
0.1uF
VDD
10
VDD
11
VDD
CPIS
13
D+/CLK
D+/CLK
12
D-/DATA
1
D-/DATA
L
4.7uF
2
+
0.1uF
7
VSS
VSS
6
PORT
Z_SEL
R
M
3
100K
7
4.7uF
+
SCLK
8
V3.3
SDIO
R0
4
5
4
14
3
VDD
OSC_IN
1
24M
SCLK
SDIO
HLMP-ED80
OSC_OUT
2
15
1
2
1
2
1K
PD
18
Z1
20P
OSCO
17
8
10
Q1
PNP
5
6
2.2uF
6M
IR_Control
REFA
GND
Z2
Z-AXIS
16
LED_CNTL
OSCI
ADNS-2610
9
20P
eKM8050_B
VDD
VDD
10uF
V3.3
+
0.1uF
3K
PNP
IR_Control
300
10
VDD
11
13
D+/CLK
12
D-/DATA
VDD
CPIS
ZENER 3V
1
D+/CLK
D-/DATA
L
4.7uF
2
+
0.1uF
7
VSS
6
PORT
VSS
Z_SEL
R
M
3
100K
7
4.7uF
+
8
SCLK
V3.3
SDIO
R0
4
5
4
14
3
VDD
OSC_IN
1
24M
SCLK
SDIO
HLMP-ED80
OSC_OUT
2
15
1
1
2
2
18
17
1K
PD
Z1
20P
OSCO
10
REFA
5
Q1
PNP
6
2.2uF
6M
IR_Control
LED_CNTL
GND
Z2
Z-AXIS
16
8
OSCI
ADNS-2610
9
eKM8050_B
20P
Guarantee Suspend Current under 500 uA
8
2003/7/1
eKM8050
Preliminary
USB & PS/2 Optical Mouse Controller
eKM8050 for ADNS-2620
VDD
10uF
V3.3
+
0.1uF
VDD
10
VDD
11
VDD
CPIS
13
D+/CLK
D+/CLK
12
D-/DATA
1
D-/DATA
L
4.7uF
2
+
0.1uF
7
VSS
VSS
6
PORT
Z_SEL
R
M
3
100K
7
4.7uF
+
SCLK
8
V3.3
SDIO
5
4
14
3
2
1
OSC_IN
24M
SDIO
HLMP-ED80
OSC_OUT
20P
OSCO
8
10
REFA
Q1
PNP
5
6
2.2uF
6M
IR_Control
LED_CNTL
GND
Z2
Z-AXIS
16
2
1K
Z1
17
1
SCLK
PD
18
2
VDD
V3.3
15
1
R0
4
OSCI
ADNS-2620
9
20P
eKM8050_B
VDD
VDD
10uF
V3.3
+
0.1uF
3K
PNP
IR_Control
300
10
VDD
11
13
D+/CLK
12
D-/DATA
VDD
CPIS
ZENER 3V
1
D+/CLK
D-/DATA
L
VSS
R
4.7uF
2
+
0.1uF
7
VSS
6
PORT
Z_SEL
M
3
100K
7
4.7uF
+
8
SCLK
V3.3
SDIO
5
4
14
3
15
1
1
2
2
18
17
OSC_IN
SDIO
24M
HLMP-ED80
OSC_OUT
2
1K
8
10
LED_CNTL
REFA
GND
Z2
5
Q1
PNP
6
2.2uF
6M
IR_Control
1
SCLK
V3.3
20P
Z-AXIS
16
VDD
PD
Z1
OSCO
R0
4
OSCI
ADNS-2620
9
eKM8050_B
20P
Guarantee Suspend Current under 500 uA
9
2003/7/1