This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDC7200: Understanding right shift in multi-cycle averaging

Part Number: TDC7200

Hello!
I am using TDC7200 TOF sensor witg 32 cycles averaging and measurement mode 2.

Datasheet states that clock counter should be shifted by log2(AVG_CYCLES) in multi cycle averaging.

My understanding is that the original result is just count from all the 32 cycles. Therefore division operation is needed.
In that case I understand that dividing the result and storing it in floating point variable would yield a more precise output.

Is that correct?

Thanks

  • Hello Piotr,

    Thanks for posting to the sensors forum!

    Your understanding is correct, so the result should definitely be stored in a floating point variable to ensure you have the most precise decimal result from the calculation.

    I hope this answers your question.

    Best,

    Isaac