Skip to main content
SLEE.6
Associate II
January 6, 2021
Solved

About the PWM minimum duty cycle time in SPC58EC

  • January 6, 2021
  • 1 reply
  • 1275 views

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.
    Best answer by Erwan YVIN

    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

    1 reply

    Erwan YVIN
    Erwan YVINBest answer
    ST Employee
    January 6, 2021

    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

    SLEE.6
    SLEE.6Author
    Associate II
    January 20, 2021

    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