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

Question on multiple channels in timers in nrf52

I am trying to understand the use of multiple channels in the timer. Looks like the use of the multiple channels is for PWM/ sequencing type applications. It is not intended for generating interrupts at specific intervals i.e. channel0 generates an interrupt every 200ms, channel1 generates an interrupt every 300ms and channel2 for every 400ms. Looks like this is not how the channels in the timers are supposed to be used? Is my understanding correct?

Also apart from PWM what other applications can the multiple channels in the timer be used for? Also for the sequence i described above looks like RTC and application timer is the way to go. Is this correct?

Parents
  • Using TIMERx HW peripherals for normal application timers with millisecond resolution is wasting of power, use RTCx instead. That's the main reason i guess why you don't see that use case anywhere, everyone is using either RTC directly or some library like app_timer from Nordic nRF5 SDK (which can "multiplex" several timers on top of single RTC instance).

Reply
  • Using TIMERx HW peripherals for normal application timers with millisecond resolution is wasting of power, use RTCx instead. That's the main reason i guess why you don't see that use case anywhere, everyone is using either RTC directly or some library like app_timer from Nordic nRF5 SDK (which can "multiplex" several timers on top of single RTC instance).

Children
No Data
Related