English
Language : 

TCS3404_11 Datasheet, PDF (23/41 Pages) ams AG – DIGITAL COLOR SENSORS
TCS3404, TCS3414
DIGITAL COLOR SENSORS
TAOS137A − APRIL 2011
// Read ADC Channels Using Read Byte Protocol
Address = 0x39
//Slave addr − also 0x29 or 0x49
Command = 0x90
//Address the Ch1 lower data register
ReadByte (Address, Command, DataLow)
//Result returned in DataLow
Command = 0x91
//Address the Ch1 upper data register
ReadByte (Address, Command, DataHigh)
//Result returned in DataHigh
Channel1 = 256 * DataHigh + DataLow
Command = 0x92
ReadByte (Address, Command, DataLow)
Command = 0x93
lid ReadByte (Address, Command, DataHigh)
Channel2 = 256 * DataHigh + DataLow
Command = 0x94
ReadByte (Address, Command, DataLow)
a Command = 0x95
ReadByte (Address, Command, DataHigh)
v Channel3 = 256 * DataHigh + DataLow
Command = 0x96
ill ReadByte (Address, Command, DataLow)
Command = 0x97
ReadByte (Address, Command, DataHigh)
Technicaaml scoAnGtent st Channel4 = 256 * DataHigh + DataLow
//Shift DataHigh to upper byte
//Address the Ch2 lower data register
//Result returned in DataLow
//Address the Ch2 upper data register
//Result returned in DataHigh
//Shift DataHigh to upper byte
//Address the Ch3 lower data register
//Result returned in DataLow
//Address the Ch3 upper data register
//Result returned in DataHigh
//Shift DataHigh to upper byte
//Address the Ch4 lower data register
//Result returned in DataLow
//Address the Ch4 upper data register
//Result returned in DataHigh
//Shift DataHigh to upper byte
Copyright E 2011, TAOS Inc.
22
r
www.taosinc.com
The LUMENOLOGY r Company
r