English
Language : 

TSL2580 Datasheet, PDF (19/34 Pages) TEXAS ADVANCED OPTOELECTRONIC SOLUTIONS – LIGHT-TO-DIGITAL CONVERTER
TSL2580, TSL2581
LIGHT-TO-DIGITAL CONVERTER
APPLICATION INFORMATION: SOFTWARE
TAOS098 − MARCH 2010
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 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.
EXT
PWR
NO
YES
POWER
DOWN
(Power = 0)
ACTIVE
(ADC_EN = 0
Power = 1)
ALS
(ADC_EN = 1
Power =1)
Figure 15. State Diagram
The following pseudo code illustrates a procedure for reading the TSL258x device (ALS) using word
transactions:
Command = 0x80
Power_On = 0x01
//Set Command bit and Control Reg
//Power on device
WriteByte (Address, Command, Power_On)
Command = 0x81
ITIME = 0xb6
//Set Command bit and ALS Timing Reg
//200 ms integration cycle
//Configure ALS Timing Register for 200 ms integration cycle
WriteByte (Address, Command, ITIME)
Command = 0x80
ADC_En = 0x03
//Set Command bit and Control Reg
//Enable ADC Channels
//Keep device powered on and enable ADC prior to reading channel data
WriteByte (Address, Command, ADC_En | Power_On)
The LUMENOLOGY r Company
r
r
www.taosinc.com
Copyright E 2010, TAOS Inc.
19