I am in trouble with capturing the leading edge and trailing edge of pulse in IPWM mode of eMIOS,especially the setting of interrupt of it, and I find that the FLAG bit of CSR register of the eMIOS channel that I use remain cleared.I still don't know why it runs like this.I would appreciated if anyone provide a demo of it .
Hi,
we do not have IPWM example directly for a MPC5634M, but you can refer to Example MPC5646C eMIOS frequency measurement CW210 .
Emios module is similar, so you can reuse the code.
Just be sure you are using right channel, not all channels support IPWM/IPM modes, just a big channels.
BR, Petr
Thank you very much with your help.I have read it ,and got some ideas from it .Thank you!