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

nrf52832 timer

I am using the nrf52832 soc, and have a requirement to run the device in low power mode and using the timer with a timeout value in days? how can I do so?

Sample code would be of great help.

Parents
  • The RTC will easily accommodate this and is the preferred method of handling sleep/wake cycles of the cpu since it is the lowest power clock. Since the RTC has a 12 bit prescaler and 24 bit counters with one compare event you can run it for 2^24/(32768/2^12) eighth second intervals or about 24 days before it overflows. The ISR from the RTC event will wake the processor up after you put it in low power mode.

Reply
  • The RTC will easily accommodate this and is the preferred method of handling sleep/wake cycles of the cpu since it is the lowest power clock. Since the RTC has a 12 bit prescaler and 24 bit counters with one compare event you can run it for 2^24/(32768/2^12) eighth second intervals or about 24 days before it overflows. The ISR from the RTC event will wake the processor up after you put it in low power mode.

Children
No Data
Related