I can't get an external interrupt to trigger when I press S1 on the CC2430DB (P0_1). I'm using the Z-Stack 1.4.2-1.1.0 with IAR v7.20i. Here's the code I'm using:
#pragma vector=P0INT_VECTOR
__interrupt void P0_IRQ(void){
P0IFG = 0x00;
P1=0; // Turn on LED
IRCON = 0x00; // Clear flags
}
ZSEG int main( void ) // from Zmain.c
{
P0DIR = 0;
P1DIR = 0x01;
P0IFG = 0x00; // clear interrupt flag
PICTL |= 0x08; // enable interrupt on P0_0 to P0_3
PICTL |= 0x01; // enable falling edge interrupt
P0IFG = 0x00; // clear interrupt flag
IEN1 |= 0x20; // enable PO interrupt
EA = 1;
...
Tracing the program shows that all registers are setup properly and that the button is working. However, the ISR is never entered. Any ideas?