Fermion TMF8801 ToF Distance Ranging Sensor (20-2500mm) - Datasheet

Table Of Contents
Document Feedback
TMF8801
Register Description
Datasheet PUBLIC
DS000648 v8-00 • 2021-Jul-08
69 28
8.9.11 COMMAND Register (Address 0x10)
Figure 39:
COMMAND Register
Addr: 0x10
COMMAND
Field
Name
Rst
Type
Description
7:0
command
0
RW
Direct the device to control or select contents of the registers from
0x20...0xDF
Setting
Meaning
0x00
No command
0x02
Set flag to perform target distance measurement with 8 bytes of data
containing where including setting of calibration (and algorithm state)
configuration.
cmd_data7 = Bit mask which calibration/state data was downloaded from
the host to TMF8801 prior to setting this command:
Bits
Definition
0
dataFactoryCal: When 1 data from register 0x20 onward
includes factory calibration
1
dataAlgState: If set, also set dataFactoryCal=1. Data from
register 0x20 onwards includes factory calibration and
algorithm state.
cmd_data6… cmd_data0: Identical to command=0x03.
0x03
Set flag to perform target distance measurement with 7 bytes of data
containing where
cmd_data6 = Bit mask which algorithm is used
Bits
Definition
0
Set to ‘1’
1
Set to ‘1’
2
VCSEL_clk_div2: If set, operates the VCSEL clock at half
frequency - see section 7.7 - and doubles the ranging active time
where the VCSEL is enabled. It is recommended to use together
with spread_spectrum_mode=1.
3
Reserved; set to 0b.
4
algImmediateInterrupt When 1 target distance measurement
will immediately report to the host an interrupt of the capturing
caused by a GPIO event; when 0, will only report to the host
when target distance measurement was finished
5
When 1 combine the capture of the short and long distance
histogram for maximum speed
6
Reserved; set to 0.
7
When 1 do not go to standby between measurements (faster
measurement times but higher current consumption)