background image

3

Firmware Configurable GPIO

The reference firmware is configured to use the GPIO 
pins as shown on the schematic in Appendix A. However, 
it may be more optimal to use a different I/O configura-
tion to meet the mechanical constraints of a specific PCB 
design. The reference firmware is designed to be easily 
configured to another set of pin connections. This is ac-
complished through changes in the I/O definitions at the 
beginning of the SPCP826A_A60x0_FS.asm listing. The 
following statements are the pin definitions as they exist 
today. The firmware will use these definitions to read and 
configure the GPIO pins, without any other modifications.

Communications between the Sunplus SPCP826A and the 
ADNS-6090 is through the integrated SPI interface. The 
serial port cannot be activated while the chip is in pow-
er-down mode (NPD LOW) or reset (RESET HIGH). When 
the SPI is enabled through PB0 (NCS), the PB2 (SCLK), PB1 
(MISO) and PB3 (MOSI) GPIO pins serve special functions 
to enable the SPI interface to talk with external hardware. 

During normal operation, the Sunplus SPCP826A SPI is 
always configured as a Master to output the serial clock 
on PB7. Therefore, the USB microcontroller always initiates 
communication. Data sent by the ADNS-6090 optical 
sensor is received on the PB1 (MISO), and data is shifted 
out to the ADNS-6090 through the PB3 (MOSI). Please see 
the schematic in Appendix A. 

When writing to the ADNS-6090, the microcontroller drives 
both the SCLK and the MOSI lines. When reading from the 
ADNS-6090, the microcontroller drives both the SCLK and 
MOSI lines initially. After t

SRAD 

delay, the ADNS-6090 will 

drive the data via MISO. The microcontroller is only driving 
the SCLK line. It outputs SCLK for the serial interface.

Mouse Optics

Z-wheel motion is detected using the traditional method 
by decoding the quadrature signal generated by the 
optics sensor. Two phototransistors are connected in a 
source-follower configuration. The infrared LED shines, 
causing the phototransistors to turn on. In between the 
phototransistors and LED is a pinwheel that turns on the 
mouse ball rollers. The fan of this pinwheel is mechanically 
designed to block the infrared light such that the photo-
transistors are turned on and off in a quadrature output 
pattern. Every change in the phototransistor outputs 

 

represents a count of mouse movement. Comparing the 
last state of the optics to the current state derives direction 
information. 

As shown in Figure 2 traveling along the quadrature signal 
to the right produces a unique set of state transitions, and 
traveling to the left produces another set of unique state 
transitions. In this reference design, only the motion at the 
Z-wheel is detected using this method.

Figure 2. Optics Quadrature Signal Generation

Summary of Contents for LaserStream ADNK-6093-SP11

Page 1: ...tion with reso lution up to 1600 counts per inch cpi velocities up to 35 inches per second ips and accelerations up to 8 g The Sunplus SPCP826A is a general purpose OTP USB mi crocontroller It has dua...

Page 2: ...d to the PC to update the position of the cursor The advantages of using ADNS 6090 optical sensor are the best tracking accuracy exibility of programming the optical sensor via the SPI port and the au...

Page 3: ...and data is shifted out to the ADNS 6090 through the PB3 MOSI Please see the schematic in Appendix A WhenwritingtotheADNS 6090 themicrocontrollerdrives both the SCLK and the MOSI lines When reading fr...

Page 4: ...eference design will automatically detect the host topology USB The connections for the connectors are shown in Figure 3 below Hot Pluggable USB The PC does not need to be powered o when plugging or u...

Page 5: ...enerates the drive current for the laser diode ADNV 6340 In order to stay below the Class 1 power requirements resistor Rbin must be set at least as high as the value in the bin table based on the bin...

Page 6: ...in non functional until the host has issued a USB bus reset 2 Bus Reset The host recognizes the presence of a new USB device and initiates a bus reset to that device 3 Enumeration The host initiates S...

Page 7: ...program is trapped in the dead loop i e the device is unusable Report_mouse_data This function is used to send button X Y and Z wheel data to the computer judge_mode This function is used to check fo...

Page 8: ...escriptors to the host requestNotSupported Unsupported or invalid descriptor requests will cause this rmware to STALL these transactions Manufacturer String1 A request for the manufacturer string will...

Page 9: ...9 Appendix A Schematic Diagram...

Page 10: ...40R 1 100 ET1 1 R3 15 5way Header 2 54mm 2 54mm BULGIN 14191 1 H1 16 Microswitch 3 ways Through Hole Omron Electronic Components D2F F 3 SW2 SW3 SW4 17 R A SPNO Push Button Through Hole Omron Electron...

Page 11: ...11 Appendix C PCB Layout Top Layer Bottom Layer Top Silkscreen Overlay Bottom Silkscreen Overlay...

Page 12: ...12 Appendix D 3D View VCSEL s PCBA ADNS 6230 001 Clip ADNV 6340 VCSEL ADNS 6090 Sensor ADNS 6120 Round Lens with Round Lens Base Plate ADNS 6130 001Trim Lens with Trim Lens Base Plate Overall Assembly...

Page 13: ...Byte 2 Y Y Y Y Y Y Y Y The following is the USB report protocol format and allows the additional wheel movement information in the sixth byte When the wheel is moved forward the sixth byte reports a...

Page 14: ...tion Sensor 5 ADNS 6120 Round Lens Plate 5 ADNS 6130 001 Trim Lens Plate 5 ADNS 6230 001 LASER Assembly Clip 5 ADNV 6340 Single Mode Vertical Cavity Surface Emitting LASER VCSEL 5 ADNK 6093 SP11 CD In...

Reviews: