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

How to change NRF_RADIO->TIFS dynamically during continous TX task ?

Hi,

We need send packets continously, and need adjust TIFS slightly when real packet interval is shorter or longer than expected.

The radio shorts register is set to RADIO_SHORTS_READY_START_Msk|RADIO_SHORTS_END_DISABLE_Msk|RADIO_SHORTS_DISABLED_TXEN_Msk,

and one PPI is set to connect NRF_RADIO->EVENTS_ADDRESS to NRF_TIMER3->TASKS_CAPTURE[1].

When TX task is started, packets will be sent continously, and NRF_TIMER3->CC[1] is update continously.

The main program always check the NRF_TIMER3->CC[1] and  current time value, if have enough time and have need, adjust the  NRF_RADIO->TIFS slightly (1us increased or decreased) at once.

When NRF_RADIO->TIFS was adjusted successfully, the  real packet interval is  changed too, but the change is  too much, not a expected 1us increased or  decreased, maybe 10 or more us changed.

Could you tell me how to adjust TIFS safely?

Thanks, Peter

Parents Reply Children
No Data
Related