How to configure edge or level trigger with some delay

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

How to configure edge or level trigger with some delay

379 Views
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!

Labels (1)
0 Kudos
1 Reply

367 Views
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 Kudos