TCS3408 AMSCO | Alldatasheet
Document overview
- Manufacturer or author: Provided By alldatasheet.com(free datasheet download site)
- PDF pages: 52
Technical content
Datasheet, Public Page 1 [v2-00] 2023-Feb-01 Document Feedback TCS3408 ALS/Color Sensor with Selective Flicker Detection The TCS3408 features ambient light and color (RGB) sensing, as well as flicker detection which suppresses cross-coupling from 940nm IR, if generated by adjacent circuits (e.g. TOF). The device comes in a low-profile and small footprint, L2.5mm x W2.0mm x H0.5mm package. The Ambient Light and Color Sensing function provides five concurrent ambient light sensing channels: Red, Green, Blue, Clear, and Wideband. The RGB an d Clear channels have a UV/IR blocking filter. This architecture accurately measures ambient light and enables the calculation of illuminance, chromaticity, and color temperature to manage display appearance. The device integrates direct detection of 50Hz or 60Hz ambient light flicker. Flicker detection is executed in parallel with ambient light and color sensin g and has independent gain configuration. The flicker detection engine can also buffer data for calculating other flicker frequencies externally. Ordering Information and Content Guide appear at end of datasheet. General Description
Page 2 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − General Description Key Benefits & Features The benefits and features of TCS3408 are listed below: Figure 1: Added Value of Using TCS3408
Applications
TCS3408 integrates multiple appl ications within one device. The applications for TCS3408 include:
- Brightness management for displays
- Color management for displays
- Camera image processing
- Flicker-immune camera operation Benefits Features
- Invisible ALS and color sensing under any glass type
- Configurable, high sensitivity
- Programmable gain and integration time
- 2048x dynamic range by gain adjustment only
- 1mlux minimum detectable illuminance (100ms)
- Tailored ALS and color response
- UV/IR blocking filter for RGBC channels
- Wideband reference channel without filters
- ALS/color interrupt with thresholds
- Unique fast ALS integration mode • Flicker-immune ALS sensing within 10ms
- Integrated ambient light flicker detection on chip
- Independently configurable timing and gain
- Automatic gain adjustment
- 50Hz and 60Hz flicker detection flags
- Flicker detected interrupt
- Low power consumption and minimum I²C traffic
- 1.8VDD operation
- Configurable sleep mode
- Interrupt-driven device
- On-chip self-calibration of ALS
- Integrated status checking for all functions • Digital and analog ALS saturation flags
Datasheet, Public Page 3 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − General Description Block Diagram The functional blocks of this device are shown below: Figure 2: Functional Blocks of TCS3408 TCS3408 I2C OSCILLATOR VSS PGND VDD SDA SCL INT Digital Core INPUT ++ Limit - Limit Registers Interrupt Flags ADCADCADCADCADC
6 ALS
R G B W Multiplexer C ALS Engine Clear (C) Color (RGB) Wideband (W) Flicker (F1, F2)
Page 4 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − Pin Assignments Device pinout is described below. Figure 3: Pin Diagram of TCS3408 Figure 4: Pin Description of TCS3408 Note(s): 1. NC pins do not have an internal electr ical connection. For device. ESD protection, it is recommended to connect it to ground . Pin Number Pin Name Description 1V S S Ground. All voltages are referenced to VSS/PGND, and both ground pins must be connected to ground.
2 SCL I²C serial clock terminal
3 SDA I²C serial data I/O terminal
4 VDD Supply voltage (1.8V) 5 I/C Internal connection. Connect to ground. 6 INT Interrupt. Open-drain output plus supports additional output options.
7 NC No connect
8 NC No connect
9 NC No connect
10 NC No connect
11 PGND Ground. All voltages are referenced to VSS/PGND, and both ground pins must be connected to ground. 12 I/C Internal connection. Connect to ground. Pin Assignments % " % % % % #% % % % % % % #% " $% % % %% %!%% % % % % % % % % % % ,$2I/CI/C
Page 6 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − Optical Characteristics All limits are guaranteed. The parameters with min and max values are guaranteed with production tests or SQC (Statistical Quality Control) methods. Device parameters are guaranteed with V DD = 1.8 V and T A = 25°C unless otherwise noted. Figure 7: ALS/Color Characteristics of TCS3408, ALS Gain = 128x, Integration Time = 11ms (unless otherwise noted) Parameter Conditions Min Typ Max Unit Dark ADC count value(1) Ee = 0μW/cm2 ALS gain: 512x Integration time: 98ms 003 counts ALS gain ratios(2) 0.5x 1/256 1x 1/128 2x 1/64 4x 1/32 8x 1/16 16x 1/8 32x 1/4 64x 1/2 256x 2.05 512x 4.33 1024x 8.38 2048x 17.3 Clear channel irradiance responsivity White LED, 2700K(3) 56.4 66.3 76.2 counts/ (μW/cm2)Wideband channel irradiance responsivity 23.4 Lux accuracy(4) White LED, 2700K(3) 90 100 110 % ADC noise(5) White LED, 2700K(3) Integration time: 100ms 0.05 Optical Characteristics
Datasheet, Public Page 7 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Optical Characteristics Note(s): 1. The typical 3-sigma distribution shows less than 1 count for an ATIME setting of less than 98ms. 2. The gain ratios are calculated relative to the respon se with integration time = 27.8ms and ALS gain = 128x. 3. The White LED is an InGaN light-emitting diode with integrat ed phosphor and the following characteristic: correlated color temperature = 2700K. 4. Lux accuracy is an illuminance estimated using the red, green , blue, and clear channels and is not 100% production tested. 5. ADC noise is calculated as the standard deviation relative to full scale. 6. The Blue LED is an InGaN light-emitting diode with the following characteristics: dominant wavelength λ D = 465nm, spectral halfwidth Δλ½ = 22nm. 7. The Red LED is an AlInGaP light-emitting diode with the following characteristics: dominant wavelength λ D = 615nm, spectral halfwidth Δλ½ = 15nm. 8. The Green LED is an InGaN light-emitting diode with the following characteristics: dominant wavelength λ D = 525nm, spectral halfwidth Δλ½ = 35nm. Red/Clear channel ratios White LED, 2700K 52 72 Blue LED, λD = 465nm(6) 02 0 Red LED, λD = 615nm(7) 81 111 Green/Clear channel ratios White LED, 2700K 21 42 Green LED, λD = 525nm(8) 63 86 Red LED, λD = 615nm 02 0 Blue/Clear channel ratios White LED, 2700K 13 0 Blue LED, λD = 465nm 73 100 Red LED, λD = 615nm 02 0 Wideband/Clear channel ratio White LED, 2700K 26 44 Wideband/Flicker_1 channel ratio White LED, 2700K 18 25 Parameter Conditions Min Typ Max Unit
Page 8 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − Electrical Characteristics All limits are guaranteed. The parameters with min and max values are guaranteed with production tests or SQC (Statistical Quality Control) methods. Figure 8: Note(s): 1. This parameter indicates the supply curr ent during periods of ALS integration. The ALS gain setting will have an effect on t he active supply current. The ALS gain setting used for this parameter is 128x. 2. Idle state occurs when PON=1 and all functions are di sabled. This parameter is measured with LOWPOWER_IDLE=1. 3. Sleep state occurs when PON = 0 and I²C bus is idle. If Slee p state has been entered as the result of operational flow, SAI = 1, PON will remain high. Symbol Parameter Conditions Min Typ Max Unit IDD;ALS ALS supply current Active ALS state(1) (PON=AEN=1) 196 280 μA IDD;IDLE Idle current Idle state(2) (PON=1, AEN=0) 40 60 IDD;SLEEP Sleep current Sleep state(3) 0.7 5 ILEAK Leakage current Measured on SDA, SCL, INT, GPIO -5 5 VOL INT, SDA, GPIO output low voltage 6mA sink current 0.4 VVIH SCL, SDA input high voltage 1.26 VIL SCL, SDA input low voltage 0.54 CI Input pin capacitance 10 pF
Electrical Characteristics
Datasheet, Public Page 9 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Timing Characteristics The timing parameters are specified by design and characterization and are not production tested unless otherwise noted. All parameters are measured with V DD = 1.8 V and T A = 25°C unless otherwise noted. Figure 9: I²C Timing Characteristics of TCS3408 Symbol Parameter Min Typ Max Unit fSCL I²C clock frequency 0 400 kHz tBUF Bus free time between start and stop condition 1.3 μs tHD;STA Hold time after (repeated) start condition. After this period, the first clock is generated 0.6 tSU;STA Repeated start condition setup time 0.6 tSU;STO Stop condition setup time 0.6 tLOW SCL clock low period 1.3 tHIGH SCL clock high period 0.6 tHD;DAT Data hold time 0 ns tSU;DAT Data setup time 100 tF Clock/data fall time 300 tR Clock/data rise time 300 Timing Characteristics
Datasheet, Public Page 13 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Detailed Description Upon power-up, POR, the device init ializes. During initialization (typically 200μs), the device will deterministically send NAK on I²C and cannot accept I²C transactions. All communication with the device must be delayed, and all outputs from the device must be ignored including interr upts. After initialization, the device enters the SLEEP state. In this operational state the internal oscillator and other circ uitry are not active, resulting in ultra-low power consumption. If an I²C transaction occurs during this state, the I²C core wakes up temporarily to service the communication. Once the Powe r ON bit, PON, is enabled, the device enters the IDLE state in which the internal oscillator and attendant circuitry are active, but power consumption remains low. Whenever a function is enabled (AEN = 1) the device exits the IDLE state. If all functions are disabled (AEN = 0), the device returns to the IDLE state. As depicted in Figure 16 and Figure 17 , the CRGBW color sensing functions operate in parallel when enabled (CONCURRENT_PROX_AND_ALS = 1). Each function is individually configured (e.g. gain, ADC integration time, wait time, persistence, thresholds, etc.). If Sleep after Interrupt is enabled (SAI = 1 in register 0xAC), the state machine will enter SLEEP when an interrupt occurs. Entering SLEEP does not auto matically change any of the register settings (e.g. PON bit is still high, but the normal operational state is over-ridden by SLEEP state). SLEEP state is terminated when the SAI_ACTIVE bit is cleared (the status bit is in register 0xA7 and the clear status bit is in register 0xFA). Detailed Description
Page 14 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − Detailed Description State Machine Diagrams Figure 16: Simplified State Diagram AEN IDLE ALS/ COLOR/WIDEBAND/ FLICKER SLEEP PON
Datasheet, Public Page 15 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Detailed Description Figure 17: Detailed State Diagram ALS/COLOR/WIDEBAND/FLICKER/IR INTERRUPT I2C POR INITIALIZE (200μs) PON = 1?SLEEPSAI = 1? EXIT SLEEPY AEN = 1AEN = 0 AUTOZERO (every nth time) INTEGRATE (ATIME)CRGB DATA WA IT (WTIME) N Y N GENERATE INTERRUPT UPDATE STATUS EVALUAT E: INTER RUPT?Y N CLEAR INTE RRUP TS IDLE TCS340ϴ OperationalStates
Page 16 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − Detailed Description I²C Protocol The device uses I²C serial communication protocol for communication. The device support s 7-bit chip addressing and both standard and full-speed cl ock frequency modes. Read and Write transactions comply with th e standard set by Philips (now NXP). For a complete description of the I²C protocol, please review the NXP I²C design specification. Internal to the device, an 8-bit buffer stores the register address location of the desired byte to read or write. This buffer auto-increments upon each byte transfer and is retained between transaction events (I.e. valid even after the master issues a STOP command and the I²C bus is released). During consecutive Read transactions, the future/repeated I²C Read transaction may omit the memory address byte normally following the chip address byte; the buffer retains the last register address +1. All 16-bit fields have a latching scheme for reading and writing. In general it is recommended to use I²C bursts whenever possible, especially in this ca se when accessing two bytes of one logical entity. When reading these fields, the low byte must be read first, and it triggers a 16-bit latch that stores the 16-bit field. The high byte must be read immediately afterwards. When writing to these fields, the low byte must be written first, immediately followed by the high byte. Reading or writing to these registers without following these requirements will cause errors. A Write transaction consists of a START, CHIP-ADDRESSWRITE, REGISTER-ADDRESS WRITE, DATA BYTE(S), and STOP . Following each byte (9TH clock pulse) the slave places an ACKNOWLEDGE/NOT- ACKNOWLEDGE (ACK/NACK) on the bus. If NACK is transmitted by the sl ave, the master may issue a STOP . A Read transaction consists of a START, CHIP-ADDRESSWRITE, REGISTER-ADDRESS, RESTART, CHIP-ADDRESSREAD, DATA BYTE(S), and STOP . Following all but the final byte the master places an ACK on the bus (9TH clock pulse). Termination of the Read transaction is indicated by a NACK being placed on the bus by the master, followed by STOP .
Datasheet, Public Page 17 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Register Overview The device is controlled and monitored by registers accessed through the I²C serial interface. These registers provide device control functions and are read to determine device status and acquire device data. Register Map The register set is summarized in Figure 18 . The values of all registers and fields that are listed as reserved or are not listed must not be changed at any time. The power-on reset values of each bit are indicated in these columns. Two-byte fields are always latched with the low byte followed by the high byte. Figure 18: Register Map Addr Name Type Description Reset 0x80 ENABLE R/W Enable device states 0x00 0x81 ATIME R/W ALS integration time 0x00 0x83 WTIME R/W Wait time 0x00 0x84 AILT R/W ALS interrupt low threshold 0x00 0x85 0x00 0x86 AIHT R/W ALS interrupt high threshold 0x00 0x87 0x00 0x90 AUXID R Auxiliary identification 0x4A 0x91 REVID R Revision identification 0x53 0x92 ID R Device identification 0x18 0x93 STATUS R/W Device status one 0x00 0x94 ASTATUS RA L S s t a t u s 0 x 0 0 0x95 ADATA0 RA L S c h a n n e l z e r o d a t a 0x00 0x96 0x00 0x97 ADATA1 RA L S c h a n n e l o n e d a t a 0x00 0x98 0x00 0x99 ADATA2 R ALS channel two data 0x00 0x9A 0x00 0x9B ADATA3 R ALS channel three data 0x00 0x9C 0x00 Register Overview
Page 18 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − Register Overview 0x9D ADATA4 RA L S c h a n n e l f o u r d a t a 0x00 0x9E 0x00 0x9F ADATA5 RA L S c h a n n e l f i v e d a t a 0x00 0xA0 0x00 0xA3 STATUS2 R/W Device status two 0x00 0xA4 STATUS3 R/W Device status three 0x08 0xA6 STATUS5 R/W Device status five 0x00 0xA7 STATUS6 R/W Device status six 0x00 0xA9 CFG0 R/W Configuration zero 0x00 0xAA CFG1 R/W Configuration one 0x09 0xAC CFG3 R/W Configuration three 0x0C 0xAD CFG4 R/W Configuration four 0x00 0xAF CFG6 R/W Configuration six 0x00 0xB1 CFG8 R/W Configuration eight 0x80 0xB2 CFG9 R/W Configuration nine 0x00 0xB3 CFG10 R/W Configuration ten 0xF2 0xB4 CFG11 R/W Configuration eleven 0x40 0xB5 CFG12 R/W Configuration twelve 0x00 0xBD PERS R/W Persistence configuration 0x00 0xCA ASTEP R/W ALS integration step size 0xE7 0xCB 0x03 0xCF AGC_GAIN_MAX R/W Maximum AGC gains 0x99 0xD6 AZ_CONFIG R/W Autozero configuration 0xFF 0xDB FD_STATUS R Flicker detection configuration zero 0x00 0xF9 INTENAB R/W Enable interrupts 0x00 0xFA CONTROL R/W Control 0x00 Addr Name Type Description Reset
Datasheet, Public Page 19 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Register Overview Register Descriptions Power, Enable, and Operation The enable register has fields that power on the device and enable the functions. To operate the device, first set all configuration fields for all fun ctions, then set PON = 1, and finally enable functions. Changing configuration register values while functions are operating may result in invalid results. PEN, and AEN require PON to be a sserted for each respective function to operate correctly. When PEN, or AEN are asserted, the visible bit is only updated when the state machine has completed the process of enabling the associated function. Figure 19: ENABLE Note(s): 1. Return to the Register Map ( 0x80 ). Addr: 0x80 ENABLE Bit Field Reset Type Bit Description 7R e s e r v e d 0 6F D E N 0 R / W Flicker Detection Enable. Writing a 1 activates flicker detection. Writing a 0 disables flicker detection. 5:4 Reserved 0 3W E N 0 R / W Wait Enable. Writing a 1 activates the wait timer. Writing a 0 disables the wait timer. 2R e s e r v e d 0 1A E N 0 R / W ALS Enable. Writing a 1 enables ALS/Color. Writing a 0 disables ALS/Color. 0P O N 0 R / W Power ON. When asserted, the internal oscillator is activated, allowing timers and ADC channels to operate. Writing a 0 disables the oscillator and clears PEN, and AEN. Only set this bit after all other registers have been initialized by the host.
Page 20 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − Register Overview Figure 20: INTENAB Note(s): 1. Return to the Register Map ( 0xF9 ). Figure 21: CONTROL Note(s): 1. Return to the Register Map ( 0xFA). Addr: 0xF9 INTENAB Bit Field Reset Type Bit Description 7A S I E N 0 R / W ALS and Flicker Detect Saturation Interrupt Enable. When asserted permits ALS saturation interrupts to be generated. 6:4 Reserved 0 3A I E N 0 R / W ALS Interrupt Enable. When asserted permits ALS interrupts to be generated, subject to the ALS thresholds and persistence filter. 2R e s e r v e d 0 1R e s e r v e d 0 0S I E N 0 R / W System Interrupt Enable. When asserted permits system interrupts to be generated. Indicates that flicker detection status has changed. Addr: 0xFA CONTROL Bit Field Reset Type Bit Description 7:3 Reserved 0
2 ALS_MANUAL_AZ 0 R/W
ALS Manual Autozero. Starts a manual autozero of the ALS engines. Set AEN = 0 before starting a manual autozero for it to work. 1R e s e r v e d 0 0 CLEAR_SAI_ACTIVE 0 R/W Clear Sleep-After-Interrupt Active. Clears SAI_ACTIVE, ends sleep, and restarts device operation.
Datasheet, Public Page 21 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Register Overview Identification The identification registers provide auxiliary identification for special cases, wafer revision data, and device identification. All identification registers are read only. Figure 22: Identification Registers Note(s): 1. Return to the Register Map ( 0x90 , 0x91 , 0x92 ). Bits Addr Field Description 7:0 0x90 AUXID Auxiliary Identification (0x4A) 7:0 0x91 REVID Revision Identification (0x53) 7:0 0x92 ID Device Identification (0x18)
Page 22 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − Register Overview ALS Configuration The ALS/color integration time is set using the ATIME field and ASTEP field ( ASTEP register). The ALS integration time, in milliseconds, is equal to (ATIME + 1) × (ASTEP + 1) / 360. The reset value for ASTEP is 999 (2.78ms), and the recommended configuration for these two fields is ASTEP = 599 and ATIME = 29, which results in an integration time of 50ms. The ALS integration time also establishes the full scale ADC range, which is equal to (ATIME + 1) × (ASTEP + 1). If wait is enabled (WEN = 1), each new ALS sample is started based on WTIME. It is necessary for WTIME to be sufficiently large for ALS integration and any other functions to be completed within the time frame. The device will warn the user if the timing is configured incorrectly. If WTIME is too short, then ALS_TRIGGER_ERROR will be 1. Figure 23: ATIME Note(s): 1. Return to the Register Map ( 0x81 ). Addr: 0x81 ATIME Bit Field Reset Type Description 7:0 ATIME 0x00 R/W ALS Integration Time. Sets the number of ALS/color integration steps from 1 to 256. VALUE INTEGRATION TIME 0A S T E P nA S T E P × (n+1) 255 256 × ASTEP
Page 24 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − Register Overview ALS level detection uses data ge nerated by the ADC Channel X. The channel can be selected via ALS_TH_CHANNEL (see CFG12 ).The ALS Interrupt Threshold registers provide 16-bit values to be used as the high and low thresholds for comparison to the 16-bit ADATAX values. If AIEN is enabled and ADATAX is not between AILT and AIHT for the number of consecutive samples specified in APERS an interrupt is asserted on the interrupt pin. These registers are read/write. Figure 26: ALS Interrupt Thresholds Note(s): 1. Return to the Register Map ( 0x84 , 0x85 , 0x86 , 0x87 ). Bits Addr Field Description 7:0 0x84 AILT ALS Interrupt Low Threshold 15:8 0x85 7:0 0x86 AIHT ALS Interrupt High Threshold 15:8 0x87
Datasheet, Public Page 25 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Register Overview Figure 27: CFG1 Note(s): 1. Return to the Register Map ( 0xAA ). Addr: 0xAA CFG1 Bit Field Reset Type Bit Description 7:5 Reserved 0 4:0 AGAIN 9 R/W ALS Gain. Sets the ALS sensitivity. VALUE GAIN 00 . 5 x 11 x 22 x 34 x 48 x 51 6 x 63 2 x 76 4 x 81 2 8 x 92 5 6 x 10 512x 11 1024x 12 2048x
Page 26 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − Register Overview Figure 28: CFG10 Note(s): 1. Return to the Register Map ( 0xB3 ). Addr: 0xB3 CFG10 Bit Field Reset Type Bit Description 7:6 ALS_AGC_HIGH_HYST 3 R/W ALS AGC High Hysteresis. Sets the ALS data threshold at which AGAIN is reduced when ALS AGC mode is enabled. The threshold is automatically calculated internally as a percentage of full-scale. Note that full-scale is equal to (ATIME + 1) × (ASTEP + 1). VALUE SIGNAL 05 0 % 1 62.5% 27 5 % 3 87.5% 5:4 ALS_AGC_LOW_HYST 3 R/W ALS AGC Low Hysteresis. Sets the ALS data threshold at which AGAIN is increased when ALS AGC mode is enabled. The threshold is automatically calculated internally as a percentage of full-scale. Note that full-scale is equal to (ATIME + 1) × (ASTEP + 1). VALUE SIGNAL 0 12.5% 12 5 % 2 37.5% 35 0 % 3R e s e r v e d 0 2:0 FD_PERS 2 R/W Flicker Detect Persistence. Sets the number of consecutive flicker detect results that must be different before the flicker detect status will be changed. Flicker detection interrupts on SINT are affected by this setting. Flicker detect persistence is equal to 2 (FD_PERS − 1).
Datasheet, Public Page 27 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Register Overview Figure 29: CFG12 Note(s): 1. Return to the Register Map ( 0xB5 ). Addr: 0xB5 CFG12 Bit Field Reset Type Bit Description 7:3 Reserved 0 2:0 ALS_TH_CHANNEL 0 R/W ALS Thresholds Channel. Sets the channel used by interrupts, persistence, and the ALS AGC, if enabled, to determine device status and ALS gain settings. VALUE CHANNEL DEFAUL T
00 C L E A R
11 R E D
22 G R E E N
33 B L U E
44 W I D E B A N D
Page 28 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − Register Overview ALS autozero configuration is used to set how often the ALS engine offsets are reset to comp ensate for changes in device temperature. Figure 30: AZ_CONFIG Note(s): 1. Return to the Register Map ( 0xD6 ). Figure 31: AGC_GAIN_MAX Note(s): 1. Return to the Register Map ( 0xCF ). Addr: 0xD6 AZ_CONFIG Bit Field Reset Type Bit Description 7:0 AZ_NTH_ITERATION 255 R/W ALS Autozero Frequency. Sets the frequency at which the device performs autozero of the ALS pulse counter. VALUE AUTOZERO FREQUENCY
0 Never
…E v e r y (AZ_NTH_ITERATION) cycles
253 Every 253 cycles
254 Every 254 cycles
255 Only once (before 1
st cycle) Addr: 0xCF AGC_GAIN_MAX Bit Field Reset Type Bit Description 7:4 AGC_FD_GAIN_MAX 9 R/W Flicker Detection AGC Gain Max. Sets the maximum gain for flicker detection to 2(AGC_FD_GAIN_MAX - 1). Reset value is 9 (256x). This field has a range from 0 (0.5x) to 11 (1024x). 3:0 AGC_AGAIN_MAX 9 R/W ALS AGC Gain Max. Sets the maximum gain for the ALS AGC engine to 2 (AGC_AGAIN_MAX - 1). Reset value is 9 (256x). This field has a range from 0 (0.5x) to 11 (1024x).
Datasheet, Public Page 29 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Register Overview General Configuration The configuration registers include fields used to control device operation for all functions. Figure 32: CFG0 Note(s): 1. Set RAM_BANK = 2 or 3 to access the 16 words at 0xB0 … 0xBF . These words are the time table for remote control and are mirro red over the entire 0x00 to 0x7F range. 2. Return to the Register Map ( 0xA9 ). Addr: 0xA9 CFG0 Bit Field Reset Type Bit Description 7:6 Reserved 0 5L O W P O W E R _ I D L E 0 R / W Low Power Idle. When asserted, the device will automatically run in a low power mode whenever all functions are in wait states or disabled. 4:3 Reserved 0 2 ALS_TRIGGER_LONG 0 R/W ALS Trigger Long. Increases the WTIME setting by a factor of 16. 1:0 RAM_BANK 0 R/W RAM Bank Selection. Specifies the RAM bank to access in registers 0x00 to 0x7F. VALUE BANK 2 or 3 Other (1)
Page 30 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − Register Overview Figure 33: CFG3 Note(s): 1. Return to the Register Map ( 0xAC ). Figure 34: CFG4 Note(s): 1. Return to the Register Map ( 0xAD ). Addr: 0xAC CFG3 Bit Field Reset Type Bit Description 7:5 Reserved 0 4S A I 0 R / W Sleep After Interrupt. If asserted, the oscillator is turned off whenever interrupt is active (low). SAI_ACTIVE is set in this event. To activate the oscillator again, service and clear all interrupts plus clear the SAI_ACTIVE bit. 3:0 Reserved 12 Addr: 0xAD CFG4 Bit Field Reset Type Bit Description
7 Reserved 0
6:4 INT_PINMAP 0 R/W Interrupt Pin Map. Selects the signal to output on the INT pin. VALUE SIGNAL 0N o r m a l i n t e r r u p t s
1 RESERVED
3I N T _ I N V E R T 0 R / W Interrupt Invert. If asserted, the interrupt signal is inverted (active = high). 2:0 Reserved 0
Datasheet, Public Page 31 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Register Overview Figure 35: CFG6 Note(s): 1. Return to the Register Map ( 0xAF ). Figure 36: CFG8 Note(s): 1. Return to the Register Map ( 0xB1 ). Figure 37: CFG9 Addr: 0xAF CFG6 Bit Field Reset Type Bit Description
6 ALS_AGC_MAX_GAIN_
Enables the same AGC behavior for ALS as used during flicker detection for finding the highest reasonable again setting. The AGC will start with agc_again_max as the again value. The again setting is reduced to the next lower setting until the output does not result in asat_analog or until again=0 (0.5x) is reached. 5:0 Reserved 0 Addr: 0xB1 CFG8 Bit Field Reset Type Bit Description 7:6 Reserved 2 5:3 Reserved 0
2 ALS_AGC_ENABLE 0 R/W
ALS AGC Enable. If asserted, device uses automatic gain control for the ALS engines to maximize ALS signal while avoiding saturation. 1:0 Reserved 0 Addr: 0xB2 CFG9 Bit Field Reset Type Bit Description
6 SIEN_FD 0 R/W
System Interrupt Flicker Detection. Enables system interrupt when flicker detection status change has occurred.
Page 32 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − Register Overview Note(s): 1. Return to the Register Map ( 0xB2 ). Figure 38: CFG11 Note(s): 1. Return to the Register Map ( 0xB4 ). 5:0 Reserved 0 Addr: 0xB4 CFG11 Bit Field Reset Type Bit Description 7A I N T _ D I R E C T 0 R / W ALS Interrupt Direct. Enables the direct mode of ALS interrupt. Interrupts (aint) are only generated when adataX (selected by als_th_channel) moves over the hysteresis edges (aint_ailt and aint_aiht). If "0" , interrupts are always generated if adataX is above aiht or below ailt. The status of the ALS interrupt is directly output on the INT or GPIO pin if this mode is enabled and either of those pins are configured to do so according to the INT_PINMAP and GPIO_PINMAP settings. 6:0 Reserved 64 Addr: 0xB2 CFG9 Bit Field Reset Type Bit Description
Datasheet, Public Page 33 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Register Overview Persistence filters limit the rate of interrupts generated for proximity and ALS/color data. Figure 39: PERS Note(s): 1. Return to the Register Map ( 0xBD ). Addr: 0xBD PERS Bit Field Reset Type Bit Description 7:4 Reserved 0 3:0 APERS 0 R/W ALS Interrupt Persistence. Defines a filter for the number of consecutive occurrences that ALS/color data must remain outside the threshold range between AILT and AIHT before an interrupt is generated. The ALS data channel used for the persistence filter is set by ALS_TH_CHANNEL. Any sample that is inside the threshold range resets the counter to 0. VALUE CONSECUTIVE ADATA OUT OF RANGE TO INTERRUPT 0 Every ALS cycle generates an interrupt. 51 0 …5 × (APERS – 3) 14 55 15 60
Page 34 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − Register Overview Status Registers The primary status register for TCS3408 indicates if there are saturation or interrupt events th at need to be handled by the user. This register is self-clear ing, meaning that writing a 1 to any bit in the register clears that status bit. In this way, the user should read the STATUS register, handle all indicated event(s), then write the register value back to STATUS to clear the handled events. Writing 0 to these bits will not clear those bits if they have a value of 1, wh ich means that new events that occurred since the last read of the STATUS register will not be accidentally cleared. Figure 40: STATUS Note(s): 1. Return to the Register Map ( 0x93 ). Additional status registers indi cate details about saturation, interrupts, and device execution. Addr: 0x93 STATUS Bit Field Reset Type Bit Description 7A S A T 0 R ALS and Flicker Detect Saturation. If ASIEN is set, indicates ALS saturation. Check the STATUS2 register to differentiate between analog or digital saturation. 6:4 Reserved 0 R 3A I N T 0 R ALS Interrupt. If AIEN is set, indicates that an ALS event that met the programmed ALS thresholds (AILT or AIHT) and persistence (APERS) occurred.
2 Reserved 0
Calibration Interrupt. If CIEN is set, indicates that either calibration is finished or that one of certain events have occurred during normal operation. If each function is enabled, CINT will be asserted if too many zeroes occur too often in a period of samples, if the proximity baseline has decreased, or if at least one offset register has been adjusted. Check the CALIBSTAT register to identify the triggering event(s). 0S I N T 0 R System Interrupt. If SIEN is set, indicates that one or more of several events has occurred or is complete. The events related to this interrupt are indicated in the STATUS5 register (0xA6): flicker detection register status has changed.
Datasheet, Public Page 35 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Register Overview Figure 41: STATUS2 Note(s): 1. Return to the Register Map ( 0xA3 ). Addr: 0xA3 STATUS2 Bit Field Reset Type Bit Description ALS Valid. Indicates that the ALS state has completed a cycle since either an assertion of AEN or the last readout of the ASTATUS register.
5 Reserved 0
4A S A T _ D I G I T A L 0 R ALS Digital Saturation. Indicates that the maximum counter value has been reached. Maximum counter value depends on integration time set in the ATIME register.
3 ASAT_ANALOG 0 R
ALS Analog Saturation. Indicates that the intensity of ambient light has exceeded the maximum integration level for the ALS analog circuit.
1 FDSAT_ANALOG 0 R
Flicker Detect Analog Saturation. Indicates that the intensity of ambient light has exceeded the maximum integration level for the ALS analog circuit for flicker detection. 0F D S A T _ D I G I T A L 0 R Flicker Detect Digital Saturation. Indicates that the maximum counter value has been reached during flicker detection.
Datasheet, Public Page 37 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Register Overview Figure 44: STATUS6 Note(s): 1. Return to the Register Map ( 0xA7 ). Addr: 0xA7 STATUS6 Bit Field Reset Type Bit Description 7:6 Reserved 0 5 OVTEMP_DETECTED 0 R Over Temperature Detected. Indicates the device temperature is too high. Write 1 to clear this bit.
4 FD_TRIGGER_ERROR 0 R
Flicker Detect Trigger Error. Indicates that there is a timing error that prevents flicker detect from functioning correctly.
3 Reserved 0
2 ALS_TRIGGER_ERROR 0 R
ALS Trigger Error. Indicates that there is a timing error that prevents ALS from functioning correctly. The WTIME is too short for the ATIME configured for the device. 1S A I _ A C T I V E 0 R Sleep After Interrupt Active. Indicates that the device is in SLEEP due to an interrupt. To exit SLEEP mode, clear this bit. 0I N I T _ B U S Y 0 R Initialization Busy. Indicates that the device is initializing. This bit will remain 1 for about 300μs after power on. Do not interact with the device until initialization is complete.
Datasheet, Public Page 39 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Register Overview Note(s): 1. Return to the Register Map ( 0x95 , 0x96 , 0x97 , 0x98 , 0x99 , 0x9A , 0x9B , 0x9C , 0x9D , 0x9E , 0x9F , 0xA0 ). The flicker detection status regist er indicates if flicker detection data is valid and whether 100Hz or 120Hz ambient light flicker frequencies are present. Figure 47: FD_STATUS Note(s): 1. Return to the Register Map ( 0xDB ). 7:0 0x9D ADATA4 ALS Channel Four Data. WIDEBAND data 15:8 0x9E 7:0 0x9F ADATA5 ALS Channel Five Data. FLICKER data 15:8 0xA0 Addr: 0xDB FD_STATUS Bit Field Reset Type Bit Description 7:6 Reserved 0
5 FD_MEASUREMENT_
Flicker Detection Measurement Valid. Indicates that flicker detection measurement is complete. Write 1 to this bit to clear this field.
4 FD_SATURATION_
Flicker Saturation Detected. Indicates that saturation occurred during the last flicker detection measurement, and the result may not be valid. Write 1 to this bit to clear this field.
3 FD_120HZ_FLICKER_
Flicker Detection 120Hz Flicker Valid. Indicates that the 120Hz flicker detection calculation is valid. Write 1 to this bit to clear this field.
2 FD_100HZ_FLICKER_
Flicker Detection 100Hz Flicker Valid. Indicates that the 100Hz flicker detection calculation is valid. Write 1 to this bit to clear this field. 1 FD_120HZ_FLICKER 0 R Flicker Detected at 120Hz. Indicates if an ambient light source is flickering at 120Hz. 0 FD_100HZ_FLICKER 0 R Flicker Detected at 100Hz. Indicates if an ambient light source is flickering at 100Hz. Bits Addr Field Description
Datasheet, Public Page 41 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Package Drawings & Markings Figure 50: TCS3408 Module Dimensions Note(s): 1. All linear dimensions are in micrometers. 2. The die is centered within the package within a tolerance of ±75 micrometers. 3. Package top surface is molded with an electrically nonconduct ive clear plastic compound having an index of refraction of 1.5 5. 4. Contact finish is copper alloy A194 with pre-plated NiPdAu lead finish. 5. This package contains no lead (Pb). 6. This drawing is subject to change without notice. Package Drawings & Markings GreenRoHS WR $/6&/ WR )/,&.(5&/ 64$/6 $&7,9($5($ )/,&.(5 $&7,9($5($ )/,&.(5 $&7,9($5($ 120,1$/ 3+272',2'( *3,2 ,17 &/ 62/'(5&217$&76 &/ 62/'(5&217$&76 $5($ 966 6&/ 6'$ 9'' 3*1' ACTIVE AREA
Page 42 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − PCB Pad Layout Suggested PCB pad layout guidelines for the surface mount module are shown. Flash Gold is recommended as a surface finish for the landing pads. Figure 51: Recommended PCB Pad Layout Note(s): 1. All linear dimensions are in micrometers. 2. Dimension tolerances are ±0.05mm unless otherwise noted. 3. This drawing is subject to change without notice. PCB Pad Layout 3,1
Datasheet, Public Page 43 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Tape & Reel Information Figure 52: Tape and Reel Mechanical Drawing Note(s): 1. All linear dimensions are in millimeters. Dime nsion tolerance is ± 0.10 mm unless otherwise noted. 2. The dimensions on this drawing are for illustrative purpos es only. Dimensions of an actual carrier may vary slightly. 3. Symbols on drawing Ao, Bo, and Ko are defined in ANSI EIA Standard 481−B 2001. 4. Each reel is generally 330 millimeters in diameter and contains 10000 parts. Please reconfirm for actual orders. 5. ams OSRAM packaging tape and reel confor m to the requirements of EIA Standard 481−B. 6. In accordance with EIA standard, device pin 1 is located next to the sprocket holes in the tape. 7. This drawing is subject to change without notice. Tape & Reel Information
Page 44 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − Soldering & Storage Information Soldering Information The module has been tested an d has demonstrated an ability to be reflow soldered to a PCB substrate. The solder reflow profile describes the expected maximum heat exposure of components during the solder reflow process of product on a PCB. Temperature is measured on top of component. The components should be limited to a maximum of three passes through this solder reflow profile. Figure 53: Solder Reflow Profile Note(s): 1. Tolerance for peak profile temperature (TP) is defined as a supplier minimum and a user maximum. Profile Feature Preheat/Soak Sn-Pb Eutectic Assembly Pb-Free Assembly Temperature Min ( Tsmin) 100°C 150°C Temperature Max ( Tsmax) 150°C 200°C Time (ts) from (Tsmin to Tsmax) 60-120 seconds 60-120 seconds Ramp-up rate (TL to TP) 3°C/second max. 3°C/second max. Liquidous temperature (TL) Time (tL) maintained above TL 183°C 60-150 seconds 217°C 60-150 seconds Peak package body temperature (TP) For users TP must not exceed the Classification temp of 235°C For suppliers TP must equal or exceed the Classification temp of 235°C For users TP must not exceed the Classification temp of 260°C For suppliers TP must equal or exceed the Classification temp of 260°C Time (tP)(1) within 5°C of the specified classification temperature (Tc) 20(1)seconds 30 (1)seconds Ramp-down rate (TP to TL) 6°C/second max. 6°C/second max. Time 25°C to peak temperature 6 minutes max. 8 minutes max. Soldering & Storage Information
Datasheet, Public Page 45 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Soldering & Storage Information Figure 54: Solder Reflow Profile Graph Storage Information Moisture Sensitivity Optical characteristics of the device can be adversely affected during the soldering process by the release and vaporization of moisture that has been previous ly absorbed into the package. To ensure the package contains the smallest amount of absorbed moisture possible, each device is baked prior to being dry packed for shipping. Devices are dry packed in a sealed aluminized envelope called a moisture-barrier bag with silica gel to protect them from ambient moisture during shipping, handling, and storage before use. Shelf Life The calculated shelf life of the device in an unopened moisture barrier bag is 24 months from the date code on the bag when stored under the following conditions:
- Shelf Life: 24 months
- Ambient Temperature: <40°C
- Relative Humidity: <90% Rebaking of the devices will be required if the devices exceed the 24 months shelf life or the Humidity Indicator Card shows that the devices were exposed to conditions beyond the allowable moisture region. Not to Scale – For Reference Only TP Temperature (°C) Time (seconds) tL TL TC - 5°C tP Tsmin Tsmax Preheat Area Max Ramp Up Rate = 3°C/s Max Ramp Down Rate = 6°C/s
Page 46 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − Soldering & Storage Information Floor Life The module has been assigned a moisture sensitivity level of MSL 3. As a result, the floor life of devices removed from the moisture barrier bag is 168 hours from the time the bag was opened, provided that the devices are stored under the following conditions:
- Floor Life: 168 hours
- Ambient Temperature: <30°C
- Relative Humidity: <60% If the floor life or the temperature/humidity conditions have been exceeded, the devices must be rebaked prior to solder reflow or dry packing. Rebaking Instructions When the shelf life or floor life limits have been exceeded, rebake at 50°C for 12 hours.
Datasheet, Public Page 47 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Ordering & Contact Information Figure 55:
Ordering Information
Buy our products or get free samples online at: www.ams.com/Products Technical Support is available at: www.ams.com/Technical-Support Provide feedback about this document at: www.ams.com/Document-Feedback For further information and requests, e-mail us at: ams_sales@ams.com For sales offices, distributors and representatives, please visit: www.ams.com/Contact Headquarters ams-OSRAM AG Tobelbader Strasse 30
8141 Premstaetten
Austria, Europe Tel: +43 (0) 3136 500 0 Website: www.ams.com Ordering Code Address Interface Delivery Form Delivery Quantity TCS34083 0x39 1.8V I²C Tape & Reel 10000 pcs/reel TCS34087 0x29 1.8V I²C Tape & Reel 10000 pcs/reel TCS34083M 0x39 1.8V I²C Tape & Reel 1000 pcs/reel TCS34087M 0x29 1.8V I²C Tape & Reel 1000 pcs/reel Ordering & Contact Information
Page 48 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − RoHS Compliant & ams Green Statement RoHS: The term RoHS compliant means that ams-OSRAM AG products fully comply with current RoHS directives. Our semiconductor products do not contain any chemicals for all 6 substance categories plus additional 4 substance categories (per amendment EU 2015/863), including the requirement that lead not exceed 0.1% by weight in homogeneous materials. Where designed to be soldered at high temperatures, RoHS compliant products are suitable for use in specified lead-free processes. ams Green (RoHS compliant and no Sb/Br/Cl): ams Green defines that in addition to RoHS compliance, our products are free of Bromine (Br) and Antimony (Sb) based flame retardants (Br or Sb do not exceed 0.1% by weight in homogeneous material) and do not contain Chlorine (Cl not exceed 0.1% by weight in homogeneous material). Important Information: The information provided in this statement represents ams-OSRAM AG knowledge and belief as of the date that it is provided. ams-OSRAM AG bases its knowledge and belief on information provided by third parties, and makes no representation or warranty as to the accuracy of such information. Efforts are underway to better integrate information from third parties. ams-OSRAM AG has taken and continues to take reasonable steps to provide representative and accurate information but may not have conducted destructive testing or chemical analysis on incoming materials and chemicals. ams-OSRAM AG and ams-OSRAM AG suppliers consider certain information to be proprietary, and thus CAS numbers and other limited information may not be available for release. RoHS Compliant & ams Green Statement
Datasheet, Public Page 49 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Copyrights & Disclaimer Copyright ams-OSRAM AG, Tobelbader Strasse 30, 8141 Premstaetten, Austria-Europe. Trademarks Registered. All rights reserved. The material herein may not be reproduced, adapted, merged, translated, stored, or used without the prior written consent of the copyright owner. Devices sold by ams-OSRAM AG are covered by the warranty and patent indemnification provis ions appearing in its General Terms of Trade. ams-OSRAM AG makes no warranty, express, statutory, implied, or by desc ription regarding the information set forth herein. ams-OSRAM AG reserves the right to change specifications and prices at any time and without notice. Therefore, prior to designing this product into a system, it is necessary to check with ams-OSRAM AG for current information. This product is intended for use in commercial applications. Applications re quiring extended temperature range, unusual environmental requirements, or high reliability applications, such as military, medical life-support or life-sustaining equipment are specifically not recommended without additional processing by ams-OSRAM AG for each application. This product is provided by ams-OSRAM AG “AS IS” and any express or implied wa rranties, including, but not limited to the implied warranties of merchantability and fitness for a particular purpose are disclaimed. ams-OSRAM AG shall not be liable to recipient or any third party for any damages, including but no t limited to personal injury, property damage, loss of profits, loss of use, interruption of business or indirect, special, incidental or consequential damages, of any kind, in connection with or arising out of the furnishing, performance or use of the technical data herein. No obligation or liability to recipient or any third party shall arise or flow out of ams-OSRAM AG rendering of technical or other services. Copyrights & Disclaimer
Page 50 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − Document Status Document Status Product Status Definition Product Preview Pre-Development Information in this datasheet is based on product ideas in the planning phase of development. All specifications are design goals without any warranty and are subject to change without notice Preliminary Datasheet Pre-Production Information in this datasheet is based on products in the design, validation or qualification phase of development. The performance and parameters shown in this document are preliminary without any warranty and are subject to change without notice Datasheet Production Information in this datasheet is based on products in ramp-up to full production or full production which conform to specifications in accordance with the terms of ams-OSRAM AG standard warranty as given in the General Terms of Trade Datasheet (discontinued) Discontinued Information in this datasheet is based on products which conform to specifications in accordance with the terms of ams-OSRAM AG standard warranty as given in the General Terms of Trade, but these products have been superseded and should not be used for new designs Document Status
Datasheet, Public Page 51 [v2-00] 2023-Feb-01 Document Feedback TCS3408 − Revision Information Note(s): 1. Page and figure numbers for the previous version may diff er from page and figure numbers in the current revision. 2. Correction of typographical er rors is not explicitly mentioned. Changes from 1-01 (2021-Jul-28) to current revision 2-00 (2023-Feb-01) Page Updated “Shelf Life” to 24 months 45 Revision Information
Page 52 Datasheet, Public Document Feedback [v2-00] 2023-Feb-01 TCS3408 − Content Guide
1 General Description
2 Key Benefits & Features
2 Applications
3 Block Diagram
4 Pin Assignments
5A b s o l u t e M a x i m u m R a t i n g s