2017-04-20 08:50 PM
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!
2017-04-25 01:56 AM
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 */�?�?�?�?�?�?�?�?�?�?�?�?�?
Best regards
Erwan