English
Language : 

ALS-PDIC17-57B-TR8_15 Datasheet, PDF (9/21 Pages) Everlight Electronics Co., Ltd – Digital Ambient Light Sensor
DATASHEET
SMD  I2C Digital Ambient Light Sensor
ALS-PDIC17-57B/TR8
Communication Protocol
ALS-PDIC17-57B contains an 8-bit command register that can be written and read via the I2C bus. The command
register controls the overall operation of the device. There is a two-byte word read-only register that contains the latest
converted value of A/D converter. The I2C slave address is hardwired internally as 0101001 (0x29, MSB to LSB, A6 to A0).
All the Send Byte protocol, the Receive Byte protocol and Receive Word protocol are implemented in ALS-PDIC17-57B.
The Send Byte protocol allows single bytes of data to be written to the device (see Figure 13-a). The written byte is
called the COMMAND byte. The Receive Byte protocol allows one-byte data to be read from the device (see Figure 13-b).
Two-byte data can be read by following the Receive Word Protocol shown in Figure 13-c. In Figure 13, the clear area
represents data sent by the host (master) and the shaded area represents data returned by the ambient light sensor (slave
device).
17
S Slave Address
(a) Send byte protocol
1
18
WR A Command Byte
0
0
11
AP
0
17
1
S Slave Address RD
1
(b) Receive byte protocol
18
A Data
0
1
1
NA P
1
17
1
1
S Slave Address RD A
1
0
(c) Receive word (two bytes) protocol
8
LS byte of ADC
18
A MS byte of ADC
0
S = start condition P = stop condition
Shaded = slave transmission
A = acknowledge NA = not acknowledge
WR = write RD= read
1
1
NA P
1
Figure 13 Communication Protocol
Revi9sion Copy:rig2ht © 2010, Everlight All Rights Reserved. Release Date : 5.27.2013. Issue No:RDLeSl-e0a00s0e04D9 atRe:e2v.2013-06-0w4w0w8.:e0v6e:r0li7g.h0t.com
LifecyclePhase:
Expired Period: Forever