This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR5969 SPI does not work like MSP430F247 SPI

Other Parts Discussed in Thread: MSP430F247, MSP430F149, MSP430F5419A, MSP430FR5969

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

**Attention** This is a public forum