S32144K FTM Timer 0

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

S32144K FTM Timer 0

1,943 Views
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 Kudos
Reply
2 Replies

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

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