HLMP-ED80-XX000 AVAGO [AVAGO TECHNOLOGIES LIMITED], HLMP-ED80-XX000 Datasheet - Page 28

no-image

HLMP-ED80-XX000

Manufacturer Part Number
HLMP-ED80-XX000
Description
Optical Mouse Sensor
Manufacturer
AVAGO [AVAGO TECHNOLOGIES LIMITED]
Datasheet
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
; ADNS-2051 reads the data bit
; wait for cable to settle
; wait for 710us
; reuse bit_counter
; 2us
; move address into A
; move address into spi_addr
; move data into A
; move data into spi_data
; call WriteSPI routine, on return,
; spi_addr and spi_data will be undefined
; move address into A
; move address into spi_addr
; call ReadSPI, on return, data is in spi_data,
; spi_addr is undefined

Related parts for HLMP-ED80-XX000