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 31
Addr: 0x10
COMMAND
Field
Name
Rst
Type
Description
4
Set to get short distance histograms
6:5
Always set to ‘00
7
Set to get distance measurement histograms.
Bin 127 respectively bin 255 is used as scaling factor for this
type of histograms. The scaling factor is 0 for no scaling, 1 for
2x, 2 for 4x and so on.
cmd_data2 = Set to 0x00
cmd_data1 = = Bitmask for pileup correct histograms readout:
Bit
Definition
0
Set to get pileup corrected distance measurement histograms
1
Set to get pileup corrected sum histogram
2
Set bit 2 to get pileup corrected short distance histogram
7:3
Always set to 0
cmd_data0 = set to 0x00
Once above bitmask is set, the device is programmed to stop when the
histogram is available. Set command=0x04 to actually perform the
measurement.
0x32
After the host has readout the histogram, continue with internal processing.
0x47
Read out serial number results see section 0
Serial Number Readout
0x49
Change the I²C address of TMF8801
cmd_data0 = Condition if I²C address is changed; program the GPIOs
input/output accordingly before using this feature (commands 0x02, 0x03
or 0x0F):
Bit
Definition
0
mask_gpio0
1
mask_goio1
2
value_gpio0
3
value_gpio1
7:4
always set to 0
The I²C address change is executed only if
(mask_gpio1 & GPIO1) << 1 + (mask_gpio0 & GPIO0) == value_gpio1 <<
1 + value_gpio0
where GPIO1 and GPIO0 is the current status on pin GPIO1 and pin
GPIO0. If this conditional programming is not used, set cmd_data0 to
0x00.
cmd_data1 = New I²C address
Bit
Definition
0
Set to ‘0’
7:1
New I²C address to be used