Moteur de recherche de fiches techniques de composants électroniques
  French  ▼
ALLDATASHEET.FR

X  

TCS3404CS Fiches technique(PDF) 32 Page - ams AG

No de pièce TCS3404CS
Description  DIGITAL COLOR SENSORS
PDF  41 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricant  AMSCO [ams AG]
Site Internet  http://www.ams.com
Logo AMSCO - ams AG

TCS3404CS Fiches technique(HTML) 32 Page - ams AG

Back Button TCS3404CS Datasheet HTML 28Page - ams AG TCS3404CS Datasheet HTML 29Page - ams AG TCS3404CS Datasheet HTML 30Page - ams AG TCS3404CS Datasheet HTML 31Page - ams AG TCS3404CS Datasheet HTML 32Page - ams AG TCS3404CS Datasheet HTML 33Page - ams AG TCS3404CS Datasheet HTML 34Page - ams AG TCS3404CS Datasheet HTML 35Page - ams AG TCS3404CS Datasheet HTML 36Page - ams AG Next Button
Zoom Inzoom in Zoom Outzoom out
 32 / 41 page
background image
TCS3404, TCS3414
DIGITAL COLOR SENSORS
TAOS137A − APRIL 2011
31
The LUMENOLOGY
r Company
r
r
Copyright
E 2011, TAOS Inc.
www.taosinc.com
APPLICATION INFORMATION: SOFTWARE
The following example pseudo code illustrates the configuration of an SMB-Alert style interrupt when the light
intensity changes 20% from the current value, and persists for 2.5 seconds:
//Assume Interrupt Source as Channel 1
//Read current light level
Address = 0x39
//Slave address − alternatively 0x29 or 0x49
Command = 0xB0
//Set Command bit and SMBus Word read
ReadWord (Address, Command, DataLow, DataHigh)
Channel1 = (256 * DataHigh) + DataLow
//Calculate upper and lower thresholds
T_Upper = Channel1 + (0.2 * Channel1)
T_Lower = Channel1 − (0.2 * Channel1)
//Write the lower threshold register
Command = 0xA8
//Address lower threshold register, set Word Bit
WriteWord (Address, Command, T_Lower.LoByte, T_Lower.HiByte)
//Write the upper threshold register
Command = 0xAA
//Address upper threshold register, set Word bit
WriteWord (Address, Command, T_Upper.LoByte, T_Upper.HiByte)
//Enable interrupt
Command = 0x82
//Address interrupt register
Data = 0x24
//SMBAlert style, Persist 2.5 seconds
WriteByte(Address, Command, Data)
In order to generate an interrupt on demand during system test or debug, a test mode (INTR = 11) can be used.
The following example illustrates how to generate an interrupt on demand:
// Generate an interrupt
Address = 0x39
//Slave address alternately 0x29 or 0x49
Command = 0x82
//Address Interrupt Control Register
Data = 0x30
//Test interrupt
WriteByte(Address, Command, Data)
//Interrupt line should now be low



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41


Fiches technique Télécharger

Go To PDF Page


Lien URL



ALLDATASHEET vous a-t-il été utile ?  [ DONATE ] 

À propos de Alldatasheet   |   Publicité   |   Contactez-nous   |   Politique de confidentialité   |   Lien vers la fiche technique    |   Echange de liens   |   Fabricants
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com