DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

TSL2562 查看數據表(PDF) - TEXAS ADVANCED OPTOELECTRONIC SOLUTIONS

零件编号
产品描述 (功能)
生产厂家
TSL2562
TAOS
TEXAS ADVANCED OPTOELECTRONIC SOLUTIONS TAOS
TSL2562 Datasheet PDF : 42 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
TSL2562, TSL2563
LOW-VOLTAGE
LIGHT-TO-DIGITAL CONVERTER
TAOS066N − AUGUST 2010
APPLICATION INFORMATION: SOFTWARE
Basic Operation
After applying VDD, the device will initially be in the power-down state. To operate the device, issue a command
to access the CONTROL register followed by the data value 03h to power up the device. At this point, both ADC
channels will begin a conversion at the default integration time of 400 ms. After 400 ms, the conversion results
will be available in the DATA0 and DATA1 registers. Use the following pseudo code to read the data registers:
// Read ADC Channels Using Read Word Protocol − RECOMMENDED
Address = 0x39
//Slave addr – also 0x29 or 0x49
//Address the Ch0 lower data register and configure for Read Word
Command = 0xAC
//Set Command bit and Word bit
//Reads two bytes from sequential registers 0x0C and 0x0D
//Results are returned in DataLow and DataHigh variables
ReadWord (Address, Command, DataLow, DataHigh)
Channel0 = 256 * DataHigh + DataLow
//Address the Ch1 lower data register and configure for Read Word
Command = 0xAE
//Set bit fields 7 and 5
//Reads two bytes from sequential registers 0x0E and 0x0F
//Results are returned in DataLow and DataHigh variables
ReadWord (Address, Command, DataLow, DataHigh)
Channel1 = 256 * DataHigh + DataLow
//Shift DataHigh to upper byte
// Read ADC Channels Using Read Byte Protocol
Address = 0x39
Command = 0x8C
ReadByte (Address, Command, DataLow)
Command = 0x8D
ReadByte (Address, Command, DataHigh)
Channel0 = 256 * DataHigh + DataLow
Command = 0x8E
ReadByte (Address, Command, DataLow)
Command = 0x8F
ReadByte (Address, Command, DataHigh)
Channel1 = 256 * DataHigh + DataLow
//Slave addr − also 0x29 or 0x49
//Address the Ch0 lower data register
//Result returned in DataLow
//Address the Ch0 upper data register
//Result returned in DataHigh
//Shift DataHigh to upper byte
//Address the Ch1 lower data register
//Result returned in DataLow
//Address the Ch1 upper data register
//Result returned in DataHigh
//Shift DataHigh to upper byte
The LUMENOLOGY r Company
r
r
www.taosinc.com
Copyright E 2010, TAOS Inc.
19

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]