PWM generation issue

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

PWM generation issue

314 Views
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 Kudos
1 Reply

302 Views
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 Kudos