English
Language : 

ALS-PDIC17-79NB-TR8_15 Datasheet, PDF (8/19 Pages) Everlight Electronics Co., Ltd – Digital Ambient Light Sensor
DATASHEET
SMD  I2C Digital Ambient Light Sensor
ALS-PDIC17-79NB/TR8
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
Communication Format
ALS-PDIC17-79NB is capable of working as an I2C slave. Address of this device on I2C bus is always 0x39
(hexadecimal number 39). 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
Revi8sion 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