Confused on storing antenna delays in OTP

Hello,

When looking into the register map for OTP memory, I am confused on how they are storing both TX and RX antenna delays, for both PRF 64 and PRF 16 modes, all in 4 bytes…

image

In the deca_driver functions dwt_settxantennadelay and dwt_setrxantennadelay, they accept 16-bit unsigned values, so each RX and TX antenna delays are 16-bits. But according to the register map in OTP memory, each antenna delay would be 8-bits since they are storing TX/RX for both PRF 64 and PRF 16 in only 4 bytes…

I am trying to write some C code that will update this OTP after calibration, but I am not sure how i will store both RX and TX antenna delays for a specific PRF, based on that memory map.

Thanks,
Nicolas

It’s normal to assume the Rx and Tx delays are the same unless you are using some external amplifier.

This may not actually be true but since most range calculations require the same number of timed transmits as timed receptions exactly how the delay is allocated between the two doesn’t normally make a lot of difference.

1 Like