systick sometime paused

Hi, i have run out of timers and would like to use SysTick to measure time.
It seems as SysTick counts a bit too slow which i assume is due to CPU entering sleep.
Does the SD 112 enter sleep such that the systick is paused? if so, is there any way to stop that?
is there any other reason for SysTick to be paused? for example reading from slower clocked peripherals?

Parents Reply Children
  • Hi,

    victor passe said:
    does the SD 112 ever go in to sleep? and if so, can i controll that?

    Not automatically, but in all low powe rapplications you will want to go to sleep (sytem ON low power mode). When using a SoftDevice that is done by calling sd_app_evt_wait(), but many examples call it indirectly via nrf_pwr_mgmt_run() from the power management module).

    victor passe said:
    i want to measure time to the us level and are already using the timer 1 and 2 for pwm generation on 6 gpio so i cant use the HF timers and i cant use RTC as it is too slow.

    I see. In that case perhaps an alternative could be to re-use a timer instance, for intance by using several CC registers (I don't know how you use the timer so it may not be suitable in your case).

Related