TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134 − MARCH 2011
16
r
r
Copyright E 2011, TAOS Inc.
The LUMENOLOGY r Company
www.taosinc.com
ID2 Register (1Eh)
In combination with the ID register, the ID2 register provides a means to identify the device as a TSL2581 or
a TSL2583. Although this is a W/R register, it is strongly advised that this register not be written to. Any value
written to this register could adversely affect the performance of the device.
Table 14. ID2 Register
67542310
Reserved ID Reserved
Address
00h
Reset
00h
Bit :
FIELD BIT DESCRIPTION
Reserved 7:6 Reserved.
ID 5:4 ID. 00b = TSL2581, 11b = TSL2583
Reserved 3:0 Reserved.
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134 − MARCH 2011
17
The LUMENOLOGY r Company
r
r
Copyright E 2011, TAOS Inc.
www.taosinc.com
APPLICATION INFORMATION: SOFTWARE
Basic Operation
After applying V
DD
, 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 01h to the CONTROL register to power up the
device. The TIMING register should be configured for the preferred integration period, and then the ADC_EN
should be set to 1 to enable both ADC channels.
(ADC_EN = 1
Power =1)
EXT
PWR
POWER
DOWN
NO
YES
ACTIVE
(ADC_EN = 0
Power = 1)
ALS
(Power = 0)
Figure 5. State Diagram
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134 − MARCH 2011
18
r
r
Copyright E 2011, TAOS Inc.
The LUMENOLOGY r Company
www.taosinc.com
APPLICATION INFORMATION: SOFTWARE
The following pseudo code illustrates a procedure for reading the TSL258x device (ALS) using word
transactions:
Command = 0x80 //Set Command bit and Control Reg
Power_On = 0x01
//Power on device
WriteByte (Address, Command, Power_On)
Command = 0x81 //Set Command bit and ALS Timing Reg
ATIME = 0xb6 //200 ms integration cycle
//Configure ALS Timing Register for 200 ms integration cycle
WriteByte (Address, Command, ATIME)
Command = 0x80 //Set Command bit and Control Reg
ADC_En = 0x03 //Enable ADC Channels
//Keep device powered on and enable ADC prior to reading channel data
WriteByte (Address, Command, ADC_En | Power_On)
// Read ADC Channels Using Read Word Protocol − RECOMMENDED
//Address the Ch0 lower data register and configure for Read Word
Command = 0Xb4 //Set Command bit and Word bit
//Reads two bytes from sequential registers 0x14 and 0x15
//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 = 0xb6 //Set Command bit and Word bit
//Reads two bytes from sequential registers 0x16 and 0x17
//Results are returned in DataLow and DataHigh variables
ReadWord (Address, Command, DataLow, DataHigh)
Channel1 = 256 * DataHigh + DataLow //Shift DataHigh to upper byte

TSL2581FN

Mfr. #:
Manufacturer:
ams
Description:
Light to Digital Converters Light to Digital 30x Sensitivity
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union