Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE
Hello,
Hope you are doing well.
We are using TMS320F28388D control card and trying to read SPI MISO lines.
Below is the SPI Configuration.
//mySPI0 initialization
SPI_enableFIFO(mySPI0_BASE);
SPI_setConfig(mySPI0_BASE, DEVICE_LSPCLK_FREQ, SPI_PROT_POL1PHA0,
SPI_MODE_MASTER, 1000000, 8);
SPI_disableLoopback(mySPI0_BASE);
SPI_enableTalk(mySPI0_BASE);
SPI_disableInterrupt(mySPI0_BASE, SPI_INT_TXFF);
SPI_setEmulationMode(mySPI0_BASE, SPI_EMULATION_FREE_RUN);
SPI_enableModule(mySPI0_BASE);
Below is the API we are using to read SPI MISO.
for(i=0;i<5;i++)
{
SPI_writeDataNonBlocking(mySPI0_BASE, address[i]);
read_data[i] = SPI_readDataNonBlocking(mySPI0_BASE);
}
But when we crosschecked the data received on the MISO lines of SPI between the Oscilloscope and data obtained via SPI_readDataNonBlocking is not matching.
Is there anything that we are doing wrong with respect to SPI configuration or SPI MISO lines reading.
Thanks
Navya Anna Prince




