cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot get PWM to work on the STM32L552-Q board

wfd
Associate II

I have turned on the Timer 1 and have gone through several tutorials to get pins PE0, PE11, PE13 and PE14 to pulse but I cannot get any sort of signal output. I'm attaching to project.  The configurations are in main.h, I turn all the timers on in Main.c and that's pretty much it. Can someone help me? 

Thanks 

Bill

5 REPLIES 5
waclawek.jan
Super User

I don't understand Cube, but usually the problem with TIM1 output channels is, that it's an Advanced timer and needs to have TIMx_BDTR.MOE to be set.

JW

I cannot figure out where to set this bit in the entire project

Thank  you

 

Bill

waclawek.jan
Super User

In your program, after you have set up all other TIM1 registers.

JW

I put the line in TIM1_BDTR.MOE in the code and it flagged an error. I'm sorry this is very new to me

 

Thank you

Bill

waclawek.jan
Super User

What error?

JW