Use eTimer to measure each edge change of 2 external inputs

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

Use eTimer to measure each edge change of 2 external inputs

842 次查看
yixinwu
Contributor I

Hello NXP community,

Is it possible to use eTimer module (MPC5744P) to measure at each edge change of 2 external inputs, like as shown in the attached figure, to measure the timing of 1,2,3,4,....? How to config in this case?

Thank you in advance.

标记 (2)
0 项奖励
回复
3 回复数

741 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

yes, a capture feature can be used for this purpose. Using this you can save value of internal counter on 4 consecutive input signal edges.

You can refer to https://community.nxp.com/docs/DOC-104285 where capture feature is used to measure frequency and duty cycle of input PWM signal.

BR, Petr 

0 项奖励
回复

741 次查看
yixinwu
Contributor I

Thank you for the reply.

I have not tried the code but as I read it, isn't it only one input channel involved? How can I config to capture the counter value if the other input channel has a edge change as capture event?

0 项奖励
回复

741 次查看
PetrS
NXP TechSupport
NXP TechSupport

each channel has got a capture functionality, so you need to enable it similarly for each channel used.

BR, Petr

0 项奖励
回复