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:
Looking forward for your support.
Thank You,
#s32k396
#s32k396RTD
#eflexpwm
S32DS-S32PLATFORM