English
Language : 

ALS-PDIC17-57B-TR8 Datasheet, PDF (12/19 Pages) Everlight Electronics Co., Ltd – Surface - Mount I2C Digital Ambient Light Sensor
Surface - Mount
I2C Digital Ambient Light Sensor
ALS-PDIC17-57B/TR8
Device Command
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 2.
Table 2 Command Code List
Command
Code
1xxx_xxxx
(binary code)
0x04
0x08
0x30
0x34
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 [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].
Stop integration: This command will stop the integration in [one time
integration mode] and set the valid bit (D[15]) high.
Reserved for future expansion.
Programming Sequence
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 0x29 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 0x29 followed by a command byte of 0x08.
Everlight Electronics Co., Ltd.
Document No: DLS-00000xx Rev0.1
12
http://www.everlight.com
Jun. 22, 2011