Author Topic: Help umderstanding this rising/falling edge  (Read 1927 times)

0 Members and 1 Guest are viewing this topic.

Offline AlfBazTopic starter

  • Super Contributor
  • ***
  • Posts: 2184
  • Country: au
Help umderstanding this rising/falling edge
« on: June 27, 2013, 01:22:12 pm »
Messing around with the PWM module on a PIC18F4550, I decided to up the frequency to just under 50kHz and all of a sudden I noticed the pulses aren't looking very square anymore.

Looking a little closer I realised the lower frequency waves looked squarer because the scopes time base was increased to fit a couple of cycles. Expanding the edge at these frequencies yielded the same edge.

Thinking it may be the PWM module I simply toggled an output... same thing

The 18f4550 supply is rated from 4.2 to 5.5V, yet it seems the output drives to 3.3V then just "coasts" to VDD

The images bellow are of the edge at 50us and 1us time base
In the 1us image the sharp rise has 2 slopes if you expand even more. The first slope takes 6ns to get to about 2.16V the second is an additional 20ns to reach 3.3V. The total time for the initial edge is 26ns to 3.3V shown in the image. Its then another 7.8us to reach VDD

Is this normal?
 

Offline AlfBazTopic starter

  • Super Contributor
  • ***
  • Posts: 2184
  • Country: au
Re: Help umderstanding this rising/falling edge
« Reply #1 on: June 27, 2013, 01:25:11 pm »
Oh I forgot to mention, the outputs look similar regardless of wether they are loaded or open cct
 

Offline MikeK

  • Super Contributor
  • ***
  • Posts: 1314
  • Country: us
Re: Help umderstanding this rising/falling edge
« Reply #2 on: June 27, 2013, 02:07:19 pm »
Have you adjusted probe compensation?
 

Offline AlfBazTopic starter

  • Super Contributor
  • ***
  • Posts: 2184
  • Country: au
Re: Help umderstanding this rising/falling edge
« Reply #3 on: June 27, 2013, 02:10:08 pm »
Have you adjusted probe compensation?
Yes
 

Offline AlfBazTopic starter

  • Super Contributor
  • ***
  • Posts: 2184
  • Country: au
Re: Help umderstanding this rising/falling edge
« Reply #4 on: June 27, 2013, 02:36:41 pm »
Hey Mike just tried another probe, problem solved... Thank you very much  :)
 

Offline marshallh

  • Supporter
  • ****
  • Posts: 1462
  • Country: us
    • retroactive
Re: Help umderstanding this rising/falling edge
« Reply #5 on: June 27, 2013, 06:49:52 pm »
Watch w2aew's video about ground leads.
Also, the rounded leading edge like that smacks of capacitive loading. I had a similar phenomenon with a pcb failure causing that kind of issue.
You can also see these kinds of waveforms on weak outputs driving long cables (also capacitive loads)
Verilog tips
BGA soldering intro

11:37 <@ktemkin> c4757p: marshall has transcended communications media
11:37 <@ktemkin> He speaks protocols directly.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf