Interrupt Glitch

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

Interrupt Glitch

297 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Genesy on Fri Apr 05 03:31:59 MST 2013
How to prevent glitches when I insert a jumper on a GPIO used as an interrupt?
I have a LPC11C14 chip but there isn't hardware support such as some other microcontroller.
0 Kudos
3 Replies

284 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by micrio on Fri Apr 05 09:37:50 MST 2013
If you provide your own interrupt handler then no other handler will be called.
Am I understanding your question correctly?

There are interrupt handler examples in the sample files that might be useful.

Pete.
0 Kudos

284 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Genesy on Fri Apr 05 06:42:14 MST 2013
Thank you for replay.
Another question. In the GPIO driver there is a default PIO Handler for a specific port and it work well. If I redefined this handler externally with a custom function, this handler isn't called. Do I forgot something?
0 Kudos

284 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by micrio on Fri Apr 05 05:06:39 MST 2013
In your interrupt handler disable the interrupt.   This will prevent it from
coming back during the bounce period.   At some time later re-enable
the interrupt.   You can use a timer or some other delaying mechanism to
give you a delay.   A delay of a few milliseconds works well for debouncing
switches.

Pete.
0 Kudos