Datasheet

Datasheet - Apr. 2013 - ams163.5 TSL2591 – 11
The COMMAND register specifies the address of the target
register for future read and write operations, as well as issues
special function commands.
76543210
CMD TRANSACTION ADDR/SF
Fields Bits Description
CMD 7
Select Command Register. Must write as 1 when addressing
COMMAND register.
TRANSACTION 6:5
Select type of transaction to follow in subsequent data transfers
FIELD VALUE DESCRIPTION
00 Reserved - Do not use
01 Normal Operation
10 Reserved – Do not use
11 Special Function – See description below
ADDR/SF 4:0
Address field/special function field. Depending on the transaction
type, see above, this field either specifies a special function
command or selects the specific control-status-data register for
subsequent read and write transactions. The field values listed
below apply only to special function commands.
FIELD VALUE DESCRIPTION
00100 Interrupt set – forces an interrupt
00110 Clears ALS interrupt
00111 Clears ALS and no persist ALS interrupt
01010 Clears no persist ALS interrupt
other Reserved – Do not write
The interrupt set special function command sets the interrupt bits
in the status register (0x13). For the interrupt to be visible on the
INT pin, one of the interrupt enable bits in the enable register
(0x00) must be asserted.
The interrupt set special function must be cleared with an interrupt
clear special function. The ALS interrupt clear special functions
clear any pending interrupt(s) and are self-clearing.
Command Register