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 30
Addr: 0x10
COMMAND
Field
Name
Rst
Type
Description
0x0A
Perform factory calibration in the final customer application including cover
glass, no ambient light and no target.
The result from the factory calibration is stored from register 0x20 onwards
(14 bytes).
0x0B
Set flag to download calibration (and algorithm state) configuration to
TMF8801
cmd_data0 = 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.
0x0F
Set gpio control setting without actually performing a measurement as
commands 0x02 or 0x03 would do:
cmd_data0 = Bits for GPIO control
Bits
Definition
3:0
GPIO0 settings
0 Input
1 - Input: active low disables collection, immediately abandoning
current measurement. Returning to high restarts new
measurement
2 - Input: active high disables collection, immediately
abandoning current measurement. Returning to low restarts new
measurement
3 - Output: VCSEL pulse output
4 - Output low
5 - Output high
6:15 Reserved, do not use
7:4
GPIO1 settings
0 - Input
1 - Input: active low disables collection, immediately abandoning
current measurement. Returning to high restarts new
measurement
2 - Input: active high disables collection, immediately
abandoning current measurement. Returning to low restarts new
measurement
3 - Output: VCSEL pulse output
4 - Output low
5 - Output high
6:15 Reserved, do not use
0x30
Enable histogram readout; the internal state machine will stop when a
histogram (e.g. calibration) is available and wait for readout by the host. If
the selected histogram is readout, the host shall continue the state
machine by sending command 0x32
cmd_data3 = Bitmask for the histograms to be readout:
Bit
Definition
0
Always set to ‘0’
1
Set to get electrical calibration histograms
2
Set to get optical calibration histogram
3
Always set to ‘0’