How in the question title, what could be more efficient? use a nrf_delay_us or Timer with HFCLK source.
I am creating a custom protocol to transfer data between the nRF52 and AVR microcontroller, but the sequences times requires 1us
I understand using the nrf_delay_us the CPU to create the delay for X time.
but, using the Timer with HFCLK source could use between 5 - 70 uA. if I use it I will require turn off the timer because the protocol will run only when the nRF52 wakes up
which one is better?
I would suggest that you look into NRF_TIMER and PPI.
The nrf_delay_us() function is accurate, but it is not very power sufficient, since it does not allow the CPU to go to sleep mode.
Hi Edvin, thanks for the suggestiong, but I am not sure what is PPI?