Skip to main content
SLEE.6
Associate II
Jan 6, 2021 6:08 AM UTC
Solved

About the PWM minimum duty cycle time in SPC58EC

Hello!​

I have a SPC58EC-DISP; I set the PWM frequency 20KHz and duty cycle 1%,then it's not output,

when set 8%,it's output 2us time;

I found that the minimum PWM output time seems to be 2us.

now I want PWM frequency 20KHz(50us) and 1%(0.5us) ouput,what should I do?

    This topic has been closed for replies.
    Erwan YVIN
    Erwan YVINBest answer
    ST Technical Moderator
    Jan 6, 2021 2:41 PM UTC

    Hello SLEE ,

    i recommend to go in chapter 46 for PWM implementation Enhance Modular IO Subsystem (EMIOS) in the RM407.

    Did you try o configure the driver in SPC5Studio (PWM configuration Settings)

    Best regards

    Erwan

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.

    2 replies

    Erwan YVIN
    Erwan YVINBest answer
    ST Technical Moderator
    Jan 6, 2021 2:41 PM UTC

    Hello SLEE ,

    i recommend to go in chapter 46 for PWM implementation Enhance Modular IO Subsystem (EMIOS) in the RM407.

    Did you try o configure the driver in SPC5Studio (PWM configuration Settings)

    Best regards

    Erwan

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
    SLEE.6
    SLEE.6Author
    Associate II
    Jan 20, 2021 3:25 AM UTC

    Hello Erwan,

    I know how to solve this problem,In low level drivers,set eMIOS0 internal counter frequency to max(eMIOS0 global prescaler =1).

    Now, I have another question,in the SPC58EC clock tree : EMIOS_CLK is 40MHz(Default),if i set it to 80MHz,then PWM is no signal output,

    why?

    Best regards

    SLEE

    ​