Hi I'm trying to use the extension pins for port 2 on the EZ430-RF2500 but they don't work.
I tried P3, P4, P5 to trigger the interrupt but it doesn't seem to work. I am using a reed switch to trigger the interrupt on a high to low edge
Is there an interrupt available for port 4?
I am also using the ADC10 and the TimerA interrupt aswell.
Here's how I'm setting port 2 up:
P2REN |=0x07; //0x04; // P1.2 Enable Pullup/Pulldown
P2DIR &= ~0x07; // P2.0-P2.2 as input
P2IE |= 0x07
P2IES &= ~0x07; // P2.0-p2.2 lo/Hi edge
P2IFG &= ~0x07; // P2.0-P2.2 IFG cleared
#pragma vector=PORT2_VECTOR // 0xFFE4 Port 1
__interrupt void interrupt_button2 (void)
{
P1OUT ^= 0x03;
P2IFG &= ~0x07; // P2.0-P2.2 IFG cleared
}
I want to use port 1 ideally but there are no extension pins for this. Is there any way of doing this?