1
\$\begingroup\$

So while trying to interface a 5 V SPI to a 3.3 V SPI device, using the inline resistor method outlined here, I discovered that at high clock speeds (above 200 kHz), my clock signal was being corrupted by the inductance in the resistor (with an oscilloscope, the clock looks signal looks triangular shaped). I am using carbon film (through hole) resistors for prototyping, and I heard that these can have high parasitic inductance and are not suitable for high frequency use. Is this information correct?

What types of resistor instead should I be getting (digikey link would be appreciated)? Right now, I'm just working on a protoboard but eventually I would like to manufacture this prototype on a PCB using surface mount components. It seems like from what I read about surface mount resistors, the inductance is not typically a problem for applications under 20 MHz.

\$\endgroup\$
4
  • 7
    \$\begingroup\$ 1. It's not the inductance in the resistor that is the problem. 2. Even if it were, that wouldn't be at 200 kHz, more like 200 MHz. \$\endgroup\$ Commented Mar 18, 2011 at 18:41
  • \$\begingroup\$ I remove the resistor and the signal looks much better. When I look at the oscilloscope, the clock signal is rectangular shaped. With the resistor, at high frequencies the clock signal looks triangular shaped. Thus I concluded that it was the inductance in the resistor filtering out the high frequency components. \$\endgroup\$
    – umps
    Commented Mar 18, 2011 at 19:34
  • \$\begingroup\$ No, it's the capacitance in your scope probe. See MikeJ's answer. \$\endgroup\$ Commented Mar 18, 2011 at 22:30
  • \$\begingroup\$ I guess the scope probe can make it worse. Still the circuit does not work at high frequencies even without the probe so I will try replacing the resistor with a higher quality one (I have been using radio shack components of unknown origin so this may also be the problem). \$\endgroup\$
    – umps
    Commented Mar 19, 2011 at 3:17

3 Answers 3

8
\$\begingroup\$

In order to observe a clean square wave at 200 kHz, the rise-time needs to be around 250 ns (about 10% of the pulse width). The sparkfun tutorial shows the clock coupled through a 10k resistor. Now, to get 250 ns risetime, you need an RC time constant of 114 ns giving a capacitance of about 11 pF. So the sum total of the circuit input capacitance, the stray capacitance and, critically, your 'scope probe capacitance must be less than 11 pF. I reckon this is your problem.

If the waveform looks OK at the driven end of the resistor and the input capacitance of the driven device is low, you might be OK, but you won't be able to prove it without a very low capacitance 'scope probe.

\$\endgroup\$
3
\$\begingroup\$

When looking at fast signals it is usually beneficial to use the 10x setting on the probe, for the reasons discussed in the other posts.

\$\endgroup\$
3
\$\begingroup\$

I'm taking you at your word that inductance is the problem, though I find it dubious at a mere 200 kHz.

Some axial thru-hole resistors are often created and trimmed by spirally cutting the element over a form which can give it some inductance. This is usually seen in film resistors, though possibly in some other film-type resistors as well. Here are some cutaways of spiral-cut axial "film" resistors:

Axial resistor cutaway showing spirals

Sparkfun - Resistors - Types of Resistors

An older, now more niche due to increased manufacturing cost(ref), technology is "carbon composition". It's is a fairly homogenous block of material.

Perhaps more fool-proof, some parts suppliers (Digi-Key does at least) have filters so you could just select "Non-inductive" and be done with it.

You are quite correct that SMT resistors have very low inductances. I'm not sure of the trimming patterns, but whatever it is, it's done in a plane, so at most you'll have a turn with an extremely small area. How they're cut can vary, but might be something like:

laser trim patterns of SMT resistors

Laser Resistor Trimming Services

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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