OPT3004EVM Software
11
SBOU220 – December 2018
Copyright © 2018, Texas Instruments Incorporated
OPT3004EVM User's Guide
Figure 12. I
2
C Address Selection
To quickly start using the device, leave the default settings selected, and click the
Write Reg x01
button,
and then click the
Run Continuously
flip switch. The software then begins capturing lux data from the
device. This
quick start
is a good test to make sure everything is operational. To stop the computer from
capturing data and plotting, click
Run Continuously
again.
3.4.2
Feature Descriptions
Register x00 is a read-only register that holds the range and converted value. These data are used (per
the
) to compute the lux output, labeled
Reg x00 Lux
in
. Click the
Read
Reg x00
button to update these fields and the plot with the latest values from the OPT3004EVM.
Figure 13. Register x00 Button and Recorded Values
Register x01 configures the OPT3004 and provides feedback about the state of the device; the bit names
and full descriptions are shown in the
. Each of the configurable, read and write bits
has a drop-down menu to select the appropriate value. Each of the read-only status bits has an
associated small, green indicator. As shown in
, two buttons are provided to operate register x01
because some of the bits have read and write capability. Note that in
, the
Lux Full Scale Range
selection field has four identical automatic range modes: 0x0C-0x0F. Also, the
Mode
selection field has
two identical continuous sampling options: 0x02 and 0x03.
Figure 14. Register x01 Control and Status Register Bits
Registers x02 and x03 enforce low and high limits, respectively, on the output ranges (exponent) and
values (mantissa) from the OPT3004. These registers are programmed with the appropriate fields, as
shown in
. Change the values of the data in these fields to write and read the values from the
OPT3004; no button press is required. However, if values are manually entered, exit the text field for the
field to update.