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

TCS3414 参数 Datasheet PDF下载

TCS3414图片预览
型号: TCS3414
PDF下载: 下载PDF文件 查看货源
内容描述: 数字色彩传感器 [DIGITAL COLOR SENSORS]
分类和应用: 传感器
文件页数/大小: 40 页 / 348 K
品牌: TAOS [ TEXAS ADVANCED OPTOELECTRONIC SOLUTIONS ]
 浏览型号TCS3414的Datasheet PDF文件第17页浏览型号TCS3414的Datasheet PDF文件第18页浏览型号TCS3414的Datasheet PDF文件第19页浏览型号TCS3414的Datasheet PDF文件第20页浏览型号TCS3414的Datasheet PDF文件第22页浏览型号TCS3414的Datasheet PDF文件第23页浏览型号TCS3414的Datasheet PDF文件第24页浏览型号TCS3414的Datasheet PDF文件第25页  
TCS3404, TCS3414  
DIGITAL COLOR SENSORS  
TAOS137A − APRIL 2011  
APPLICATION INFORMATION: SOFTWARE  
Basic Operation  
After applying V , the device will initially be in the power−down state. To operate the device, issue a command  
DD  
to access the control register followed by the data value 03h to the control register to set ADC_EN and POWER  
to power up the device. At this point, all four ADC channels will begin a conversion at the default integration time  
of 12 ms. After 12 ms, the conversion results will be available in ADC Channel Data Registers (10h through 17h).  
The following pseudo code illustrates a procedure for reading the TCS3404/14 device using Word and Byte  
transactions:  
// Read ADC Channels Using Read Word Protocol − RECOMMENDED  
Address = 0x39  
Command = 0x80  
PowerUp = 0x03  
//Power Up and Enable ADC  
//Wait for integration conversion  
//Address the Ch1 lower data register and configure for Read Word  
Command = 0xB0  
//Set Command bit and Word transaction  
//Reads two bytes from sequential registers 10h and 11h  
//Results are returned in DataLow and DataHigh variables  
ReadWord (Address, Command, DataLow, DataHigh)  
Channel1 = 256 * DataHigh + DataLow  
//Address the Ch2 lower data register and configure for Read Word  
Command = 0xB2  
//Set Command bit and Word transaction  
//Reads two bytes from sequential registers 12h and 13h  
//Results are returned in DataLow and DataHigh variables  
ReadWord (Address, Command, DataLow, DataHigh)  
Channel2 = 256 * DataHigh + DataLow //Shift DataHigh to upper byte  
//Address the Ch3 lower data register and configure for Read Word  
Command = 0xB4  
//Set Command bit and Word transaction  
//Reads two bytes from sequential registers 14h and 15h  
//Results are returned in DataLow and DataHigh variables  
ReadWord (Address, Command, DataLow, DataHigh)  
Channel3 = 256 * DataHigh + DataLow  
//Address the Ch4 lower data register and configure for Read Word  
Command = 0xB8  
//Set Command bit and Word transaction  
//Reads two bytes from sequential registers 16h and 17h  
//Results are returned in DataLow and DataHigh variables  
ReadWord (Address, Command, DataLow, DataHigh)  
Channel4 = 256 * DataHigh + DataLow //Shift DataHigh to upper byte  
Copyright E 2011, TAOS Inc.  
The LUMENOLOGY r Company  
r
r
www.taosinc.com  
21  
 复制成功!