Hello Colin,
To keep the SPI operation simple and straightforward, I would suggest that, for each byte sent, you wait until the SPRF flag becomes set, and then read the SPI1D register to clear the flag. This will prevent an overrun error, and would apply even though you are not using the MISO data. This will also ensure that each transaction is completed before you commence a new transaction, to whichever slave device.
Regards,
Mac
Message Edited by bigmac on
2007-06-29 05:35 AM