Datasheet

ams Datasheet Page 25
[v1-08] 2020-Jun-29 Document Feedback
TMF8701 − Register Description
cmd_data4 = If cmd_data5 enables VCSEL pulse output
for GPIO0 and/or GPIO1, cmd_data4 sets its timings as
follows. If set to non-zero, GPIO1 shows the VCSEL pulse;
additionally the GPIO1 signal can be set to be asserted
before the VCSEL pulse starts
‘0’ - No signal,
‘1’ - GPIOx, rises 0μs time before VCSEL pulse starts
‘2’ - GPIOx rises 100μs before VCSEL pulse,
‘3’ - GPIOx rises 200μs before VCSEL pulse and so on.
The falling edge of GPIOx happens at the same time the
VCSEL stops emitting light.
cmd_data3 = Reserved for future, use 0x00.
cmd_data2 = Repetition period in ms, use 0 for single
measurement; if the repetition period is set lower than
the ranging time for this mode, the TMF8701 runs at it
maximum possible speed (best effort approach).
cmd_data1 = Reserved for future, use 0xFF
cmd_data0 = Reserved for future, use 0xFF
Once a measurement is finished the interrupt is asserted if
it is enabled by int1_enab. Additionally the transaction ID
tid is updated.
0x04
Set flag to perform distance measurement (no proximity
algorithm is used) with 5 bytes of data containing where:
cmd_data4 = If set to non-zero, GPIO1 shows the VCSEL
pulse; additionally the GPIO1 signal can be set to be
asserted before the VCSEL pulse starts,
0 for no signal,
‘1’=0μs time before VCSEL pulse
‘2’=GPIO1 starts 100μs before VCSEL pulse,
‘3’= GPIO1 starts 200μs before VCSEL pulse.
cmd_data3 = Reserved for future, use 0x00
cmd_data2 = Repetition period in ms, use 0 for single
ranging; if the repetition period is set lower than the
ranging time for this mode, the TMF8701 runs at it
maximum possible speed (best effort approach)
cmd_data1 = Reserved for future, use 0xFF
cmd_data0 = Reserved for future, use 0xFF
Once a measurement is finished the interrupt is asserted if
it is enabled by int1_enab. Additionally the transaction ID
tid is updated.
0x10: COMMAND
Field Name Reset Type Description