Shop OBEX P1 Docs P2 Docs Learn Events
SD card advice. — Parallax Forums

SD card advice.

base2designbase2design Posts: 78
edited 2012-07-20 20:14 in Propeller 1
Good morning!

I've been messing with SD cards on my prop boards and I've seen examples with and without pull-up resistors.

I'm using it w/o the resistors (one board is a sparkfun break-out board, the other is an old floppy cable with a SD card crammed into it) and I'm having intermittent reliability issues (roughly one in 100 times when I power up I can't mount the SD card)... before I dig into my rat nest board, could the lack of pull-ups be the cause of this?

Thanks for any help y'all can give. Also, what's the recommend value for the pull-ups and how is that value determined (it's all magic to me).

-b2d

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2012-07-20 07:50
    You are supposed to have pullups. The fact that many people may be able to 'make do' without them doesn't change that. If you're having problems, you may need them
  • base2designbase2design Posts: 78
    edited 2012-07-20 08:46
    Thanks Mike, I'll add them. The "FAT16..." doc from Parallax shows 10K pull-ups... can I ask a really dumb question on how the value of 10K was determined?
  • Dave HeinDave Hein Posts: 6,347
    edited 2012-07-20 08:58
    I had a similar powerup problem, which I resolved by adding a bypass cap near the power pins of the SD card socket. I don't use pullup resistors. My understanding is that almost all SD cards made within the past few years contain internal pullups. However, it doesn't hurt to wear a belt and suspenders. :)
  • Tracy AllenTracy Allen Posts: 6,667
    edited 2012-07-20 16:05
    The pullups are there mainly for the benefit of the µP, so that if an SD card is not present, those pins will be pulled up to a definite level and thus limit the problems that come from floating inputs. My understanding is that the presence or absence of those pullups won't affect the operation of the card.

    I agree that a bypass capacitor needs to be placed across SD socket power pins. The signals on clock and data lines are quite fast, so the connecting wires cannot be too long or have characteristics that slow down the signals. I'm raising a flag next to the "old floppy cable with a SD card crammed into it".

    The card itself will almost always have an internal pullup present on its chip select line. Thus, your program can test that line to see if a card is present. But the SD card will hardly ever have internal pullups on the other signal lines.
  • KyeKye Posts: 2,200
    edited 2012-07-20 20:14
    The pull up resistors ensure that the idle voltage on the lines is 3.3V. This makes sure that no pins are ever in an unknown state. Additionally, pull up resistors prevent CMOS inputs on the card and the propeller chip from oscillating wildly which produces extra current draw. So, pull up resistors lower the power consumption.

    The value of the pull up resistor is really not important. A higher value for it reduces power consumption, while a lower value for it makes the line switch faster. 10K seems to be a good place.

    Since the FATEngine does not open drain the CLK or DI lines the pull up resistor value is even less important as the prop chip will actively drive these I/O lines.

    Thanks,
Sign In or Register to comment.