Pwm_example_S32K396

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
757件の閲覧回数
s32k3_newbie
Contributor III

Hi, I tried the Pwm_Example_S32K396. Update Code, Build and Flash to the development board S32K396-BGA-DC1. I didn't see the LED blinking. My version of S32DS is 3.5 if that matters.

Opening the Pwm_example_S32K396.mex:

s32k3_newbie_0-1749686778213.png

How is the PWM output connected to the LED?

0 件の賞賛
返信
1 解決策
645件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I never tried it personally. Simply refer to API documentation.

It is strait forward. You will find it in plugin of PWM in doc folder.

Looking briefly at the RTD config I see the PWM configuration is done via GUI there:

petervlna_0-1750142468194.png

So configure the PWM according to your needs and generate the code.

Best regards,

Peter

 

 

元の投稿で解決策を見る

0 件の賞賛
返信
7 返答(返信)
713件の閲覧回数
s32k3_newbie
Contributor III

Thanks Peter! There is an eFlexPWM RTD too. Do I still need the Pwm RTD to use eFlexPWM?

0 件の賞賛
返信
679件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Looking at RTD 6.0.0. I see only PWM driver.

petervlna_0-1750072105915.png

 

This covers FlexPWM:

petervlna_1-1750072199922.png

Since there is no eFlexPWM driver in RTD and eFlexPWM in covered in PWM module I suggest to use PWM module for eFlexPWM configuration.

 

The same apply for the RTD 5.0.0. /4.0.0. etc...

petervlna_2-1750072371852.png

PWM generation capable peripherals are grouped in PWM module driver in RTD.

 

best regards,

Peter

0 件の賞賛
返信
661件の閲覧回数
s32k3_newbie
Contributor III

Thank you Peter!

I used the Pwm RTD and enable the eFlexPWM Module. How do I create more PWMs to be configured as below?

1. PWM1

2. PWM2 is the invert of PWM1

3. PWM3 is 180deg phase shift of PWM1

4. PWM4 is the invert of PWM3

0 件の賞賛
返信
646件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I never tried it personally. Simply refer to API documentation.

It is strait forward. You will find it in plugin of PWM in doc folder.

Looking briefly at the RTD config I see the PWM configuration is done via GUI there:

petervlna_0-1750142468194.png

So configure the PWM according to your needs and generate the code.

Best regards,

Peter

 

 

0 件の賞賛
返信
614件の閲覧回数
s32k3_newbie
Contributor III
Yes. That's what I did. I was able to generate complementary PWMs and 180 degree phase-shift. Thanks!
0 件の賞賛
返信
734件の閲覧回数
s32k3_newbie
Contributor III

Could someone please confirm if S32K39 supports pwm? I checked in the reference manual, it doesn't have pwm but eFlexPWM. Do you have example of controlling the eFlexPWM?

0 件の賞賛
返信
723件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Yes, it supports PWM. It is motor control chip.

The PWM you see in your RTD drivers is just a driver which covers various PWM generation capable peripherals, like eMIOS, eFlexPEM, eTimer, etc...

The example codes are part of RTD releases.

You will find it in new->project from example after installing the RTD into the S32DS.

Best regards,

Peter