SNVS598B August 2010 – March 2018 LM3535
PRODUCTION DATA.
As an example, assume that the APDS-9005 is used as the ambient light sensing photo diode with its output connected to the ALS input. The ALS Resistor Select Register (Address 0x51) is loaded with 0x40 which configures the ALS input for a 2.32-kΩ internal pulldown resistor (see Table 2). This gives the output of the APDS-9005 a typical voltage swing of 0 to 875mV with a 0 to 1k LUX change in ambient light (0.875mV/Lux). Next, the Configuration Register (Address 0x20) is programmed with 0xDC, the ALS Control Register (Address 0x50) programmed to 0x40 and the Control Register is programmed to 0x3F . This configures the device ALS interface for:
Next, the Control Register (Address 0x10) is programmed with 0x3F which enables the 6 LEDs via the I2C-compatible interface.
Now assume that the APDS-9005 ambient light sensor detects a 100 LUX ambient light at its input. This forces the ambient light sensor output (and the ALS input) to 87.5 mV corresponding to Zone 0. Since Zone 0 points to the brightness code programmed in Zone Target Register 0 (loaded with code 0x19), the LED current becomes:
Next assume that the ambient light changes to 500 LUX (corresponding to an ALS voltage of 437.5 mV). This moves the ambient light into Zone 2 which corresponds to Zone Target Register 2 (loaded with code 0x4C) the LED current then becomes: