Skip to main content
muhammadqasim_86
Visitor II
February 14, 2011
Question

SPI RXEN

  • February 14, 2011
  • 2 replies
  • 672 views
Posted on February 14, 2011 at 06:09

SPI RXEN

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    May 17, 2011
    Posted on May 17, 2011 at 14:24

    The transmit buffer becomes empty when the data is moved to the shift buffer, and you can prefill the transmit buffer with the next data.

    SendData, places the data in the transmit buffer, it does not block until the data is physically sent over the wire.

    It will take 8 clock shifts before the in-bound shift register is moved to the receive buffer, seeing as this will occur more slowly than the processor is running, you have to wait for the whole byte to become available in the receive buffer before you can remove it.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    domen23
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 14:24

    1. You tell MCU which 8 bits to send out.

    2. The bits are sent out/received.

    3. You read the received bits.

    You need to wait for 2 to finish before 3. What's unclear here?