s32K144 Consult on PWM output

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

s32K144 Consult on PWM output

1,240 次查看
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?

标记 (1)
0 项奖励
2 回复数

1,033 次查看
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 项奖励

1,033 次查看
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 项奖励