Hi,
Is it possible to use GPIOs in 5528 to implement 3 wire SPI (half duplex spi mode).
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,
Is it possible to use GPIOs in 5528 to implement 3 wire SPI (half duplex spi mode).
Yes. F5528 supports 3-wire SPI mode and 4-wire SPI mode.
If you look at the user's guide slau208, you can find the bot USCI_A and USCI_B support SPI interface. In the register description for UCAxCTL0.UCMODEx, you can see the SPI mode supported configuration:
bit 2-1: UCMODEx
Thanks,
Lixin
Unfortunately, the terminology is somewhat muddled.
Lixin has described 3-pin mode (sometimes "3-wire") which just means there is no /CS pin. The MSP430 USCI supports this.
"3-wire" mode (sometimes "3-pin") means that MISO and MOSI use the same physical wire, and master/slave alternately drive that wire based on some higher-level protocol. The MSP430 USCI doesn't support this -- you need to do it explicitly, by switching the pins (PSEL) at the right times.
Hi Lixin / Bruce,
Thanks for the reply.
Good to know that its possible to use PSEL and implement the protocol till the timing parameters are satisfied.
**Attention** This is a public forum