PWM generation issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

PWM generation issue

854件の閲覧回数
Bhuvana
Contributor I

MCU: FS32K144UAT0VLLT
100LQFP

Bhuvana_0-1660717462013.png

after this line PWM output is high 3.3v. how to make it low

so now I have changed duty cycle to zero 

Bhuvana_0-1660721296001.png

any other way can we make it low during that time?

0 件の賞賛
返信
1 返信

842件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Bhuvana,

The FTM_DRV_UpdatePwmChannel() function can be called in the runtime to change the duty cycle.

Refer to ftm_pwm_s32k144 SDK example for more information.

Also, the FTM module allows masking the PWM output (RM rev.14, Section 47.5.17) or control the output by SW (Section 47.5.15 Software Output Control Mode).

There are these SDK API: FTM_DRV_ControlChannelOutput(), FTM_DRV_MaskOutputChannels().

 

Regards,

Daniel

 

 

 

 

0 件の賞賛
返信