NOA1302
http://onsemi.com
7
DESCRIPTION OF OPERATION
Ambient Light Sensor Architecture
The NOA1302 employs a sensitive photo diode fabricated
in ON Semiconductor’s standard CMOS process
technology. The major components of this sensor are as
shown in Figure 2. The photons which are to be detected pass
through an ON Semiconductor proprietary color filter
limiting extraneous photons and thus performing as a band
pass filter on the incident wave front. The filter only
transmits photons in the visible spectrum which are
primarily detected by the human eye. The photo response of
this sensor is as shown in Figure 5.
The ambient light signal detected by the photo diode is
converted to digital signal using a variable slope integrating
ADC with a resolution of 16−bits, unsigned. The ADC value
is provided to the control block connected to the I2C
interface block.
Equation 1 shows the relationship of output counts Cnt as
a function of integration constant Ik, integration time Tint (in
seconds) and the intensity of the ambient light, IL(in lux), at
room temperature (25°C).
IL+
Cnt
(Ik@Tint)(eq. 1)
Where:
Ik = 6.67 (for fluorescent light)
Ik = 7.5 (for incandescent light)
Hence the intensity of the ambient fluorescent light (in lux):
IL+
Cnt
(6.67 @Tint)(eq. 2)
and the intensity of the ambient incandescent light (in lux):
IL+
Cnt
(7.5 @Tint)(eq. 3)
For example let:
Cnt = 1200
Tint = 200 mS
Intensity of ambient incandescent light, IL(in lux):
IL+1200
(7.5 @200 mS) (eq. 4)
IL = 800 lux
I2C Interface
The NOA1302 operates on the I2C bus as a slave device.
The I2C address is fixed at 0x39 (hexadecimal 39). Registers
can be programmed by sending commands over an I2C bus.
Ambient light intensity count value can be obtained by
reading registers. The ambient light intensity count is 16
bits, hence two I2C read operations are needed. This device
supports both standard (100 Kbit/s) and fast mode
(400 Kbit/s) of operation on the I2C bus.
Figure 15 shows an I2C write operation. To write to an
internal register of the NOA1302 a write command must be
sent by an I2C master. The write command begins with a start
condition. After the start condition, seven bits of address are
sent MSB first. RD/WR_ command bit follows the address
bits. Upon receiving a valid address the device responds by
driving SDA low for an ACK. After receiving an ACK, the
I2C master sends eight bits of data with MSB first. Upon
receiving eight bits of data the NOA1302 generates an ACK.
The I2C master terminates this write command with a stop
condition.
Figure 15. I2C Write Command
SDA
SCL
Start
Condition Stop
Condition
A[6:0] WR ACK ACK
D[7:0]
Figure 16 shows an I2C read command sent by the master
to the slave device. The I2C read command begins with a
start condition. After the start condition, seven bits of
address are sent by the master MSB first, followed by the
RD/WR_ command bit. For a read command the RD/WR_
bit is high. Upon receiving the address bits and RD/WR_
command bits the device responds with an ACK. After
sending an ACK, the device sends eight bits of data MSB
first. After receiving the data, the 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.
Repeated START condition is not supported. Each I2C
transaction must be terminated with a STOP condition after
all required bits have been transmitted and received.
Figure 16. I2C Read Command
SDA
SCL
Start
Condition Stop
Condition
A[6:0] RD ACK NACK
D[7:0]
Programmer’s Model
Ambient light intensity count is obtained from the the
NOA1302 by issuing a fixed sequence of I2C commands.
Integration time is programmable by writing different
values to the integration time register. The following
sections describe what a programmer needs to know about
issuing commands to the chip and register access.
Integration Time Register
Table 7 describes integration time register which controls
the exposure time. This register has three bits, EC[2:0]
which control the duration of the integration time.