Dual SPI SD Cards on SC126 using micro SD card adapter

117 views
Skip to first unread message

Mark Pruden

unread,
Sep 15, 2024, 4:22:46 AM9/15/24
to RC2014-Z80

I have a Small computer Central SC126, and wanted to use 2 SD cards. 

However a well known issue is that the standard micro SD card adapters don't work on a shared SPI bus. The issue is that the MISO signal is always driven out of the level shifter chip (on the adapter) regardless of CS. Thus the two cards thus compete for MOSI output. See this post:


I came up with a simpler fix than recommended on the forums, by simpler it means less soldering of very small pitch pins on the level shifter IC.

As per the picture below, there are 2 changes
  • Cut one of the MOSI pins off, on the main pin header, this isolates the driver output, so only one board is driving the MOSI output
  • Connect the Serial output from the micro SD card socket(s) together. This means the output from both the SD cards can be presented back to the micro. The sd cards themselves play nice since they respect the CS signal.  

4A51EBC2-7994-4012-B068-951C94CF1D13_1_105_c.jpeg

Its not entirely perfect, since these 2 cards are now joined. But I have glued some perf board to the back of them, so they are physically joined as one adapter, and no chance of the litter wire breaking off. 

Hope this helps.

Alan Cox

unread,
Sep 15, 2024, 10:23:58 AM9/15/24
to rc201...@googlegroups.com
The SC126 at power up or if you get a software error will select both cards at once sometimes. If that happens you will sometimes blow one or both up.

I ended up doing something a bit more complex as a result which also gives you more devices so you can get 2 SD adapters and ethernet on it.



--
You received this message because you are subscribed to the Google Groups "RC2014-Z80" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rc2014-z80+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rc2014-z80/a51b7088-efc3-40c2-b472-2973348c0856n%40googlegroups.com.

Greg Holdren

unread,
Sep 15, 2024, 2:43:27 PM9/15/24
to RC2014-Z80
Check out my post on retro-comp:

It describes how to modify the SD card to tri-state the MISO line. It is similar to the method described in the Arduino but is really addressing the issue and makes each card independent and not tied together. A little more involved but cleaner.

Greg

Mark Pruden

unread,
Sep 15, 2024, 10:35:14 PM9/15/24
to RC2014-Z80
Thanks for feedback.

Greg - Yes I was aware this was the best solution, however lifting that pin and soldering it didn't look achievable with the tools I had
Alan - Tat looks like a great solution. I would love to see a photo of what it turned out like.

Mark

Reply all
Reply to author
Forward
0 new messages