is there any example of spi master-slave for TMS570LS20x cpu ?
it is missing from halcogen examples, and spi api is different from TMS570LS12x and TMS570LS31x.
Thanks!
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.
is there any example of spi master-slave for TMS570LS20x cpu ?
it is missing from halcogen examples, and spi api is different from TMS570LS12x and TMS570LS31x.
Thanks!
Hi Dmitry,
I do not have the 20x Board with me, but still I can write one example for you.
You want Multi buffer mode(MIBSPI) or Compatibility mode(SPI) example?
I think I can do this, I will configure MIBSPI1 in multi buffer mode as Master and MIBSPI3 in Compatibiltiy mode(SPI) as Slave. Will it work for you?
Dmitry,
Here is an example (already published on this forum) for a basic SPI Master to SPI Slave communication.
In this example, SPI2 (Slave) and SPI3(Master) are used. It is necessary to make physical connection between SIMO, SOMI, CLK and CS(0) of both SPIs.
This code can easily be ported to your device.
SPI2 Transmit ans receive through Interrupt mode.
SPI3 Transmit and receive through Polling mode.
Please have a look and let me know if this is helpful.