TSL2301
102
×
1 LINEAR OPTICAL SENSOR ARRAY
WITH ANALOG TO DIGITAL CONVERTER
TAOS007 – JULY 2000
ABORTPixel – Abort Pixel Data Read
Encoding: 0x19: <0001_1001>
ABORTPixel
is an optional command that stops a
READPixel
command during its execution. It also causes pixel
integration to terminate and to enter the auto-zero/reset state. Any values that were being held in the array’s
sample/hold circuits are lost.
READHold – Sample and Read Combination
Encoding: 0x12: <0001_0010>
READHold
is a macro command that combines both the
SAMPLEInt
and
READPixel
commands into a single
command. It is also provided as a shortcut for advanced users.
READHoldNStart Combination
Encoding: 0x16: <0001_0110>
READHold
is a macro command that combines the
SAMPLEInt, READPixel,
and
StartInt
commands into a
single command, and is provided as a shortcut for advanced users.
Register Commands
The register commands provide the user the capability of setting gain and offset corrections for each of the three
zones of pixels. a4–a0 refer to the register address as given in Table 2.
REGWrite – Write a Gain/Offset/Mode Register
Encoding: 0x40 <data>: <010a4_a3a2a1a0> <d7d6d5d4_d3d2d1d0>
REGWrite
writes a value into either a gain, offset, or mode register. The 5-bit address of the register is encoded
into the command byte (the first byte). A second byte, which contains the data to be written, follows the command
byte.
REGRead – Read a Gain/Offset/Mode Register
Encoding: 0x60: <011a4_a3a2a1a0>
REGRead
reads the value previously stored in a gain, offset, or mode register. The 5-bit address of the register
is encoded into the command byte. Then, following receipt of the
REGRead
command, the device places the
contents of the selected register onto the SDOUT pin, LSB first. Data will be available to read 4 clocks after the
execution of the command.
Table 4. Summary of Command Types and Formats
COMMAND TYPE
Reset
Pixel action
Register read
Register write
< Command byte >
< Command byte >
< Command byte >
< Command byte > < Data byte>
FORMAT
Copyright
E
2000, TAOS Inc.
t
www.taosinc.com
8
t