AnsweredAssumed Answered

LPC54101 SPI Slave Bytes Received

Question asked by D M on Jan 30, 2017
Latest reply on Jan 31, 2017 by Dezheng Tang

Hi There,

We have our LPC54101 processor acting as an SPI slave, configured to use DMA. When receiving an SPI frame from the SPI master, we don't know what length of data we will receive, only that it is of a certain maximum length. So we put this maximum length into the XFERCOUNT register, and track the completion of the SPI transfer by monitoring the SPI chip select line.


We currently do not know how to get the number of bytes actually transferred by the DMA, is there a register we can read to find out this?