Skip to main content
Dat Tran
Senior II
February 14, 2018
Question

SPWF04SA SPI send race condition

  • February 14, 2018
  • 1 reply
  • 586 views
Posted on February 14, 2018 at 14:44

Hi,

When using the SPI interface on the SPWF04SA, firmware 1.1, say we have a packet to write (no payload for simplicity) and nHostIRQ has not been asserted. We set CS low, write the packet header, then set CS high. Say the module also has a packet to send us, the host, right as we're about to set CS low and write the header.

Is there a potential race condition here? What happens or is expected if the module has data to send but we ignore it, for whatever reason, and we go on writing the packet? Do we need to check the received data for a sync word from the module and resend our packet? Do our sends take priority?

Thanks!

    This topic has been closed for replies.

    1 reply

    Dat Tran
    Dat TranAuthor
    Senior II
    March 12, 2018
    Posted on March 12, 2018 at 19:18

    Any idea, please?