LPC43xx Triggering Interrupt

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

LPC43xx Triggering Interrupt

656 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by amsmith on Wed Apr 27 11:33:03 MST 2016
Hello,
I'm using an LPC4370, and I'd like to use a GPIO to trigger an interrupt.

Setup:
External source sets one pin high to trigger an interrupt which then sets a second pin high.
All of the pieces have been tested.
Manually polling the input pin, values as expected.
Manually calling the ISR, reading the output pin, values as expected.

All of the pieces work, it's just the interrupt itself never seems to be triggered by the input pin, which perhaps suggests a configuration issue.

- Interrupts have been enabled globally
- The pin isr has been enabled
- The input buffer has been enabled (thought this was the missing link when I discovered this in the documentation, but seems not)
- The pin directions set correctly
- The voltages are correct

Any insight would be greatly appreciated.
Thank you.


Labels (1)
0 Kudos
3 Replies

422 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos

422 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bavarian on Thu Apr 28 05:43:42 MST 2016
In the LPCOpen package 2.12 there is an example for pin interrupt.
I used a Keil compiler, the KEIL MCB4357 board and I let the example run from internal flash and it works.

This LPCOpen package 2.12 is also available in a version for the LPC4370 Link2 board, I assume that it contains the same example but running on this board. However, in the package I used you could select the Link2 board as a platform as well.

https://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc43xx-packages

Some thoughts:

-  Do you go to a power down mode?
-  All peripheral clocks are on after reset. Did you manually switch off any clocks?
-  Is the pointer to the interrupt vector table set correctly?

Regards,
NXP Support Team.
0 Kudos

422 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mysepp on Wed Apr 27 12:06:39 MST 2016
Perhaps show some source code?
0 Kudos