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.

MSP430 spi interface with 2 slaves

I am using the msp430f2273. The msp430 has only onhe serial interface. I would like to interface the processor with 2 slaves through the SPI. the 2 slaves are working with the same data rate

I would like to know if it is possible to use the SPI with to slaves in parallel ?

thanks

  • nouvel fabienne said:
    I would like to know if it is possible to use the SPI with to slaves in parallel ?

    It's possible. You shall implement chip select functionality (kind of standard feature for SPI peripherals) on your slaves, so master can select one of chips to communicate.

  • nouvel fabienne said:
    I would like to know if it is possible to use the SPI with to slaves in parallel ?

    SPI is a bus. To communicate with a slave, the master pulls a dedicated chip select line to tell the slave that it is selected. One slave, one chip select. his must be done by your sotware (the SPI hardware doesn't know which slave you want to select) and by using normal GPIO.

    However, it is indeed possible to access two SPi slaves simultaneously. In this case, only one (or none) of these slaves must be wired to send something back to the master. Both can be selected by the same chip select line or by two separate lines that are both pulled. Then both slaves will receive the same data simultaneously.

**Attention** This is a public forum