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.

CC3220MOD: Different SPI polarity slaves on the same bus

Part Number: CC3220MOD


Hi community,

I am aware that this question is not 100% related to this chip. Anyways it is currently happening with this product, so I throw it in here. If you have any suggestions where it would be more suited to ask it, please let me know.

What if we have 2 slaves on the same SPI bus that don't have the same polarity ? Do we need to call SPI_close() and SPI_open( CORRECT_POL ) each time we need to talk to the other slave?

Thanks in advance!

Vincent V.

  • Hi Vincent,

    Do your two slaves have a different CS polarity, or different clock polarity?
    I have not run into a scenario where my SPI slaves used different polarity settings, but if your SPI slaves have different clock polarity/phase settings then you will need to call SPI_close() and then SPI_open() to set the CC3220 SPI interface to the correct settings when you want to talk to a slave with different settings. If it's only the CS polarity that's different, then you don't need to reopen, since you should be setting the SPI CS manually through GPIOs and can thus assert at the correct polarity for each slave.

    Let me know if you have further questions or need more clarification on the SPI peripheral behavior.

    Regards,
    Michael