DATASHEET SEARCH SITE | WWW.ALLDATASHEET.COM
Document overview
- Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
- PDF pages: 31
Technical content
Features
Small Form Factor Package - 8-pin DIP Operating Voltage: 2.8V-3.0V High Speed Motion Detection at typical of 60ips and acceleration up to 20g. Selectable Resolutions up to 2000cpi Four wire Serial Port Interface External Interrupt Output for Motion Detection Internal Oscillator — no clock input needed On-chip LED driver Minimal number of passive components Programmable power-saving modes for selectable wired or wireless application Customizable response time and downshift time for rest modes Confi gurable LED operating modes and drive current
Applications
Wired and Wireless Optical gaming mice and trackballs Integrated input devices Battery-powered input devices NOTE: The ADNS-3050 sensor is not designed for use with blue LED navigation system. All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 1 PixArt Imaging Inc. E-mail: fae_service@pixart.com.tw
1 MISO O Serial Data Output (Master In/Slave Out)
2 LED I LED Illumination Control Input
3 MOTION O Motion Interrupt Output (Active low,)
4 NCS I Chip Select (Active low)
5 SCLK I Serial Clock Input
6 GND I Ground
7 VDD I Supply Voltage
8 MOSI I Serial Data Input (Master Out/Slave In)
Figure 1. Package Outline Drawing (Top View) All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
Figure 2. Package Outline Drawing of this component to prevent damage and/or degradation which may be induced by ESD.
- Dimensions in millimeter / inches.
- Dimensional tolerance: ± 0.1mm.
- Coplanarity of leads: 0.1mm.
- Lead pitch tolerance: ± 0.15mm.
- Non-cumulative pitch tolerance: ± 0.15mm.
- Brackets () indicate reference dimension.
- Document Number: LED_SPC_8C_PKG_002
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
it to the sensor, base plate, and clip with the LED. The LED clip holds the LED in relation to the lens. The LED must be inserted into the clip and the LED‘s leads formed prior to loading on the PCB. The HLMP-EG3E red LED is recommended for illumination. Figure 3. Recommended PCB Mechanical Cutouts and Spacing
- Dimensions in millimeter/inches
- View from component side of PCB (or top view of mouse)
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
Figure 8. Schematic diagram for interface between ADNS-3050 and microcontroller with HLMP-EG3E Red LED on a corded solution NOTE: The ADNS-3050 Optical Mouse Sensor is not designed for use with blue LED navigation system.
Figure 9. Schematic diagram for interface between ADNS-3050 and microcontroller with HLMP-EG3E Red LED on a wireless solution NOTE: The ADNS-3050 Optical Mouse Sensor is not designed for use with blue LED navigation system.
Table 1. Absolute Maximum Ratings Lead Solder Temperature T SOLDER 260 C For 7 seconds, 1.6mm below seating plane. Table 2. Recommended Operating Condition may damage the lens should NOT be used. following Pixart’s recommendations. following Pixart’s recommendations. following Pixart recommendations. a mouse according to usage instructions above. All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
Table 3. AC Electrical Specifi cations Electrical characteristics over recommended operating conditions. Typical values at 25 °C, VDD = 2.8 V. All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
Table 4. DC Electrical Specifi cations MISO will be high-Z, while MOSI and SCLK will be ignored. the serial port in case of an error occurs. All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
Although ADNS-3050 does have an internal power up self reset circuitry, it is still highly recommended to follow the power up sequence below every time power is applied. i. Apply power ii. Drive NCS high, then low to reset the SPI port iii. Write 0x5a to register 0x3a iv. Wait for at least tSWW (or tWAKEUP when performing reset to wake up from Power Down) v. Write 0x20 to register 0x0d vi. Write 0x00 to register 0x41 vii. Confi gure the desired sensor settings accordingly Reset ADNS-3050 can be reset by following power up reset se- quence. A full reset will thus be executed and any regis- ter settings must be reloaded. The table below shows the state of the various pins during reset. State of Signal Pins after VDD is Valid Pin During Reset After Reset NCS Ignored Functional MISO Low Depends on NCS SCLK Ignored Depends on NCS MOSI Ignored Depends on NCS LED High Functional Power Down The ADNS-3050 can be set to power down mode by writ- ing 0xE7 to register 0x3B to disable the sensor. The SPI port should not be accessed during power down. Other ICs on the same SPI bus can be accessed, as long as the sensor‘s NCS pin is not asserted. The table below shows the state of various pins during power down. To exit Power Down, reset the sensor in order to wake it up. A full reset will thus be executed. Wait tWAKEUP before accessing the SPI port. Any register settings must then be reloaded. Pin During Power Down MOTION Undefi ned NCS Functional* MOSI Functional* SCLK Functional* MISO Undefi ned* *Notes:
- NCS pin must be held to 1(HIGH) if SPI Bus is shared with other devices, it can be in either state if the sensor is the only device t o connect to the host micro controller
- Reading on register should only be performed after existing fr om the power down mode. Any read operation during power down will not refl ect the actual data of the register. Mode Motion Detection Routine Motion Polling MOTION Interrupt Wired Yes Yes Wireless Not Supported Yes Motion Polling The micro-controller will poll the sensor for valid motion data by checking on the MOTION_ST bit of MOTION_ST register in a periodic cycle. If MOTION_ST bit is set, mo- tion data in DELTA_X and DELTA_Y registers are valid and ready to be read out by the micro-controller. Motion polling sequence: 1. Read MOTION_ST bit of MOTION_ST register. If MOTION_ST bit = 1, go to step 2. 2. Read DELTA_X and DELTA_Y registers consecutively 3. Optional: Read PROD_ID register to check for communication link or sensor functionality. This Product ID verifi cation MUST be done only after reading MOTION_ST, DELTA_X and DELTA_Y registers. Motion polling is recommended to be used in the corded application like USB gaming mouse that requires fast mo- tion response. This feature is not supported in wireless mode. MOTION Interrupt MOTION output signal (pin 3) can be used as interrupt input to the micro-controller of the mouse triggering the read command of motion data from the sensor whenever there is motion detected by the sensor. The MOTION signal is active low level-triggered output. The MOTION pin level will be driven low as long the MOTION_ST bit in register 0x02 is set and motion data in DELTA_X and DELTA_Y reg- isters ready to be read out by the micro-controller. Once all the motion data has been read, DELTA_X and DELTA_Y values become zero, MOTION bit is reset and the MOTION pin level is driven high again. MOTION Interrupt sequence: 1. When MOTION pin = Low, Read DELTA_X and DELTA_Y registers consecutively. 2. Optional: Read PROD_ID register to check for communication link or sensor functionality. This Product ID verifi cation MUST be done only after reading MOTION_ST, DELTA_X and DELTA_Y registers. MOTION interrupt should be implemented in wireless application to lengthen battery life. It is very useful as the main control of power management to wake up mi- cro-controller and radio in the wireless system from rest modes. PixArt Imaging Inc. E^ͲϯϬϱϬ ŶƚƌLJͲůĞǀĞů'ĂŵŝŶŐKƉƚŝĐĂůEĂǀŝŐĂƚŝŽŶ^ĞŶƐŽƌ All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imagin g Inc. E-mail: fae_service@pixart.com.tw
Low Power Management for Wireless Mode The ADNS-3050 has three power-saving modes: Rest 1, Rest 2 and Rest 3 when wireless mode is enabled. Each mode can be confi gured to a diff erent motion detection period, aff ecting response time to mouse motion (Re- sponse Time). The sensor automatically changes to the appropriate mode, depending on the time since the last reported motion (Downshift Time). The Response Time and Downshift Time for each mode are confi gurable via register addresses, 0x0e to 0x13. To enable wireless mode for low power management with optimized tracking performance, implement the follow- ing steps after sensor power up reset sequence. i. Enable power-saving modes by setting F_AWAKE bit = 0 in NAV_CTRL2 register. ii. Write 0x26 to register 0x35 iii. Write 0x30 to register 0x14 iv. Write 0x30 to register 0x18 v. Write 0x01 to register 0x43 vi. Write 0x01 to register 0x40 Lift Detection Cutoff Algorithm When the mouse is raised from the tracking surface which is also known as lifted condition, there is a specifi c z-height whereby the tracking of the sensor will cease. However the tracking cutoff height of the ADNS-3050 sensor varies with the diff erent tracking surfaces. In general to have a lower tracking cutoff height than the default settings, the algorithm illustrated in the form of a pseudo code is rec- ommended as Z-height monitoring routine in the micro- controller fi rmware. Example of pseudo code in C language: If (MOTION) { //Read sensor motion data and pixel statistic EA = 0; SHUTTER_HI = spi_read_sensor(ADNS3050_SHUT_HI_ADDR); SHUTTER_LO= spi_read_sensor(ADNS3050_SHUT_LO_ADDR); SQUAL = spi_read_sensor(ADNS3050_SQUAL_ADDR); PIXEL_ACCUM = spi_read_sensor(ADNS3050_PIX_ACCUM_ADDR); EA = 1; SHUTTER = (double)SHUTTER_HI*256+(double)SHUTTER_LO; AVERAGE_SHUTTER = 1024*(double)PIXEL_ACCUM/SHUTTER; // Lift detection monitoring if(AVERAGE_SHUTTER<440 && SQUAL<55) SYS_deltaX = 0; //Motion data suppression SYS_deltaY = 0; //Motion data suppression PixArt Imaging Inc. E^ͲϯϬϱϬ ŶƚƌLJͲůĞǀĞů'ĂŵŝŶŐKƉƚŝĐĂůEĂǀŝŐĂƚŝŽŶ^ĞŶƐŽƌ All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imagi ng Inc. E-mail: fae_service@pixart.com.tw
The ADNS-3050 registers are accessible via the serial port. The registers are used to read motion data and status as well as to set the device confi guration. Address Register Name Register Description Read/Write Default Value 0x00 PROD_ID Product ID R 0x09 0x01 REV_ID Revision ID R 0x00 0x02 MOTION_ST Motion Status R/W 0x00 0x03 DELTA_X Delta_X R 0x00 0x04 DELTA_Y Delta_Y R 0x00 0x05 SQUAL Squal Quality R 0x00 0x06 SHUT_HI Shutter Open Time (Upper 8-bit) R 0x01 0x07 SHUT_LO Shutter Open Time (Lower 8-bit) R 0x00 0x08 PIX_MAX Maximum Pixel Value R 0x00 0x09 PIX_ACCUM Average Pixel Value R/W 0x00 0x0a PIX_MIN Minimum Pixel Value R 0x00 0x0b PIX_GRAB Pixel Grabber R/W 0x00 0x0d MOUSE_CTRL Mouse Control R/W 0x01 0x0e RUN_DOWNSHIFT Downshift Time from Run to Rest 1 R/W 0x46 0x0f REST1_PERIOD Time Period of Rest 1 R/W 0x00 0x10 REST1_DOWNSHIFT Downshift Time from Rest 1 to Rest 2 R/W 0x4f 0x11 REST2_PERIOD Time Period of Rest 2 R/W 0x09 0x12 REST2_DOWNSHIFT Downshift Time from Rest 2 to Rest 3 R/W 0x2f 0x13 REST3_PERIOD Time Period of Rest 3 R/W 0 x31 0x1c SHUT_THR Shutter Threshold R/W 0x41 0x1d SQUAL_THRESHOLD Squal Threshold R/W 0x3d 0x22 NAV_CTRL2 LED Mode Confi guration R/W 0x00 0x25 MISC_SETTINGS DCR and wakeup settings Register R/W 0x61 0x33 RESOLUTION Full Resolution Register R/W 0x04 0x34 LED_PRECHARGE LED precharge time Register R/W 0xa0 0x3a RESET Reset W 0x00 0x3b SHUTDOWN Shutdown Register W 0x00 0x3f NOT_REV_ID Inverted Revision ID R 0xff 0x45 REST_MODE_CONFIG Rest Mode Confi guration R/W 0x00 PixArt Imaging Inc. E^ͲϯϬϱϬ ŶƚƌLJͲůĞǀĞů'ĂŵŝŶŐKƉƚŝĐĂůEĂǀŝŐĂƚŝŽŶ^ĞŶƐŽƌ All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imaging Inc. E-mail: fae_service@pixart.com.tw
PROD_ID Address: 0x00 Access: Read Reset Value: 0x09 Bit 76543210 Field PID7 PID6 PID5 PID4 PID3 PID2 PID1 PID0 Data Type: 8-Bit unsigned integer USAGE: This register contains a unique identification assigned to the ADNS-3050. The value in this register does not change; it can be used to verify that the serial communications link is functional. If using this register to verify serial communications link during rest modes, please read following registers in this sequence: 0x00, 0x02, 0x03, 0x04, 0x00 (regardless of register 0x02’s status). If both or either one of the read 0x00 value is correct, no additional action is required as the serial communication link is good. Only if both read 0x00 value attempts are wrong, perform a reset operation to the sensor to restore the serial communications link. Note: Highly recommended to use Motion pin function during rest modes for motion detection in wireless mode. REV_ID Address: 0x01 Access: Read Reset Value: 0x00 Bit 76543210 Field RID7 RID6 RID5 RID4 RID3 RID2 RID1 RID0 Data Type: 8-Bit unsigned integer USAGE: This register contains the IC revision. It is subject to change when new IC versions are released. MOTION_ST Address: 0x02 Access: Read/Write Reset Value: 0x00 Bit 7 6543210 Field MOTION_ST RSVD RSVD RSVD RSVD RSVD RSVD RSVD Data Type: Bit fi eld. USAGE: Register 0x02 allows the user to determine if motion has occurred since the last time it was read. If the MOTION_ST bit is set, then the user should read registers 0x03 (DELTA_X) and 0x04 (DELTA_Y) to get the accumulated motion data. Read this register before reading the DELTA_X and DELTA_Y registers. Writing any data into this register clears MOTION_ST bit, DELTA_X and DELTA_Y registers. However the written data byte will not be saved. Bit Field Name Description
7 MOTION_ST Motion detected since last report
0 = No motion (default) 1 = Motion occurred, data in DELTA_X and DELTA_Y registers ready to be read 6-0 RSVD Reserved PixArt Imaging Inc. E^ͲϯϬϱϬ ŶƚƌLJͲůĞǀĞů'ĂŵŝŶŐKƉƚŝĐĂůEĂǀŝŐĂƚŝŽŶ^ĞŶƐŽƌ All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imagi ng Inc. E-mail: fae_service@pixart.com.tw
DELTA_X Address: 0x03 Access: Read Reset Value: 0x00 Bit 76543210 Field X7 X6 X5 X4 X3 X2 X1 X0 Data Type: Eight bit 2’s complement number. USAGE: X-axis movement in counts since last report. Absolute value is determined by resolution. Reading this register clears the content of this register. 00 01 02 7E 7F +127+126+1 +2 FF FE81 80 0 -1 -2-127-128Motion Delta_X DELTA_Y Address: 0x04 Access: Read Reset Value: 0x00 Bit 76543210 Field Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 Data Type: Eight bit 2’s complement number. USAGE: Y-axis movement in counts since last report. Absolute value is determined by resolution. Reading this register clears the content of this register. 00 01 02 7E 7F +127+126+1 +2 FF FE81 80 0 -1 -2-127-128Motion Delta_Y PixArt Imaging Inc. E^ͲϯϬϱϬ ŶƚƌLJͲůĞǀĞů'ĂŵŝŶŐKƉƚŝĐĂůEĂǀŝŐĂƚŝŽŶ^ĞŶƐŽƌ All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imagi ng Inc. E-mail: fae_service@pixart.com.tw
PIX_MAX Address: 0x08 Access: Read Reset Value: 0x00 Bit 76543210 Field MP7 MP6 MP5 MP4 MP3 MP2 MP1 MP0 Data Type: Eight-bit number. USAGE: Store the highest pixel value in current frame. Minimum value = 0, maximum value = 254. The highest pixel value may vary with diff erent frame. PIX_ACCUM Address: 0x09 Access: Read/Write Reset Value: 0x00 Bit 76543210 Field AP7 AP6 AP5 AP4 AP3 AP2 AP1 AP0 Data Type: High 8-bits of an unsigned 17-bit integer. USAGE: This register stores the accumulated pixel value of the last image taken. This register can be used to fi nd the average pixel value, where Average Pixel = (register value AP[7:0])* 1.058 The maximum accumulated value is 122936 but only bits [16:9] are reported, therefore the maximum register value is 240. The minimum is 0. The PIX_ACCUM value may vary with diff erent frame. PIX_MIN Address: 0x0a Access: Read Reset Value: 0x00 Bit 76543210 Field MP7 MP6 MP5 MP4 MP3 MP2 MP1 MP0 Data Type: Eight-bit number. USAGE: Store the lowest pixel value in current frame. Minimum value = 0, maximum value = 254. The minimum pixel value may vary with diff erent frame. PixArt Imaging Inc. E^ͲϯϬϱϬ ŶƚƌLJͲůĞǀĞů'ĂŵŝŶŐKƉƚŝĐĂůEĂǀŝŐĂƚŝŽŶ^ĞŶƐŽƌ All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imagi ng Inc. E-mail: fae_service@pixart.com.tw
PIX_GRAB Address: 0x0b Access: Read/Write Reset Value: 0x00 Bit 76543210 Field PG_VALID PG6 PG5 PG4 PG3 PG2 PG1 PG0 Data Type: Eight bit word. USAGE: The pixel grabber captures 1 pixel per frame. Bit-7 (MSB) of this register will be set to indicate that the 7-bit pixel data (PG[6:0]) is valid for grabbing. In a 19x19 pixel array, it will take 361 read operations to grab all the pixels to form the complete image. Bit(s) Field Name Description
7 PG_VALID Pixel Grabber Valid
6:0 PG[6:0] Pixel Data NOTE: Any write operation into this register will reset the grabber to origin (pixel 0 position). The sensor should not be moved before the 361 read operations are completed to ensure original data is grabbed to produce good (uncorrupted) image. 19 x 19 Pixel Array Address Map – (Surface reference view from top of mouse) 342 323 304 285 266 247 228 209 190 1711 52 133 1149 5 7 6 5 7 3 8 190 First 343 324 305 286 267 248 229 210 1911 72 153 134 115 9 67 75 83 92 0 1 344 325 306 287 268 249 230 211 192 173 154 135 116 9 77 85 94 02 1 2 345 326 307 288 269 250 231 212 193 174 155 136 1179 8 7 9 6 0 4 1 22 3 346 327 308 289 270 251 232 213 194 175 156 137 1189 9 8 0 6 1 42 23 4 347 328 309 290 271 252 233 214 195 176 157 138 119 100 81 62 43 24 5 348 329 3102 9 1 272 253 234 2 15 196 177 158 139 120 101 82 63 44 25 6 349 330 311 292 273 254 235 216 197 1 78 159 140 1211 02 83 64 45 26 7 350 331 312 293 274 255 236 217 198 179 160 1411 22 103 84 65 46 27 8 351 332 313 294 275 256 237 218 199 180 1611 42 123 104 85 66 47 28 9 352 333 314 295 276 257 238 219 200 1811 62 143 124 105 86 67 48 29 10 353 334 315 296 277 258 239 220 2011 82 163 144 125 106 87 68 49 30 11 354 335 316 297 278 259 240 221 202 183 164 145 126 1 07 88 69 50 311 2 355 336 317 298 279 260 241 222 203 184 165 146 127 108 89 70 51 32 13 356 337 318 299 280 261 242 223 204 185 166 147 128 109 90 71 52 33 14 357 338 319 300 281 262 243 224 205 186 167 148 129 1109 1 72 53 34 15 358 339 320 301 282 263 244 225 206 187 168 149 130 111 92 73 54 35 16 359 340 321 302 283 264 245 226 207 188 169 150 1311 1 29 37 45 53 6 17 360 341 322 303 284 265 246 227 208 189 170 1511 32 11 39 47 55 63 7 18 Last +ve Y +ve X Top X-ray View of Mouse Pin 1 Left Button Right Button LED PixArt Imaging Inc. E^ͲϯϬϱϬ ŶƚƌLJͲůĞǀĞů'ĂŵŝŶŐKƉƚŝĐĂůEĂǀŝŐĂƚŝŽŶ^ĞŶƐŽƌ All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imagi ng Inc. E-mail: fae_service@pixart.com.tw
MOUSE_CTRL Address: 0x0d Access: Read/Write Reset Value: 0x01 Bit 7 6543210 Field RSVD RSVD 1 RES2 RES1 RES0 PD 0 Data Type: Bit fi eld. USAGE: Resolution and chip reset information can be accessed or to be edited by this register. Bit Field Name Description 5 1 Must set to 1 4:2 RES [2:0] Set the resolution of sensor 000: 1000 dpi (default) 001: 250 dpi 010: 500 dpi 011: 1250 dpi 100: 1500 dpi 101: 1750 dpi 110: 2000 dpi 0 0 Must set to 0 Note: As the sensor resolution increases, slight performance degradation on certain surfaces may be observed. For higher than 500 dpi setting, use 12-bit motion reporting to achieve the maximum speed. RUN_DOWNSHIFT Address: 0x0e Access: Read/Write Reset Value: 0x46 Bit 76543210 Field RUD7 RUD6 RUD5 RUD4 RUD3 RUD2 RUD1 RUD0 Data Type: Eight bit number. USAGE: This register sets the Run to Rest1 mode downshift time. The confi gurable value is range from 0x46 to 0xff . Min value for this register must be 0x46 or 70 in decimal. Units are 16 frames (about 430ms@2600fps) PixArt Imaging Inc. E^ͲϯϬϱϬ ŶƚƌLJͲůĞǀĞů'ĂŵŝŶŐKƉƚŝĐĂůEĂǀŝŐĂƚŝŽŶ^ĞŶƐŽƌ All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imaging Inc. E-mail: fae_service@pixart.com.tw
REST1_PERIOD Address: 0x0f Access: Read/Write Reset Value: 0x00 Bit 76543210 Field RIP7 RIP6 RIP5 RIP4 RIP3 RIP2 RIP1 RIP0 Data Type: Eight bit number. USAGE: This register sets the Rest1 time period in seconds. Min value for this register is 0. Max value is 0xFD. Rest 1 Period = (Register value (decimal) +1) x 0.007 NOTE: Writing into this register when the sensor itself is operating in this rest mode may result in unexpected behavior of the sensor. To avoid this from happening, below commands should be incorporated prior and after the write command into this register. i. Write 0x80 to register 0x22H prior to writing into this register ii. Writing the desired value to this REST1_PERIOD register iii. Write 0x00 to register 0x22H after to writing into this register REST1_DOWNSHIFT Address: 0x10 Access: Read/Write Reset Value: 0x4f Bit 76543210 Field R1D7 R1D6 R1D5 R1D4 R1D3 R1D2 R1D1 R1D0 Data Type: Eight bit number. USAGE: This register sets the Rest1 to Rest2 mode downshift time. Rest 1 Downshift Time = (Register value (decimal) x (Rest1 period) x 16. Min value for this register is 0. REST2_PERIOD Address: 0x11 Access: Read/Write Reset Value: 0x09 Bit 76543210 Field R2P7 R2P6 R2P5 R2P4 R2P3 R2P2 R2P1 R2P0 Data Type: Eight bit number. USAGE: This register sets the Rest2 period in seconds. Min value for this register is 0. Max value is 0xFD. Rest 2 Period = (Register value (decimal) +1) x 0.007 NOTE: Writing into this register when the sensor itself is operating in this rest mode may result in unexpected behavior of the sensor. To avoid this from happening, below commands should be incorporated prior and after the write command into this register. i. Write 0x80 to register 0x22H prior to writing into this register ii. Writing the desired value to this REST2_PERIOD register iii. Write 0x00 to register 0x22H after to writing into this register PixArt Imaging Inc. E^ͲϯϬϱϬ ŶƚƌLJͲůĞǀĞů'ĂŵŝŶŐKƉƚŝĐĂůEĂǀŝŐĂƚŝŽŶ^ĞŶƐŽƌ All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imagi ng Inc. E-mail: fae_service@pixart.com.tw
REST2_DOWNSHIFT Address: 0x12 Access: Read/Write Reset Value: 0x2f Bit 76543210 Field R2D7 R2D6 R2D5 R2D4 R2D3 R2D2 R2D1 R2D0 Data Type: Eight bit number USAGE: This register sets the Rest1 to Rest2 mode downshift time. Min value for this register is 0. Rest 2 Downshift Time = (Register value (decimal) x (Rest2 period) x 128 REST3_PERIOD Address: 0x13 Access: Read/Write Reset Value: 0x31 Bit 76543210 Field R3P7 R3P6 R3P5 R3P4 R3P3 R3P2 R3P1 R3P0 Data Type: Eight bit number. USAGE: This register sets the Rest3 period in seconds. Min value for this register is 0. Max value is 0xFD. Rest 3 Period = (Register Value (decimal) +1) x 0.007 NOTE: Writing into this register when the sensor itself is operating in this rest mode may result in unexpected behavior of the sensor. To avoid this from happening, below commands should be incorporated prior and after the write command into this register. i. Write 0x80 to register 0x22H prior to writing into this register ii. Writing the desired value to this REST3_PERIOD register iii. Write 0x00 to register 0x22H after to writing into this register PREFLASH_RUN Address: 0x14 Access: Read/Write Reset Value: 0x80 Bit 76543210 Field PREFLASH_ CTRL PREFLASH_T PREFLASH_T PREFLASH_T PREFLASH_T PREFLASH_T PREFLASH_T PREFLASH_T Data Type: Bit field USAGE: This register usage is to turn on LED to saturate sensor array before electronic shutter is open. Bit Field Name Description 7 PREFLASH_CTRL 0: Prefl ash control during idle state. 1: Prefl ash control during processing state. 6:0 PREFLASH_T PREFLASH_T PREFLASH_CTRL=1: Prefl ash time = Processing time - PREFLASH_T*32*clk_period + Idle time PREFLASH_CTRL=0: Prefl ash time = PREFLASH_T*64*clk_period PixArt Imaging Inc. E^ͲϯϬϱϬ ŶƚƌLJͲůĞǀĞů'ĂŵŝŶŐKƉƚŝĐĂůEĂǀŝŐĂƚŝŽŶ^ĞŶƐŽƌ All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imagi ng Inc. E-mail: fae_service@pixart.com.tw
PREFLASH_RUN_DARK Address: 0x18 Access: Read/Write Reset Value: 0x80 Bit 7 6543210 Field PREFLASH_ CTRL_D PREFLASH_ T_D PREFLASH_ T_D PREFLASH_ T_D PREFLASH_ T_D PREFLASH_ T_D PREFLASH_ T_D PREFLASH_ T_D Data Type: Bit field USAGE: This register usage is to turn on LED to saturate sensor array before electronic shutter is open on dark surface. Bit Field Name Description 7 PREFLASH_CTRL_D 0: Prefl ash control during idle state. 1: Prefl ash control during processing state. 6:0 PREFLASH_T_D PREFLASH_T_D PREFLASH_CTRL=1: Prefl ash time = Processing time - PREFLASH_T_D*32*clk_period + Idle time PREFLASH_CTRL=0: Prefl ash time = PREFLASH_T_D*64*clk_period [if PREFLASH_T_D > Processing time/32 (~110 counts), Prefl ash time = Idle time] MOTION_EXT Address: 0x1b Access: Read Reset Value: 0x00 Bit 7 6 5 4 3 2 1 0 Field MOT_EXT PG_VALID PG_FIRST DEL_Y_ OVERFLOW DEL_X_ OVER FLOW RSVD RSVD RSVD Data Type: Bit field USAGE: This register is store the status of current motion that occurred. Bit Field Name Description
7 MOTION_EXT 0: No Motion default
1: Motion occurred
6 PG_VALID 1: Pixel Grabber Valid
5 PG_FIRST 1: Pixel Grabber First
4 Delta Y overfl ow 0: No Overfl ow
1: Delta Y overfl ow
3 Delta X overfl ow 0: No Overfl ow
1: Delta Y overfl ow 2:0 Reserved Reserved PixArt Imaging Inc. E^ͲϯϬϱϬ ŶƚƌLJͲůĞǀĞů'ĂŵŝŶŐKƉƚŝĐĂůEĂǀŝŐĂƚŝŽŶ^ĞŶƐŽƌ All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imagi ng Inc. E-mail: fae_service@pixart.com.tw
SHUT_THR Address: 0x1c Access: Read/Write Reset Value: 0x41 Bit 7 6543210 Field SHT_THR SHT_THR SHT_THR SHT_THR SHT_THR SHT_THR SHT_THR SHT_THR Data Type: Bit field USAGE: This register is used to confi gure the rest mode run downshift frame operation of the sensor with the shutter time. Bit Field Name Description 7:0 SHUT_THRESH Shutter Threshold SQUAL_THRESHOLD Address: 0x1d Access: Read/Write Reset Value: 0x3d Bit 7 6543210 Field ST ST ST ST ST PT PT PT Data Type: Bit field USAGE: This register is used to confi gure the surface quality limit of the sensor. Bit Field Name Description 7:3 ST Minimum number of features to navigate 2:0 PT Minimum size of feature to be usable. NAV_CTRL2 Address: 0x22 Access: Read/Write Reset Value: 0x00 Bit 7 6543210 Field F_AWAKE 0 0 RSVD RSVD RSVD RSVD RSVD Data Type: Bit field USAGE: This register is used to confi gure the rest mode operation of the sensor. Bit Field Name Description
7 F_AWAKE Enable/Disable rest mode
0: Enabled rest mode 1: Disabled rest mode. (Default) 6:5 0 Must be set to 0 PixArt Imaging Inc. E^ͲϯϬϱϬ ŶƚƌLJͲůĞǀĞů'ĂŵŝŶŐKƉƚŝĐĂůEĂǀŝŐĂƚŝŽŶ^ĞŶƐŽƌ All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imagi ng Inc. E-mail: fae_service@pixart.com.tw
MISC_SETTINGS Address: 0x25 Access: Read/Write Reset Value: 0x61 Bit 7 6543210 Field MSR RSVD RSVD RSVD MSR DS DS DS Data Type: Bit field USAGE: This register is used to confi gure the DCR and wakeup settings register. Bit Field Name Description
7 Reserved Reserved
6:4 MSR Minimum number of feature to wakeup from rest unit in multiple of min_sq_run
3 Reserved Reserved
2:0 DS Number of bits to shift off dcr (decorrelation if correlation threshold < auto correlation) RESOLUTION Address: 0x33 Access: Read/Write Reset Value: 0x04 Bit 7 6543210 Field RSVD RSVD RSVD RES_EN DPI DPI DPI DPI Data Type: Bit field USAGE: This register is used to confi gure the resolution of the sensor. Bit Field Name Description 7:5 Reserved Reserved
4 RES_EN 0: Disable resolution setting
1: Enable resolution setting 3:0 DPI 0x00: 4000dpi 0x01: 250dpi 0x02: 500dpi 0x03: 750dpi 0x04: 1000dpi 0x05: 1250dpi 0x06: 1500dpi 0x07: 1750dpi 0x08: 2000dpi PixArt Imaging Inc. E^ͲϯϬϱϬ ŶƚƌLJͲůĞǀĞů'ĂŵŝŶŐKƉƚŝĐĂůEĂǀŝŐĂƚŝŽŶ^ĞŶƐŽƌ All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imagi ng Inc. E-mail: fae_service@pixart.com.tw
LED_PRECHARGE Address: 0x34 Access: Read/Write Reset Value: 0xa0 Bit 7 6543210 Field LED_PRE LED_PRE LED_PRE LED_PRE LED_PRE LED_PRE LED_PRE LED_PRE Data Type: Bit field USAGE: This register is used to confi gure the LED precharge of the sensor. The default pre fl ash is about 190uS for nominal clock of 26MHz~28Mhz. Bit Field Name Description 7:0 LED_PRECHARGE precharge time (in clock counts) = LED_PRECHARGE" *32 + 30 FRAME_IDLE Address: 0x35 Access: Read/Write Reset Value: 0x00 Bit 7 6543210 Field FRAME_IDLE FRAME_IDLE FRAME_IDLE FRAME_IDLE FRAME_IDLE FRAME_IDLE FRAME_IDLE FRAME_IDLE Data Type: Eight Bit Unsigned Integer USAGE: This register is used to control the frame rate. The value in this register is used to add frame idling time, which eff ectively reduces the frame rate. frame_idle_time (in clock counts) = (register value) * 32 Frame period (in clock counts) = shutter_time (reg 0x06 and reg 0x07) + (3400 clocks) + frame_idle_time When this register is set to 0x00, the maximum frame rate is about 6666 fps @26MHz internal clock frequency Bit Field Name Description 7:0 FRAME_IDLE Frame Idling time(in clock counts)=FRAME_IDLE*32 POWER_UP_RESET Address: 0x3a Access: Write Reset Value: 0x00 Bit 7 6543210 Field RESET RESET RESET RESET RESET RESET RESET RESET Data Type: Bit field USAGE: This register is used to confi gure the resolution of the sensor. Bit Field Name Description 7:0 POWER_UP_RESET Power up reset. 0x5a/0x5b for full reset. 0x96/0x97 for partial reset. Address: 0x3b Access: Write Reset Value: 0x00 Bit 7 6543210 Field SD SD SD SD SD SD SD SD Data Type: Bit field USAGE: This register is used to shut down the sensor PixArt Imaging Inc. E^ͲϯϬϱϬ ŶƚƌLJͲůĞǀĞů'ĂŵŝŶŐKƉƚŝĐĂůEĂǀŝŐĂƚŝŽŶ^ĞŶƐŽƌ All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed o any other forms without permission. PixArt Imaging Inc. E-mail: fae_service@pixart.com.tw Bit Field Name Description 7:0 SHUTDOWN Chip Shutdown Write 0xe7 to power down sensor.
LED_CTRL Address: 0x40 Access: Read/Write Reset Value: 0x00 Bit 7 6 5 4 3 2 1 0 Field RSVD RSVD RSVD RSVD LED_CONT_OFF LED_CONT_OFF LED_SEL LED_SEL Data Type: Eight bit unsigned integer. USAGE: This register is used to control the LED operating mode and current to optimization the power consumption. Bit Field Name Description 7:4 Reserved Reserved
3 LED_CONT_OFF 0: Normal operation (Default)
1: LED continuous off
2 LED_CONT_ON 0: Normal operation (Default)
1: LED continuous on 1:0 LED_SEL 0x00: LED current set to 20mA 0x01: LED current set to 15mA 0x02: LED current set to 36mA 0x03: LED current set to 30mA Note: if LED operating in Automatic current switching mode (AUTO_LED_CONTROL [0] at address 0x43 is cleared, LED current selling (LED_CONTROL) [1:0]) will be ignored. Only when AUTO current switching is disabled through setting AUTO_LED_CONTROL [0], the LED driver current is determine by LED_CONTROL [1:0]. MOTION_CTRL Address: 0x41 Access: Read/Write Reset Value: 0x40 Bit 7 6 5 4 3 2 1 0 Field MOT_ACT_HI MOT_SENS RSVD RSVD RSVD RSVD RSVD RSVD Data Type: Eight bit unsigned integer. USAGE: This register is used to confi gure sensor motion control. Bit Field Name Description
7 MOTION_ACTIVE_HI 0: Motion active low (default)
1: Motion active high
6 MOTION_SENSITIVITY 0: Motion pin is level sensitive
1: Motion pin is edge sensitive(default) 5:0 Reserved Reserved PixArt Imaging Inc. E^ͲϯϬϱϬ ŶƚƌLJͲůĞǀĞů'ĂŵŝŶŐKƉƚŝĐĂůEĂǀŝŐĂƚŝŽŶ^ĞŶƐŽƌ All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imaging I nc. E-mail: fae_service@pixart.com.tw Bit 7 6543210 Field RRID7 RRID6 RRID5 RRID4 RRID3 RRID2 RRID1 RRID0 Data Type: Eight bit unsigned integer USAGE: This register contains the inverse of the revision ID which is located at register 0x01. INV_REV_ID Address: 0x3f Access: Read Reset Value: 0xff
AUTO_LED_CONTROL Address: 0x43 Access: Read/Write Reset Value: 0x08 Bit 7 6 5 4 3 2 1 0 Field RSVD RSVD RSVD RSVD LED_HI LED_HI AUTO_LED_DS AUTO_LED_DS Data Type: Bit field USAGE: This is a “smart” LED drive feature whereby the LED current is self adjusting between the low and high current settings (bit 3:1) according to the brightness of the tracking surface if this feature is enable (via clearing bit 0). The brighter the surface, the lower the LED current will be. If A_LED_DIS (bit 0) is set, this means AUTO_LED mode is disable, then the LED current determine by LSEL[1:0] setting in LED_CTRL register (0x40). Bit Field Name Description 7:4 Reserved Reserved 3:2 LED_HI 0x0: Auto LED high current is 15mA 0x1: Auto LED high current is 20mA 0x2: Auto LED high current is 30mA 0x3: Auto LED high current is 36mA
1 LED_LO 0x0: Auto LED low current is 15mA
0x1: Auto LED low current is 20mA
0 AUTO_LED_DIS 0x0: Enable Auto LED current switching
0x1: Disable Auto LED current switching NOTE: When AUTO LED is enable, the AUTO_LED current will be switched between low and high current setting determined by LED_LO and LED_HI [1:0]. If LED_LO current setting is higher than the LED_HI, the current will be based on the higher setting. For example if the LED_LO is 20mA and LED_HI is 15mA, the AUTOLED current will be fi xed at 20mA. REST_MODE_CONFIG Address: 0x45 Access: Read/Write Reset Value: 0x00 Bit 7 6543210 Field RM1 RM0 RSVD RSVD RSVD RSVD RSVD RSVD Data Type: Eight bit unsigned integer. USAGE: This register is used to set the operating mode of the ADNS-3050. Bit(s) Field Name Description 7:6 RM[1:0] Sensor Operating Mode 0x00: Normal (default) 0x01: Rest 1 0x02: Rest 2 0x03: Rest 3 5:0 RSVD Reserved Read operation to REST_MODE_CONFIG indicates which mode the sensor is in. Write operation into this register will force the sensor into rest modes (Rest 1, 2 or 3). Write the value 0x40 into 0x45 register to force sensor into Rest 1, 0x80 to Rest 2 or 0xC0 to Rest 3. To get out of any forced rest mode, write 0x00 into this register to set back to normal mode. PixArt Imaging Inc. E^ͲϯϬϱϬ ŶƚƌLJͲůĞǀĞů'ĂŵŝŶŐKƉƚŝĐĂůEĂǀŝŐĂƚŝŽŶ^ĞŶƐŽƌ All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imagi ng Inc. E-mail: fae_service@pixart.com.tw