cancel
Showing results for 
Search instead for 
Did you mean: 

PWM Generation

Yoshimitsu_Manji_clan
Associate II

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. 

2 REPLIES 2
TDK
Guru

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.

TDK_0-1724331437009.png

TDK_1-1724331457613.png

 

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

Hi,

Because timers are Very different, Tim 1 is much more complex.

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