Skip to main content
Visitor II
May 6, 2010
Question

Simplified Specification Version 2.00 issue

  • May 6, 2010
  • 5 replies
  • 934 views
Posted on May 06, 2010 at 15:58

Simplified Specification Version 2.00 issue

    This topic has been closed for replies.

    5 replies

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:08

    Hi All,

    EtaPhi,

    Can you please shear with us your code to Init the SD card...

    LastWarrior,

    Can you please check that SD card (Sandisk) that you use is High capacity card or Standard capacity V2.0 card ?

    regards

    mozra

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:08

    Hello warrior.last!

    I successfully interfaced my STM8S207C8 to a 4 Gb uSD made by Transcend.

    Even if my code is written in STM8 assembler language, the uSD commands sequence and their arguments are the same.

    The only difference I see is that my code, after it has sent a command, it keeps sending an idle byte (i.e. $FF) until the uSD card raises the SPI bus, i.e. until my code receives a $FF byte.

    This allows the uSD card to perform housekeeping operations which are needed to process the following command.

    I suggest you to check the SD ENABLE line activation too, because when it's lowered, it marks the start of a SPI frame.

    Regards

    EtaPhi

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:08

    mozra27,

    I'll post my code, but I need some time to clean it and to translate my comments which are written in Italian.

    regards

    EtaPhi

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:08

    Thank you EtaPhi

    Regards

    mozra

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:08

    I attached a simple STVD project which initializes a MicroSD and reads a sector.

    This code is a simplyfied and translated version of the code I really use in my project. I only tested that there are no building errors, so expect bugs!

    Regards

    EtaPhi