MPC5746 emios function consultation

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

MPC5746 emios function consultation

Jump to solution
533 Views
Anony
Contributor II

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?

0 Kudos
1 Solution
524 Views
PetrS
NXP TechSupport
NXP TechSupport

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

View solution in original post

0 Kudos
1 Reply
525 Views
PetrS
NXP TechSupport
NXP TechSupport

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

0 Kudos