Download Print this page

Avago ADNK-6003 Design Manual

Optical mouse designer's kit

Advertisement

Quick Links

ADNK-6003
Optical Mouse Designer's Kit
Design Guide
Introduction
The Universal Serial Bus (USB) is an industry standard serial
interface between a computer and peripherals such as
a mouse, joystick, keyboard, UPS, etc. This design guide
describes how a cost-effective USB-PS/2 optical mouse can
be built using the Cypress Semiconductor CY7C63743-PXC
USB microcontroller and the Avago ADNS-6000 optical
sensor. The document starts with the basic operations of a
computer mouse peripheral followed by an introduction
to the CY7C63743-PXC USB microcontroller and the Avago
Technologies ADNS-6000 Optical Navigation Sensor. A
schematic of the CY7C63743-PXC USB microcontroller to
the ADNS-6000 optical sensor and buttons of a standard
mouse can be found in Appendix A. The software section
of this application note describes the architecture of the
firmware required to implement the USB and PS/2 mouse
functions. The CY7C63743-PXC data sheet is available from
the Cypress web site at www.cypress.com . The ADNS-6000
data sheet is available from the Avago web site at www.
semiconductor.Avago.com. USB documentation can be
found at the USB Implementers Forum web site at www.
usb.org.
ADNB-6001 laser mouse bundle set is the world's first
laser-illuminated navigation system. With laser navigation
technology, the mouse can operate on many surfaces that
Downloaded from
Elcodis.com
electronic components distributor
prove difficult for traditional LED-based optical navigation.
Its high-performance architecture is capable of sensing
high-speed mouse motion — velocities up to 20 inches
per second and accelerations up to 8g.
The ADNS-6000 sensor along with the ADNS-6120 lens,
ADNS-6220 clip and ADNV-6330 laser diode form a
complete and compact laser mouse tracking system. There
are no moving parts, which means high reliability and
less maintenance for the end user. In addition, precision
optical alignment is not required, facilitating high volume
assembly.
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 quadrature signal
generated by optical sensors. This design guide shows
how to connect to and manage a standard configuration
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.

Advertisement

loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Avago ADNK-6003

  • Page 1 Cypress web site at www.cypress.com . The ADNS-6000 of movement. The Z-wheel movement is done in the data sheet is available from the Avago web site at www. traditional method by decoding the quadrature signal semiconductor.Avago.com. USB documentation can be generated by optical sensors.
  • Page 2 The D - line is pulled up via a 1.3k ohm Optical Sensor resistor connected to the VREG pin. Avago’s ADNS-6000 optical sensor is used in this reference Firmware Configurable GPIO design as the primary navigation engine. This Optical Navi-...
  • Page 3 Shutter_Lower and Maximum_Pixel registers in that order. connected to the D- line can be pulled up to 3.3V. It is this SROM download uses Burst Mode to load the Avago- action that causes the host to recognize that there is a supplied firmware file contents into the ADNS-6000.
  • Page 4 (PCB), lens, buttons, and USB cable. (See Figure 4.) Unscrewing the one screw located at the base of the unit can open the ADNK-6003 unit. Lifting and pulling the PCB out of the base plate can further disas- semble the mouse unit.
  • Page 5 Class 1 Eye Safety Requirements of IEC 60825-1. Avago gorithms. The external program is supplied by Avago as a Technologies suggests that manufacturers perform file which may be burned into a programmable device. A testing to verify eye safety on each mouse.
  • Page 6 6330 Data Sheet and Application Note AN-5088. Additional application notes regarding Eye Safety Requirements are LASER Output Power also available at Avago’s website. The laser beam output power as measured at the naviga- Base Plate Feature – IGES File tion surface plane is specified below. The following condi-...
  • Page 7 USB Interface USB Requests – Endpoint 1 All USB Human Interface Device (HID) class applications Endpoint 1 is the data transfer communications channel for follow the same USB start-up procedure. The procedure is mouse button, wheel, and movement information. Requests as follows to this endpoint are not recognized until the host configures endpoint 1.
  • Page 8 2. Device Configuration connect resistor and Delay 100uS. If D+ and D- are both 0, detect a USB interface, else detect a PS2 interface. During this time the host will set the standard PS/2 pa- rameters such as scaling, resolution, stream mode, and SPIInit –...
  • Page 9 ReadMotionReg – Reads the ADNS-6000 Motion register. The ep0InReceived – This routine is entered whenever an IN data returned from this register will be used to determine if packet is received on endpoint 0. any motion has occurred or if any fault condition exists. ep0OutReceived –...
  • Page 10 PS/2 Functions PS2Main – Initializes the PS/2 related parameter to their PS2BAT – delays for 500 milliseconds, then sends the AAh default state, enables the serial interface and sends a BAT followed by 00h initialization string to the host for the PS/2 code (AAh followed by 00h) to the host.
  • Page 11 PS2SendResponseByte – Sends a response byte (ACK, ERROR, PS2SetResolution – This routine is called in response to a SET RESEND) to the host RESOLUTION command from the host. Set Resolution is a two byte command; the 2nd byte being the resolution PS2Send –...
  • Page 12 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 13 SET RESOLUTION Command Dual1msTimer – This ISR reads the current status of the buttons. Therefore, every one millisecond the button The SET RESOLUTION command is conditionally enabled state is updated; the button status information will be by the statement “#define ENABLE_RESOLUTION”. On most used by the ProcessButtons function at a later time.
  • Page 14 Manufacturer String*1 A request for the manufacturer string will return the following string. “Avago Reference Design Mouse” Product String*2 A request for the product string will return the following string. “ADNS-6000 Mouse” Configuration String A request for the configuration string will return the following string.
  • Page 15 * Outputs configured as open drain R3 20K Scroll wheel encoder R4 20K Figure A1. Circuit-level block diagram for ADNK-6003 designer’s kit optical mouse using the Avago ADNS-6000 optical mouse sensor and Cypress CY7C63743- PXC enCoRe USB Controller. Downloaded from Elcodis.com...
  • Page 16 Appendix B: Bill of Materials for Components Shown on schematic Comment Footprint Quantity Cer. Cap 0.1uF (104) 0805_CUS Cer. Cap 470pF 50V 0805_CUS Chip RES. 10K 1% 0.125W 0805_CUS Chip RES. 1K3 1% 0.125W 0805_CUS Chip RES 2K7 1% 0.125W 0805_CUS Chip RES 20K 1% 0.125W 0805_CUS...
  • Page 17: Appendix C: Pcb Layout

    Appendix C: PCB Layout Figure C1. PCB Schematic (Bottom Layer) Figure C2. PCB Schematic (Top Layer) Downloaded from Elcodis.com electronic components distributor...
  • Page 18 Figure C3. PCB Schematic (Top Overlay) Figure C4. PCB Schematic (Bottom Overlay) Downloaded from Elcodis.com electronic components distributor...
  • Page 19 Appendix D: Base Plate Feature Figure D1. Overall view of base plate Downloaded from Elcodis.com electronic components distributor...
  • Page 20 Appendix F: USB data reporting format The USB report has two formats, depending on if 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...
  • Page 21 Appendix G: PS/2 reporting format 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...
  • Page 22 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 Bit 7 Bit 0 Byte 0...
  • Page 23: Appendix H: Kit Components

    LASER Clip ADNV-6330 Single Mode Vertical Cavity Surface Emitting LASER (VCSEL) LASER ADNK-6003 CD Includes Documentation and Support Files for ADNK-6003 Documentation a. ADNB-6001 and ADNB-6002 Data Sheet b. AN-5088 LASER Mouse Sensor Eye Safety CalculationsHardware Support Files a. ADNK-6003 BOM List b.
  • Page 24 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 © 2007 Avago Technologies Limited. All rights reserved.