Page 16
Document Feedback
TCS3404, TCS3414 − Principles of Operation
Interrupt
Although the ADC channel data registers can be read at any
time to obtain the most recent conversion value, in some
applications, periodic polling of the device may not be
desirable. For these types of applications, the device supports
a variety of interrupt options allowing the user to configure the
device to signal when a change in light intensity has occurred.
High and low threshold registers allow a range of light levels to
be defined, outside of which the device generates an interrupt.
A persistence setting allows the user to specify a time duration
that the measured value must remain outside of the defined
range before generating an interrupt. The interrupt function
can be assigned to any one of the four ADC color channels.
See Interrupt Control Register (02h) for more information on
configuring the interrupt functions.
SMBus and I2C Protocols
Each Send and Write protocol is, essentially, a series of bytes. A
byte sent to the TCS3404/14 with the most significant bit (MSB)
equal to 1 will be interpreted as a COMMAND byte. The lower
four bits of the COMMAND byte form the register select address
(see Figure 24), which is used to select the destination for the
subsequent byte(s) received. The TCS3404/14 responds to any
Receive Byte requests with the contents of the register specified
by the stored register select address.
The TCS3404/14 implements the following protocols of the SMB
2.0 specification:
• Send Byte Protocol
• Receive Byte Protocol
• Write Byte Protocol
• Write Word Protocol
• Read Word Protocol
• Block Write Protocol
• Block Read Protocol
The TCS3404/14 implements the following protocols of the I2C
specification:
• I2C Write Protocol
• I2C Read (Combined Format) Protocol
When an SMBus Block Write or Block Read is initiated
(see description of Command Register), the byte following the
COMMAND byte is ignored but is a requirement of the SMBus
specification. This field contains the byte count (i.e. the number
of bytes to be transferred). The TCS3404 (SMBus) device ignores
this field and extracts this information by counting the actual
number of bytes transferred before the Stop condition is
detected.
ams Datasheet
[v1-00] 2015-Nov-11