i porting my corrert software to anothoer hardware .
the capture moudle was worked on the original hardware,but it used FTM3_Ch4.
i change the channl to FTM3_Ch7 on the new hardware , and it just cannot work cause the callback function has failed. Program will not pause even i play a breakpoint in the callback function.
the configuration arr as follows(i have implement the callback function):
is there something that i have forgot to changed?
please check:
1. Whether the interrupt is enabled and whether the interrupt number is correct
2. Whether the configuration of the PIN foot has been modified
sorry I was on a business trip last week
The pins are already configured correctly
There is no problem with interruptions eitherk
i check the program again , the problem maybe:
i configure FTM3-6 as PWM output , and configure FTM3_7 as input capture. The configuration that follows covers the configuration that comes before.
Could one FTM be configured in two modes? And how to do.
Sorry, it does not support the same FTM instance to be configured as PWM or ICU at the same time.
thank for your help ...