Pros/Cons of In-Line Protection (Not Pull-Up) Resistors for SD Card Lines
JRetSapDoog
Posts: 954
in Propeller 1
Hi, all, As the title indicates, I'm wondering if it's advisable to put in-line series resistors (such a few hundred ohms) in the signal lines for an SD card (between the Prop pins and SD card socket pins). I'm not talking about pull-up resistors (there are plenty of threads--an opinions--on that) but rather just in-line resistors to offer protection from shorts. I haven't used them before and haven't had any shorts (even from probing pins or whatever), but perhaps I've just been lucky. Would, say, resistors on the order of 200 ohms significantly compromise signal integrity at normal SPI signaling speeds (I'm using Kye's driver, if that's germane)? What do you folks normally do/recommend? If I had to decide right now, I'd leave them out only because I've done that in the past and things worked, but maybe they would be a good idea to protect the Prop pins. Thought? --Jim
Comments
@Peter J. goes a step more and uses one of the pins without pull up to test if a card is inserted. If I remember correct CS (or D0?) is internally pulled up by the sd-card and pulling low then test for high shows if a sd-card is present or not (and the pin is floating).
@Peter mentioned that trick a couple of times, but I can't find a link right now, sorry.
Enjoy!
Mike
Protect the pins from what, you ask? Metallic cockroaches, of course! No, I was just worried that some metallic object might get inside the housing and touch the exposed pins on the back of the socket where it's soldered to the PCB. I like your idea about inserting a dime in the socket itself, though. Is that with or without peanut butter? Anyway, currently, I have the Prop socketed, so if something did happen to it, it wouldn't be the end of the world (just a bad hour).
Mike
Contrary to belief, pullups are not required on any other SD pins.
I have had no problems and my tiny boards (P8XBlade2 & RamBlade) come with microSD as standard.
I usually tie DAT1 and DAT2 together and pull them both high with one single resistor, those do nothing in SPI mode. About the capacitor, SD cards themselves have an internal capacitor, 100s of microfarads, so the external capacitor may be superfluous. There is quite a large surge of current when power is applied to an SD card.
The SD Consortium document suggests that it is possible to turn off the internal pull-up resistor on the CS line
ACMD42: Connect[1]/Disconnect[0] the 50 KOhm pull-up resistor on CS (pin 1) of the card. The pull-up may be used for card detection.
I've never seen a card without that pull-up enabled.
That's what I did on my last couple boards, too (no doubt got that from someone). But I didn't want to mention it above for fear of causing a debate. As for the pull-ups, from reading about them on the forum here, I suspect you are right. But it doesn't seem to hurt things too much. Hopefully, they're superfluous at worst (despite a little extra current draw, capacitance and BOM costs).
GREAT memory, Mike! My kids jammed a coin in the USB slot on my desktop and burned a trace on the PCB. Nothing that couldn't be solved by soldering on a piece of bypass wire.
However in saying all this as I've been pushing the clock speed and looking at using smart pins and I'm thinking of adding series resistors to help with line termination, but these would be less than 100R though. No pullup on the cs though, that signal is defined as cs/cd where cd is card detect, so 4 i/o is all you need.
Full size sd cards have a different pinout. (that cost me some time, lol)
I can verify no resistors are needed with the p1 also.
Yes, im working on the sound for this---> https://forums.parallax.com/discussion/172107/model-railroad-engine-controller-activityboardwx-dualmc33926-sound-smoke-axlesensor-14vdcc-supercap/p1
Hooking up 5 different (regular) sd cards to a prop now.