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.

CCS/TM4C123GH6PZ: 3 wire SPI with TM4C123GH6PZ

Part Number: TM4C123GH6PZ

Tool/software: Code Composer Studio

Hello,

I am working on a project using TM4C123GH6PZ in which I am majoring Volume of a liquid in a vassal

my project is almost over but as per the Clint requirement I need to add EEPROM which have 3 wire SPI interface 

my question is 

  • does TM4C123GH6PZ supports 3 wire SPI 
  • if it supports how can I connect 3 wire SPI  to my controller
  • Is there any changes I need to make in my 4 wire SPI program to read the value from 3 wire SPI
  • If TM4C123GH6PZ dos not support the 3 wire SPI, is there any alternet method to read the values from EEPROM

Thank you.

  • Hi Nikhil,
    As explained by Amit in the other post the TM4C123 does not support half duplex in 3-wire mode. What the device can do other than the tranditional SPI format is the Microwire format in half duplex mode. Please refer to the datasheet for details. You need to check if your EEprom supports Microwire format. There are serial EEprom which supports 4-wire SPI. Will you consider these 4-wire EEprom offerings?

    This link below illustrates how to interface a 4-wire SPI master to a 3-wire SPI slave. Note this is only a reference for you to explore. Or as suggested by Amit, you might want to consider bit-banging the I/Os as another option.

    www.totalphase.com/.../200350046-Interfacing-with-3-wire-SPI