Hello,
I have use the following code during many years on MSP430F149, MSP430F247 and MSP430F5419A to receive data on SPI:
unsigned char spi_rcv_byte_UCA0() { unsigned char tmp; UCA0IFG &= ~UCRXIFG; /* re-Send the adr because 8 more clock edges requested*/ UCA0TXBUF = 0xFF; /* Wait for the byte to be received */ while (!(UCA0IFG & UCRXIFG)); // USCI RX buffer ready? tmp = UCA0RXBUF; return (tmp); }
Now I use this code on MSP430FR5969 and it appears that some PCB have some issues sometimes:
the UCRXIFG flag never changes state.
Do you have any idea to solve this issue?
Best regards
Mich