Content originally posted in LPCWare by MikeSimmonds on Mon Jan 21 04:17:00 MST 2013
[FONT=Tahoma][SIZE=1]On the[/SIZE][/FONT][FONT=Tahoma][SIZE=1] 1778 which I use, only port 0 and port 2 pins can generate interrupts.
You must also power the GPIO in the PCONP register
Secondly, there are extra registers in the GPIO area to enable rising, to enable falling
edges. (and a bunch of others for checking and clearing the interrupt rq's.)
Also have you enable the interrupt(s) in the NVIC?
Amd setup a handler?
Note there is only a SINGLE interrupt vector for all GPIO interrupts -- you have to poll
the status bits in the regs (above) to see which pin/edge occured -- and clear it so it can be detected again.
If you use a different chip, read it's UM to get restrictions, and register descriptions.
BTW you really (really) must read (and re-read, re-read) your UM and research you requirements BEFORE posting.
If (after proper reasearch) you are still uncertain, why then it is appropriate and acceptable to post.
Mike
[/SIZE][/FONT]