English
Language : 

ALS-PDIC17-79NB-TR8 Datasheet, PDF (12/21 Pages) Everlight Electronics Co., Ltd – I2 Digital Ambient Light Sensor
Surface - Mount
I2C Digital Ambient Light Sensor
Device Command
ALS-PDIC17-79NB/TR8
There are eight command codes are provided for I2C master to control the ambient light sensor. The
specific function corresponding to each command code is elaborate in Table 3.
Command
Code
1xxx_xxxx
(binary code)
0x0C
0x04
0x08
0x30
0x34
Table 3. Command Code List
Function
Shut-down mode, this is the default state after applying VDD power to the device.
During shut-down mode, users can do the communication test. Except the MSB
must be logic 1, the value written to the command register will not change any
function and can be read back via the I2C bus by issuing Receive Byte Protocol.
Activate the ambient light sensor and put the device in [continuous operation
mode], The ADC register will be refreshed every tint integration time which is set
by an external resistor Rext. See Table 4 for details.
Activate the ambient light sensor and put the device in [one time integration
mode]. The integration time is controlled by I2C commands, start and stop
integration.
Start integration: This command will reset the ADC register to 0x0000 and begin a
new integration in [one time integration mode]. This is an invalid command in
[continuous operation mode].
Stop integration: This command will stop the integration in [one time integration
mode] and set the valid bit ( D[15] ) high. This is an invalid command in
[continuous operation mode].
Reserved for future expansion.
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 11-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 11-c) with the
device address 0x39 followed by two-byte reading procedures.
Everlight Electronics Co., Ltd.
Document No: DLS-xxxxxxx Rev1
12
http://www.everlight.com
Oct. 12, 2010