S32144K FTM Timer 0

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

S32144K FTM Timer 0

1,948 次查看
amansinghaljpr
Contributor II

So we are trying to generate PWM on PC1 using FTM1 but the problem is ,  in the initial stage , the moment the code starts after resets we are getting a random pulse every single time . It almost feels like during the boot there is a very small pulse which is either coming out of the GPIO or out of the FTM which is triggering the GPIO . we have tried changing the different GPIO(channels) as well but same spike is coming.

 

This is affecting our PWM behavior , any recommendations on how to avoid this ?  

 

Please refer to the pulse on Channel 2 in the attached image . 

0 项奖励
回复
2 回复数

1,940 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

 

which particular pin are you using? In your app - are you first configuring FTM or GPIO? The peak occurs right after reset or during init (clock/ftm/gpio) phase? 

 

Jiri 

0 项奖励
回复

1,932 次查看
amansinghaljpr
Contributor II

We have tried

FTM1 Channel 0 - PTB2 , Channel 1 - PTA1 

FTM3 Channel 0 - PTA2 

 

And the peak is occurring right after the reset . 

0 项奖励
回复