This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52840 DK - real TIFS inaccurate with Long Range

Hi,

I am using the TIFS register of the NRF RADIO to define the interframe spacing timing.
(Done with the following line)

NRF_RADIO->SHORTS |= RADIO_SHORTS_DISABLED_TXEN_Msk; // or NRF_RADIO->SHORTS |= RADIO_SHORTS_DISABLED_RXEN_Msk;
NRF_RADIO->TIFS     = 150;


During a 1Mbit or 2Mbit connection, the real TIFS observed on the sniffer is quite accurate (~150.25us observed).
However, in LE Coded PHY with different Coded PHY, the real TIFS is inaccurate (TX: S=2, RX: S=8): TIFS observed 161.375us  and (TX: S=8, RX: S=2): TIFS observed 146.5us 

I am using a nRF52840 DK (PCA10056 v1.0.0).
Do you have any idea of what may impact this timing and how could I avoid this behavior ? 

Thank you.

Parents Reply
  • Thank you for your answer ! 

    I used the following lines to start the HFXO.  

        NRF_CLOCK->EVENTS_HFCLKSTARTED = 0;
        NRF_CLOCK->TASKS_HFCLKSTART = 1;
        while (NRF_CLOCK->EVENTS_HFCLKSTARTED == 0);


    Then when the connection is established with LE Coded PHY, I checked the NRF_CLOCK->HFCLKRUN (=0x00000001) and NRF_CLOCK->HFCLKSTAT (=0x00010001)  registers and they indicates that the HFCLK is running with the HFXO 64 MHz crystal oscillator.

    Is there something more that I should check ? 

    Thank you.

Children
Related