Use eTimer to measure each edge change of 2 external inputs

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Use eTimer to measure each edge change of 2 external inputs

794件の閲覧回数
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 返答(返信)

693件の閲覧回数
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 件の賞賛
返信

693件の閲覧回数
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 件の賞賛
返信

693件の閲覧回数
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 件の賞賛
返信