PWM mode can not configure as center align use Official library(SDK) function in s32k144

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

PWM mode can not configure as center align use Official library(SDK) function in s32k144

跳至解决方案
1,099 次查看
jinshuaixu
Contributor V

Hi 

      Now l meet a question,l want to set PWM mode as center align,neither use Official library (SDK)function or use set register  way,can not set PWM mode as center align.

     use register  set PWM mode  l have  publish.why I set PWM model is center align,but result is not I set ? 

     Use SDK function configure PWM center align process follow:

      In main fuction code ,l change PTB14 IO level while set PWM,

OSIF_TimeDelay(2000);
PTB-> PSOR |= 1<<14;
FTM_DRV_DeinitPwm(INST_FLEXTIMER_PWM1);
FTM_DRV_InitPwm(INST_FLEXTIMER_PWM1, &flexTimer_pwm1_PwmConfig);

OSIF_TimeDelay(2000);
PTB-> PCOR |= 1<<14;
FTM_DRV_DeinitPwm(INST_FLEXTIMER_PWM1);
FTM_DRV_InitPwm(INST_FLEXTIMER_PWM1, &flexTimer_pwm1_PwmConfig1);

     the result as below picture

     pastedImage_3.png

        l have upload the project that set pwm mode on use SDK function in the attachment.

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,003 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Please see my comments in this thread:

https://community.nxp.com/thread/501459 

Thanks, 

Daniel

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,004 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Please see my comments in this thread:

https://community.nxp.com/thread/501459 

Thanks, 

Daniel

0 项奖励
回复