FlexPWM SPC56EL Driver
Hello,
I have some problems using the PWM sample project together with the SPC56xL Discovery board. The project generates different PWM signals on the PWMA pin of submodule0. I was able to adapt the PWM configuration to generate the same signal on PWMB pin of submodule0. But now, I also wanted to generate PWM signals with submodule1 of FLEXPWM1. Therfore, I configured thetwo additional controller pinsusing thepin wizard and adapted the sample code like this:pwmStart(&PWMD1, &pwm_config_pwmcfg);
pwmStart(&PWMD2, &pwm_config_pwmcfg);
osalThreadSleepMilliseconds(2000);
/*
* Starts the PWM channel 0 using 75% duty cycle.
*/
pwmEnableChannel(&PWMD1, 0, PWM_PERCENTAGE_TO_WIDTH(&PWMD1, 7500));
pwmEnableChannel(&PWMD1, 1, PWM_PERCENTAGE_TO_WIDTH(&PWMD1, 7500));
pwmEnableChannel(&PWMD2, 0, PWM_PERCENTAGE_TO_WIDTH(&PWMD2, 7500));
pwmEnableChannel(&PWMD2, 1, PWM_PERCENTAGE_TO_WIDTH(&PWMD2, 7500));
osalThreadSleepMilliseconds(5000);
The result is, that submodule0 still woks fine, but the outputs of submodule1 not. Is there any additional work to do, when I want to use the other PWM submodules?
Best regards,
Patrik