Hi,
I need to make SPI communication with MSP430F2274 in Slave Mode. Where can I found a code example to do this.
thanks
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.
Hi,
I need to make SPI communication with MSP430F2274 in Slave Mode. Where can I found a code example to do this.
thanks
Hi,
Have a look at the code examples given at this link: http://www.ti.com/litv/zip/slac123d
The zip file does not contain code specifically for USCI_B0 SPI slave mode. However it does contain sample code for USCI_A0 SPI Slave in "msp430x22x4_uscia0_spi_10.c". You can modify the code for USCI_B0 just by changing some registers. For example UCA0CTL1 will become UCB0CTL1.
Alternately, you can also look at examples for MSP430F241x & MSP430F261x microcontrollers at http://www.ti.com/litv/zip/slac151d.
There is an example "msp430x261x_uscib0_spi_10.c" which you can use. You will need to change the pins according to your microcontroller & also change the header file.
Regards,
Praval
**Attention** This is a public forum