Do all Propeller outputs ring?
Carl Hayes
Posts: 841
Hello --
I've been experimenting with a Propeller on a Propeller PDB (Professional Development Board).· I sought initially· to toggle all the outputs (all 32 of them) and observe the output on an oscilloscope (Tektronix 475A, 350 MHz).· To my surprise, all the outputs ring!· Here's the program I used (my first).
CON
·_clkmode = xtal1 + pll16x
·_xinfreq = 5_000_000
PUB Main
·cognew (@Degree,0)
DAT
··············· ORG·········· 0
Degree
··············· OR··········· DirA,:Allones
:Start
··············· NOP
··············· XOR·········· OutA,:Allones
··············· JMP·········· :Start
:Allones······· LONG········· $FFFFFFFF·····
There is nothing at all on the PDB except the Propeller, and what comes on the PDB from the factory (crystal, memory, etc.).· No wires, no nuthin, as we say in the South.
I've attached a photo of the output waveform which is essentially identical for all 32 outputs.· It's the same whether I toggle all 32 outputs at once, or only a few, or only one.
Query:· do all Prop outputs ring like that, or is it perhaps an artifact produced by the PDB?· When I put a counter on the outputs, the ringing drove it nuts.
Additional note:· the probe is properly neutralized, and its ground is connected to the GND terminal to the left of the Prop outputs on the PDB.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
Post Edited (Carl Hayes) : 1/7/2009 7:55:13 PM GMT
I've been experimenting with a Propeller on a Propeller PDB (Professional Development Board).· I sought initially· to toggle all the outputs (all 32 of them) and observe the output on an oscilloscope (Tektronix 475A, 350 MHz).· To my surprise, all the outputs ring!· Here's the program I used (my first).
CON
·_clkmode = xtal1 + pll16x
·_xinfreq = 5_000_000
PUB Main
·cognew (@Degree,0)
DAT
··············· ORG·········· 0
Degree
··············· OR··········· DirA,:Allones
:Start
··············· NOP
··············· XOR·········· OutA,:Allones
··············· JMP·········· :Start
:Allones······· LONG········· $FFFFFFFF·····
There is nothing at all on the PDB except the Propeller, and what comes on the PDB from the factory (crystal, memory, etc.).· No wires, no nuthin, as we say in the South.
I've attached a photo of the output waveform which is essentially identical for all 32 outputs.· It's the same whether I toggle all 32 outputs at once, or only a few, or only one.
Query:· do all Prop outputs ring like that, or is it perhaps an artifact produced by the PDB?· When I put a counter on the outputs, the ringing drove it nuts.
Additional note:· the probe is properly neutralized, and its ground is connected to the GND terminal to the left of the Prop outputs on the PDB.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
Post Edited (Carl Hayes) : 1/7/2009 7:55:13 PM GMT
Comments
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Post Edited (Leon) : 1/7/2009 8:03:39 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
Post Edited (Carl Hayes) : 1/7/2009 8:06:42 PM GMT
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
Under more casual probing circumstances, if the apparent ringing annoys you, you can limit your scope's frequency response, if there's a setting for that, and the ringing will disappear from view.
-Phil
Post Edited (Phil Pilgrim (PhiPi)) : 1/7/2009 8:40:35 PM GMT
Incidentally, I also tried three other Tek probes, of two different models, with identical results.· Then I put an SN5473 dual J-K on the PDB and let the Prop's output clock it, and looked at its outputs.· Still a little ringing, though only on the downgoing transition, but much less.· Much less, about what one would expect.· With a fast scope you'll always be able to see a little bit.
I agree that the Prop's outputs almost certainly don't ring inherently; I guess the PDB is doing the ringing.· That, actually, makes it OK, because (1) the PDB won't be in the final design; (2) I can filter, if necessary, in any test setups I build on the PDB; and (3) it seems to toggle the J-K perfectly well anyway, indicating that it can feed TTL inputs generally.· I was mostly wondering whether others had observed the same thing and tracked it down so I wouldn't have to do all the work I just did.
The ringing frequency, incidentally, appears to be about 50 MHz -- I guess I could find it with one of my VHF receivers --·and the risetime at the Prop output is about 5 nS.
Cheers!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
and has no traces (to speak of) from the pins.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
By and large these issues are unimportant in a design because digital circuits transition between the two supplys and could care less about transient overshooting at either end. But there are a few select cases where such considerations are important.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Post Edited (Paul Baker) : 1/7/2009 11:38:57 PM GMT
Would it be too off topic to ask for a bit of greater understanding about the real plane -vs- the imaginary one? That's the first time I've heard it expressed that way. I usually can differentiate when to use a resistor -vs- a cap, but not always! Have a link or reference to share?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness!
Chat in real time with other Propellerheads on IRC #propeller @ freenode.net
Safety Tip: Life is as good as YOU think it is!
How short is the ground lead? It should only be a couple of cm at most. A useful trick is to wind a piece of wire round the end of the probe and make the ground connection with that.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
*Peter*
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
The resistance and reactance when·viewed in combination is called·impedance and can be illustrated by a point on a 2D plot, the resistance occupying the x axis and the reactance occupying the y axis. Positive values of x are the resitances we all know and love,·negative resistances do exist but it's a complex topic I'm not going to get into.·Positive values of y are inductive and negative values of·y are capacitive, these are derived by the mathmatical equations underlying circuit analysis. Without going into the particulars of how they are derived, I'll simply list them here.
Capacitance:
Inductance:
Notice the signs, one is negative, the other is positive. While there can be some complex things that go on when you have capacitance and inductance in the load (like potential for oscillation), when looking at the load from the outermost "black box" view, these two end up counteracting each other.
So when you find your load sits in quadrant one of the 2D graph (positive resistance, positive reactance), adding capacitance will rotate the point along the circle towards the x axis. Likewise when the load sits in quadrant four of the 2D graph (positive resistance, negative reactance), adding inductance will rotate the point along the circle towards the x axis. When you have rotated the point all the way to the x axis where reactance is 0, the load is said to be compensated or matched.
This is done when adding large motors to the power grid, since they are largely inductive, a capacitor is added to the load so that the power grid sees it as a simple resistive load, this reduces the peak power necesesary to be supplied by the power plant and improves the efficiency in power transfer.
I hope this helps your understading potatohead.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Post Edited (Paul Baker) : 1/8/2009 6:07:03 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Post Edited (Paul Baker) : 1/8/2009 2:27:02 AM GMT
"Matched" has particular meaning for me now. Thank you Paul.
Edit: Then the only thing fundamentally missing from the quick "lay of the land" you posted is essentially a battery, right? An inductor or capacitor can act in this way, depending...
Back to the thread at hand.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness!
Chat in real time with other Propellerheads on IRC #propeller @ freenode.net
Safety Tip: Life is as good as YOU think it is!
Post Edited (potatohead) : 1/8/2009 3:11:43 AM GMT
The real reason the ringing is seen on the above traces is that there is actually capacitance and inductance, these two components are in a tug of war with each other which is what's causing the oscillation, but theres also resistance in there which is taking some of the energy out of the system on each swing. When this excess energy is bled off, the system reaches steady state again and the·capacitance and inductance are happy with the peace, but once the voltage transitions again it's another tug of war. The reason there's a tug of war is that each element has a different criteria for what peace is, a capacitor defines peace to·be when the voltage across it's terminals doesn't change, whereas an inductor defines peace to be when the current flowing through it doesn't change, and sometimes these criteria are in opposition to each other. By adding capacitance you're pulling on one side of the rope so the dispute is settled more quickly. Adding resistance will help but its more like clamping your hand on the rope, each side will pull to shorter extremes on each tug, but you're not stopping the back and forth itself.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Post Edited (Paul Baker) : 1/8/2009 8:40:42 PM GMT
Paul Baker,
I absolutely LOVE your description of this - and I say that without sarcasm.
Now, if we can get all the world leaders to learn some electronics, do you suppose they would allow us to bypass them somehow???
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness!
Chat in real time with other Propellerheads on IRC #propeller @ freenode.net
Safety Tip: Life is as good as YOU think it is!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker