Pwm generation
Hi
I am trying to generate pwm on the stm32f411re using LL drivers . i am using a Vnh2spa30 motor driver, i am using the setcompare() and generateupdate() commands. I am trying to use the Timer2 ch1 on pa15. I have configured the timer to internal clock. I am using a prescalar of 8399 and ARR of 99. my main problem is that no matter what argument i pass (except 0) in the setcompare() my motor runs on full speed, unless i put a delay, the bigger the delay is the slower the motor rotates
i cant figure out where i am going wrong