I am using the peripheral_timer as a template to play with timers. I changed the timer_ticks to 8000 to generate timer interrupt at 500 micro-seconds. All other timer configurations are left at default. Also, I modified the timer_led_handler to just toggle the LED3 only to measure the timer period.
I am seeing that there is a lot of jitter (upto 200 usec) in the timing with o-scope on persistence mode.
Since this example does not have any BLE code, can I use Timer0 (there is no soft device in this example)?
Also, when I changed the timer interrupt priority to 0 or 2, I did not see any difference.
Can you explain this behavior?