Electrical Engineering Asked by Diego Colombo on December 1, 2020
I have a problem for which I can’t find the solution in previous topics.
I’m using a microcontroller to read data from a Kodak 2GB Micro SD Card. I want to write a minimal driver in SPI mode, no need to do writing or formatting operations, just read some files.
I can see those signals on a 4 channel scope: CS, MOSI, MISO, CLK.
I do the following:
I send 100 bytes at 100KHz, with MOSI and CS high.
I send CMD 1, no argument, response type R1 returns 0x1, correct.
I send CMD 8, arg=0x1AA, response type R7 returns 0x1+ arg 0x1AA, correct.
At this point every command returns 0x5 at the 4th byte of the command. In other words, before the 6 bytes command is completely issued.
Any explanation for that?
In the last hour i did other test ... Seems solved. The difference is that before,when i wanted to to bang out the clock pulses necessary for read each command answer,i did not pay particular attention on the data sent on MOSI ,it was 0x00. Now i use 0xFF and everything works fine.
Answered by Diego Colombo on December 1, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP