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.

MSP430G2955 SPI communication

Hi!

I am trying to communicate between two MSP430G2955 using the SPI(Master/slave) protocol. Currently, I am using the example codes provided in the resource explorer. However, I am not able to see any data on the logic analyzer. I tried different combinations for UCCKPL and UCCKPH, but still no success. Could someone point out the possible errors.

The hardware connections are as follows:

MASTER      SLAVE
MOSI--->MISO

MISO--->MOSI

CLOCK out-->CLOCK in

Chip select-->RST/NMI

Any leads would be appreciated.

Thanks

  • Is your chip select holding the slave in RESET?

  • Yes, it is.

  • It's a bad idea ‘slecting’ a slave through its RST pin (even though it has been done in an 'official' demo code too)

    Once ‘selected’, the slave needs to boot up, which can take a significant time which is unknown to the master. So the master needs some feedback form the slave whethe rht eslave is doen booting and reay for operation.

    Better control the slave reset by a transfer-independent I/O (or not at all), and check the CS signal on the running slave (e.g. with a port pin IRQ).

**Attention** This is a public forum