Shop OBEX P1 Docs P2 Docs Learn Events
Pull-Up Resistors — Parallax Forums

Pull-Up Resistors

Invent-O-DocInvent-O-Doc Posts: 768
edited 2010-08-29 19:00 in Propeller 1
I'm looking at hooking up SD cards to the prop. Although, I know it tends to work without pull-ups, I understand that we are supposed to use them. The schematics in the FSRW object indicate that 10K resistors should be used. I have a bunch of 100K resistor arrays (I know that would reduce the milliamperage). Do you think I would be ok using 100K?

Comments

  • caskazcaskaz Posts: 957
    edited 2010-08-27 04:26
    Hi.
    Pull up resistor is max 100k-ohm.
    Refer to 3.4.3.Bus Signal Line Load.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2010-08-27 04:36
    It wouldn't hurt to put two 100k resistors in parallel to lower their value.

    Somewhere is the distant past, I bought a lot of high value resitors in megaohm and hundred kilo-ohm range. I suspect I was thinking op-amps. Now I generally use nothing over 10K ohms.

    Sure 100k may work as a pullup. But marginal values usually lead to odd problems. It won't hurt anything to try them, but you might find yourself wasting time with instabilities.

    Do yourself a favor and stock pile some 10k ohms.

    For a different reason, I rarely use anything under 220k ohms. Such resistors tend to draw too many milliamps from a micro-controller to be safe. And in other contexts, you may need 1/2watt or 1 watt resistors in that range.

    At some point, usually too late, we all discover that we bought too many resistors and only use a few values. But at least they are very cheap.
  • BigFootBigFoot Posts: 259
    edited 2010-08-27 08:34
    It is a good idea to stick with the 10K resistors. They are the perfect trade off
    between low current and high speed.

    Remember that there is capacitance in both the propeller and sd card I/O pins.
    100K resistors from a time constant ~10x longer than 10K resistors.

    Russ
  • lonesocklonesock Posts: 917
    edited 2010-08-27 08:47
    I definitely recommend a pullup on the /CS line...you don't want the card responding to hash during the bootup sequence. The /CS line does not need fast transitions, so it's fine to use a 100K.

    On the other lines, if you are not sharing the pins then no pullups are required (the prop drives one data line and the clock line, the card drives the other data line). If you really want to use pullups on the non-/CS lines, just be careful of your RC time constant.

    Jonathan
  • Invent-O-DocInvent-O-Doc Posts: 768
    edited 2010-08-27 14:25
    Thanks, your responses were most educational. Instead of using the 100K resistor array, I'll just put a single 10K pull-up on the /CS line. Thanks for the info on the capacitance problem.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2010-08-28 06:58
    Two 100k in parallel work out to 50K ohms. That certainly is helpful if you are far from a parts store.

    Three in parallel work out to 33.3k, four in parallel work out to 12.5k, and five in parallel hit the mark at 10k.
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2010-08-28 08:01
    Actually, 10 100K resistors in parallel = 10K (100/10 = 10.) 5 in parallel get you 20K.
  • Invent-O-DocInvent-O-Doc Posts: 768
    edited 2010-08-29 16:26
    Thanks.. I have a ton of resistors in different values but only had a 100K array if I wanted to pull-up all lines but ground. Sure, I could have gotten 4-6 resistors out, but I'll just pull up the CS and see what happend. I have like 200 10K resistors around.
  • Dr_AculaDr_Acula Posts: 5,484
    edited 2010-08-29 16:36
    I left out one 10k pullup once and it didn't work. I can't recall which one, but I do recall thinking at the time that I needed to save one resistor so I left out the one that I thought was least important. It wasn't. So now I put them all in. I've been buying resistor networks in bulk from Futurlec http://www.futurlec.com/ResNetworks.shtml
  • RavenkallenRavenkallen Posts: 1,057
    edited 2010-08-29 19:00
    i have never used pull ups on uSD cards and they have worked fine for me.
Sign In or Register to comment.