This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Low power delay function implementation using RTC1

Hi, 

I used this example to develop code for a low power delay function. This code uses RTC1 with frequency = 32Hz to create an interrupt every 5 seconds and event handler toggles my LED. 

I need to have higher RTC resolutions so that I can use this function (to save power) for shorter delays like 0.1 ms order magnitude. So I increased RTC frequency (RTC1_FREQUENCY)  to 10000 Hz. But this somehow impacts my delay, and instead of blinking every 5 seconds it blinks roughly every 1 second. I do not understand why this happens. Can you help me with that. 

See attachment is my code. 

Parents Reply Children
No Data
Related