This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SPI Problem (LPC3250)

Hi,

I am using an LPC3250 board. so the problem problem consist in when I configure the SPI interface as "Receive Mode" the "FIFO empty interrupt flag" persists deactivated even if I disable the reception () and I run a read loop to empty the "Rx buffer".
this code This code loops indefinitely :

((SPI_REGS_T *)SPI1_BASE)->con |= SPI_CON_SHIFT_OFF;
while (test == 0x00)
        {
                  iCounter = ((SPI_REGS_T *)SPI1_BASE)->dat;
                  test = ((SPI_REGS_T *)SPI1_BASE)->stat & SPI_STAT_BE;
}


Please, help me! thanks

0