Use eTimer to measure each edge change of 2 external inputs

cancel
Showing results for 
Search instead for 
Did you mean: 

Use eTimer to measure each edge change of 2 external inputs

182 Views
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.

Tags (2)
0 Kudos
3 Replies

81 Views
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 Kudos

81 Views
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 Kudos

81 Views
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 Kudos