Advertisement

Quick Links

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.
Arrow.com.
Downloaded from
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.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADNK-5023-HTP2 and is the answer not in the manual?

Questions and answers

Summary of Contents for Avago ADNK-5023-HTP2

  • Page 1 PS/2 optical mouse magnitude of movement. The Z-wheel movement is can be built using Avago Technologies small form factor done in the traditional method by decoding the quadra- ADNS-5020EN optical mouse sensor and Holtek Semi- ture signal generated by optical sensors.
  • Page 2 Figure 1. Mechanical Z-Wheel Output Signal Generation Mechanical Z-Wheel Mouse Buttons The motion of Z-wheel is detected using the traditional Mouse buttons are connected as standard switches. These method by decoding the quadrature signal generated by switches are pulled up by the pull up resistors inside the mechanical encoder.
  • Page 3 The SPI circuit supports byte serial transfer in either pull up resistors. Master or Slave mode. The integrated SPI circuit allows SDIO Avago SCLK ADNS-5020EN optical mouse sensor Holtek...
  • Page 4 (See Figure 4.) Unscrewing the one screw located The Gerber File presents detailed schematics used in at the base of the unit can open the ADNK-5023-HTP2 ADNK-5023-HTP2 in PCB layout form. See Appendix C for unit. Lifting and pulling the PCB out of the base plate can more details.
  • Page 5: Appendix A: Schematic Diagram Of The Overall Circuit

    Appendix A: Schematic Diagram of the Overall Circuit Figure A1. Circuit-level block diagram for ADNK-5023-HTP2 designer’s kit optical mouse using the Avago ADNS-5020EN optical mouse sensor and Holtek HT82M35A- 1002 Controller. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Downloaded from Downloaded from...
  • Page 6: Appendix B: Bill Of Materials For Components Shown On Schematic

    Appendix B: Bill of Materials for Components Shown on schematic Comment Footprint Designator Resistor 68R 1% 0.25w 0603 [SMD] R6.R7 Resistor 4k7 1% 0.25w 0603 [SMD] R1.R2 Resistor 140k 1% 0.25w 0603 [SMD] Resistor 47k 1% 0.25w 0603 [SMD] Ceramic Cap. 100nF 50V 0603 [SMD] C2.C4.C5.C9 Ceramic Cap.
  • Page 7: Appendix C: Pcb Layout

    Appendix C: PCB Layout Figure C1. PCB Schematic (Top Layer) Figure C2. PCB Schematic (Top Silkscreen Overlay) Figure C3. PCB Schematic (Bottom Layer) Figure C4. PCB Schematic (Bottom Silkscreen Overlay) Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from...
  • Page 8: Appendix D: Base Plate Feature

    Appendix D: Base Plate Feature Figure D1. Bottom, top and side view of base plate Figure D2. Overall view of base plate Appendix E: Sectional view of PCB assembly Clip Sensor Lens / Light Pipe Base Plate Surface Figure E1. Sectional view of PCB assembly highlighting all optical mouse components (optical mouse sensor, clip, lens, LED, PCB, and base plate). Arrow.com.
  • Page 9: Appendix F: Kit Components

    Appendix F: Kit Components The PS/2 portion of the firmware handles the following requests and commands listed in the table below. Hex Code Command Action 0xFF Reset Resets mouse to default states 0xFE Resend Resends last data to host 0xF6 Set Default Sets mouse to use default parameters 0xF5...
  • Page 10 After the following sequence of commands, the wheel report format is enabled. 0xF3, 0xC8 Set Sampling Rate 200 per second 0xF3, 0x64 Set Sampling Rate 100 per second 0xF3, 0x32 Set Sampling Rate 50 per second 0xF2, 0x03 Read Device Type returns a value of 0x03 After the Read Device Type command returns 0x03 to indicate that this is a Microsoft compatible three button-wheel mouse, the wheel report format is enabled.
  • Page 11 For product information and a complete list of distributors, please go to our web site: Avago, Avago Technologies, and the A logo are trademarks of Avago Technologies, Limited in the United States and other countries. Data subject to change. Copyright © 00 Avago Technologies Limited. All rights reserved.

Table of Contents