I recently ran into a problem in using a G2553 in spi mode (polling)
and connected to a 74HC595 shift register. The problem was I was not
getting the bit QA on the 595 to load. I was able to fix the problem
by changing: while((IFG2 & UCA0TXIFG) == 0); to: while(IFG2 & UCA0TXIFG == 0);
Can someone please explain the difference between the two?
Also, I have noticed that: while((IFG2 & UCA0TXIFG) == 0); seems to work in IIC mode
but not in SPI.
Thanks.