Other Parts Discussed in Thread: MSP430G2231
After setting up the USI interface for I2C on an MSP430G2231 with the USI Bit Counter Interrupt enabled, CSL_init() ends with USIIFG set. This causes the program to immediately jump to the ISR. When I try to set the counter to a non-zero value and clear the USIIFG, I can only do one or the other; Whichever line is first will execute and the other has no effect when single stepping through the project. I have also tried clearing USIIFGCC and setting USICNTx to a non-zero value with USICNT = 0x01, but this only changed one bit. I'm not sure if this is a bug or if I have made a mistake in my code, but the code works in a regular project without Grace.
-James