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.
你好,你的问题解决了吗,可以给说一下怎么解决的吗
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
Just like the introduction in the following:
https://community.nxp.com/message/913497
I want to realize the function above.
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.
Yes, that's what I want to do.
Do you have any examples for that? Capturing every edge using the eTimer?
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.