S32k146 SDK dual-edge input capture

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

S32k146 SDK dual-edge input capture

跳至解决方案
811 次查看
Chandler_L
Contributor II

Hi  NXP:

I am using the S32K146 for the first time and would like to set up a demo for dual-edge input detection. According to the manual, dual-edge detection requires configuring two channels. However, I would like to know if it's possible to detect the frequency and duty cycle of the input signal using just one channel. Could you please provide an SDK-driven demo for dual-edge detection and how to measure the input signal's frequency and duty cycle?

Thank you.

LaiBighead_0-1737180365035.png

 

标记 (2)
0 项奖励
回复
1 解答
763 次查看
Senlent
NXP TechSupport
NXP TechSupport
0 项奖励
回复
5 回复数
764 次查看
Senlent
NXP TechSupport
NXP TechSupport
0 项奖励
回复
724 次查看
Chandler_L
Contributor II
双边沿检测功能已实现,但很奇怪,会一致卡住FTM4_CH2_Input_Detect函数里面,捕获通道频率设置为375Khz,给通道输入250Khz的PWM波;
0 项奖励
回复
715 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@LaiBighead

双边沿输入捕获250KHz,一秒钟相当于中断差不多500K次,你说你这样用考虑过S32K146的性能吗?

通常电机控制中也就个10K或者20K,你这么高的速率它能处理的了吗。

0 项奖励
回复
695 次查看
Chandler_L
Contributor II
谢谢,问题已解决,祝您生活愉快
0 项奖励
回复
738 次查看
Chandler_L
Contributor II
I'm glad to receive your reply. I have made some attempts with this case, and it was somewhat enlightening. However, when trying the dual-edge detection, I’m unsure when to obtain the Cnv values of CHn and CHn+1.
0 项奖励
回复