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/TMS320F28069F: I have a question with SPI Communication Code.

Part Number: TMS320F28069F


Tool/software: Code Composer Studio

Hi,

I'm studying  28069DSP SPI function.

When i running with Control-Suite Example_2806xSpi_FFDLB, it is well operated. (the SPI code in for(;;) )

But, I do this code in adc_isr, the code is stop at ''while(SpiaRegs.SPIFFRX.bit.RXFFST !=1) { }''  which is in the code below.

{
// Transmit data
spi_xmit(sdata);
// Wait until data is received
while(SpiaRegs.SPIFFRX.bit.RXFFST !=1) { }
// Check against sent data

rdata = SpiaRegs.SPIRXBUF;
//if(rdata != sdata) error();
sdata++;
}

I checked the adc_isr is well operating without SPI Code.

How can i solve this problem?

thanks.