English
Language : 

TCS3404_11 Datasheet, PDF (25/41 Pages) ams AG – DIGITAL COLOR SENSORS
TCS3404, TCS3414
DIGITAL COLOR SENSORS
TAOS137A − APRIL 2011
APPLICATION INFORMATION: SOFTWARE
Synchronization
There are two basic modes of operation for controlling synchronization: (1) internally timed, and (2) externally
timed. Internally-timed integration cycles can either be continuous back-to-back conversions or can be
externally triggered as a single event using the SYNC pin. Externally-timed integrations can be controlled by
setting and clearing the ADC Enable in the Control Register using the serial interface, or by one or more pulses
input to the SYNC pin. Internally-timed integration cycle times are dependent on the PARAM field value and the
internal clock frequency. Nominal integration times and respective scaling between integration times scale
lid proportionally as shown in the PARAM field in Table 5. See Operating Characteristics Table notes for detailed
information regarding how the scale values were obtained.
If a particular integration time period is required that is not listed in the PARAM Integration Time field value, then
a the manual timing control feature can be used to manually start and stop the integration time period by setting
INTEG_MODE=01b. Manual integration is performed as follows:
v Integration Period
ill Time duration determined by
length of time that ADC_EN = 1
t ADC_EN
AG t s INTERRUPT
A
B
s en Figure 22. Manual Integration (INTEG_MODE 01b)
m t 1. Disable ADC_EN (= 0) before initiating a manual integration cycle
a n 2. Clear and enable INTR before each cycle
o 3. Write 01b to INTEG_MODE field
c 4. Set ADC_EN (= 1) to start integration
l 5. Clear ADC_EN ( = 0) to stop integration
Technica 6. Read channel data
Copyright E 2011, TAOS Inc.
24
r
www.taosinc.com
The LUMENOLOGY r Company
r