S32K396 eFlexPWM - Complementary PWM, Half-Period ADC Trigger, Master Sync, and Safe Runtime Duty Up

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K396 eFlexPWM - Complementary PWM, Half-Period ADC Trigger, Master Sync, and Safe Runtime Duty Up

355 次查看
Meetkumar
Contributor I

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:

  1. PWM interrupt at the compare event, or

  2. 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

S32DS-S32PLATFORM 

标记 (1)
0 项奖励
回复
2 回复数

314 次查看
_Leo_
NXP TechSupport
NXP TechSupport

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:

_Leo__0-1755297762051.png

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.

0 项奖励
回复

126 次查看
Meetkumar
Contributor I

Hi Leo,

Thanks for your previous response. I’m still unclear about a couple of points regarding the eFlex PWM module:

  1. How is the peripheral clock frequency for the PWM module determined, and where can I find this in the documentation?
  2. If I want to generate a 10 kHz PWM, what period (in ticks) should I configure in the submodules?

A brief clarification or example would help me proceed.

0 项奖励
回复