AnsweredAssumed Answered

Communicating to a SD card using HCS08QG8's SPI module

Question asked by Sara Souza on Oct 26, 2015
Latest reply on Nov 9, 2015 by Sara Souza



I am rookie on MCU programming.

I have been trying to communicate a sd card memory (1GB) to a HCS08QG8 MCU but I don't know how to do this. I've been using some sample codes from the Code Warrior IDE, I configurated the clock and CPU settings as suggested. By using a protoboard I connected SS pin to CS pin, MOSI pin to Indata pin, MISO pin to Outdata pin, SPSCK pin to CLK pin and the others (GND and VSS pins to the board power supply).

PS: I am using the kit DEMO9S08QG8, and for these connections I used the kit's J1 connector.

I think the major problem is on the code and pins' configurations. I've been testing and it was supposed to write a file on the SD card. But when I read the SD by in a PC it was empty.




Sara Mt.