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

Timer configuration with Softdevice

Hi,

mi question is about how to configure in a good and complete way Timer1 and Timer2, so trying to be more specific with my Question: I need timers with a Tick of 250ns, and as far as i know is that i could it make with Timer1 or 2 but not Timer0 (because of the Soft-device), but with the HFCLK ( the RTC use the internal and couldn´t achieve my 250ns tick). One of them i will use for making delays, and the other to count how many ticks till a change in one pin happens.

(I´m working with the nRF6310 with PCA10004 and PCA10000)

  • There are no restrictions on TIMER1/TIMER2 when using the softdevice, so you can use them in any way wanted. You can take a look at the timer_example from the SDK if you are unsure of how to configure it.

    Please note that as long as TIMER1/TIMER2 is running, the 16 MHz clock will be active, causing a current consumption of ~1 mA. If you need low power, you should therefore only use them when actually needed.

    However, please note that when the S110 SoftDevice is running, your application will be blocked for a certain amount of time each connection interval. See the SoftDevice specification for further details on this.

Related