Dear experts,
i have working with interrupt example here i have used two pin in same port but i can't find which pin interrupt occurred BIT3 or BIT4 please assist to find the pin..
P1OUT |= BIT3+BIT7; // Configure P1.3 as pulled-up
P1REN |= BIT3+BIT7; // P1.3 pull-up register enable
P1IES |= BIT3+BIT7; // P1.3 Hi/Low edge
P1IE |= BIT3+BIT7; // P1.3 interrupt enabled
// Port 1 interrupt service routine
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=PORT1_VECTOR
__interrupt void Port_1(void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(PORT1_VECTOR))) Port_1 (void)
#else
#error Compiler not supported!
#endif
{
P1IFG &= ~BIT3|BIT7; // Clear P1.3 IFG
__bic_SR_register_on_exit(LPM4_bits); // Exit LPM3
}
regards
Surya