Author Topic: Why are differential signals with opposite polarity?  (Read 6355 times)

0 Members and 1 Guest are viewing this topic.

Offline m4rtinTopic starter

  • Regular Contributor
  • *
  • Posts: 93
Why are differential signals with opposite polarity?
« on: March 26, 2015, 01:58:00 am »
If I read articles regarding differential signaling, then two signals are always with opposite polarity. Why is this needed if difference of two signals is all that matters? I mean for example if both signals are positive and noise causes both signals to increase by 1V, then the difference between two signals would remain the same because noise affected both signals simultaneously.
 

Offline suicidaleggroll

  • Super Contributor
  • ***
  • Posts: 1453
  • Country: us
Re: Why are differential signals with opposite polarity?
« Reply #1 on: March 26, 2015, 02:00:31 am »
You're right, the difference between the two signals is what matters.  If both signals are the same positive version of the same signal, when you difference them you get zero.
 

Online Alex Eisenhut

  • Super Contributor
  • ***
  • Posts: 3338
  • Country: ca
  • Place text here.
Re: Why are differential signals with opposite polarity?
« Reply #2 on: March 26, 2015, 02:18:10 am »
If I read articles regarding differential signaling, then two signals are always with opposite polarity. Why is this needed if difference of two signals is all that matters? I mean for example if both signals are positive and noise causes both signals to increase by 1V, then the difference between two signals would remain the same because noise affected both signals simultaneously.

Well, yes, but that's usually not wanted. That's a common mode voltage, common to both signals, and would cause unwanted current to flow.
Hoarder of 8-bit Commodore relics and 1960s Tektronix 500-series stuff. Unconventional interior decorator.
 

Offline helius

  • Super Contributor
  • ***
  • Posts: 3642
  • Country: us
Re: Why are differential signals with opposite polarity?
« Reply #3 on: March 26, 2015, 02:25:12 am »
not just differential signals, but effectively all signals are defined by a difference (a subtraction). With single-ended signals the quantity that gets subtracted is ground or common. What differential signaling gets you is better CMRR, because you can a) use a dedicated "reference" for every signal, and b) lower EMI because the + and - paths are close together so their flux cancels. At the transmitter you drive the two wires in opposite polarity because that minimizes the impact of (and influence on) other signals.
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8517
  • Country: us
    • SiliconValleyGarage
Re: Why are differential signals with opposite polarity?
« Reply #4 on: March 26, 2015, 03:00:19 am »
If I read articles regarding differential signaling, then two signals are always with opposite polarity. Why is this needed if difference of two signals is all that matters? I mean for example if both signals are positive and noise causes both signals to increase by 1V, then the difference between two signals would remain the same because noise affected both signals simultaneously.
You are reading the wrong articles :)

digital differential signals (lvds or pecl for example) can be going from 1.5 to 1.8 volt. while the opposite node goes from 1.8 to 1.5
In such case the signals are clearly both positive.

Actually, in most systems that use differential signals you will see that both signals are positive. Even systems that use analog circuitry may shift both branches if the diff pair up above the ground level ( called common mode biassing ). It makes the design of the power supply easier. Simply pivot the diff pair around 1/2 vcc or 1/2 vref on an a/d. saves a lot of headache and you get additional benefits : you're not running into the rails , and you stay away from the outer ends of the a/d range where the converters are typically behaving non-linearly.
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline rs20

  • Super Contributor
  • ***
  • Posts: 2318
  • Country: au
Re: Why are differential signals with opposite polarity?
« Reply #5 on: March 26, 2015, 03:49:16 am »
In addition to other valid points made earlier, driving two signals with two opposite polarities also gives you twice the differential amplitude. For example, if you have a single-ended signal coming out of a 5V-powered driver, it can output anything from 0 to 5V (in an ideal world). If you have a differential driver, it can output from {A=0V, B=5V} to {A=5V, B=0V}, which is a differential signal from -5 to 5V, twice the swing. Doubling the signal means double the signal-to-noise ratio, which is an additional benefit over the fact that the receiver is immune to common mode noise.

You are reading the wrong articles :)

digital differential signals (lvds or pecl for example) can be going from 1.5 to 1.8 volt. while the opposite node goes from 1.8 to 1.5
In such case the signals are clearly both positive.

They're also clearly changing in the opposite direction...

Actually, in most systems that use differential signals you will see that both signals are positive. Even systems that use analog circuitry may shift both branches if the diff pair up above the ground level ( called common mode biassing ). It makes the design of the power supply easier. Simply pivot the diff pair around 1/2 vcc or 1/2 vref on an a/d. saves a lot of headache and you get additional benefits : you're not running into the rails , and you stay away from the outer ends of the a/d range where the converters are typically behaving non-linearly.

Yes, so exactly what the OP is describing, plus an uninteresting DC bias. Silly nomenclature quibbles aside...
 

Offline m4rtinTopic starter

  • Regular Contributor
  • *
  • Posts: 93
Re: Why are differential signals with opposite polarity?
« Reply #6 on: March 26, 2015, 09:19:11 pm »
You're right, the difference between the two signals is what matters.  If both signals are the same positive version of the same signal, when you difference them you get zero.

My idea was that both signals are positive, but for example 5V apart from each other. For example if Tx+_1 is +5V, then Tx+_2 is 0V at that time or if Tx+_1 is +10V, then Tx+_2 is 5V at the same time etc.
 

Offline rs20

  • Super Contributor
  • ***
  • Posts: 2318
  • Country: au
Re: Why are differential signals with opposite polarity?
« Reply #7 on: March 26, 2015, 10:37:03 pm »
My idea was that both signals are positive, but for example 5V apart from each other. For example if Tx+_1 is +5V, then Tx+_2 is 0V at that time or if Tx+_1 is +10V, then Tx+_2 is 5V at the same time etc.

And what does the receiver do? Just look at Tx+_2 and ignore Tx+_1 because it's completely redundant information??

Suppose that the transmitter transmits Tx+_1 = +5V, and Tx+_2 = 0V. I suppose this represents the transmitter sending a "0V" signal. Now,

Scenario A: The transmitter decides to send a "5V" signal, so it sends Tx+_1 = +10V, and Tx+_2 = 5V. Fine, the receiver can suppose that a "5V" signal is being sent.
Scenario B: Someone turns on a vacuum cleaner in the vicinity, or something else switches on on the same PCB, inducing a noise current in the two wires carrying Tx+_1 and Tx+_2, causing those wires to briefly increase by 5V. So the receiver sees Tx+_1 = +10V, and Tx+_2 = 5V briefly, which looks exactly like the transmitter is sending a "5V" signal. This is obviously an error. Bad. Etc.

This is the key point: noise induced on twisted pair or side-by-side traces on a PCB is common mode noise, which means that it appears almost equally on both wires. If you're just sending the same signal on both wires, your signal is common mode as well, which means that the receiver cannot tease apart the signal from the noise. Adding a DC offset to one of the signal achieves nothing useful. If you're sending the signal as a differential signal (Tx+ swings up while Tx- swings down, even though the polarity of both might remain positive at all times), then it's trivial to eliminate the noise and recover the signal: subtract Tx- from Tx+, and almost all the noise will cancel out.

And, as already explained, a differential transmitter sends exactly opposite currents through the two wires, which means that the radiated emissions basically cancel out, which is another nice bonus.
« Last Edit: March 26, 2015, 10:40:07 pm by rs20 »
 

Online Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11640
  • Country: my
  • reassessing directives...
Re: Why are differential signals with opposite polarity?
« Reply #8 on: March 27, 2015, 02:12:22 am »
i thought its something with cancelling capacitive coupling hence achiving higher data rate transmission and signal integrity, but i need a backup to say so, this link can be more complete in explanation i think fwiw... http://www.pcbcarolina.com/images/presentation_-_hartley_-_diff_pairs.pdf
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline m4rtinTopic starter

  • Regular Contributor
  • *
  • Posts: 93
Re: Why are differential signals with opposite polarity?
« Reply #9 on: March 28, 2015, 02:45:58 am »
Suppose that the transmitter transmits Tx+_1 = +5V, and Tx+_2 = 0V. I suppose this represents the transmitter sending a "0V" signal. Now,

Scenario A: The transmitter decides to send a "5V" signal, so it sends Tx+_1 = +10V, and Tx+_2 = 5V. Fine, the receiver can suppose that a "5V" signal is being sent.
Scenario B: Someone turns on a vacuum cleaner in the vicinity, or something else switches on on the same PCB, inducing a noise current in the two wires carrying Tx+_1 and Tx+_2, causing those wires to briefly increase by 5V. So the receiver sees Tx+_1 = +10V, and Tx+_2 = 5V briefly, which looks exactly like the transmitter is sending a "5V" signal. This is obviously an error. Bad. Etc.

To be honest, I still don't get it :) Let's say that transmitter decides to send a "5V" signal and sends this signal on Tx+_1 wire at +10V and on Tx+_2 wire at 5V. Now there is a noise somewhere in the middle which will affect both Tx+_1 and Tx+_2 wires in a way that voltage will increase to +15V on Tx+_1 and +10V at Tx+_2. As receiver cares only about difference of signals, then it shouldn't matter if it receives +10V/+5V or +15V/+10V, i.e. receiver will see the signal at +5 volts in both cases.
 

Offline rs20

  • Super Contributor
  • ***
  • Posts: 2318
  • Country: au
Re: Why are differential signals with opposite polarity?
« Reply #10 on: March 28, 2015, 07:06:45 am »
To be honest, I still don't get it :) Let's say that transmitter decides to send a "5V" signal and sends this signal on Tx+_1 wire at +10V and on Tx+_2 wire at 5V. Now there is a noise somewhere in the middle which will affect both Tx+_1 and Tx+_2 wires in a way that voltage will increase to +15V on Tx+_1 and +10V at Tx+_2. As receiver cares only about difference of signals, then it shouldn't matter if it receives +10V/+5V or +15V/+10V, i.e. receiver will see the signal at +5 volts in both cases.

Very simply: in the model that you are proposing, what do you think the transmitter should send in these two cases?:
a) "sending a signal at +5V"
b) "sending a signal at +0V"

And what mathematical operation is the receiver performing to determine what was sent? I'm really unclear as to what you're proposing anymore. I thought in your OP you were proposing to send the same (polarity?) signal on both wires, but now you're talking about subtracting the two signals at the other end to recover the signal, which clearly isn't compatible with that.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19523
  • Country: gb
  • 0999
Re: Why are differential signals with opposite polarity?
« Reply #11 on: March 28, 2015, 02:39:45 pm »
What sort of signal are you talking about?

If it's digital, you can use a transceiver IC such as the SN7516.
http://www.ti.com/lit/ds/symlink/sn75176a.pdf
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf