7
System State Machine
Start Up after Power-On or Software Reset
The main state machine is set to “Start State” during
power-on or software reset. As soon as the reset is released,
the internal oscillator is started and the programmed I
2
C
address and the trim values are read from the internal non
volatile memory (NVM) trimming data block. The device
enters Standby Mode as soon as the Idle State is reached.
Note: As long as the I
2
C address has not yet been reached,
the device will respond with NACK to any I
2
C command
and ignore any request to avoid responding to a wrong
I
2
C address.
Standby Mode
Standby Mode is the default mode after power-up. In
this state, the oscillator, all internal support blocks, and
the ADCs are switched o but I
2
C communication is fully
supported.
Ambient Light Sensor Operation
ALS measurements can be activated by setting the ALS_
EN bit to 1 in the MAIN_CTRL register.
As soon as the ALS becomes activated through an I
2
C
command, the internal support blocks are powered on.
Once the voltages and currents are settled (typically after
5ms), the state machine checks for trigger events from
a measurement scheduler to start the ALS conversions
according to the selected measurement repeat rates.
Once ALS_EN is changed back to 0, a conversation running
on the respective channel will be completed and the
relevant ADCs and support blocks will move to standby
mode.
Start
Fuse Read
Idle
Wait for OSC Power Up
Check ALS
Do ALS Conversion
(ADC ms)
ALS_EN==0
ALS_EN==1
ALS_EN==1
Priority 1
Priority 2
Ambient Light Sensor Interrupt
The ALS interrupt is enabled by ALS_INT_EN=1 and
can function as either threshold triggered (ALS_VAR_
MODE=0) or variance triggered (ALS_VAR_MODE =1).
The ALS threshold interrupt is enabled with ALS_INT_
EN=1 and ALS_VAR_MODE=0. It is set when the ALS data
is above the upper or below the lower ALS threshold for a
speci ed number of consecutive measurements (1+ALS_
PERSIST)
The ALS variance interrupt is enabled with ALS_INT_EN=1
and ALS_VAR_MODE=1. It is set when the absolute value
of the di erence between previous and current ALS data is
above the decoded ALS variance threshold for a speci ed
number of consecutive measurements (1+ALS_PERSIST).
8
Register Read (I
2
C
TM
Read)
S
Slave Addr
7 Bit
0A
Address
8 Bit
AS
Slave Addr
7 Bit
1A
Data
8 Bit
NP
S
Slave Addr
7 Bit
0A
Address
8 Bit
AS
Slave Addr
7 Bit
1A
Data
8-Bit
A
Data
8-Bit
A…
Data
8-Bit
NP
From Master to Slave
From Slave to Master
S
P
A
N
Start Condition
Stop Condition
Acknowledge (ACK)
Not Acknowledge (NACK)
ReadWrite
ReadWrite
Register Block Read (I
2
C
TM
Read)
I
2
C Protocol
Interface and control of the APDS-9306/APDS-9306-065 is
accomplished through an I
2
C serial compatible interface
(standard or fast mode) to a set of registers that provide
access to device control functions and output data. The
device supports a single slave address of 0X52 hex using
7-bit addressing protocol. (Contact factory for other ad-
dressing options).
I²C Register Read
The registers can be read individually or in block read
mode. When two or more bytes are read in block read
mode, reserved register addresses are skipped and the
next valid address is referenced. If the last valid address
has been reached, but the master continues with the
block read, the address counter in the device will not roll
over and the device returns 00HEX for every subsequent
byte read.
The block read operation is the only way to ensure correct
data read out of multi-byte registers and to avoid splitting
of results with HIGH and LOW bytes originating from
di erent conversions. During block read access on ALS
result registers, the result update is blocked.
If a read access is started on an address belonging to a
non-readable register, the APDS-9306/APDS-9306-065
will re-turn NACK until the I
2
C™ operation is ended.
Read operations must follow the Register Read timing
diagram as below.
I²C Register Write
The APDS-9306/APDS-9306-065 registers can be written
to individually or in block write mode. When two or more
bytes are written in block write mode, reserved registers
and read-only registers are skipped. The transmitted data
is automatically applied to the next writable register. If
a register includes read (R) and read/write (RW) bits, the
register is not skipped. Data written to read-only bits are
ignored.
If the last valid address of the APDS-9306/APDS-9306-
065 address range is reached but the master attempts to
continue the block write operation, the address counter
of the APDS-9306/APDS-9306-065 will not roll over. The
APDS-9306/APDS-9306-065 will return NACK for every
following byte sent by the master until the I
2
C™ operation
is ended.
If a write access is started on an address belonging to a
non-writeable register, the APDS-9306/APDS-9306-065
will return NACK until the I
2
C™ operation is ended.
Write operations must follow the Register Write timing
diagram below.
S
Slave Addr
7 Bit
0 A Address A
Data
8-Bit
AP
S
Slave Addr
7 Bit
0 A Address A
Data
8-Bit
A
Data
8-Bit
A…
Data
8-Bit
AP
Write
Write
Register Write (I
2
C
TM
Write)
Register Block Write (I
2
C
TM
Write)
From Master to Slave
From Slave to Master
S
P
A
N
Start Condition
Stop Condition
Acknowledge (ACK)
Not Acknowledge (NACK)
9
Bus Timing Characteristics
Parameter Symbol
Standard
Mode
Fast
Mode Units
Maximum SCL Clock Frequency f
SCL
100 400 KHz
Minimum START Condition Hold Time Relative to SCL Edge t
DSTA
4 µs
Minimum SCL Clock Low Width t
LOW
4.7 µs
Minimum SCL Clock High Width t
HIGH
4 µs
Minimum START Condition Setup Time Relative to SCL Edge t
SUSTA
4.7 µs
Minimum Data Hold Time on SDA Relative to SCL Edge t
HDDAT
0 µs
Minimum Data Setup Time on SDA Relative to SCL Edge t
SUDAT
0.1 0.1 µs
Minimum STOP Condition Setup Time on SCL t
SUSTO
4 µs
Minimum Bus Free Time Between Stop Condition and Start Condition t
BUS
4.7 µs
SDA
SCL
t
LOW
t
HDSTA
t
BUS
t
HDSTA
t
SUDAT
t
SUSTO
t
SUSTA
t
HIGH
t
HDDAT
I
2
C Interface – Bus Timing

APDS-9306

Mfr. #:
Manufacturer:
Broadcom / Avago
Description:
Ambient Light Sensors Digital Ambient Light Sensor
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet