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.
Tool/software: Code Composer Studio
Hello,
I am writing a driver for the WIZnet W5500 SPI to ethernet converter. (Side note*: I didn't see an offering from TI to add ethernet functionality with a complete IP stack to the F2837x conrtolCard.)
The WIZnet utilizes a 24 bit + N data bytes SPI protocol. It requires that the CS pin (I'm assuming that TI calls this the SPISTE) be controlled by the master, the controlCard, for data reads/writes.
I have two issues:
1) How can the STE (CS) be controlled? It looks like it's controlled automatically at the moment.
2) The TI SPI software interface uses Uint16 data types. The minimum SPI transaction with the WIZNet device is 32 bits. Do I need to write a 32 bit version or can the TI SPI software interface be used?
Kindly,
Graham
Hi Graham,
The SPISTE is controlled automatically. For back to back transactions it will stay active though, so one option may be back-to-back transactions to total 24 + N bits.
Another option is to use a GPIO to emulate the SPISTE signal if you want to manually control it. Just toggle the GPIO low before the transaction and toggle it high when you have completed.
Regards,
Kris