SSP0 with DMA on LPC2368 (MCB2300)

Has somebody ever used SSP0 with DMA ?

I'm starting with a demo code from NXP, but this code is very light. It seems to be hard to manually do the 'chip select' at the right time and yet, I'm just trying to read my slave's status register !

Thanks for any help.

Parents
  • Now I can write and read a byte through DMA. Transmit looks good, even for a lot of bytes. But I have an issue concerning the reception. Data are ok on the SSP0 peripheral but what I find in the FIFO is what I've sent (I checked the registers). It look likes it read the SSP0 register too early (the rigth data hasn't come yet).

    I tried to use peripheral as 'flow controller' but nothing is working.

    As I've said, writing the 'read status register' command and getting the status value is ok .

    I don't understand how can I manage the reading synchronisation...

    Thanks for any help

Reply
  • Now I can write and read a byte through DMA. Transmit looks good, even for a lot of bytes. But I have an issue concerning the reception. Data are ok on the SSP0 peripheral but what I find in the FIFO is what I've sent (I checked the registers). It look likes it read the SSP0 register too early (the rigth data hasn't come yet).

    I tried to use peripheral as 'flow controller' but nothing is working.

    As I've said, writing the 'read status register' command and getting the status value is ok .

    I don't understand how can I manage the reading synchronisation...

    Thanks for any help

Children
More questions in this forum