I'm using a Nucleo STM32L031. In my application, I want to generate interrupts using Timer and a Compare Value. My problem is: I want to start the timer, then pause it (so the counter value is halt, but not be reset), then start the timer again (from the halt value). And then when it reaches the compared value, it generates an interrupt.
How can I pause the timer without reseting the counter value ? And also I'm not sure whether: HAL_TIM_BASE_Stop_IT() function will pause or reset the counter value?
Thanks. Bien