PWM generation issue

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

PWM generation issue

752 次查看
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 回复

740 次查看
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 项奖励
回复