Quote:
By "bitbang" do you mean the software method where certain pins are turned on/off at the correct time?
Yes.
Quote:
Using that method would i be able to communicate with an SD card really slow? Im thinking less than 1Hz while testing so i can see the data in realtime. I would like to use this idea for testing the hardware version too. The datasheet says the SPI clock can be controlled by timer2 which i could slow down. Would an SD card be alright with such a slow transfer or is there any kind of timeout on them?
Slower but not sure how much.
Quote:
Ive read the bit about SSPSTAT and SSPCON1. The configuration i had is the same as what you showed. I understand what the options mean but do you know which ones i need to work correctly with and SD card?
SSPSTAT = %11000000 or SSPSTAT = %01000000 Both work OK.
Quote:
I understand #5 but one thing i cant seem to find out (even from the datasheet) is how the clock works. I assume that writing to SSPBUF will cause 8 cycles on the SPI clock pin then it stops instead of cycling constantly.
Yes. Repeat for Lowbyte and Highbyte.
Norm