전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

TCS3404CS 데이터시트(PDF) 32 Page - ams AG

부품명 TCS3404CS
상세설명  DIGITAL COLOR SENSORS
PDF  41 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  AMSCO [ams AG]
홈페이지  http://www.ams.com
Logo AMSCO - ams AG

TCS3404CS 데이터시트(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


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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