cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407 software trigger a one pulse timer using HAL library

Mbb.1
Associate

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.

2 REPLIES 2

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

TDK
Guru

__HAL_TIM_ENABLE(htimx);

If you feel a post has answered your question, please click "Accept as Solution".