Monitor SPIS tx amount during transfer

I'm trying to figure out a way to monitor the TX data when using the SPIS. When the slave is requesting to send data back to the master, we are asserting a pin. When all of the data has been transferred, we would like to be able to de-assert the pin to let the master know it can end the transaction.

So far, it looks like none of the SPIS registers get updated until after the transaction.

Is there something I can monitor?

All suggestions welcome.

Parents
  • Hello,

    Do you control both the SPI master and the SPI slave?

    Do I understand you correct if you want to tell the SPI master from the SPI slave that it doesn't have more data?

    So the SPI master isn't an nRF then? Does it have API to just keep receiving data until it decides to stop? How does it deal with buffer overflows?

    Either way, I discussed this with a colleague. We figured out that the easiest solution would be to send a short transaction over SPI first, where the SPI slave just sends the number of bytes that it wants to send in the next transaction. This way, the master knows how much data to expect.

    Best regards,

    Edvin

Reply
  • Hello,

    Do you control both the SPI master and the SPI slave?

    Do I understand you correct if you want to tell the SPI master from the SPI slave that it doesn't have more data?

    So the SPI master isn't an nRF then? Does it have API to just keep receiving data until it decides to stop? How does it deal with buffer overflows?

    Either way, I discussed this with a colleague. We figured out that the easiest solution would be to send a short transaction over SPI first, where the SPI slave just sends the number of bytes that it wants to send in the next transaction. This way, the master knows how much data to expect.

    Best regards,

    Edvin

Children
No Data
Related