I've been playing with this code for a couple days now with no joy. My biggest question revolves around my SD card. I have several. They ALL have 9 pins. As does the socket on my development board. Yet the code seems to be written for an SD card with 12 pins? I have no "Write Protect" or "card detect" lines, nor can I find reference to them anywhere but on this site. Do I fake the pins? High or low?
To further add to the confusion, I'm using an 18F2550 and I need the hardware serial port. Since a pin is shared with the hardware SPI port, I'm trying to use SHIFTOUT / SHIFTIN. Things seem to be getting to the SD card, but it does not reply (I get 0's).
Am I missing something simple? Response from an INIT is 6...