Dear Experts,
I am working on S32K396 with S32 Design Studio and the RTD SDK. My goal is to configure eFlexPWM with the following features:
3 complementary PWM pairs (6 outputs total)
20 kHz, 50% duty, center-aligned
Dead-time insertion
Master synchronization between submodules
Half-Period ADC Trigger Requirement:
In center-aligned mode, I need to trigger ADC exactly at half of the PWM period, either by:
PWM interrupt at the compare event, or
Direct hardware trigger to ADC without CPU intervention
Runtime Duty Update:
Duty cycle may change at runtime. Updates must occur only at the reload event to prevent output glitches.
Clarifications Needed:
How to configure the ticks for PWM period and duty
Which VALx event is recommended for half-period triggering in center-aligned mode?
How to route PWM events to ADC ?
How to set up master sync in SDK for multiple submodules?
How to combine complementary outputs, VAL events, and runtime duty updates without breaking sync?
Request:
Please provide:
A working SDK-based sample project demonstrating the above
Or detailed SDK configuration steps/APIs for these features
or application note
Looking forward for your support.
Thank You,
#s32k396
#s32k396RTD
#eflexpwm
Thank you for your interest in our products and for contributing to our community.
There is no such specific example, but in RTD 6.0.0 there are various examples for which address ADC and PWM features:
On the other hand, you could refer to AN14504 EV Traction Inverter Control Reference Design Gen 3 SW application note, which shows a similar peripheral integration like you describe.
For more details, please refer to EV-INVERTERGEN3.
I hope this information is helpful.
Hi Leo,
Thanks for your previous response. I’m still unclear about a couple of points regarding the eFlex PWM module:
A brief clarification or example would help me proceed.