ADNK-6003-SP01
Optical Mouse Designer’s Kit
Design Guide
Introduction
Optical Mouse Basics
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
The optical mouse measures changes in position by
optically acquiring sequential surface images (frames),
and mathematically determining the direction and
guide describes how a cost-effective USB optical mouse magnitude of movement. The Z-wheel movement is done
can be built using the Sunplus, SPCP825A USB microcon- in the traditional method by decoding the quadrature
troller and the Avago Technologies ADNS-6000 optical signal generated by optical sensors. This design guide
sensor. The document starts with the basic operations of shows how to connect to and manage a standard con-
a computer mouse peripheral followed by an introduc-
figuration of mouse hardware, as well as handle the USB
tion to the Sunplus SPCP825A USB microcontroller and protocols. Each of these protocols provides a standard
the Avago Technologies ADNS-6000 Optical Navigation
Sensor. A schematic of the Sunplus SPCP825A USB micro-
controller 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 ar-
chitecture of the firmware required to implement the USB
mouse functions. The Sunplus SPCP825A data sheet is
available from the Sunplus web site at www.sunplus.com
. The ADNS-6000 data sheet is available from the Avago
Technologies web site at www.avagotech.com. USB docu-
mentation can be found at the USB Implementers Forum
web site at www.usb.org.
way of reporting mouse movement and button presses to
the PC.
Introduction to the Sunplus, SPCP825A
The Sunplus, SPCP825A is a general purpose OTP USB mi-
crocontroller. It has dual USB speed, namely low and full
speed. It can support PS/2 mode. The transceiver is fully
controlled by the firmware. Moreover the USB SIE provides
good flexibility for firmware to handle USB protocol. The
built-in PLL allows CPU to work at 6MHz or 12MHz by
using only one 6MHz crystal or resonator.
Serial Peripheral Interface (SPI)
ADNS-6000 laser mouse set is the world’s first laser-illumi-
nated navigation system. With laser navigation technol-
ogy, the mouse can operate on many surfaces that 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 Sunplus SPCP825A provides
a SPI compatible
interface. The SPI circuit supports byte serial transfer in
either Master or Slave mode. The integrated SPI circuit
allows the Sunplus SPCP825A to communicate with
external SPI compatible hardware, in this case the ADNS-
6000.
The ADNS-6000 sensor along with the ADNS-6120 lens,
ADNS-6230-001 clip and ADNV-6340 laser diode form
a complete and compact laser mouse tracking system.
There are no moving parts, which means high reliabil-
ity and less maintenance for the end user. In addition,
precision optical alignment is not required, facilitating
high volume assembly.
1