English
Language : 

ALS-PDIC17-57B-TR8 Datasheet, PDF (9/19 Pages) Everlight Electronics Co., Ltd – Surface - Mount I2C Digital Ambient Light Sensor
Surface - Mount
I2C Digital Ambient Light Sensor
ALS-PDIC17-57B/TR8
Communication Format
ALS-PDIC17-57B is capable of working as an I2C slave. Address of this device on I2C bus
is always 0x29 (hexadecimal number 29). Registers of the slave device can be programmed by
sending commands over I2C bus.
Figure 14 shows an I2C write operation. To write to an internal register of the slave
device a command must be sent by an I2C master. As illustrated in Figure 14, the I2C write
command begins with a start condition. After the start condition, seven bits of address are sent
with MSB going first. RD / WRn (=Low) command bit follows the address bits. Upon receiving a
valid address the slave device responds by driving SDA low for an ACK. After receiving an ACK,
I2C master sends eight bits of data with MSB first. Upon receiving eight bits of data the slave
device generates an ACK. I2C master terminates this write command with a stop condition.
Figure 14 I2C Timing Diagram for Send Byte Format
Figure 15 shows an I2C read command sent by the master to the slave device. I2C read
command begins with a start condition. After the start condition seven bits of address are sent
by the master with MSB going first. After the address bits, RD / WRn command bit is sent. For
a read command the RD / WRn bits is high. Upon receiving the address bits and RD / WRn
command bits the slave device responds with an ACK. After sending an ACK, the slave device
sends eight bits of data with MSB going first. After receiving the one byte data, the I2C master
terminates this transaction by issuing a NACK command to indicate that the master only
wanted to read one byte from the device. The master generates a stop condition to end this
transaction.
Everlight Electronics Co., Ltd.
Document No: DLS-00000xx Rev0.1
9
http://www.everlight.com
Jun. 22, 2011