APDS-9801 Avago Technologies US Inc., APDS-9801 Datasheet - Page 13

INTEGRATED DIGITAL PS AND ALS

APDS-9801

Manufacturer Part Number
APDS-9801
Description
INTEGRATED DIGITAL PS AND ALS
Manufacturer
Avago Technologies US Inc.
Type
Analog Ambient Light Sensor and Digital Proximity Sensorr
Datasheet

Specifications of APDS-9801

Peak Wavelength
940 nm
Maximum Light Current
83 uA
Maximum Dark Current
300 nA
Maximum Rise Time
1000 ns
Maximum Fall Time
300 ns
Mounting Style
SMD/SMT
Product
Integrated Ambient Light and Proximity Sensor
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
APDS-9801
Manufacturer:
LEGERITY
Quantity:
1 043
Part Number:
APDS-9801
Manufacturer:
Avago Technologies
Quantity:
1 781
Part Number:
APDS-9801-021
Manufacturer:
AVAGO
Quantity:
20 000
PS – Interrupts
The interrupt feature of the device is simplifies and improves system efficiency by eliminating the need to poll the sensor
for proximity distance value. The feature may enable at Interrupt Register.
An interrupt will be happen when the values of ADC conversion value change from lower to upper or upper to lower over
the interrupt threshold value. Negative Threshold interrupt status show when ADC output values fall below interrupt
threshold from upper, and Positive Threshold interrupt status are vice versa.
End of ADC Conversion interrupt also can be use. An interrupt will be generated when completion of each conversion
of ADC.
Write ‘1’ to bit 6 of the command register to clear the threshold interrupt or write ‘1’ to bit 5 of the command register to
clear the End_of_Conversion interrupt.
Set up Threshold Interrupt
Enable Interrupt to external interrupt pin
Clear the pending Interrupt
13
//Example threshold value = 0x1CA
//Write the interrupt threshold low byte
DeviceAddr = 0x55
Command = 0x83
Value = 0xCA
WriteByte_i2c(DeviceAddr, Command, Value)
//Write the interrupt threshold high byte
DeviceAddr = 0x55
Command = 0x84
Value = 0x01
WriteByte_i2c(DeviceAddr, Command, Value)
//Enable Threshold interrupt
DeviceAddr = 0x55
Command = 0x87
Value = 0x02
WriteByte_i2c(DeviceAddr, Command, Value)
//Enable End_of_Conversion interrupt
DeviceAddr = 0x55
Command = 0x87
Value = 0x01
WriteByte_i2c(DeviceAddr, Command, Value)
//Clear pending Threshold interrupt
DeviceAddr = 0x55
Command = 0x40
Write_i2c(DeviceAddr, Command)
//Clear pending End of Conversion of the ADC Interrupt
DeviceAddr = 0x55
Command = 0x20
Write_i2c(DeviceAddr, Command)
//Slave address also be – 0x55
//Set Command bit and addr of thresh low byte register
//Slave address also be – 0x55
//Set Command bit and addr of thresh high byte register
//Set Command bit and addr of interrupt register
//Enable Threshold Interrupt
//Set Command bit and addr of interrupt register
//Enable EOC Interrupt
//Slave address also be – 0x55
//Clear Threshold Interrupt
//Clear EOC Interrupt

Related parts for APDS-9801