2021-08-03 03:34 AM
Hello,
I have a question about STM32F407.
I was wondering how to software trigger (not external trigger) a "one pulse" timer, using HAL library?
Thanks for the help.
2021-08-03 05:20 AM
After having set up timer for the one-pulse mode (i.e. set TIMx_CR1.OPM), simply write 1 to TIMx_CR1.CEN.
I don't know if there's a Cube/HAL incantation for it; Cube/HAL is open source, you can look it up yourself.
JW
2021-08-03 06:27 AM
__HAL_TIM_ENABLE(htimx);