ADNS-2051 Avago Technologies US Inc., ADNS-2051 Datasheet - Page 28

no-image

ADNS-2051

Manufacturer Part Number
ADNS-2051
Description
Optical Mouse Sensor,DIP
Manufacturer
Avago Technologies US Inc.
Datasheet

Specifications of ADNS-2051

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
Q2072083C

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ADNS-2051
Manufacturer:
原装AVAGO
Quantity:
20 000
28
delay700us:
waitd0:
Example calling syntax
;
;
;
;
;
;
;
;
WriteSPI
Set register 0a to 40h, LED blink mode
ReadSPI
Read register 02h, the motion register
mov A, SCLK
or [port1_wrote], A
mov A, [port1_wrote]
iowr Port1_Data
nop
nop
nop
nop
nop
nop
nop
dec [bit_counter]
jnz nextw
ret
mov A, ffh
mov [bit_counter], A
nop
nop
nop
nop
nop
nop
dec [bit_counter]
jnz waitd0
ret
mov A, 0ah
mov [spi_addr], A
mov A, 40h
mov [spi_data], A
call WriteSPI
mov A, 02h
mov [spi_addr], A
call ReadSPI
; raise SCLK
;
;
;
;
;
;
; move address into spi_addr
;
;
;

;
;
;

ADNS-2051 reads the data bit
wait for cable to settle
wait for 710us
reuse bit_counter
2us
move address into A
move data into A
move data into spi_data
call WriteSPI routine, on return,
VSLBDGGU DQG VSLBGDWD ZLOO EH XQGH¿QHG
move address into A
move address into spi_addr
call ReadSPI, on return, data is in spi_data,
VSLBDGGU LV XQGH¿QHG

Related parts for ADNS-2051