2017-12-02 08:29 AM
2017-12-02 10:01 AM
I want to pause the systick timer. Is there any way to do this?
By setting/clearing STK_CTRL.ENABLE.
Disabling/Enabling the timer doesn't pause it, but causes it to stop and restart.
How do you know?
JW
2017-12-03 03:40 AM
Because I've tried that. Once I enable STK_CTRL.ENABLE bit after disabling, it starts all over again
2017-12-03 12:56 PM
Because I've tried that. Once I enable STK_CTRL.ENABLE bit after disabling, it starts all over again.
How exactly did you try that? Didn't you use some library function? And how did you verify that it starts over?
I'm asking because the ARM v7M ARM in B3.3.1 SysTick operation says something different:
When enabled, the timer counts down from the value in SYST_CVR
There's even a warning later that SYST_CVR's content after reset is undefined thus user after setting SYST_RVR should explicitly zero SYST_CVR (by writing anything into it) before enabling, to assure the first period will last as expected.
JW