conflict between ftm pwm and input capture.

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

conflict between ftm pwm and input capture.

820 次查看
Jeevansagar
Contributor III

Hello, I am working on S32k144 EVB. I am using FTM3 module for pwm generation and FTM2 for input capturing. I need to measure the frequency of the pwm signal generated from FTM3, channel 0 of FTM2 is used for capturing.

But, the issue here is that i am unable to control the duty of the pwm from FTM3 while the code is running, it is sticking to the duty that is initially configured. If i do not initialize the Input capture module i am able to control the pwm duty. 

I want to use both the functionalities, can someone please help me resolve this issue?

0 项奖励
回复
1 回复

798 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Jeevansagar

please take a look at this post which using two FTM instances, one for generate PWM and another for capture PWM

https://community.nxp.com/t5/S32K-Knowledge-Base/S32K1-Calculate-the-motor-speed-based-on-the-FTM/ta...

hope it could be helpful to you.

0 项奖励
回复