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.

MSP430FR5869: Could not read data from SPI

Part Number: MSP430FR5869


Hi all, I would like to read and write data into MSP430FR5869 over SPI with slave mode. But the read process always return 0 or 255.

My source code on MSP430 as below:

//select spi gpio

P2SEL0 |= BIT4 | BIT5 | BIT6;

UCA1CTLW0 |= UCSWRST;

UCA1CTLW0 |= UCMSB+UCSYNC;

UCA1CTLW0 &= ~UCSWRST;

UCA1IE |= UCRXIE;

UCA1IE |= UCTXIE;

I don't get why the SPI on MSP only able to write but failed to read.

Thanks, Cong Nga Le

**Attention** This is a public forum