FTM using processor expert for K53

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

FTM using processor expert for K53

2,113 次查看
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 项奖励
回复
1 回复

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