MPC5746 emios function consultation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MPC5746 emios function consultation

跳至解决方案
1,599 次查看
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 项奖励
回复
1 解答
1,590 次查看
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 项奖励
回复
1 回复
1,591 次查看
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 项奖励
回复