English
Language : 

UR6HCPS2-SP40 Datasheet, PDF (6/22 Pages) Semtech Corporation – Converts PS/2 Data to Serial or SPI
REPORTS
Overview
The PS2AdaptTM UR6HCPS2-SP40
will report three types of package
formats for relative mouse, absolute
mouse and keyboard report
respectively.
Each mouse packet contains 4
bytes; keyboard packet contains 2
bytes. The 7th bit of each byte is
used for synchronization. The 7th
bit for the first byte is 1 and for the
other bytes is 0.
Keyboard Data Report
8-bit key number (K0-K7) is an
identification of a keyboard key,
which is defined in the USAR key
table (see Page 7).
PS/2 Mouse Data Report
There are two different kinds of
mouse data packages for the
external PS/2 devices. One is
absolute mode that is for
touchscreens and the other is
relative mode for standard PS/2
devices, including MouseWheel.
The resolution for the absolute
mouse is 10 bits (1000 points) in X
and Y direction.
The relative mouse data format
takes into consideration the 5-
button and MouseWheel devices.
Keyboard Package Format
Byte # 7
1
1
2
0
6
1
KBD
K6
Bit Number
5
4
3
Not
Caps Num
Assigned Lock Lock
1:On 1:On
/0:Off /0:Off
K5
K4
K3
2
Scroll
Lock
1:On
/0:Off
K2
1
0
1:Make K7
/0:Break
K1
K0
Absolute Mode PS/2 Mouse Package Format
Byte # 7
1
1
2
0
3
0
4
0
6
0
Mouse
Y9
X6
Y6
Bit Number
5
4
3
2
1
0
0
0
0
0
0
0
Absolute 1 penup 1 penup 1 penup 1 penup 1 penup
Y8
Y7
X*
X9
X8
X7
X5
X4
X3
X2
X1
X0
Y5
Y4
Y3
Y2
Y1
Y0
Note 4: The bits that are marked with X* are reserved for future use. Now the value given is
zero.
Relative Mode PS/2 Mouse Package Format
Byte # 7
1
1
2
0
3
0
4
0
Bit Number
6
5
4
3
2
0
1
Ysign Xsign M
Mouse Relative
X6
X5
X4
X3
X2
Y6
Y5
Y4
Y3
Y2
X*
B5
B4
Z3
Z2
1
0
R
L
X1
X0
Y1
Y0
Z1
Z0
Note 5: The bits that are marked with X* are reserved for future use. Now the value given is
zero.
Copyright Semtech, 2002-2001
6
DOC6-PS2-SP40-DS-102
www.semtech.com