Skip to main content
Binbin Zhang
Associate II
April 21, 2017
Question

SPE560-Dis: eMIOs channel, eMIOs0 Group and PWM channel

  • April 21, 2017
  • 1 reply
  • 785 views
Posted on April 21, 2017 at 05:50

Hi ST experts,

I am trying to use SPC5 as a multi-channel PWM controller (SPC560D-Dis discovery board). I encountered difficulty in understanding the relationship between eMIOs channel and PWM channel. For example, which eMIOs channel can be configured as PWM channel 2? What are the channels included in eMIOS0 Group0 & Group1?

I viewed through RM0045, but could not find the answer. Kindly share with me about the relationship regarding eMIOs, Groups and PWM channels.

Thank you!

    This topic has been closed for replies.

    1 reply

    Erwan YVIN
    ST Employee
    April 25, 2017
    Posted on April 25, 2017 at 10:56

    Hello ,

    you can check the figure 321 in the chapter 24 for more information

    eMIOS0 Group0is from 8 to 15

    eMIOS0 Group0

    is from 16 to 23

    #if (SPC5_PWM_USE_EMIOS0_GROUP0 == TRUE)
    IRQ_HANDLER(SPC5_EMIOS0_GFR_F8F9_HANDLER);
    IRQ_HANDLER(SPC5_EMIOS0_GFR_F10F11_HANDLER);
    IRQ_HANDLER(SPC5_EMIOS0_GFR_F12F13_HANDLER);
    IRQ_HANDLER(SPC5_EMIOS0_GFR_F14F15_HANDLER);
    #endif /* SPC5_PWM_USE_EMIOS0_GROUP0 */
    #if (SPC5_PWM_USE_EMIOS0_GROUP1 == TRUE)
    IRQ_HANDLER(SPC5_EMIOS0_GFR_F16F17_HANDLER) ;
    IRQ_HANDLER(SPC5_EMIOS0_GFR_F18F19_HANDLER);
    IRQ_HANDLER(SPC5_EMIOS0_GFR_F20F21_HANDLER);
    IRQ_HANDLER(SPC5_EMIOS0_GFR_F22F23_HANDLER);
    #endif /* SPC5_PWM_USE_EMIOS0_GROUP1 */�?�?�?�?�?�?�?�?�?�?�?�?�?

    0690X00000606rqQAA.png

    Best regards

    Erwan