I am working on a project that uses a UART on USCI_A0 and SPI on USCI_B0. The UART functioned perfectly before the SPI interface was implemented. Now it sends on or two bytes out of the UART and then gets stuck in the following line of code:
while (!(IFG2&UCA0TXIFG)); // USCI_A0 TX buffer ready?
because the UCB0TXIFG and UCB0RXIFG are at bits 2 and 3 of the IFG2 and UCA0TXIFG is BIT0 of IFG2 if any of these other bits are high it will get stuck in the line of code above. Does anyone have any ideas on how to fix this?
Thanks,