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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,006 Views
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.

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
910 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Please see my comments in this thread:

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

Thanks, 

Daniel

View solution in original post

0 Kudos
Reply
1 Reply
911 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Please see my comments in this thread:

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

Thanks, 

Daniel

0 Kudos
Reply