Hello everyone,
I'm developing a new code on FRDM-KEAZ128 and I need to intercept an interrupt on a single pin on both falling and rising edge but from the documentation it seems that only falling OR raising edge can be used. Is this correct?
If there's no way to setup a IRQ in both edge, the only other way is to use ACMP peripheral or a "smarter" method is available?
Solved! Go to Solution.
It is correct, according to the reference manual "Chapter 23.3.1 IRQEDG and IRQMOD" can only be programmed rising or falling edge. Other methods depends on your code, your board has a FlexTimer Module (FTM chapter 26), which counts with an input capture and it could help you to detect both edges, you can find input capture examples on your board SDK.
Let me know if you have any other question.
Best Regards, Miguel.
Hi,
thank you for the quick reply. Probably FTM is a better approch with respect to ACMP usage, at least in my design.
Best regards, Nicolò
It is correct, according to the reference manual "Chapter 23.3.1 IRQEDG and IRQMOD" can only be programmed rising or falling edge. Other methods depends on your code, your board has a FlexTimer Module (FTM chapter 26), which counts with an input capture and it could help you to detect both edges, you can find input capture examples on your board SDK.
Let me know if you have any other question.
Best Regards, Miguel.