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.