Hello,
I am trying to make an OMAPL138 DSP core talk with a 500ksps ADC (ADS8361) via SPI1. Since ADS8361 doesnt have a specific SPI port, I am sending 0xC0,0x00 and 0x00 as SIMO to the RD line of ADS8361 and reading 24 bits from the Data A of ADS8361 as SOMI (see the code snippet below). I am using PSP 1.30 and BIOS 5.41.
=================================
spiParams = Spi_PARAMS;
spiParams.hwiNumber = 8;
spiParams.spiHWCfgData.intrLevel = FALSE;
spiParams.opMode = Spi_OpMode_POLLED;
spiParams.outputClkFreq = 20000000;
spiParams.loopbackEnabled = FALSE;
spiParams.edmaHandle = NULL;
spiParams.spiHWCfgData.pinOpModes = Spi_PinOpMode_SPISCS_4PIN;
spiParams.spiHWCfgData.configDatafmt[0].charLength = 8;
spiParams.spiHWCfgData.configDatafmt[0].clkHigh = TRUE ;
spiParams.spiHWCfgData.configDatafmt[0].lsbFirst = FALSE;
spiParams.spiHWCfgData.configDatafmt[0].oddParity = FALSE;
spiParams.spiHWCfgData.configDatafmt[0].parityEnable = FALSE ;
spiParams.spiHWCfgData.configDatafmt[0].phaseIn = FALSE ;
spiParams.spiHWCfgData.configDatafmt[0].waitEnable = FALSE;
spiParams.spiHWCfgData.configDatafmt[0].wDelay = 0;
spiParams.spiHWCfgData.intrLevel = TRUE;
spiParams.spiHWCfgData.waitDelay = FALSE;
=================================
loopWrite[0] = 0xC0;
loopWrite[1] = 0x00;
loopWrite[2] = 0x00;
dataparam.bufLen = 0x03;
dataparam.inBuffer = &loopRead[0];
dataparam.outBuffer = &loopWrite[0];
dataparam.flags = Spi_CSHOLD;
dataparam.dataFormat = Spi_DataFormat_0;
dataparam.chipSelect = 0x08;
size = dataparam.bufLen;
GIO_write(spiHandle, &dataparam, &size);
=================================
However, between the three 8 bit transmissions and after the last transmission, there is a huge gap (see scope shot below). These gaps effectively results in limiting the maximum sampling rate of the ADC to ~123ksps, which is way below than the 500ksps supported by the ADC.
I have all the delays set to zero and cant find what could be causing this issue. Can someone please help me reduce these "inter-packet" gaps and resolve this issue?
DSP/BIOS: 5.41.10.36
PSP: 1.30.00.06
CGT: 6.1.19
Development Board: OMAPL138 Experimenter
Thanks
Joe