I am using MSP430FR2110 and trying to setup a pin interrupt on P1.6. The code is avaiable below.
I am having an issue where pin interrupt is not generated when voltage level transition from high to low on pin P1.6.
I happen to have a dev kit with MSP430FR2311. With the same code, pin interrupt works. I can't find anything saying that
MSP430FR2110 P1.6 cannot be use as pin interrupt from the datasheets.
Can someone help me?
// #include <msp430.h> // int main(void) // { // WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer // P1OUT |= BIT6; // Configure P1.6 as pulled-up // P1REN |= BIT6; // P1.6 pull-up register enable // P1IES |= BIT6; // P1.6 Hi/Low edge // P1IE |= BIT6; // P1.6 interrupt enabled // // Disable the GPIO power-on default high-impedance mode // // to activate previously configured port settings // PM5CTL0 &= ~LOCKLPM5; // P1IFG &= ~BIT6; // P1.6 IFG cleared // while(1) // { // __bis_SR_register(GIE); // Enter LPM3 w/interrupt // __no_operation(); // For debug // } // } // // 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 &= ~BIT6; // Clear P1.6 IFG // }