English
Language : 

TCS3404_11 Datasheet, PDF (11/41 Pages) ams AG – DIGITAL COLOR SENSORS
TCS3404, TCS3414
DIGITAL COLOR SENSORS
TAOS137A − APRIL 2011
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 Table 1), 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:
D Send Byte Protocol
lid D Receive Byte Protocol
D Write Byte Protocol
D Write Word Protocol
a D Read Word Protocol
v D Block Write Protocol
ill D Block Read Protocol
t The TCS3404/14 implements the following protocols of the I2C specification:
G s D I2C Write Protocol
D I2C Read (Combined Format) Protocol
A t 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
s n the byte count (i.e. the number of bytes to be transferred). The TCS3404 (SMBus) device ignores this field and
e extracts this information by counting the actual number of bytes transferred before the Stop condition is
m t detected.
When an I2C Write or I2C Read (Combined Format) is initiated, the byte count is also ignored but follows the
a n SMBus protocol specification. Data bytes continue to be transferred from the TCS3414 (I2C) device to Master
until a NACK is sent by the Master.
o The data formats supported by the TCS3404 and TCS3414 devices are:
c D Master transmitter transmits to slave receiver (SMBus and I2C):
l − The transfer direction in this case is not changed.
a D Master reads slave immediately after the first byte (SMBus only):
− At the moment of the first acknowledgment (provided by the slave receiver) the master transmitter
ic becomes a master receiver and the slave receiver becomes a slave transmitter.
D Combined format (SMBus and I2C):
n − During a change of direction within a transfer, the master repeats both a START condition and the slave
address but with the R/W bit reversed. In this case, the master receiver terminates the transfer by
h generating a NACK on the last byte of the transfer and a STOP condition.
c For a complete description of SMBus protocols, please review the SMBus Specification at
e http://www.smbus.org/specs. For a complete description of the I2C protocol, please review the NXP I2C design
Tspecification at http://www.i2c−bus.org/references/.
Copyright E 2011, TAOS Inc.
10
r
www.taosinc.com
The LUMENOLOGY r Company
r