Hello
Somehow it isn't working now on a final board.Earlier on a perf board it worked every time the pin was fed with a 5v signal.
Now no interrupt is asserted.
Can the pin have become faulty? i have pulled the pin low with external resistor to avoid spurious glitches.
Here is my part of fault init code
{
.
.
FTM2MODE = 0xC5;
FTM2FLTCTRL = 0x11; //Fault 0 and Filter 0 enabled
FTM2FAULTFILTER_FFVAL = 0x0F; // FFVAL x system clock = 0.9us
.
.
}
heres the ISR
void interrupt 4 FTM2FAULT_ISR (void)
{
FTM2OUTMASK = 0x3F; //stop channels
FTM2FMS_FAULTF = 0;
}
what is wrong? can someone point out?
已解决! 转到解答。