English
Language : 

ALS-PDIC17-79NB-TR8_15 Datasheet, PDF (12/19 Pages) Everlight Electronics Co., Ltd – Digital Ambient Light Sensor
DATASHEET
SMD  I2C Digital Ambient Light Sensor
ALS-PDIC17-79NB/TR8
Programming Sequence
Case 1: Using internal integration timing
(1). After being powered on, the device will initially be in the shut-down mode (default setting).
(2). To operate the device, issue an Send Byte protocol (see Figure 13-a) with the device address 0x39 followed by a
command byte of 0x0C to activate the ambient light sensor and put the device into "continuous operation mode".
(3). To read the ADC conversion result, issue an Receive Word protocol (see Figure 13-c) with the device address
0x39 followed by two-byte reading procedures.
(4). If a conversion has not been completed since being activated, the valid bit ( D[15] ) will be 0 to indicate that the
data is not valid. If there is a valid conversion result available, the valid bit ( D[15] ) will be set logic high, and the
remaining 15 bits will represent valid data from the ADC register.
(5). Data may be read repeatedly from the ADC register, and although it will remain valid, the ADC register will not be
updated until a new conversion completes.
Case 2: Using external integration timing
(1). After being powered on, the device will initially be in the shut-down mode (default setting).
(2). To operate the device, issue an Send Byte protocol (see Figure 13-a) with the device address 0x39 followed by a
command byte of 0x04 to activate the ambient light sensor and put the device into "one time integration mode".
(3). I2C master sends a "start integration command" to the salve device by issuing Send Byte protocol with the device
address 0x39 followed by a command byte of binary code (1xxx_xxxx).
(4). After a period of user defined integration time, I2C master sends a "stop integration command" to the salve device by
issuing Send Byte protocol with the device address 0x39 followed by a command byte of 0x30.
(5). To read the ADC conversion result, issue an Receive Word protocol (see Figure 13-c) with the device address 0x39
followed by two-byte reading procedures.
(6). If the stop integration command is not received by the device, the valid bit (D [15]) will be “0”to indicate that the data
is not valid. If there is a valid conversion result available, the valid bit (D [15]) will be set logic high, and the
remaining 15 bits will represent valid data from the ADC register.
(7). Data may be read repeatedly from the ADC register, and although it will remain valid, the ADC register will not be
updated until a new complete integration cycle has been carried out.
In both cases, the power consumption of the device can be reduced by issue an Send Byte protocol with the
device address 0x39 followed by a data byte of 1xxx_xxxx.(Binary code)
Revi1si2on Copy:rig3ht © 2010, Everlight All Rights Reserved. Release Date : 3.5.2012. Issue No: DRLSe-l0e0a00s0e34Date:2012-03-1w6w1w2.:e0v0e:r3li3g.h0t.com
LifecyclePhase:
Expired Period: Forever