cancel
Showing results for 
Search instead for 
Did you mean: 

SPI RXEN

muhammadqasim_86
Associate
Posted on February 14, 2011 at 06:09

SPI RXEN

2 REPLIES 2
domen23
Associate II
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?
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
Up vote any posts that you find helpful, it shows what's working..