KEA8 KBI on both falling and rising edge

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

KEA8 KBI on both falling and rising edge

ソリューションへジャンプ
960件の閲覧回数
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 解決策
944件の閲覧回数
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 返答(返信)
938件の閲覧回数
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 件の賞賛
返信
945件の閲覧回数
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.