Hi everyone:
I encountered a problem when using the development board of mpc5775b. I want to use the input capture function of emios, but my program can't enter the interrupt all the time. I'm not sure what's wrong with my program configuration. I also read the routine of mpc5777c, but I didn't find anything wrong. I hope to get a specific answer.
I can confirm that my pwm is input to the pin of the single chip microcomputer, and the voltage of 3.36V can be detected at the pin with the oscilloscope.
The software I use is s32ds for PA. If you need any other information, please feel free to contact me. I will always pay attention to this issue recently.
Thanks,
Best Regards
Solved! Go to Solution.
Hi,
per simple check on the MPC5777CEVB I am able to get into eMIOS ch2 interrupt and it is called repeatedly on signal edge (on header P16.1). But I had to comment GPIO_Led2_flash otherwise it gets into interrupt just one. It looks there is something with osif delay.
BR, Petr
Hi,
check if IGF module is properly initialized as well. IGF is placed between MCU pads and eMIOS/eTPU module inputs and it is disabled by default. You need to enable respective IGF channel and bypass it at least.
Within debugger you can check eMIOS channel Status register to know if flag is set or at least UCIN value is changed and so external signal is fed to eMIOS channel input.
BR, Petr
Hi,
can you share simplified project indicating an issue.
The one you shared has etpu code only, i think.
BR, Petr
Hi,
per simple check on the MPC5777CEVB I am able to get into eMIOS ch2 interrupt and it is called repeatedly on signal edge (on header P16.1). But I had to comment GPIO_Led2_flash otherwise it gets into interrupt just one. It looks there is something with osif delay.
BR, Petr
Hi Petr:
Thank you for your reply. To be honest, I have seldom thought about the acquisition of pwm recently.
Excuse me, did your inspection find any problems?
I have tried to change the contents of the interrupt service function before, such as deleting the GPIO_Led2_flash function, but I still can't enter the interrupt.
On the other hand, I noticed that you verified 577CEVB and the development board I used was RDVCU5775EVM. Will this affect the result?
Thank you again for your research on this issue, and I still look forward to your reply.