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,042件の閲覧回数
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 解決策
946件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Please see my comments in this thread:

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

Thanks, 

Daniel

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
947件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Please see my comments in this thread:

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

Thanks, 

Daniel

0 件の賞賛
返信