tsl2580 ETC-unknow, tsl2580 Datasheet - Page 19

no-image

tsl2580

Manufacturer Part Number
tsl2580
Description
Light-to-digital Converter
Manufacturer
ETC-unknow
Datasheet
Basic Operation
The LUMENOLOGY r Company
After applying V
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.
The following pseudo code illustrates a procedure for reading the TSL258x device (ALS) using word
transactions:
Command = 0x80
Power_On = 0x01
//Power on device
WriteByte (Address, Command, Power_On)
Command = 0x81
ITIME = 0xb6
//Configure ALS Timing Register for 200 ms integration cycle
WriteByte (Address, Command, ITIME)
Command = 0x80
ADC_En = 0x03
//Keep device powered on and enable ADC prior to reading channel data
WriteByte (Address, Command, ADC_En | Power_On)
DD
, the device will initially be in the power-down state. To operate the device, issue a command
APPLICATION INFORMATION: SOFTWARE
r
Figure 15. State Diagram
www.taosinc.com
(ADC_EN = 0
(ADC_EN = 1
(Power = 0)
Power = 1)
POWER
ACTIVE
Power =1)
DOWN
PWR
EXT
ALS
YES
//Set Command bit and Control Reg
//Set Command bit and ALS Timing Reg
//200 ms integration cycle
//Set Command bit and Control Reg
//Enable ADC Channels
NO
LIGHT-TO-DIGITAL CONVERTER
r
TSL2580, TSL2581
Copyright E 2010, TAOS Inc.
TAOS098 − MARCH 2010
19

Related parts for tsl2580