Using eTimer to measure the high volt or low volt of MPC5744P

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using eTimer to measure the high volt or low volt of MPC5744P

1,240 Views
nathan_
Contributor IV

I need to use the eTimer module of MPC5744P to measure the signal from Hall sensor, whose signal is high volt or low volt.

So I need to use eTimer to measure the voltage to decide whether it is high voltage or low voltage.

Are there any example of eTimer of MPC5744P suitable for that function?

I know  the eTimer module can detect the rising edge and falling edge and measure the duty cycle.

But I do not have any example of detecting the voltage is high or low.

Thank you.

7 Replies

701 Views
1396617186
Contributor I

你好,你的问题解决了吗,可以给说一下怎么解决的吗

0 Kudos

701 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

If you need to measure the voltage, use ADC and then analyze measurement in SW.

eTimer is not intended to be used for voltage measurement.

Peter

0 Kudos

701 Views
nathan_
Contributor IV

Just like the introduction in the following:

https://community.nxp.com/message/913497 

I want to realize the function above.

0 Kudos

701 Views
petervlna
NXP TechSupport
NXP TechSupport

Yes eTimer can capture rising and falling edge only.

But I expect you want to capture every edge so you can commutate correctly in interrupt.

eTimer is suitable for your requirement.

0 Kudos

701 Views
nathan_
Contributor IV

Yes, that's what I want to do.

Do you have any examples for that? Capturing every edge using the eTimer?

0 Kudos

701 Views
petervlna
NXP TechSupport
NXP TechSupport

you can find the example code here:

MPC5 software example list 

https://community.nxp.com/docs/DOC-104285 

Peter

701 Views
nathan_
Contributor IV

Actually I do not want to measure the voltage.

The key point is to measure the signal from Hall sensor, which are three pulse trains.

I need to know whether each of the three signals is high or low.

Does the eTimer can capture the rising edge or falling edge only?

 

Or you have any advice on using eTimer to measure the signals from Hall sensor?

Thank you.

0 Kudos