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

Queries on TIMER and their CC & Counter registers

Hello,

I am using nRF52832, SDK_15.3.0, S132 SoftDevice and Segger for flash the image.

1) Initially by seeing register description I thought each TIMER has its only CC[0..5] registers. My assumption was, update all 5 compare registers at a time so that when counter reaches to these 5 different values, COMPARE interrupt will be generated at 3 instances.

              “Timer 4:            This timer instance has 6 CC registers (CC[0..5])”

 

Later by seeing code, CC[0..5] are shared by different timers. So if TIMER0 uses CC0 then TIMER 4 cannot use CC0. Please correct me if I am wrong in my understanding.

2) As there is only one TASKS_START and TASKS_STOP, whether can I start & stop individual TIMERs (TIMER0, TIMER1…TIMER4)

3) Whether ‘0’ mean ‘TIMER0’.

const nrf_drv_timer_t TIMER_LED = NRF_DRV_TIMER_INSTANCE(0);             

Thanks & Regards

Vishnu Beema

Related