Skip to main content
robust_ed
Associate
April 2, 2014
Question

why tim1 in pwm does not work :-(

  • April 2, 2014
  • 3 replies
  • 706 views
Posted on April 02, 2014 at 14:25

why tim1 in pwm does not work :(

    This topic has been closed for replies.

    3 replies

    waclawek.jan
    Super User
    April 2, 2014
    Posted on April 02, 2014 at 14:51

    Because you did not try hard enough.

    JW
    Tesla DeLorean
    Guru
    April 2, 2014
    Posted on April 02, 2014 at 15:33

        /* TIM1 Main Output Enable */

        TIM_CtrlPWMOutputs(TIM1, ENABLE);

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    waclawek.jan
    Super User
    April 2, 2014
    Posted on April 02, 2014 at 15:54

    Ah, the gotcha with the ''advanced timers'' (TIM1 and TIM8) needing to have MOE bit in TIMx_BDTR set...

    JW