cancel
Showing results for 
Search instead for 
Did you mean: 

Hi.I use the LL library and stm32f030, I configure timers 16 and 17 in cubeMx to output PWM, I use two commands to start: LL_TIM_EnableCounter and LL_TIM_CC_EnableChannel, but the output is zero, and everything works on timer 3 or 14. What to do?

Polzuchy_haos
Associate
 
1 ACCEPTED SOLUTION

Accepted Solutions

TIM16 and TIM17 have TIMx_BDTR, so you have to set the MOE bit in it to enable output.

I don't know the Cube/LL incantation for this but Cube/LL is open source so you can easily find it yourself.

JW

View solution in original post

2 REPLIES 2

TIM16 and TIM17 have TIMx_BDTR, so you have to set the MOE bit in it to enable output.

I don't know the Cube/LL incantation for this but Cube/LL is open source so you can easily find it yourself.

JW

Polzuchy_haos
Associate

Thank you very much, the generation on the output really appeared, here I also tried to set the AOE bit in TIMx_BDTR and the generation also works.