Hi,
I am using pca10040 board. i need to toggle a led in 5sec once. I tried to change the prescale value. But im not able to get that much time delay.
Can any one help me on this?
You can use shorts:
NRF_TIMER2->SHORTS = (TIMER_SHORTS_COMPARE0_CLEAR_Enabled << TIMER_SHORTS_COMPARE0_CLEAR_Pos);
This will clear the timer counter value on CC[0] compare. If not doing this the timer will count to the maximum value before it overflows.