I am using the emios module of mpc5746 to develop the PWM incoming signal acquisition function. How can I use a single channel to collect the frequency and duty cycle of PWM signal at the same time?Is there a corresponding example project for reference?
Solved! Go to Solution.
Hi,
if you want to use single channel then you will probably need to utilize SAIC mode to capture both edges and read consecutive 3 edges to be able to get period/duty. But a polarity could be issue, unless UCIN is read with saved value.
If 2 channels can be used then you can refer to below code
https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5646C-eMIOS-frequency-measurement-CW2...
BR, Petr
Hi,
if you want to use single channel then you will probably need to utilize SAIC mode to capture both edges and read consecutive 3 edges to be able to get period/duty. But a polarity could be issue, unless UCIN is read with saved value.
If 2 channels can be used then you can refer to below code
https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5646C-eMIOS-frequency-measurement-CW2...
BR, Petr