2011-02-13 09:09 PM
SPI RXEN
2011-05-17 05:24 AM
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?2011-05-17 05:24 AM
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.