KEA8 KBI on both falling and rising edge

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KEA8 KBI on both falling and rising edge

Jump to solution
962 Views
NicoloStrozzi
Contributor III

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?

0 Kudos
Reply
1 Solution
946 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @NicoloStrozzi 

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.

View solution in original post

2 Replies
940 Views
NicoloStrozzi
Contributor III

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ò

0 Kudos
Reply
947 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @NicoloStrozzi 

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.