C630 of 57
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

C6 · Lesson 30 · Analog switches and multiplexers

MOSFETs as switches for signals, and the resistance, charge and leakage they bring along

Lesson 29's sample-and-hold needed a switch that could connect a signal to a capacitor and then let go of it cleanly. The same part routes eight sensors into one ADC, changes an amplifier's gain or a filter's corner under software control, and chops signals in auto-zero amplifiers. It's a MOSFET, or rather a pair of them, used as a voltage-controlled resistor. An ideal switch would be zero ohms on and infinite off and would add nothing to the signal. A real one has an on-resistance that changes with the signal, dumps a little charge every time it opens, leaks when it's off, and couples high frequencies through its capacitance. Each of those sets a limit you can calculate.

  • On-resistance against signal voltage for a CMOS transmission gate on a 5 V supply: an NMOS and a PMOS in parallel, each with k = 1 mA/V² and threshold 0.7 V. The two dashed curves are each device alone.
  • The NMOS conducts well near ground and stops near the top; the PMOS does the opposite. In parallel, with matched devices, their conductances add to a constant across the middle.
  • Lower the supply and watch the flat region shrink: below about twice the threshold, there's a gap where neither device is on.

Predict

An NMOS switch on a 5 V supply (Vt = 0.7 V) passes signals well near ground. What happens to a 4.5 V signal?

Name it

The MOSFET as a resistor

With almost no voltage across it, a MOSFET in triode is a resistor whose conductance is set by its overdrive. For a signal at v with the gates at VDD (NMOS) and 0 (PMOS):

Gn=kn(VDD−v−Vtn),Gp=kp(v−|Vtp|)

each zero when its overdrive is negative. In a transmission gate they're in parallel, and with kn=kp=k and equal thresholds, wherever both conduct

G=k(VDD−2Vt)

is independent of the signal. The body effect raises the thresholds as the signal moves from the bulk's rail, so real switches show a gentle bump in the middle instead of a flat line. At low supply voltages there's a gap near mid-supply where neither device conducts, which is why low-voltage switches boost their gates with charge pumps.

Errors a switch adds

  • On-resistance and its variation: in series with a load RL it forms a divider, RL/(RL+Ron), and any change of Ron with the signal is distortion. Feed the switch into a high impedance, such as an op amp's input, and Ron hardly matters.
  • Bandwidth and settling: Ron (plus the source's resistance) charges the load and the switch's own capacitance. Settling to within ε takes τln⁡(1/ε); for an N-bit converter's half LSB, ε=2−(N+1).
  • Charge injection: when the switch opens, the channel's charge Qch≈WLCox(VGS−Vt) leaves through both ends, roughly half each, and the half that lands on a hold capacitor CH makes a step ΔV≈Qch/2CH. The gate's falling edge also couples through the overlap capacitance. A larger CH shrinks the step but slows the circuit; complementary or dummy switches cancel much of it.
  • Leakage: an off switch leaks nanoamps or less, which through a source resistance Rs is an error of IleakRs. In a multiplexer, every off channel's leakage lands on the shared output.
  • Off isolation and crosstalk: an open switch is still a capacitance Coff, so a signal at frequency f couples into a load RL with a gain of about 2πfCoffRL while that's small.

Multiplexers

A multiplexer is N switches sharing one output. The output node carries the capacitance of every switch, on or off, so its settling time grows with the channel count, and break-before-make timing keeps two channels from shorting together during a change.

Worked example

A transmission gate on 5 V has matched devices with k = 1 mA/V² and |Vt| = 0.7 V (ignore the body effect). Find its on-resistance at 0.5 V, 2.5 V and 4.5 V.

Show the solution
  1. At 2.5 V. Both devices conduct: Gn=10−3(5−2.5−0.7)=1.8mSGp=10−3(2.5−0.7)=1.8mS so Ron = 1/3.6 mS = 278 Ω.
  2. From 0.7 to 4.3 V. The sum is k(5−1.4) = 3.6 mS anywhere in this range, so the resistance stays 278 Ω.
  3. At 0.5 V. Only the NMOS conducts: 10−3(5−0.5−0.7)=3.8mS which is 263 Ω.
  4. At 4.5 V. Only the PMOS conducts, with the same 263 Ω.
  5. Compare. The resistance varies only 5% across the whole range, against an NMOS alone that goes from 263 Ω to open.

Answer the on-resistance is 263 Ω at 0.5 V, 278 Ω at 2.5 V and 263 Ω at 4.5 V.

Worked example

A switch with W = 10 µm, L = 1 µm and Cox = 5 fF/µm² opens with 3 V of overdrive onto a 10 pF hold capacitor. Estimate the charge-injection step.

Show the solution
  1. Channel charge. Qch=WLCoxVov=10×1×5fF×3=150fC
  2. Step on the hold capacitor. About half goes to the hold capacitor: 75fC10pF=7.5mV
  3. In LSBs. For a 12-bit converter with a 5 V range (an LSB of 1.2 mV), that's six LSBs.
  4. Reducing it. Quadrupling the capacitor gets it under two LSBs but quadruples the charging time; a half-size dummy switch, shorted and driven by the opposite clock, absorbs most of the charge instead.

Answer the charge-injection step is about 7.5 mV.

Worked example

An 8-channel multiplexer has 100 Ω on-resistance and 5 pF per channel at its output, drives a 20 pF ADC input, and each source has 1 kΩ of resistance. How long must the ADC wait after a channel change to settle within half an LSB at 12 bits? What error does 1 nA of total leakage add?

Show the solution
  1. Time constant. The output node has 8×5+20 = 60 pF, charged through 1.1 kΩ: τ=66ns
  2. Settling time. Half an LSB at 12 bits is 2−13, so t=τln⁡213=9.01×66ns=595ns
  3. Leakage error. The leakage flows through the selected source's 1 kΩ: 1 µV, far below an LSB.
  4. With a high-impedance source. With a 1 MΩ sensor it would be 1 mV, nearly an LSB, which is why high-impedance sources get a buffer before the multiplexer.

Answer the ADC must wait 595 ns, and the leakage adds only 1 µV.

Check

A transmission gate has matched devices with k = 0.5 mA/V² and |Vt| = 0.7 V on a 5 V supply. What is its on-resistance where both devices conduct?

Write units the way you normally would: 1.5 Ω, 1500 mΩ and 0.0015 kΩ are the same answer.

Check

An NMOS switch (k = 0.5 mA/V², Vt = 0.7 V) has its gate at 5 V. What is its on-resistance with the signal at 2 V?

Write units the way you normally would: 1.5 Ω, 1500 mΩ and 0.0015 kΩ are the same answer.

Check

A switch with W = 10 µm, L = 0.5 µm and Cox = 8 fF/µm² opens with 3 V of overdrive onto a 2 pF capacitor. If half the channel charge lands there, how big is the step?

Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.

Check

A multiplexer output with 20 pF is charged through 500 Ω in total. How long until it settles within half an LSB at 16 bits?

Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.

Check

An open switch has 1 pF across it and feeds a 1000 Ω load. Estimate its off isolation at 1 MHz, in dB (a negative number), while the coupling is small.

Check

Why do analog switches use an NMOS and a PMOS in parallel instead of a single, larger NMOS?

Check

Show that a matched transmission gate's conductance doesn't depend on the signal where both devices conduct.

Step 1

What is the NMOS's conductance with the signal at v?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Check

Sweep a transmission gate's on-resistance with the body effect. Each device's threshold rises with its source-to-bulk voltage: Vtn=Vt+γ(2ϕ+v−2ϕ) for the NMOS (bulk at 0) and |Vtp|=Vt+γ(2ϕ+VDD−v−2ϕ) for the PMOS (bulk at VDD), with γ = 0.4 V^1/2 and 2ϕ = 0.7 V. With k = 1 mA/V² for both and VDD = 3.3 V, Vt = 0.5 V, write ron(v) (return float('inf') where neither conducts) and set rmax, the largest finite on-resistance over 2001 evenly spaced points from 0 to VDD, and gap, the total width in volts of the points where neither conducts (count the points times the spacing).

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

A data-acquisition board multiplexes eight thermocouple amplifiers and one 100 kΩ potentiometer into a 16-bit ADC. The thermocouple readings are fine, but the potentiometer's reading depends on which channel was read just before it. Explain why, and suggest two fixes.

Practice

Keep practicing

8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.