s32k144 pwm dead time setting

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

s32k144 pwm dead time setting

2,574 次查看
alice_th
Contributor III

i have a quesiton, if want to generate waveform like this,

i see there have dead time enable, can the dead time can set longer time, is there have parameter  set ?

alice_thanks_0-1727254218568.png

another questions, it seems only Adjacent channel(n and n+1) can set the dead time,

does ch0 and ch7 or some other random channel  combination with dead time set ?

third question is can different FTM channel generate same waveform 

with dead time, like FTM0 ch0-ch1 waveform ?

 

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

2,528 次查看
alice_th
Contributor III

could you help answer the three question i list , thanks, here is my test project 

 

0 项奖励
回复

2,484 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

In S32 Design Studio for S32 Platform v.3.5 and RTD for S32K1 and S32M24x version 2.0.0 the parameter to set the Dead Time ticks is in the following tab:

_Leo__0-1727809615404.png

On the other hand, the deadtime insertion is only available for each complementary pair, since its purpose is to ensures that no two complementary signals (channels (n) and (n+1)) drive the active state at the same time.

I share with you an attached sample code for the above mentioned software installation.

Hope it helps you.

Have a nice day!

0 项奖励
回复

2,448 次查看
alice_th
Contributor III

@_Leo_ 

where can download the RTD package ?

i am using 3.5, there is no deadtime paramter setting

alice_thanks_0-1728354667440.png

alice_thanks_1-1728354754012.png

alice_thanks_2-1728354904993.png

 

i also compile your project share, there lots of error, maybe miss some packages ?


10:24:45 **** Build of configuration Debug_FLASH for project Ftm_PWM_Complementary_Mode_Dead_Time_Insertion_S32K144 ****
make -j8 all
Building file: ../src/main.c
Building file: ../generate/src/Clock_Ip_Cfg.c
Invoking: Standard S32DS C Compiler
Building file: ../generate/src/Ftm_Pwm_Ip_PBcfg.c
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Clock_Ip_Cfg.d" -MT"generate/src/Clock_Ip_Cfg.o" -o "generate/src/Clock_Ip_Cfg.o" "../generate/src/Clock_Ip_Cfg.c"
arm-none-eabi-gcc "@src/main.args" -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o" "../src/main.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Ftm_Pwm_Ip_PBcfg.d" -MT"generate/src/Ftm_Pwm_Ip_PBcfg.o" -o "generate/src/Ftm_Pwm_Ip_PBcfg.o" "../generate/src/Ftm_Pwm_Ip_PBcfg.c"
Building file: ../generate/src/OsIf_Cfg.c
Building file: ../board/Port_Ci_Port_Ip_Cfg.c
../generate/src/Clock_Ip_Cfg.c:47:10: fatal error: StandardTypes.h: No such file or directory
47 | #include "StandardTypes.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
Building file: ../RTD/src/Clock_Ip.c
make: *** [generate/src/subdir.mk:25: generate/src/Clock_Ip_Cfg.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from ../RTD/include/Clock_Ip.h:49,
from ../src/main.c:37:
../RTD/include/Clock_Ip_Types.h:47:10: fatal error: StandardTypes.h: No such file or directory
47 | #include "StandardTypes.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
Invoking: Standard S32DS C Compiler
make: *** [src/subdir.mk:20: src/main.o] Error 1
In file included from ../generate/src/Ftm_Pwm_Ip_PBcfg.c:41:
C:/Users/fshi/Downloads/Ftm_PWM_Complementary_Mode_Dead_Time_Insertion_S32K144/generate/include/Ftm_Pwm_Ip_Cfg.h:45:10: fatal error: Std_Types.h: No such file or directory
45 | #include "Std_Types.h"
| ^~~~~~~~~~~~~
compilation terminated.
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/OsIf_Cfg.d" -MT"generate/src/OsIf_Cfg.o" -o "generate/src/OsIf_Cfg.o" "../generate/src/OsIf_Cfg.c"
Invoking: Standard S32DS C Compiler
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@board/Port_Ci_Port_Ip_Cfg.args" -MMD -MP -MF"board/Port_Ci_Port_Ip_Cfg.d" -MT"board/Port_Ci_Port_Ip_Cfg.o" -o "board/Port_Ci_Port_Ip_Cfg.o" "../board/Port_Ci_Port_Ip_Cfg.c"
arm-none-eabi-gcc "@RTD/src/Clock_Ip.args" -MMD -MP -MF"RTD/src/Clock_Ip.d" -MT"RTD/src/Clock_Ip.o" -o "RTD/src/Clock_Ip.o" "../RTD/src/Clock_Ip.c"
make: *** [generate/src/subdir.mk:26: generate/src/Ftm_Pwm_Ip_PBcfg.o] Error 1
In file included from ../generate/src/OsIf_Cfg.c:45:
C:/Users/fshi/Downloads/Ftm_PWM_Complementary_Mode_Dead_Time_Insertion_S32K144/generate/include/OsIf_Cfg.h:46:10: fatal error: StandardTypes.h: No such file or directory
46 | #include "StandardTypes.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [generate/src/subdir.mk:26: generate/src/OsIf_Cfg.o] Error 1
In file included from ../board/Port_Ci_Port_Ip_Cfg.c:61:
../board/Port_Ci_Port_Ip_Cfg.h:45:10: fatal error: S32K144_PORT.h: No such file or directory
45 | #include "S32K144_PORT.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
make: *** [board/subdir.mk:20: board/Port_Ci_Port_Ip_Cfg.o] Error 1
In file included from ../RTD/include/Clock_Ip.h:49,
from ../RTD/include/Clock_Ip_Private.h:48,
from ../RTD/src/Clock_Ip.c:46:
../RTD/include/Clock_Ip_Types.h:47:10: fatal error: StandardTypes.h: No such file or directory
47 | #include "StandardTypes.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [RTD/src/subdir.mk:95: RTD/src/Clock_Ip.o] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.

10:25:04 Build Failed. 13 errors, 0 warnings. (took 19s.571ms)

 

0 项奖励
回复

2,452 次查看
alice_th
Contributor III

alice_thanks_0-1728354000932.png

thank you very much for the information, can different FTMx chx generate these waveform ? 

@_Leo_ 

0 项奖励
回复

2,440 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Hi again,

Seems that you are using another RTD, demo works with this setup:

_Leo__0-1728409817453.png

On the other hand, maybe you do not need dead time insertion, for your waveform drawn on paper you need Phase Shift, please refer to the following post:

https://community.nxp.com/t5/S32-SDK/phase-shifted-pwm-channels-in-s32k144/td-p/1894512

Hope it helps you!

0 项奖励
回复

2,422 次查看
alice_th
Contributor III

with my tool i can't find the package which you show, only autosar have

 

alice_thanks_0-1728454519060.png

 

0 项奖励
回复

2,420 次查看
alice_th
Contributor III

@_Leo_ 

also i search in web, i didn't find the package you mention

 

alice_thanks_0-1728455445754.png

 

0 项奖励
回复