參數(shù)資料
型號(hào): ADNS-2051
英文描述: Optical Mouse Sensor
中文描述: 光學(xué)鼠標(biāo)傳感器
文件頁(yè)數(shù): 24/40頁(yè)
文件大?。?/td> 454K
代理商: ADNS-2051
24
iowr Port1_Data
; If the power to the sensor needs more time
; to stabilize, insert a delay here
call delay700us
call delay700us
call delay700us
call delay700us
call delay700us
call delay700us
; wait about 4 milliseconds for the sensor
; oscillator to stabilize
mov A, (SCLK|SDIO|PD
or [port1_wrote], A
mov A, [port1_wrote]
iowr Port1_Data
; set the SCLK, SDIO and PD lines high
; this shuts down the oscillator and
; resets the SPI port
call delay700us
; wait for the PD to reset the part
mov A, ~PD
and [port1_wrote], A
mov A, [port1_wrote]
iowr Port1_Data
; set the PD line low to put the sensor
; back into normal operation
call delay700us
call delay700us
call delay700us
call delay700us
call delay700us
call delay700us
; wait about 4 milliseconds for the sensor
; oscillator to stabilize
; sensor SPI port now in sync
;
;
;
;
;
;
;
;
;
;
;
;
ReadSPI routine
Includes delays for long traces or cables between the uP and ADNS-2051
Has correct timing of SCLK and SDIO
On entry:
spi_data = undefined
spi_addr = Address of SPI register in the ADNS-2051
On exit
spi_data = register contents from ADNS-2051
spi_addr = undefined
ReadSPI:
mov A, 64
mov [bit_counter], A
nop
nop
nop
nop
nop
nop
dec [bit_counter]
jnz Waitrspi
; wait 200us (optional)
; (about 3us per loop)
Waitrspi:
; read address
mov A,~80h
and [spi_addr], A
call writeaddr
; lower MSB of address (read)
; wait 200us (about 3us per loop)(100us minimum required)
; wait for data to be ready
mov A,64
mov [bit_counter], A
nop
nop
nop
nop
nop
nop
dec [bit_counter]
jnz Waitrspi2
Waitrspi2:
相關(guān)PDF資料
PDF描述
ADP1109A Micropower Low Cost Fixed 3.3 V, 5 V, 12 V and Adjustable DC-to-DC Converter(微功耗,低成本固定或可調(diào)輸出DC-DC轉(zhuǎn)換器)
ADP1109 Micropower DC-DC Converter(可調(diào)/固定輸出,微功耗DC-DC轉(zhuǎn)換器)
ADP1147-3.3 High Efficiency Step-Down Switching Regulator Controllers(高效率步降開關(guān)穩(wěn)壓控制器)
ADP1147-5 High Efficiency Step-Down Switching Regulator Controllers(高效率步降開關(guān)穩(wěn)壓控制器)
ADP1148-5 500kHz and 1MHz High Efficiency 1.5A Switching Regulators; Package: SO; No of Pins: 8; Temperature Range: -40?°C to 85?°C
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
ADNS-2080 功能描述:光學(xué)導(dǎo)航傳感器 LED Sensor RoHS:否 制造商:Avago Technologies 工作電源電壓: 封裝 / 箱體: 最大工作溫度: 最小工作溫度:
ADNS-2120 功能描述:光學(xué)導(dǎo)航傳感器 Round Mouse Lens RoHS:否 制造商:Avago Technologies 工作電源電壓: 封裝 / 箱體: 最大工作溫度: 最小工作溫度:
ADNS-2120-001 功能描述:光學(xué)導(dǎo)航傳感器 Trim Mouse Lens RoHS:否 制造商:Avago Technologies 工作電源電壓: 封裝 / 箱體: 最大工作溫度: 最小工作溫度:
ADNS-2220 功能描述:光學(xué)導(dǎo)航傳感器 Black Optical Mouse Clip RoHS:否 制造商:Avago Technologies 工作電源電壓: 封裝 / 箱體: 最大工作溫度: 最小工作溫度:
ADNS-2220-001 功能描述:光學(xué)導(dǎo)航傳感器 Clear Optical Mouse Clip RoHS:否 制造商:Avago Technologies 工作電源電壓: 封裝 / 箱體: 最大工作溫度: 最小工作溫度: