Avago ADNK-3083 Design Manual

Optical mouse designer's kit

Advertisement

Quick Links

ADNK-3083
Optical Mouse Designer's Kit
Design Guide
Introduction
This design guide describes how a cost-eff ective USB-
-PS/2 yet feature-rich optical mouse can be built using
the Avago Technologies high performance ADNS-3080
optical mouse sensor and Cypress Semiconductor
CY7C63743-PXC USB microcontroller. The document
starts with the basic operations of a computer mouse
peripheral followed by an introduction to the ADNS-
3080 optical mouse sensor and CY7C63743-PXC USB
microcontroller. A schematic of the ADNS-3080 optical
mouse sensor to the CY7C63743-PXC USB microcontroller
buttons of a standard mouse is also shown in this docu-
ment. The software section of this design guide describes
the architecture of the fi rmware required to implement
the USB and PS/2 mouse functions.
Optical Mouse Basics
The optical mouse measures changes in position by opti-
cally acquiring sequential surface images (frames), and
mathematically determining the direction and magni-
tude of movement. The Z-wheel movement is done in the
traditional method by decoding the quadrature signal
generated by optical encoder. This design guide shows
how to connect to and manage a standard confi guration
of mouse hardware, as well as handle the USB and PS/2
protocols. Each of these protocols provides a standard
way of reporting mouse movement and button presses
to the PC.
Introduction to ADNS-3080 Optical Mouse Sensor
Avago's ADNS-3080 optical mouse sensor is used in this
reference design as the primary navigation engine. This
Optical Navigation Technology contains an Image Acqui-
sition System, a Digital Signal Processor, and a four-wire
serial port. The CY7C63743-PXC periodically reads the
ADNS-3080'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 four-wire syn-
chronous serial port is used to set and read parameters in
the ADNS-3080, and to read out the motion, Delta_x and
Delta_y information. This motion information is reported
to the PC updating the position of the cursor. The advan-
tages of using the ADNS-3080 optical sensor are: best
tracking accuracy, sensor programming fl exibility via SPI
port, and the automatic frame rate feature (1000fps to
6400fps). The ADNS-3080 also has selectable resolution
of 400cpi or 1600cpi. Furthermore, the ADNS-3080 sensor
has excellent tracking performance on diffi cult surfaces
such as wood and half-tone surfaces. Additionally, the
Burst mode is another special serial port operation mode
which may be used to reduce the serial transaction time
for three predefined operations: motion read, SROM
download, and frame capture. Speed improvement is
achieved by continuous data clocking to or from multiple
registers during this operation.
Motion Read is activated by reading the Motion_Burst
register. The ADNS-3080 will respond with the contents
of the Motion, Delta_X, Delta_Y, SQUAL, Shutter_Upper,
Shutter_Lower and Maximum_Pixel registers in that order.
SROM download uses Burst Mode to load the Avago-sup-
plied firmware file contents into the ADNS-3080. The
fi rmware fi le is an ASCII text fi le with each 2-character
byte (hexadecimal representation) on a single line. Frame
Capture is a fast way to download a full array of pixel values
from a single frame.
To learn more about sensor's technical information, please
visit the Avago web site at http://www.semiconductor.
Avago.com

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Avago ADNK-3083

  • Page 1 Shutter_Lower and Maximum_Pixel registers in that order. protocols. Each of these protocols provides a standard SROM download uses Burst Mode to load the Avago-sup- way of reporting mouse movement and button presses plied firmware file contents into the ADNS-3080. The to the PC.
  • Page 2 Mouse Optics Mouse Buttons The of Z-wheel motion is detected using the traditional Mouse buttons are connected as standard switches. method by decoding the quadrature signal generated by These switches are pulled up by the pull up resistors optical encoder. Two phototransistors inside the microcontroller.
  • Page 3 This is accomplished through changes in the I/O defi nitions at the beginning MISO VREG MOSI Avago ADNS-3080 SCLK Optical Mouse Sensor 1.3 k Ohm Cypress Z Optics...
  • Page 4 PS/2 mouse. ADNK-3083 Designer’s Kit — Optical Mouse Operating (For USB Mode) The ADNK-3083 optical mouse unit allows users to Hot pluggable with USB port. The PC does not need to evaluate the performance of the Avago’s Optical Tracking...
  • Page 5 Refer to Figure 5. (See Figure 4.) Unscrewing the one screw located at the base of the unit can open the ADNK-3083 unit. Lifting and pulling the PCB out of the base plate can further disassemble the mouse unit.
  • Page 6 Avago recommendations. The Gerber File presents detailed schematics used in  Passes EN61000-4-4/IEC801-4 EFT tests when assem- ADNK-3083 in PCB layout form. See Appendix C for more bled into a mouse with shielded cable and following details. Avago recommendations.
  • Page 7 USB Interface USB Requests – Endpoint 0 All USB Human Interface Device (HID) class applications Endpoint 0 acts as the control endpoint for the host. follow the same USB start-up procedure. The procedure On power-up, endpoint 0 is the default communication is as follows: channel for all USB devices.
  • Page 8 2. Device Confi guration - If SCLK(D+) is sampled high, detect a PS2 interface. If SDATA(D-) sampled high, disable the USB connect During this time the host will set the standard PS/2 param- resistor and Delay 100μS. eters such as scaling, resolution, stream mode; enabling - If D+ and D- are both 0, detect a USB interface, else stream mode for data reports.
  • Page 9 ReadDeltaY – Reads the ADNS-3080 Delta_Y register for the ep0OutReceived – This routine is entered whenever an OUT Y movement. Calls the ReadSPI routine to enable the SPI packet is received on endpoint 0. interface and perform reading operations through the setDeviceConfi guration –...
  • Page 10 DualMain System Initialization Load SROM GetMouseType USB Main PS2 Interface USB Initialization USBTaskLoop ReadMotionReg ProcessButtons ReadDeltaX ProcessOptics ReadDeltaY Read Z Wheel Load new mouse packet to EP1 buffer & enable Figure 6. USB Operation Function Call Map.
  • Page 11 PS/2 Firmware Description PS2SetWrapMode – This routine is called in response to a SET WRAP MODE command from the host. It then sets the A function call map for PS/2 operation is shown in Figure mouse mode to wrap mode. See the PS/2 specifi cation 7.
  • Page 12 CheckWheel – This function checks whether the proper Dual1msTimer – This ISR reads the current status of the sequence of commands have been issued by the host buttons. Therefore, every one millisecond the button to enable the wheel of the mouse. The sequence is three state is updated;...
  • Page 13 ps2Main PS2BAT PS2 Initialization SetDefault ps2TaskLoop ps2SendNextByte ProcessOptics PS2DoCommand ProcessButtons GetHostByte LoadMousePacket HostRequestToSend ReadMotionReg PS2SendResponseByte HostRequestToSend PS2HostINhibit ReadDeltaX PS2Send PS2Receive PS2Send ReadDeltaY Send_1 GetBit Read Z Wheel Send_0 send0 CheckWheel Send_1 PS2ResetScaling Send_0 PS2SetScaling PS2StatusRequest PS2SetStreamMode ResetInterval ResetWrapMode SetWrapMode SetRemoteMode ReadDeviceType Enable Disable...
  • Page 14: Appendix A: Schematic Diagram Of The Overall Circuit

    P1.0 Murata CSALS24M0X53-B0 TDK FCR24.0M2G P1.2 Buttons Vo 3.3V OPTP P1.1 XTALOUT XTALIN 6 MHz Figure A1. Circuit-level block diagram for ADNK-3083 designer’s kit optical mouse using the Avago ADNS-3080 optical mouse sensor and Cy- press CY7C63743-PXC enCoRe USB Controller.
  • Page 15: Appendix B: Bill Of Materials For Components Shown On Schematic

    Appendix B: Bill of Materials for Components Shown on Schematic Part Type Footprint Quantity Designators 0R (Jumper) AXIAL 0.35 R1, R3 0R (Jumper) 0805_CUS R6, R11, R12, R13, R14, R15 Ceramic cap. 0.1uF (104) 0805_CUS C1, C3, C6, C7 Chip resistor 10K 1% 0805_CUS R7, R9 Resistor 187R 1% 0.125W...
  • Page 16: Appendix C: Pcb Layout

    Appendix C: PCB Layout Figure C1. PCB Schematic (Bottom Layer). Figure C2. PCB Schematic (Top Overlay). Figure C3. PCB Schematic (Bottom Overlay).
  • Page 17: Appendix D: Base Plate Feature

    Appendix D: Base Plate Feature Figure D1. Bottom, top and side 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).
  • Page 18: Appendix F: Usb Data Reporting Format

    Appendix F: USB data reporting format The USB report has two formats, depending whether boot or report protocol is enabled. The following format is the boot protocol, and is understood by a USB aware BIOS. Bit 7 Bit 0 Byte 0 Middle Right Left...
  • Page 19 The PS/2 specifi cation calls out the following default mouse report format. Byte 0 is the button data (1=pressed, 0=re- leased), X and Y optics sign bits, and X and Y overfl ow bits. Byte 1 is the X optics data in 2’s complement format. Byte 2 has the Y optics data in 2’s complement format.
  • Page 20: Appendix H: Kit Components

    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 in the United States and other countries. Data subject to change. Copyright © 2005-2012 Avago Technologies. All rights reserved. Obsoletes 5989-2737EN...

Table of Contents