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

nrf51822 Timer2 Interrupt Problem

Hi, I am using Timer0..2 interrupts along with radio TX/RX. When the Timer2 interrupt coincides with RX/TX the Timer2 is halted for approx. 450 µs during TX. Is there a conflict between Timer2 and the RX/TX interrupt?

BR Günther

  • (I am very for asking here, I should not)

    Hi guenther,

    I am also facing same problem like u have related to timer and radio event. actually I want 1khz ADC sampling rate ,So in timer2 IRQ every 1ms I am trying to read 3 ADC . But bcoz of radio event I am getting around 1-0.6ms error but I want accurate .

    and I sated connection interval max =75ms and min = 10ms, and slave latency = 0.

  • Hi,

    You will never be able to trigger interrupts during TX or RX. The SoftDevice has complete control over the CPU when the radio is active. This is necessary to provide a stable BLE link, but has the downside, as you have discovered, of application latency. Have a look at the SoftDevice Specification. Chapter 11 explains processor availability and interrupt latency.

    You can also do a search here on devzone. There are already a lot of people discussing the topic.

    Martin

Related