I am using a BF592 and the interrupt flag is set immediately after I read the SPI0_RDBR. The hardware reference manual says a read of the SPI0_RDBR starts the SPI transfer.
It seams that this flag (SPI0_STAT, RXS) should not be set immediately.
Here is my basic code:
|temp = *pSPI0_RDBR; //read buffer register to start|
I get an interrupt immediately after this instruct.