欢迎访问ic37.com |
会员登录 免费注册
发布采购

TCS3414 参数 Datasheet PDF下载

TCS3414图片预览
型号: TCS3414
PDF下载: 下载PDF文件 查看货源
内容描述: 数字色彩传感器 [DIGITAL COLOR SENSORS]
分类和应用: 传感器
文件页数/大小: 40 页 / 348 K
品牌: TAOS [ TEXAS ADVANCED OPTOELECTRONIC SOLUTIONS ]
 浏览型号TCS3414的Datasheet PDF文件第19页浏览型号TCS3414的Datasheet PDF文件第20页浏览型号TCS3414的Datasheet PDF文件第21页浏览型号TCS3414的Datasheet PDF文件第22页浏览型号TCS3414的Datasheet PDF文件第24页浏览型号TCS3414的Datasheet PDF文件第25页浏览型号TCS3414的Datasheet PDF文件第26页浏览型号TCS3414的Datasheet PDF文件第27页  
TCS3404, TCS3414  
DIGITAL COLOR SENSORS  
TAOS137A − APRIL 2011  
APPLICATION INFORMATION: SOFTWARE  
Configuring the Timing Register  
The command, timing, and control registers are initialized to default values on power up. Setting these registers  
to the desired values would be part of a normal initialization or setup procedure. In addition, to maximize the  
performance of the device under various conditions, the integration time and gain may be changed often during  
operation. The following pseudo code illustrates a procedure for setting up the timing register for various  
options.  
// Set up Timing Register  
//Low Gain (1x), integration time of 12ms (default value)  
Address = 0x39  
Command = 0x81  
//Timing Register  
Data = 0x02  
WriteByte(Address, Command, Data)  
//Low Gain (1x), integration time of 101ms  
Command = 0x81  
//Timing Register  
Data = 0x01  
WriteByte(Address, Command, Data)  
//Low Gain (1x), integration time of 12ms  
Data = 0x00  
WriteByte(Address, Command, Data)  
//High Gain (16x), integration time of 101ms  
Command = 0x81  
//Timing Register  
Data = 0x01  
WriteByte(Address, Command, Data)  
Command = 0x87  
//Gain Control Register  
Data = 0x20  
WriteByte(Address, Command, Data)  
//Read data registers (see Basic Operation example)  
//Perform Manual Integration of 50 us  
//Set up for manual integration  
Command = 0x80  
Data = 0x01  
//Disable ADC_EN  
WriteByte(Address, Command, Data)  
Command = 0x81  
Data = 0x10  
WriteByte(Address, Command, Data)  
//Set manual integration  
//Enable ADC_EN and begin integration  
//Wait for 50ms  
Command = 0x80  
Data = 0x03  
WriteByte(Address, Command, Data)  
//Integrate for 50ms  
Sleep (50)  
//Stop integrating  
Command 0x80  
Data = 0x01  
//Disable ADC_EN and stop integration  
WriteByte(Address, Command, Data)  
//Read data registers (see Basic Operation example)  
Copyright E 2011, TAOS Inc.  
The LUMENOLOGY r Company  
r
r
www.taosinc.com  
23  
 复制成功!