background image

ADNK-5023-HTP2 

Optical Mouse Designer’s Kit

Design Guide

Introduction 

The IBM Personal System/2 (PS/2) is an industry standard 

serial  interface  between  a  computer  and  peripher-

als  such  as  a  mouse,  joystick,  keyboard,  etc. This  design 

guide describes how a cost-effective PS/2 optical mouse 

can be built using Avago Technologies small form factor 

ADNS-5020EN  optical  mouse  sensor  and  Holtek  Semi-

conductor HT82M35A-1002 masked microcontroller. The 

document starts with the basic operations of a computer 

mouse  peripheral  followed  by  an  introduction  to  the 

Avago  Technologies  ADNS-5020EN  Optical  Navigation 

Sensor and the HT82M35A-1002 masked microcontroller. 

A  schematic  of  the  HT82M35A-1002  masked  microcon-

troller  to  the  ADNS-5020EN  optical  mouse  sensor  and 

buttons of a standard mouse can be found in Appendix A. 

The ADNS-5020EN data sheet is available from the Avago 

web site at http://www.avagotech.com/. The HT82M35A-

1002 data sheet is available from the Holtek web site at 

www.holtek.com. 

Optical Mouse Basics

The  optical  mouse  measures  changes  in  position  by 

optically  acquiring  sequential  surface  images  (frames), 

and  mathematically  determining  the  direction  and 

magnitude  of  movement.  The  Z-wheel  movement  is 

done in the traditional method by decoding the quadra-

ture signal generated by optical sensors. In this reference 

design, PS/2 protocol is used to provide a standard way 

of reporting mouse movement and button presses to the 

PC.

Introduction to ADNS-5020EN Optical Mouse Sensor

Avago’s  ADNS-5020EN  optical  sensor  is  used  in  this 

reference  design  as  the  primary  navigation  engine. This 

Optical  Navigation  Technology  contains  an  Image  Ac-

quisition System, a Digital Signal Processor, and a three-

wire  serial  port.  The  HT82M35A-1002  periodically  reads 

the  ADNS-5020EN’s  Delta_X  and  Delta_Y  registers  to 

obtain  any  horizontal  and  vertical  motion  information 

happening  as  a  result  of  the  mouse  being  moved.  The 

three-wire synchronous serial port is used to set and read 

parameters  in  the  ADNS-5020EN,  and  to  read  out  the 

motion, (delta) X and (delta) Y information.
This  motion  information  will  be  reported  to  the  PC  to 

update  the  position  of  the  cursor.  The  advantages  of 

using  ADNS-5020EN  optical  sensor  are:  good  tracking 

accuracy,  small  form  factor,  sensor  programming  flex-

ibility via SPI port, and the automatic frame rate feature. 

Furthermore,  ADNS-5020EN  sensor  has  built-in  oscilla-

tor and on-chip LED driver to minimize external compo-

nents.  Additionally,  Burst  mode  is  another  special  serial 

port operation mode which may be used to reduce the 

serial transaction time for motion read operation 
Motion  Read  is  activated  by  reading  the  Motion_Burst 

register.    The  ADNS-5020EN  will  respond  with  the 

contents of the Delta_X, Delta_Y, SQUAL, Shutter_Upper,  

Shutter_Lower,  Maximum_Pixel  and  Pixel_Sum  registers 

in that order. 

Downloaded from

Arrow.com.

Содержание ADNK-5023-HTP2

Страница 1: ...nce design PS 2 protocol is used to provide a standard way of reporting mouse movement and button presses to the PC Introduction to ADNS 5020EN Optical Mouse Sensor Avago s ADNS 5020EN optical sensor...

Страница 2: ...heel is mechanical ly designed to block the infrared light such that the pho totransistors are turned on and off in a quadrature output pattern Every change in the phototransistor outputs rep resents...

Страница 3: ...unicate with external SPI compatible hardware in this case the ADNS 5020EN Hardware Implementation The standard hardware to implement a mouse is shown in Figure 3 For X and Y movement the optical sens...

Страница 4: ...s contained in the ADNS 5020EN Data Sheet Lens The lens technical information is contained in the ADNS 5100 5100 001 Data Sheet The flange on the standard ADNS 5100 lens is for ESD protection LED Asse...

Страница 5: ...it levelblockdiagramforADNK 5023 HTP2designer skitopticalmouseusingtheAvagoADNS 5020ENopticalmousesensorandHoltekHT82M35A 1002Controller Downloaded from Arrow com Downloaded from Arrow com Downloaded...

Страница 6: ...SMD C3 1 Tantalum Cap 100UF 16V Case D SMD C1 1 Diode 1N4148 Axial Diode D2 1 Mouse Optical Sensor ADNS 5020EN ADNS 5020EN U2 1 Molex 5P Header Pin 2 54mm J1 1 Pin Header 40P 2 54mm J2 J3 J4 1 Connect...

Страница 7: ...ilkscreen Overlay Figure C3 PCB Schematic Bottom Layer Figure C4 PCB Schematic Bottom Silkscreen Overlay Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from A...

Страница 8: ...view of PCB assembly highlighting all optical mouse components optical mouse sensor clip lens LED PCB and base plate Sensor LED Clip PCB Surface Base Plate Lens Light Pipe Downloaded from Arrow com Do...

Страница 9: ...t mode en disabled scaling button resolution and sampling rate information to the host 0xE8 Set Resolution Sets resolution to 1 2 4 8 counts mm 0xE7 Set Scaling 2 1 Sets scaling to 2 1 0xE6 Reset Scal...

Страница 10: ...Y Overflow X Overflow Y sign X sign Always 1 Middle Button Right button Left button Byte 1 X X X X X X X X Byte 2 Y Y Y Y Y Y Y Y Byte 3 Wheel Wheel Wheel Wheel Wheel Wheel Wheel Wheel The PS2 data t...

Страница 11: ...Sheet Hardware Support Files a ADNK 5023 HTP2 BOM List b ADNK 5023 HTP2 Schematic c IGES Base Plate Feature File d Gerber File Software Support Files a Microcontroller OTP code which can be programme...

Отзывы: