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:
How is the PWM output connected to the LED?
解決済! 解決策の投稿を見る。
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:
So configure the PWM according to your needs and generate the code.
Best regards,
Peter
Thanks Peter! There is an eFlexPWM RTD too. Do I still need the Pwm RTD to use eFlexPWM?
Hello,
Looking at RTD 6.0.0. I see only PWM driver.
This covers FlexPWM:
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...
PWM generation capable peripherals are grouped in PWM module driver in RTD.
best regards,
Peter
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
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:
So configure the PWM according to your needs and generate the code.
Best regards,
Peter
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?
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