FTM using processor expert for K53

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

FTM using processor expert for K53

851 Views
annamol
Contributor IV

Hi,

I am trying to generate the processor expert code for FTM. The Init_FTM module was added and the following changes were made. I am using FTM0_CH4.

  • FTM clock was enabled
  • channel was initialized

When I port the code onto the target hardware, FTM_CNT increments , but FTM_C4V doesn't increment. What am I missing in the configuration to generate a PWM on the pin corresponding to FTM0_CH4.

I have attached snapshots of the PE configuration for reference.

Please do suggest the modification needed

0 Kudos
Reply
1 Reply

579 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello alex,

Why the register of FTM_C4V increase?

When you configure the channel to the PWM function , this register store the match value the

PWM output, when the FTM counter (FTM_CNT) match the value of Cnv , refer to the different PWM mode

, there will be different result , for the detail information , please refer to this part :

pastedImage_0.png

For example :

pastedImage_1.png

Hope it helps
Have a great day,
Alice Yang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply