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

Timer Prescaler

I have a nRF51 DK board and its flashed with the SD 110

I want to have a timer which will interrupt every 50us.

This is how I set up the timer:

#define APP_TIMER_PRESCALER             4                                           
#define APP_TIMER_MAX_TIMERS            (3 + BSP_APP_TIMERS_NUMBER)                
#define APP_TIMER_OP_QUEUE_SIZE         4                                          
#define MEIN_50us_INTERVAL		        APP_TIMER_TICKS(50,APP_TIMER_PRESCALER)

With this set up I will have an interrupt every 50ms. Now if I change the prescaler nothing will change. I will still get interrupts every 50ms.

But if I change the prescaler, the time for interrupts should also change....

Or what I have to change when I need faster interrupts?

This is how the protocol looks like:

image description

I need to be able, to set every single bit. Is this possible with the new nRF52 preview board?

Parents Reply Children
No Data
Related