cancel
Showing results for 
Search instead for 
Did you mean: 

someone know if it possible to change LPTIM source mux while running? for example to change from LSI to PCLK1? LSI is 37Khz and I want the PWM to run in 1khz so I use count 37, but I want to generate more step then 37 and still remain in 1Khz for PWM

M4D
Associate II
 
2 REPLIES 2
M4D
Associate II

more over I am using LPTIM because I want to be able to use stop mode

any suggestions ?

Which STM32?

LPTIM's details are generally not very well described, but I believe you can switch the clock source while running. Those sources are not synchronized and LPTIM is asynchronous, so the timing at around the switching may be not precise, but outside the switching is should be OK.

I am not ST, though.

JW