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

ssp buffer lpc2388

Hey.

I am trying to setup a communication line between to lpc2388, by using ssp0 (as spi), where I have 1 slave and 1 master.

When I send (master), a write to the fifo buffer (8x16 bits), and it work fine.

But when I try to read it (on the slave side) from the rx buffer, I only get 1 half of the "frame" (the same 4x16 bits is copied). I only get the whole frame the first time.

Has any had the same problem?

Best regards Soeren.

Parents
  • The receiver will issue a FIFO interrupt when the FIFO is (at least) half-full.

    If you stop sending data, then the receiver will get a receiver timeout interrupt, to let you pick up any remaining words in the FIFO.

    Are you checking for both these conditions in the ISR?

Reply
  • The receiver will issue a FIFO interrupt when the FIFO is (at least) half-full.

    If you stop sending data, then the receiver will get a receiver timeout interrupt, to let you pick up any remaining words in the FIFO.

    Are you checking for both these conditions in the ISR?

Children