When I use the eFlexPWM submodule 0 of the S32K396 to generate complementary PWM, the PWMA channel has output, but the PWMB channel does not. However, when I use PWMB to output PWM separately, the PWMB channel outputs normally. Below are my configurations and code in the S32DS.
Could you please tell me how to configure it so that the complementary channel PWMB outputs normally? Thank you.
Hi,
Thank you so much for your interest in our products and for using our community.
You could refer to the attached project created in S32DS-S32PLATFORM v.3.5 and RTD 3.0.0 (for SW detail please refer to Getting Started With S32K396-BGA-DC1 Evaluation Board).
The demo outputs the PWM signals, in complementary mode, in PWM1_A_0 (PTC31) and PWM1_B_0 (PTA6), you will need to use the S32X-MB and connect the scope in P13-1 and P13-5, respectively.
Hope it helps you.
Have a nice day!
Thank you, I found the reason. When I enabled the error channels, the complementary channels defaulted to opening all the error channels. Although I was only using error channels 1 and 2, everything worked fine after I individually disabled error channels 3 and 4 of the complementary channels.