2024-08-22 05:48 AM
Hello STM Community,
today while generating PWM using Alternate Function Register, I observed that for TIMER 5, Channel 1, I need not configure MOE bit in BDTR register. whereas for TIMER1, Channel 1 I had to configure the MOE bit in BDTR register. Why such deviation?
thanks and regards.
2024-08-22 05:58 AM
TIM1 is an advanced control timer that requires MOE to be set. It is not the same peripheral as TIM5 and has slightly different operation. The MOE bit being the biggest gotcha.
2024-08-22 06:02 AM
Hi,
Because timers are Very different, Tim 1 is much more complex.