16
Hardware connection
Module pin out #15 (SPI_MCLK) must be supplied with 24 MHz clock. Pin out for #4(SPI_Data), #5(SPI_CLK) and #16(SPI_
Csn) are SPI output signal for imaging data.
Skip mode
1st, 3rd, 5th….pixels information are used for image formation; the information of 2nd, 4th, 6th….pixel are not used for
image formation.
Average Mode
1st and 2nd pixels are averaged as 1-pixel information. Similarly, 3rd and 4th pixels are averaged as 1-pixel information.
Hence a total of 60 × 60 pixels information are averaged to become 30 × 30 pixels information.
Crop Mode
60 × 60 pixels are cropped with the center 30 × 30 pixels being used for image formation.
1 2 3 4 5
1 3 5
60 pixels
30 pixels
60 pixels
60 pixels
1 2 3 4 5 6
A B C
30 pixels
30 pixels
60 pixels
60 pixels
ACB
60 pixels
30 pixels
30 pixels
60 pixels
17
AE/AG Controls
Bank Register Name Addr Bits
Default
Value R/W Description
0 R_AELedO _UB 0x46 7:0 0x60 R/W Decrease exposure time,
if AE_LED_O _YAvg (Bank 0, Reg 0x58) > R_AELedO _UB
0 R_AELedO _LB 0x47 7:0 0x20 R/W Increase exposure time,
if AE_LED_O _YAvg (Bank 0, Reg 0x58) < R_AELedO _LB
0 R_AE_Exposure_
UB
0x48 7:0 0x20 R/W Low byte of auto exposure time up bound,
exposure time (µs) = R_AE_Exposure_UB/4
0 R_AE_Exposure_
UB
0x49 7:0 0x03 R/W High byte of auto exposure time up bound,
exposure time (µs) = R_AE_Exposure_UB/4
0 R_AE_Exposure_LB 0x4A 7:0 0xC8 R/W Low byte of auto exposure time low bound,
R_AE_Exposure_LB = R_AE_Exposure_UB/2
0 R_AE_Exposure_LB 0x4B 7:0 0x00 R/W High byte of auto exposure time low bound,
R_AE_Exposure_LB = R_AE_Exposure_UB / 2
0 R_AE_Gain_UB 0x4C 7:0 0x14 R/W Auto gain up bound, gain = 1 + R_AE_Gain_UB/16
0 R_AE_Gain_LB 0x4D 7:0 0x00 R/W Auto gain low bound, gain = 1 + R_AE_Gain_LB/16
0 R_AE_Gain_Step 0x4E 3:0 0x0A R/W Gain stage adjust step,
new gain stage = current gain stage – R_AE_Gain_Step
0 R_SleepAEAG_Au-
toDisable
0x4E 4 0x01 R/W In sleep mode, if gain stage is at UB, disable wakeup AE mode
Wake up AE mode : in sleep mode, AE/AG will be set to higher
value
0 R_AE_Gain_De-
fault
0x4F 6:0 0x14 R/W Gain stage default value when AE is turned on
0 R_Exp_Sel 0x50 2:0 0x00 R/W At R_Manual_Exposure_Default = 1,
exp = R_AE_Esposure_UP / 2
R_Exp_Sel
0 R_Manual_GG 0x51 0 0x01 R/W 1: Gain manual mode, ggh gain = R_ggh, global gain = R_
global
0 : Gain auto mode
0 R_Manual_Expo-
sure
0x51 1 0x00 R/W 1: Exposure manual mode, exposure time = R_AE_Exposure_
UB
0: Auto exposure mode
0 R_Manual_Expo-
sure_Default
0x51 2 0x01 R/W Exp manual mode, exp = R_AE_Exposure_UP / 2
R_Exp_Sel
0 R_AE_EnH 0x51 4 0x00 R/W 1: AE Enable
0: AE Disable
0 AG_stage_GG 0x54 7:0 - R Gain stage, gain for analog = 2
AG_stage_GG[7:4]
0 Reg_ExposureNum 0x55 7:0 - R Low byte of current exposure time,
exposure time (µs) = Reg_ExposureNum/4
0 Reg_ExposureNum 0x56 7:0 - R High byte of current exposure time,
exposure time (µs) = Reg_ExposureNum/4
0 Reg_ggh 0x57 1:0 - R ggh gain
0: 1x
1: 2x
3: 4x
0 Reg_global 0x57 7:4 - R Global gain
0: 1x
8: 2x
Total gain = ggh × global = 2^AG_stage_GG[7:4]
0 AE_LED_O _YAvg 0x58 7:0 - R O frame average brightness
0 AE_Dec 0x59 0 - R AE decrease identi er
0 AE_Inc 0x59 1 - R AE increase identi er
0 AE_Normal_Factor 0x5A 2:0 - R AE normalize factor,
DSP data = sensor image data × 2
AE_Normal_Factor
1 R_global 0x42 7:4 0x08 R/W PGA global gain in gain manual mode
1 R_ggh 0x44 7:6 0x00 R/W PGA ggh gain in gain manual mode
18
GPIO Setting
Bank Register Name Addr Bits
Default
Value R/W Description
0 Im_GPIO0 0x80 0 - R Bit[0]: GPIO0 status at input mode
Bit[1]: 0: Set GPIO0 as output
Bit[2]: 0: Set GPIO0 as input
Bit[3]: GPIO0 default value at output mode
To set GPIOX as input, X = 0~3 :
Set: Tm_GPIOX_OEL = 1,
Tm_GPIOX_IEB = 0
At this time, Im_GPIOX = GPIO status
To set GPIOX as Output, X = 0~3 :
Set: Tm_GPIOX_OEL = 0,
Tm_GPIOX_IEB = 1
At this time, Tm_GPIOX = R_GPIOX
0 Tm_GPIO0_OEL 0x80 1 0x01 R/W
0 Im_GPIO0_IEL 0x80 2 0x01 R/W
0 R_GPIO0 0x80 3 0x01 W
0 Im_GPIO1 0x80 4 - R Bit[4]: GPIO1 status at input mode
Bit[5]: 0: Set GPIO1 as output
Bit[6]: 0: Set GPIO1 as input
Bit[7]: GPIO1 default value at output mode
0 Tm_GPIO1_OEL 0x80 5 0x01 R/W
0 Im_GPIO1_IEL 0x80 6 0x01 R/W
0 R_GPIO1 0x80 7 0x01 W
0 Im_GPIO2 0x81 0 - R Bit[0]: GPIO2 status at input mode
Bit[1]: 0: Set GPIO2 as output
Bit[2]: 0: Set GPIO2 as input
Bit[3]: GPIO2 default value at output mode
0 Tm_GPIO2_OEL 0x81 1 0x01 R/W
0 Im_GPIO2_IEL 0x81 2 0x01 R/W
0 R_GPIO2 0x81 3 0x01 W
0 Im_GPIO3 0x81 4 - R Bit[4]: GPIO3 status at input mode
Bit[5]: 0: Set GPIO3 as output
Bit[6]: 0: Set GPIO3 as input
Bit[7]: GPIO3 default value at output mode
0 Tm_GPIO3_OEL 0x81 5 0x01 R/W
0 Im_GPIO3_IEL 0x81 6 0x01 R/W
0 R_GPIO3 0x81 7 0x01 W
0 Im_INT 0x82 0 - R Bit[0]: INT pin status
Bit[1]: 0: Set INT as output
Bit[2]: 0: Set INT as input
Bit[3]: INT default value at output mode
To set INT as Input :
Set: Tm_INT_OEL = 1,
Tm_INT_IEB = 0
At this time, Im_INT = INT_N Status
To set INT as Output :
Set: Tm_INT_OEL = 0,
Tm_INT_IEB = 1
At this time, Tm_INT = INT_N
0 Tm_INT_OEL 0x82 1 0x00 R/W
0 Im_INT_IEL 0x82 2 0x01 R/W
0 Tm_INT 0x82 3 0x01 W

APDS-9500

Mfr. #:
Manufacturer:
Broadcom / Avago
Description:
Proximity Sensors Imaging Gesture and Proximity Sensor
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet