nutshell/book/01_tx_lines.md
2023-04-09 00:04:20 -06:00

183 lines
7.5 KiB
Markdown

# Transmission Lines
![](../assets/tx_lines/tx_line.gif)
## Superposition
All solutions to this differential equation have the form
$$
\begin{align}
V(t, z) = e^{j (\omega t - vz)} + e^{j (\omega t + vz)}
\end{align}
$$
Therefore we can look at a transmission line as having the superposition of two independent waves propagating forward (toward $+z$) and in reverse (toward $-z$).
$$
\begin{align}
V_f(t, z) &= e^{j (\omega t - vz)} \\
V_r(t, z) &= e^{j (\omega t + vz)}
\end{align}
$$
![Superpositition of Vf, Vr](../assets/tx_lines/superposition.gif)
## Reflections
At the end of a transmission line, voltage and current are related by the impedance of the load.
Assuming the load is situated at $z=0$ the following boundary conditions are imposed:
$$
\begin{align}
\hat{I}(z=0) &= \hat{I}_f(z=0) - \hat{I}_r(z=0) \\
\hat{V}(z=0) &= \hat{V}_f(z=0) + \hat{V}_r(z=0) \\
\hat{V}(z=0) &= Z_L\hat{I}(z=0)
\end{align}
$$
We can already relate voltage and current for both forward and reverse propagating waves on the transmission line.
$$
\begin{align}
\hat{V}_f(z) &= Z_0\hat{I}_f(z) \\
\hat{V}_r(z) &= Z_0\hat{I}_r(z)
\end{align}
$$
By combining these constraints we can relate the reverse wave to the forward wave due to the load:
$$
\begin{align}
Z_0\hat{I}_f(z=0) + Z_0\hat{I}_r(z=0) &= Z_L\big(\hat{I}_f(z=0) - \hat{I}_r(z=0)\big) \\
\hat{I}_r(z=0) &= \frac{Z_L - Z_0}{Z_L + Z_0} \hat{I}_f(z=0) \\
\hat{V}_r(z=0) &= \frac{Z_L - Z_0}{Z_L + Z_0} \hat{V}_f(z=0)
\end{align}
$$
We define the reflection coefficient as this ratio:
$$
\begin{align}
\Gamma &= \frac{\hat{V}_r(z=0)}{\hat{V}_f(z=0)} \\
&= \frac{Z_L - Z_0}{Z_L + Z_0}
\end{align}
$$
Note that if $Z_L = Z_0$ then $\Gamma = 0$ and there is no reflection. This is generally desired since no power is lost to a reflection and resonances need not be considered (we will look at this in a moment).
| Condition | $\Gamma$
|---|---|
| Matched | 0
| Open | 1
| Short | -1
Also note that this is only valid at $z=0$ since the phase of $\hat{V}_f$ and $\hat{V}_r$ vary with opposite signs as we move along the transmission line so their relationship changes with position.
A perfectly matched load results in no reflected wave.
![Reflection with Z_L = Z0](../assets/tx_lines/reflection_matched.gif)
Open and short circuits both have locations where no voltage is seen. Note that both of these cases have an equal amplitude reflected wave, they just have different phase. This is actually true of all lossless loads (ideal capacitor and inductor as well).
![Reflection with Z_L = inf](../assets/tx_lines/reflection_open.gif)
![Reflection with Z_L = 0](../assets/tx_lines/reflection_short.gif)
It is also worth noting that the peak voltage on the line is $2V$ when we only excited it with $1V$. How is this possible? Remember that there is another end of the transmission line on the left which could cause a re-reflection of $V_r$ to combine with $V_f$ however we are assuming no such reflection exists. This means that the impedance seen at the left end of the transmission line must be matched to $Z_0$, meaning that the driver has a series impedance equal to $Z_0$. Therefore $V_f = \frac{1}{2} V_{source}$ and the total voltage $V$ never exceeds $V_{source}$.
An imperfectly matched but lossy ($R \ne 0$) load results in a reduced amplitude reflected wave
![Reflection with arbitrary real Z_L](../assets/tx_lines/reflection_real.gif)
![Reflection with arbitrary complex Z_L](../assets/tx_lines/reflection_complex.gif)
You should notice that not all locations along the transmission line see the same peak voltages (shaded region in the above plots). This is a useful property for determining how well matched a device is. A peak detector can be physically moved along a transmission line to find the peaks and troughs of this standing wave. This ratio is called the Voltage Standing Wave Ratio (VSWR). These days VSWR is usually calculated from other measurements.
$$
\begin{align}
\text{VSWR} &= \frac{1 + |\Gamma|}{1 - |\Gamma|}
\end{align}
$$
TODO: derive VSWR
VSWR is often reported as $N:1$. I'm not sure why since this carries no additional information than just $N$ but its a convention.
For passive networks (no power is added), $0 < |\Gamma| < 1$ so $1 < \text{VSWR} < \infty$ where 1 is perfectly matched. VSWR does a good job of highlihting poorly-matched networks while making well-matched and decently-matched networks appear similar.
In general, unless dealing with very high-Q structures (which can be de-tuned by additional resonances) you can consider $\text{VSWR} < 2$ to be well matched.
TODO: move these comments somewhere else
I have mostly seen VSWR used for antenna or system interface specifications. It is particularly useful for worst-case estimates of cascaded performance since it is additive. We will get to this later.
## Impedance Transformation
If we were to cut a transmission line at position $z$ and look into the loaded line from the left end, we can determine the input impedance of the combined transmission line + load circuit.
TODO: derive
### Quarter Wave Transformer
Note that if a txline is exactly $\ell = \lambda/4$ in length, this simplifies quite nicely
$$
\begin{align}
Z &= \frac{Z_0^2}{Z_L}
\end{align}
$$
This property is frequently used in microwave networks for a variety of purposes.
One of the simplest uses is to provide ESD protection to a system by adding a shorted $\lambda/4$ stub (in parallel) near a connector.
$$
\begin{align}
Z_{stub} &= \frac{Z_0^2}{0} \\
&= \infty
\end{align}
$$
So the short looks like an open and the stub disappears at the design frequency, however at much lower frequencies ($\ell << \lambda/4$) where we have most ESD concerns the short protects downstream devices from voltage spikes. This method typically works above a few GHz, I'm not sure exactly how low it'll work though $\lambda/4$ becomes ponderously large and the point becomes moot.
$\ell = \lambda/2$ has an even simpler result
$$
\begin{align}
Z &= Z_L
\end{align}
$$
The reason we see this repetition after only $\lambda/2$ rather than a full $\lambda$ is because the wave must travel in both the forward and reverse directions along the txline before we see it again. In other words, the total distance travelled by the wave is $2\ell$.
I have not found half-wave lines to be very useful in practice since additional line length will result in narrower-band networks, however it can sometimes be useful to escape a particularly tight section in PCB layout.
## Smith Charts
A Smith chart is simply a complex plot of $\Gamma$ with grid lines of constant resistance and reactance.
Sometimes lines of constant conductance and susceptance are added in place of or in addition to resistance/reactance if we want to work in admittance rather than impedance. Since a Smith chart is merely showing $\Gamma$ which is dependent on $Z_0$, the impedance/admittance lines are often labelled with normalized impedance ($Z_L/Z_0$).
TODO: make plot
If an impedance $Z_S$ is placed in series with a load, we can fall back on circuit theory. $Z = Z_S + Z_1$
Lets look at cases where $Z_S$ is purely real or purely imaginary.
* If $Z_S = R_S$, then $Z = R_S + R_1 + j X_1$
Similarly, if an admittance $Y_P$ is placed in parallel (shunt) with the load, then $Y = Y_P + Y_1$
Again if $Y_P$ is purely real or imaginary,
| Condition | Smith Chart
|---|---|
| Series transmission line | counter clockwise (VSWR)
| Series resistor | right (R)
| Series capacitor | down (X)
| Series inductor | up (X)
| Shunt resistor | left (G)
| Shunt capacitor | up (B)
| Shunt inductor | down (B)
TODO: make plots