2014-10-09 12:29 PM
I am trying to maximize the number of unique 16-bit PWM outputs that I can use simultaneously on the SPC560P40L1CEFAR (64 pins). I have gathered the following information from the specification, and some of it appears to be conflicting.
1 Flex PWM unit8 complementary or independent channels4 PWM submodulesPWMX pin can optionally output a third PWM signal from each submoduleI count 10 PWM output channels though: A0, A1 A2, B0, B1, B2, B3, X0, X1, X2; B2 and X2 are both only available on pin 52Which output channels correspond to which submodules? And which channels cannot produce unique PWM signals?I also noticed a paradox on page 24 of the SPC560P (34L and 40L) specification. On the same page it says: Channels not used for PWM generation can be used for input capture functions.A few lines down it then says: Capture capability for PWMA, PWMB, and PWMX channels not supportedDoes this mean I need to use timer pins for input capture instead of the PWM pins? #pwm #spc56Solved! Go to Solution.
2014-11-24 05:25 AM
Hello David ,
Here is an answer from a PWM Expertsorry for the late answer''The FlexPWM doesn’t support input capture function, on the datasheet there is a wrong information. In order to perform input capture you should use eTimer as you mentioned.
INFO:
Sub-mod 0: PA0, PB0,PX0
Sub-mod 1: PA1, PB1,PX1
Sub-mod 2: PA2, PB2,PX2
Sub-mod 3: PA3, PB3,PX3 - On 64pins PA3 and PX3 are not available
PB0 (not PB2) and PX2 are both only available on pin 52…so you can use only 9 PWM signals simultaneously…''
Best Regards Erwan2014-11-24 05:25 AM
Hello David ,
Here is an answer from a PWM Expertsorry for the late answer''The FlexPWM doesn’t support input capture function, on the datasheet there is a wrong information. In order to perform input capture you should use eTimer as you mentioned.
INFO:
Sub-mod 0: PA0, PB0,PX0
Sub-mod 1: PA1, PB1,PX1
Sub-mod 2: PA2, PB2,PX2
Sub-mod 3: PA3, PB3,PX3 - On 64pins PA3 and PX3 are not available
PB0 (not PB2) and PX2 are both only available on pin 52…so you can use only 9 PWM signals simultaneously…''
Best Regards Erwan2014-11-24 11:33 AM
Thank you for the reply. I chose to scale down number of channels to be safe, but this confirms my conservative assumptions.