Author Topic: What caused the PWM line to ring?  (Read 3049 times)

0 Members and 1 Guest are viewing this topic.

Offline technixTopic starter

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
What caused the PWM line to ring?
« 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?
 

Offline bktemp

  • Super Contributor
  • ***
  • Posts: 1616
  • Country: de
Re: What caused the PWM line to ring?
« Reply #1 on: January 09, 2017, 03:21:21 pm »
It is caused by the parasitic inductance in your scope probe (cable of the ground hook) or on the pcb.
 

Offline technixTopic starter

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: What caused the PWM line to ring?
« Reply #2 on: January 09, 2017, 03:24:27 pm »
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?
 

Offline JPortici

  • Super Contributor
  • ***
  • Posts: 3461
  • Country: it
Re: What caused the PWM line to ring?
« Reply #3 on: January 09, 2017, 03:26:50 pm »
yes. use the srping thingy for ground connection instead
 

Offline technixTopic starter

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: What caused the PWM line to ring?
« Reply #4 on: January 09, 2017, 03:33:34 pm »
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.
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 16647
  • Country: 00
Re: What caused the PWM line to ring?
« Reply #5 on: January 09, 2017, 04:01:40 pm »
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.


« Last Edit: January 09, 2017, 04:03:39 pm by Fungus »
 

Offline JPortici

  • Super Contributor
  • ***
  • Posts: 3461
  • Country: it
Re: What caused the PWM line to ring?
« Reply #6 on: January 09, 2017, 04:41:29 pm »
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)
 

Offline bson

  • Supporter
  • ****
  • Posts: 2269
  • Country: us
Re: What caused the PWM line to ring?
« Reply #7 on: January 11, 2017, 09:48:04 pm »
It looks to me like the sinc shape created by bandwidth limiting a sharp corner, not really ringing.
 

Offline macboy

  • Super Contributor
  • ***
  • Posts: 2254
  • Country: ca
Re: What caused the PWM line to ring?
« Reply #8 on: January 11, 2017, 10:21:20 pm »
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.
« Last Edit: January 12, 2017, 02:47:19 pm by macboy »
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 5870
  • Country: de
Re: What caused the PWM line to ring?
« Reply #9 on: January 11, 2017, 11:21:23 pm »
Is the probe calibrated/tuned correctly?

 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21674
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: What caused the PWM line to ring?
« Reply #10 on: January 11, 2017, 11:55:04 pm »
Modern MCUs produce edges of a few nanoseconds.  Signal quality is important for wiring lengths of only a few 10s of cm!

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline daqq

  • Super Contributor
  • ***
  • Posts: 2302
  • Country: sk
    • My site
Re: What caused the PWM line to ring?
« Reply #11 on: January 12, 2017, 08:57:29 am »
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.
Believe it or not, pointy haired people do exist!
+++Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
 

Offline timb

  • Super Contributor
  • ***
  • Posts: 2536
  • Country: us
  • Pretentiously Posting Polysyllabic Prose
    • timb.us
What caused the PWM line to ring?
« Reply #12 on: January 12, 2017, 01:36:27 pm »
I get so many telemarketing calls on my PWM lines these days, I don't even bother answering them when they ring!
« Last Edit: January 14, 2017, 09:25:04 pm by timb »
Any sufficiently advanced technology is indistinguishable from magic; e.g., Cheez Whiz, Hot Dogs and RF.
 
The following users thanked this post: sahko123

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16612
  • Country: us
  • DavidH
Re: What caused the PWM line to ring?
« Reply #13 on: January 14, 2017, 05:58:17 am »
It looks to me like the sinc shape created by bandwidth limiting a sharp corner, not really ringing.

There is no preshoot so this is not it; the edge is not quite fast enough for the sample rate.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf