This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LPM and port pin interrupts

Other Parts Discussed in Thread: MSP430F2013, MSP430FG4618

Hello,

Ref: MSP430F2013/ FG4618

slau056j (MSP430x4xx), I believe, includes MSP430FG4618 as well. The manual didn't speak much about interrupts. I assumed that ports P2 and P5, both were Interrupt Enabled. So I wrote:

  P2IE |= (BIT2 + BIT1);
  IE5 |= BIT1;

  P2IFG = 0;
  P5IFG = 0

 

Didn't work for port5 though. Was my assumption wrong?

 

Further, F2013 runs the state machine as the Master TX'r. So I wrote:

do {
      LPM0;
    } while (I2C_state >= 0);

 

But I get, "Warning! CPU is off(LPM) and Interrupts are disabled. Cannot execute step/ go". But I2C mode & USI interrupt have been enabled through:

  USICTL1 = USII2C | USIIE;  // when the program was first initialized.

 

Regards,

Krishna.

 

 

  • The msp430fg4618 datasheet states that only P1 and P2 have interrupt capabilites.

    There are no such registers as "IE5" and "P5IFG".

     

    For the second problem: have you enabled the global interrupts (GIE bit of SR)?

**Attention** This is a public forum