I'm trying to get a
UBW32 (Pic PIC32MX460) working with a SD card --
I've downloaded Microchip's SD Demo, and am stuck at the FSInit() function. I'm not able to get a response from the SD card.
I've followed all of the above suggestions; have voltage divider resistors on the SDO1, SCK1, and SS1 pins, as well as 10k pull-up resistors. I've modified Hardware.h to reflect the pin assignments for this chip:
sdi1 (rc4)
sdo1 (rd0)
sck1 (rd10)
ss1 (rd9)
And slowed down the SPI communications.
I've hooked up a scope and am seeing some odd behavior - the chip select (SS) seems to behaving correctly, but the clock (SCK) looks like it's transmitting data, not a clock signal, and it's sligtly skewed & sending data slightly before the SS triggers. SDO is always high (as well as SDI, but that's expected since it's not communicating).
This is the first time I've played with SPI communications, I'm stuck, any suggestions?
Thanks!