s32K144 Consult on PWM output

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

s32K144 Consult on PWM output

1,152 Views
qing_zhang
Contributor I
  • Using FTM Timing output PWM, periodically to modify the duty cycle, found that each modification of duty cycle after a 8us spike, please ask how to remove the interference?

Tags (1)
0 Kudos
2 Replies

945 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi 张 qing

There is ftm_pwm_s32k144 SDK example in the S32 Design Studio. Could you clarify how are you modifying the duty cycle? you can use the FTM_DRV_UpdatePwmChannel function from the SDK.

Best regards

Jorge Alcala

0 Kudos

945 Views
razva_tilimpea
NXP Employee
NXP Employee

Hi,

I don't understand exactly your issue, but It can be caused by synchronization. FTM support 2 types of synchronizations: immediate or on next loading point (end of timer period). If you use immediate mode the duty (CnV) is update ASAP, but the counter is reset. This can cause glitches. 

Best regards,

Razvan 

0 Kudos