How to configure edge or level trigger with some delay

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

How to configure edge or level trigger with some delay

817件の閲覧回数
suvhm
Contributor I

Team,

I need to configure the on board USER Switch(SW2) to get interrupt on rising or falling edges with some values (like ~10ms).

I mean to say when signal getting start taking edge form, till 10ms it will not read button pressed as an interrupt once 10ms get passed it will get interrupt.

suvhm_0-1623759424536.png

As per data sheet we can configure 8 pins, but my question is -

Is it possible to configure the same with some default value like in STM Microcontroller ?

If yes, any pointer how can i configure it.

I appreciate your support here!

Thank You!

ラベル(1)
0 件の賞賛
返信
1 返信

805件の閲覧回数
FelipeGarcia
NXP Employee
NXP Employee

Hi,

You can use a timer to trigger an event as wish if you start the timer after you get the interrupt from the SW button. You can find several examples for pin interrupts and timers that you can use for reference in our MCUXpresso SDK.

Welcome | MCUXpresso SDK Builder

Best regards,

Felipe

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored. Please open a new thread and refer to the closed one, if you have a related question at a later point in time. 

------------------------------------------------------------------------------ 

0 件の賞賛
返信