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.

LAUNCHXL-CC1352R1: How can I change the value of „syncTimeAdjust” parameter?

Part Number: LAUNCHXL-CC1352R1

Hi,

I work on LAUNCHXL-CC1352R1 (chip revision E).

According to 25.5.3.1 in the CC13x2 manual, the receiver can append a timestamp to the received frame (rxConfig.bAppendTimeStamp). The timestamp is captured when SFD is found but adjusted to reflect the start of the frame (assuming 8 preamble bytes as per the standard).
There is also short information about „syncTimeAdjust” parameter in this chapter.
Unfortunately, I’m not able to find detailed information about changing this „syncTimeAdjust” parameter. The only information I already have is to use overrides.
static uint32_t pOverrides[] =
{

(uint32_t)0xFFFFFFFF
}
RF_cmdPropRadioDivSetup.pRegOverride = &pOverrides;

How can I change the value of „syncTimeAdjust” parameter?

I understand that RF Studio can be used to generate default Overrides.
but...
Where can I find a full list of available overrides parameters?

I can find some clues inside the BLE implementation:
// Overrides for CMD_BLE5_RADIO_SETUP
uint32_t pOverrides1Mbps[] =
{
….
// Bluetooth 5: Compensate syncTimeadjust
(uint32_t)0x015302A3,
(uint32_t)0xFFFFFFFF
};

How to interpret this value?

In my specific project, I would like to change the „syncTimeAdjust” parameter to the value at which the timestamp will indicate the beginning of SFD.

/Adam

  • The syncTimeAdjust parameter is given by bits 16.31 and are in RAT ticks (0.25 us)

    (uint32_t)((adjustRatTicks << 16) | 0x02A3)

    Many overrides have different meaning based on which PHY you are running, and normally you should just use the overrides given by SmartRF Studio, for the given settings/PHY you have selected.

    BR

    Siri

  • Hi Siri

    What is the default value of adjustRatTicks assuming no overrides (CMD_IEEE_TX)?

    Assuming adjustRatTicks = 0us, where does the timestamp points in the frame?
    a) The timestamp indicates the beginning of SFD
    or
    b) The timestamp indicates the end of the SFD byte

    Can I set "adjustRatTicks" to the value less than 0?
    I would like the timestamp to indicate the beginning of DPDU.

    /Adam

  • By increasing adjustRatTicks with 1, the reported timestamp is reduced by 1.

    It is not possible to set a negative number. The default when using  the IEEE API (IEEE 802.15.4 @ 2.4 GHz (O-QPSK)) is 0x02E5.

     Siri

  • In the manual on page 1954, we can read:
    "The timestamp is captured when SFD is found but adjusted to reflect the start of the frame (assuming 8 preamble bytes as per the standard), defined so that it corresponds to the time of the start trigger used on the transmit side. The adjustment is defined in the syncTimeAdjust firmware-defined parameter, and may be overridden."

    The default value (syncTimeAdjust) is 741 RAT's (0x02E5) and this value doesn't stuck up with the 8 bytes preamble, mentioned above.
    How long is the preamble send by CMD_IEEE_TX?
    I'm guessing that preamble consist of 4 octets (4 bytes) and the sentence in the manual has to be corrected.

    According to the IEEE 802.15.4-2011, chapter 10
    "The length of the preamble for the O-QPSK PHYs shall be 8 symbols (i.e., 4 octets), and the bits in the Preamble field shall be binary zeros."

    /Adam

  • Hi Adam

    The text in the TRM is wrong, and I will submit a ticket to get it fixed. Thank you for making us aware of this.

    The preamble is 4 bytes long and the SFD is 1 byte. 5 bytes @☺250 kbps takes 160 us.

    syncTimeAdjust = 741, corresponding to 185.25 us. I talked to the modem team, and the difference of 25.25 us is due to processing delays etc.

    BR

    Siri

  • Hi Siri

    Thank you for the detailed answer.

    /Adam