HT82M23A/HT82M23B/HT82M23C
3/5-Key USB+PS/2 Optical Mouse Controller
Features
·
Operating voltage: 4.4V~5.25V
·
Compatible with Microsoft Windows 2000 and
·
HALT function and wake-up feature reduce power
consumption
·
Plug and Play functions
·
Minimal external components
·
6MHz crystal oscillator for system clock
·
Interface compliant with ADNS-2051, ADNS-2610
5-button Wheel Mouse
·
Microsoft 3D Intelli mouse and IBM PS/2 mouse
compatible
·
Supports 3/5 buttons and Z-axis input
·
Z-axis can support two kinds of scroller input
and ADNS-2620
·
Pass WHQL, USB-IF and EMC testing
·
HT82M23A is pin compatible with HT82M22A
·
HT82M23B/HT82M23C is pin compatible with
(optomechanical and mechanical)
·
3 key or 5 key mode can be selected by package
·
Complete Universal Serial Bus specs V2.0
compatibility
·
Serial Bus Interface Engine (SIE)
·
USB transceiver
·
Single chip solution especially for USB mouse
HT82M21A
·
HT82M23A: 20-pin DIP/SOP package
HT82M23B/HT82M23C: 18-pin DIP/SOP package
function
General Description
HT82M23A/HT82M23B/HT82M23C is a Plug and Play
Windows 2000 and 5-button 3D USB+PS/2 Mouse con-
troller. The HT82M23A/HT82M23B/HT82M23C can
support the USB Standard Request as well as HID Class
Request version 1.1. It is compatible with Microsoft Intelli
3D or Windows 2000 5 key PS/2 mouse. The Z-axis can
support two kinds of scroller input, namely; mechanical
and optomechanical. It requires minimal external com-
ponents to implement 3D or Windows 2000 5 key USB
plus PS/2 mouse. All its features combined and make
up this versatile Holtek 8-bit MCU with an on-chip USB
interface logic. The USB is specified by the Universal
Serial Bus Specification V2.0.
The USB vendor ID for HT82M23A/HT82M23B/
HT82M23C is defined as 04D9H, the USB product ID is
different by different package
Selection Table
Part No.
HT82M23A
HT82M23B
HT82M23C
Interface
USB and PS/2
USB and PS/2
USB only
Mode
Windows 2000
3D
3D
USB Product ID
048EH
0499H
0499H
Package
20DIP/SOP
18DIP/SOP
18DIP/SOP
Rev. 1.10
1
January 22, 2007
HT82M23A/HT82M23B/HT82M23C
Block Diagram
U S B
T r a n s c e iv e r
U S B
R e c e iv e r
R e g is te r
S e t
U S B D +
U S B D
-
U S B
T r a n s m itte r
V 3 3 O
V o lta g e
R e g u la to r
U S B
In te rfa c
(S
a
C o
L o
S e r ia l
e E n g in e
IE )
n d
n tro l
g ic
H o lte k
8 - b it
M ic r o c o n tr o lle r
O S C 1
O S C 2
C lo c k
G e n e ra to r
R C
R E S E T
M a in
S ta te m a c h in e
S u s p e n s io n
C o n tro l
F IF O s
´
2
V D D
V S S
Pin Assignment
V S S
1
2
3
4
5
6
7
8
9
1 0
V 3 3 O
U S B D + /C L K
U S B D
-
/D A T A
R E S E T
S E L 1
S D IO
S C L K
S E L 0
R B 0
2 0
1 9
1 8
1 7
1 6
M
R
L
Z 2
Z 1
R B 1
1 5
1 4
1 3
1 2
1 1
O S C 1
O S C 2
V D D
L E D
V S S
1
2
3
4
5
6
7
8
9
V 3 3 O
U S B D + /C L K
U S B D
-
/D A T A
R E S E T
S E L 1
S D IO
S C L K
S E L 0
1 8
1 7
1 6
1 5
1 4
1 3
1 2
1 1
1 0
L
Z 2
Z 1
R
M
O S C 1
O S C 2
V D D
L E D
H T 8 2 M 2 3 A
2 0 D IP -A /S O P -A
H T 8 2 M 2 3 B /H T 8 2 M 2 3 C
1 8 D IP -A /S O P -A
Rev. 1.10
2
January 22, 2007
HT82M23A/HT82M23B/HT82M23C
Pin Description
Pin Name
VSS
V33O
USBD+/CLK
USBD-/DATA
RESET
I/O
¾
O
I/O
I/O
I
Negative power supply, ground
3.3V voltage output
USB data plus or PS2 Clock, F/W auto-detect USBD+ for USB, CLK for PS2
USB data minus or PS2 Data, F/W auto-detect USB- for USB, DATA for PS2
Chip reset input, low active
Configuration selections
SEL1=0: Z-axis is divided by 2 (default)
SEL1=1: Z-axis is divided by 4
For ADNS 2051:
SEL0=0: 800DPI (default)
SEL0=1: 400DPI
For ADNS 2610/2620:
SEL0=0, 400DPI (default)
SEL0=1, 800DPI-by firmware
Serial data for Agilent sensor IC SDIO
Serial data for Agilent sensor IC SCLK
Click button detection. Input ports with 30kW pull-high resistor.
Input ports with pull-high resistor. These pads can function as Left, Right, Middle, B4 and B5
button input lines.
Z-axis input supports two kinds of scroller input; optomechanical and mechanical.
Drives LED output
5V positive power supply
6MHz OSC output
6MHz OSC input
Description
SEL1
SEL0
I
SDIO
SCLK
RB0, RB1
L, R, M
Z1, Z2
LED
VDD
OSC2
OSC1
I/O
I
I
I
I/O
¾
O
I
Absolute Maximum Ratings
Supply Voltage ..............................V
SS
-0.3V
to V
SS
+6V
MCU Input Voltage.....................V
SS
-0.3V
to V
DD
+0.3V
USB Input Voltage ....................V
SS
-0.3V
to V
33O
+0.3V
Note: These are stress ratings only. Stresses exceeding the range specified under
²Absolute
Maximum Ratings² may
cause substantial damage to the device. Functional operation of this device at other conditions beyond those
listed in the specification is not implied and prolonged exposure to extreme conditions may affect device reliabil-
ity.
Storage Temperature ............................-50°C to 125°C
Operating Temperature...........................-25°C to 70°C
Rev. 1.10
3
January 22, 2007
HT82M23A/HT82M23B/HT82M23C
D.C. Characteristics
Symbol
V
DD
I
DD
I
SUS
V
IL1
V
IH1
V
IL2
V
IH2
V
POR
I
OL
Parameter
Operating Voltage
Operating Current
(Crystal OSC)
USB Suspend Mode
Input Low Voltage
(Z1, Z2, L, M, R)
Input High Voltage
(Z1, Z2, L, M, R)
Input Low Voltage (RESET)
Input High Voltage (RESET)
Built-in Power on Reset V
DD
Detection Voltage
Sink Current (LED)
Test Conditions
V
DD
¾
5V
5V
5V
5V
5V
5V
5V
5V
V
OL
=0.8V
No load,
f
SYS
=6MHz
Conditions
¾
USB mode
PS/2 mode
Min.
4.4
¾
¾
¾
0
3.5
0
3.5
¾
¾
Typ.
¾
10
3
¾
¾
¾
¾
¾
3.7
50
Max.
5.25
¾
¾
250
1.0
5
1.5
5
¾
¾
Ta=25°C
Unit
V
mA
mA
mA
V
V
V
V
V
mA
No load, system HALT
¾
¾
¾
¾
¾
A.C. Characteristics
Symbol
f
SYS
Parameter
System Clock (Crystal OSC)
Test Conditions
V
DD
5V
Conditions
¾
Min.
0
Typ.
6000
Max.
¾
Ta=25°C
Unit
kHz
Note: t
SYS
=1/f
SYS
Timing Diagram
Z-axis Photo-Coupler Crossed Width
Z 1
Z 2
t
r
N o te :
F o r Z - a x is
t
r
, t
P
, t
f
> 1 m s
t
P
t
f
Z-axis Counting
Z 1
Z 2
+ 1
+ 1
-1
-1
Rev. 1.10
4
January 22, 2007
HT82M23A/HT82M23B/HT82M23C
Functional Description
PS/2 Mouse
·
PS/2 status byte
¨
Command
F3h
C8h
F3h
64h
F3h
50h
F2h
Response From Mouse
FAh
FAh
FAh
FAh
FAh
FAh
FAh, 03h
Byte 1
Bit 7: Reserved
Bit 6: 0=Stream Mode, 1=Remote Mode
Bit 5: 0=Disabled, 1=Enabled
Bit 4: 0=Scaling 1:1, 1=Scaling 2:1
Bit 3: 1=Wrap Mode, 0=Stream or Remote
(different from IBM specs.)
Bit 2: 1=Left Button Pressed
Bit 1: 1=Middle Button Pressed
Bit 0: 1=Right Button Pressed
·
For HT82M23A, mouse mode changes between
¨
Byte 2
Bit 0~7 current resolution setting
(Bit 0=LSB)
Standard and Windows 2000 PS/2 mode.
Sending the commands in the following sequence will
set the mouse to Windows 2000 PS/2 mode.
Command
F3h
C8h
F3h
C8h
F3h
50h
F2h
¨
Response From Mouse
FAh
FAh
FAh
FAh
FAh
FAh
FAh, 04h
¨
Byte 3
Bit 0~7 current sampling rate (Bit 0=LSB)
·
Standard PS/2 data format (HT82M23A/HT82M23B)
Bit No.
1st word
2nd word
3rd word
7
YV
X7
Y7
6
XV
X6
Y6
5
YS
X5
Y5
4
XS
X4
Y4
3
1
X3
Y3
2
M
X2
Y2
1
R
X1
Y1
0
L
X0
Y0
·
Data format for 3D PS/2 (HT82M23A/HT82M23B)
Any time the PC sends a reset
²FFh²
command to
the mouse, it will reset the mouse to Standard PS/2
mode.
Bit No.
1st word
2nd word
3rd word
4th word
Note:
7
YV
X7
Y7
Z7
6
XV
X6
Y6
Z6
5
YS
X5
Y5
Z5
4
XS
X4
Y4
Z4
3
1
X3
Y3
Z3
2
M
X2
Y2
Z2
1
R
X1
Y1
Z1
0
L
X0
Y0
Z0
After power-on reset is initiated, the mouse is set to
Standard PS/2 mode.
·
USB mouse data format for 3D mod
(HT82M23A/HT82M23B/HT82M23C)
Bit No.
1st word
2nd word
3rd word
4th word
7
0
X7
Y7
Z7
6
0
X6
Y6
Z6
5
0
X5
Y5
Z5
4
0
X4
Y4
Z4
3
0
X3
Y3
Z3
2
M
X2
Y2
Z2
1
R
X1
Y1
Z1
0
L
X0
Y0
Z0
The X/Y data report is 9-bit 2¢s complement
The Z data report is 8-bit 2¢s complement
·
Data format for 5-button Wheel Mouse (HT82M23A)
Bit No.
1st word
2nd word
3rd word
4th word
Note:
7
0
X7
Y7
0
6
0
X6
Y6
0
5
YS
X5
Y5
4
XS
X4
Y4
3
1
X3
Y3
2
M
X2
Y2
Z2
1
R
X1
Y1
Z1
0
L
X0
Y0
Z0
·
Data format for Windows 2000 mode (HT82M23A)
Bit No.
1st word
2nd word
3rd word
4th word
Note:
7
0
X7
Y7
Z7
6
0
X6
Y6
Z6
5
0
X5
Y5
Z5
4
3
2
1
R
X1
Y1
Z1
0
L
X0
Y0
Z0
RB1 RB1 M
X4
Y4
Z4
X3
Y3
Z3
X2
Y2
Z2
RB1 RB0 Z3
X- movement towards the right is positive, mov-
ing towards the left is negative
Y- upward movement is positive, moving down
is negative
Z- rolling towards the user is positive, else negative
Button status: 1=pressed, 0=released
X- movement towards the right is positive, mov-
ing towards the left is negative
Y- upward movement is negative, moving down
is positive
Z- rolling towards the user is negative, else positive
Button status: 1=pressed, 0=released
·
For HT82M23A/HT82M23B, mouse mode changes
between Standard and 3D PS/2 mode.
Sending the commands in the following sequence will
set the mouse to 3D PS/2 mode.
Rev. 1.00
5
January 12, 2006