1
\$\begingroup\$

Having a lot of difficulties sharing a uSD card between two devices (Atmel micro which uses the SPI, and the camera). We used to do this using relays and all worked fine but cards got faster and faster until now where we get a lot of failures. We have therefore been evaluating using digital multiplexers. We initially tried the FSSD07 fairchild mux but had problems when the uSD was being switched down from 3.3v to 1.8v operation as the data and clock lines change voltage but not the supply rail. This messed up the high and low level thresholds. Then we made up a pcb to try using the TI TS3A27518E mux. Things were definitely better but we are still having problems with bus speeds over 50MHz. All of the SD lines apart from VDD and VSS pass through this one Mux (6 channel). VDD is switched separately. Looking at the signals on the oscilloscope, the clock sometimes begins to look nasty at the higher speeds. Looks like I may be having two issues:

There could be some stray capacitance causing rolling of the clock signal edges which at the higher speed is delaying the rise and fall times enough that the clock is changing state before reaching the correct logic levels (this presents itself on the oscilloscope as a smaller amplitude clock with a DC offset). The PCB is about 80mm x 24mm, 4 layer (top, gnd, pwr, bottom) and tracks are 0.5mm where possible, else 0.3mm thick. PCB track resistances are less than 80 milli-ohm so that shouldn't be a problem.The mux resistance is 300 milli-ohm and given that I at times see a time constant of 10nS, that would equate to about 5nF stray capacitance. Capacitance of the switch is supposed to be about 21pF. I would have thought 5nF is way too big for stray capacitance.

Secondly, sometimes the clock looks like it is getting some reflection interference (admittedly I didn't specifically impedance match my PCB tracks).

Not really too sure if I am approaching this all the right way as I don't know a lot about the SD requirements. At first I thought the DC offset on the CLK was causing all the issues but then there are times where I see a DC offset and yet the camera writes to the card without any issues. We would like this to work with a variety of cameras that can handle the higher speeds. We find that Nikon cameras have the most errors while Canon and Fuji cameras seem to be a lot better. We really need to be confident that we will have zero interface errors. Any thoughts on what I can try to get the SD working at 100MHz CLK speeds?

Limited to how many pics I can insert so here is a screenshot showing the PCB layers and the important half of the schematic. enter image description here

This second pic shows in the top LHS the point where SD comms fails (when it switches to the higher speed). Below that are pics of the PCB where I bypassed the switch with 10 ohm resistors and then also with wire links. On the RHS is the CLK signal (Ch 3) when connected to the Nikon D5300 (comms failed). Ch 1 is the same CLK at the input (connected to J5). From that it makes me think that the camera is sinking the clock signal at the uSD CLK voltage is bigger in magnitude than the J5 side. enter image description here

The problem is exacerbated when we use a SD card extender between the camera and my PCB. We could work around this by having the board in the camera and then running a cable between out micro and this board but that makes things a bit messier.

If I can't sort out a hardware solution, is it possible to write from the micro to the SD cards to force them to operate at a slower speed when the uSD connects to the camera??

Looking forward to seeing what wealth of info I might get back:)

Many thanks!

Paul

\$\endgroup\$
0
\$\begingroup\$

I'm using the TS3A27518E for switching between two SD cards and I had similar problems with the CLK signal. Solution which worked for me was to simply NOT multiplex the CLK signal since I only have one CLK source. In your case it's a bit different since you have two CLK sources. I would try to use two AND or NAND logic gates for gating the clock source. Just use gates which can operate at high speeds.

\$\endgroup\$
  • \$\begingroup\$ Thanks Hansi. In the end I made up a new board taking care to keep the tracks short and the same length as well as 50 ohm impedance. Got the board in a couple of weeks ago and that part of the circuit is working fine now using the TS3A27518E. \$\endgroup\$ – FeelingPuzzled Feb 18 '18 at 21:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.