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.