What caused the PWM line to ring? - Page 1
Forum section: electronics / projects

author: technix
author_rank: Super Contributor
timestamp: January 09, 2017, 03:16:30 pm
content: 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?

author: bktemp
author_rank: Super Contributor
timestamp: January 09, 2017, 03:21:21 pm
content: It is caused by the parasitic inductance in your scope probe (cable of the ground hook) or on the pcb.

author: technix
author_rank: Super Contributor
timestamp: January 09, 2017, 03:24:27 pm
content: Quote from: bktemp on January 09, 2017, 03:21:21 pmI was holding the probe right on the pin of the chip. Maybe I should try using a shorter ground hook?

author: JPortici
author_rank: Super Contributor
timestamp: January 09, 2017, 03:26:50 pm
content: yes. use the srping thingy for ground connection instead

author: technix
author_rank: Super Contributor
timestamp: January 09, 2017, 03:33:34 pm
content: 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.

author: Fungus
author_rank: Super Contributor
timestamp: January 09, 2017, 04:01:40 pm
content: 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: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.

author: JPortici
author_rank: Super Contributor
timestamp: January 09, 2017, 04:41:29 pm
content: Quote from: technix on January 09, 2017, 03:33:34 pmOf 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)

author: bson
author_rank: Unknown
timestamp: January 11, 2017, 09:48:04 pm
content: It looks to me like the sinc shape created by bandwidth limiting a sharp corner, not really ringing.

author: macboy
author_rank: Super Contributor
timestamp: January 11, 2017, 10:21:20 pm
content: Quote from: bson on January 11, 2017, 09:48:04 pmNo, 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.

author: Benta
author_rank: Super Contributor
timestamp: January 11, 2017, 11:21:23 pm
content: Is the probe calibrated/tuned correctly?

author: T3sl4co1l
author_rank: Super Contributor
timestamp: January 11, 2017, 11:55:04 pm
content: Modern MCUs produce edges of a few nanoseconds. Signal quality is important for wiring lengths of only a few 10s of cm!Tim

author: daqq
author_rank: Super Contributor
timestamp: January 12, 2017, 08:57:29 am
content: 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.

author: timb
author_rank: Super Contributor
timestamp: January 12, 2017, 01:36:27 pm
content: I get so many telemarketing calls on my PWM lines these days, I don't even bother answering them when they ring!

author: David Hess
author_rank: Super Contributor
timestamp: January 14, 2017, 05:58:17 am
content: Quote from: bson on January 11, 2017, 09:48:04 pmThere isno preshootso this is not it; the edge is not quite fast enough for the sample rate.