Skip to main content
minhpc91
Associate II
January 19, 2015
Question

STM32F4 Complementary PWM doesn't run correctly

  • January 19, 2015
  • 7 replies
  • 1525 views
Posted on January 19, 2015 at 17:40

The original post was too long to process during our migration. Please click on the attachment to read the original post.
    This topic has been closed for replies.

    7 replies

    minhpc91
    minhpc91Author
    Associate II
    January 20, 2015
    Posted on January 20, 2015 at 02:02

    Can anyone help me, please?!

    Tesla DeLorean
    Guru
    January 20, 2015
    Posted on January 20, 2015 at 02:30

    Can anyone help me, please?!

    Not really, not my thing at all...

              TIM_OCInitStructure.TIM_OCIdleState        = TIM_OCIdleState_Reset; // Sure this isn't Set ?

              TIM_OCInitStructure.TIM_OCNIdleState = TIM_OCNIdleState_Reset;

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    minhpc91
    minhpc91Author
    Associate II
    January 20, 2015
    Posted on January 20, 2015 at 13:51

    Thank you for your response.

    I have tried disabling the PWM channel 3, 3N to test the other two only (PWM channel 1,1N ~ PA8, PB13), but the problem has still remained. The complementary feature doesn't work (the following picture). So complicated!!

    Although dont think the idle feature isn't neccessary in this case, I have tried to SET it as you said, and the result is not better.

    I use 50kHz TIM2 Interrupt for Calculation (ADC, Controller, update,...), and TIM1 for PWM (frequency and dutycycle vary; deadtime constant)

    Can anyone help me, please?!

    0690X0000060Mn2QAE.gif

    Tesla DeLorean
    Guru
    January 20, 2015
    Posted on January 20, 2015 at 14:15

    The scope traces look very odd, do the complementary outputs look right if the deadtime stuff is removed?

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    minhpc91
    minhpc91Author
    Associate II
    January 20, 2015
    Posted on January 20, 2015 at 14:51

    It is not better, Clive1. 

    The overlap happens randomly when I run/stop my Oscilloscope.

    I have no idea to do next. Haizz!! 

    I can send to you all my project. Can you help me find out the problem?

    Tesla DeLorean
    Guru
    January 20, 2015
    Posted on January 20, 2015 at 15:06

    I'm not looking to get that involved.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    minhpc91
    minhpc91Author
    Associate II
    January 20, 2015
    Posted on January 20, 2015 at 15:15

    I just want to solve it. I'm sorry for bothering you, clive1.