Skip to main content
M4D
Associate II
May 27, 2021
Question

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

  • May 27, 2021
  • 2 replies
  • 834 views

..

This topic has been closed for replies.

2 replies

M4D
M4DAuthor
Associate II
May 27, 2021

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

any suggestions ?

waclawek.jan
Super User
May 27, 2021

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