Hi,
Could you please help me how to configure Timer-0/1/2 in timer mode with periodic interval.
With regards,
Praveen P
Hi,
Could you please help me how to configure Timer-0/1/2 in timer mode with periodic interval.
With regards,
Praveen P
Hoang said:16bits counter can count to 65535 x32us = 2,09712 s, is it correct?
Yes, that is correct.
cc_value is the number of ticks you count up to. You can get this value by multiplying the TIMEOUT with the frequency (assuming you are working with s and Hz as units, if not apply correct scaling).
You can find the calculations done in nrfx_timer_ms_to_ticks here: https://github.com/zephyrproject-rtos/hal_nordic/blob/master/nrfx/hal/nrf_timer.h#L715