TCS3404 TAOS [TEXAS ADVANCED OPTOELECTRONIC SOLUTIONS], TCS3404 Datasheet - Page 29

no-image

TCS3404

Manufacturer Part Number
TCS3404
Description
DIGITAL COLOR SENSORS
Manufacturer
TAOS [TEXAS ADVANCED OPTOELECTRONIC SOLUTIONS]
Datasheet
// Synchronize one integration cycle
// Synchronize N number of SYNC IN pulses
The LUMENOLOGY r Company
A synchronization input (SYNC IN) is supported to precisely start/stop sensor integration and synchronize with
the light source. The TIMING Register (01h) provides two synchronization modes of operation. The first mode
of operation synchronizes the SYNC IN pin for one integration cycle as specified in the Timing Register (01h).
When the rising edge of the signal is detected, the TCS3404/14 begins integration. The second mode
accumulates a specified number of SYNC IN pulses (see Timing Register) in which the minimum pulse width
is 50 μs. A pulse counter is used to count the rising and falling edges of the pulse(s) and precisely integrate the
light level when the SYNC IN pulse is high.
The following pseudo code illustrates a procedure for reading the TCS3404/14 device using the synchronization
feature:
// See ”Basic Operation” to power−on and start device
// See ”Configuring the Timing Register” to setup environment
Address = 0x39
Command = 0x81
Data = 0x21
//External SYNC IN pulse initiates 100ms integration
Sleep (100)
// See ”Basic Operation” to read Data Registers using Byte or Word Protocol
// See ”Basic Operation” to power−on and start device
// See ”Configuring the Timing Register” to setup environment
Address = 0x39
Command = 0x81
Data = 0x30
//External SYNC IN pulse synchronizes integration
// See ”Basic Operation” to read Data Registers using Byte or Word Protocol
APPLICATION INFORMATION: SOFTWARE
r
www.taosinc.com
//Slave addr − also 0x29 or 0x49
//Set Command bit and address Timing Register
//Sync one 100ms integration period
//Slave addr − also 0x29 or 0x49
//Set Command bit and address Timing Register
//Integrate one SYNC IN pulse
r
DIGITAL COLOR SENSORS
TCS3404, TCS3414
Copyright E 2011, TAOS Inc.
TAOS137A − APRIL 2011
29

Related parts for TCS3404