KEA8 KBI on both falling and rising edge

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KEA8 KBI on both falling and rising edge

跳至解决方案
966 次查看
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 项奖励
回复
1 解答
950 次查看
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.

在原帖中查看解决方案

2 回复数
944 次查看
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 项奖励
回复
951 次查看
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.