Hi,
If you can review my project, I want you to review final project.
I wanna use peripheral ADC, TRGMUX, PDB, PWM(FTM), Input Capture(FTM), Timer, CAN, UART.
But I have a proplem at Input Capture Interrupt.
So I was looking for the reason program was not able to quit FTM1_Ch0_7_IRQHandler Interrupt loop.
first, C2SC_CHF is not clear. That is why program stay to FTM1_Ch0_7_IRQHandler Interrupt loop.
In reference manual, C2SC_CHF is clear by reading CnSC register while CHF is set.
but, variable ftmStatePtr[1].ftmMode value is 50. I think this is API or my configuraion error.
I'm attaching my project and waiting for yout reply.
Thanks.
Best regards, Jongchan