EEVblog Electronics Community Forum
Electronics => Projects, Designs, and Technical Stuff => Topic started by: technix on January 09, 2017, 03:16:30 pm
-
I tapped this signal directly off the pin of a STM32F103 driving a PWM line to nowhere on an Arduino-compatible board. What caused the ringing I am seeing here?
-
It is caused by the parasitic inductance in your scope probe (cable of the ground hook) or on the pcb.
-
It is caused by the parasitic inductance in your scope probe (cable of the ground hook) or on the pcb.
I was holding the probe right on the pin of the chip. Maybe I should try using a shorter ground hook?
-
yes. use the srping thingy for ground connection instead
-
With the ground hook at the negative terminal of a nearby decoupling cap, I got this waveform. It seem to me that with this 100MHz oscilloscope I am diving into some unchartered waters my old 20MHz CRO won't show me.
-
It's caused by the probe.
You should have a little spring thing in the probe bag.
If you pull the hook and ground clip wire off a probe (they both detach) you can put the spring on the end of the probe, like this:
(https://www.eevblog.com/forum/projects/what-caused-the-pwm-line-to-ring/?action=dlattach;attach=284142;image)
If you have a ground point close enough to touch with the spring it will really reduce the ringing.
nb. To get the spring off (and on) twist it in the direction that opens up the spring. It will come off easily.
-
With the ground hook at the negative terminal of a nearby decoupling cap, I got this waveform. It seem to me that with this 100MHz oscilloscope I am diving into some unchartered waters my old 20MHz CRO won't show me.
Of course, A square wave of 1 KHz frequency will have much higher frequency content as its edges should not depend on the wave frequency (the keyword here is rise time)
-
It looks to me like the sinc shape created by bandwidth limiting a sharp corner, not really ringing.
-
It looks to me like the sinc shape created by bandwidth limiting a sharp corner, not really ringing.
No, it is ringing. technix's second post with better grounding shows improvement. The ringing is caused by the sharp edge exciting the resonant circuit formed between the probe tip capacitance and the ground inductance. Ground inductance is usually mostly from the long ground lead, but includes also any inductance on the PCB before the chosen ground closes the current loop back to the chip driving the wave. This is why grounding at the nearby decoupling cap is so much better.
-
Is the probe calibrated/tuned correctly?
-
Modern MCUs produce edges of a few nanoseconds. Signal quality is important for wiring lengths of only a few 10s of cm!
Tim
-
It was probably the probe, however it could also be the board design. ICs these days allow very fast rise times. This can induce ringing in transmission lines - which PCB traces and ground clips most definitely are.
-
I get so many telemarketing calls on my PWM lines these days, I don't even bother answering them when they ring!
-
It looks to me like the sinc shape created by bandwidth limiting a sharp corner, not really ringing.
There is no preshoot (https://en.wikipedia.org/wiki/Gibbs_phenomenon) so this is not it; the edge is not quite fast enough for the sample rate.