Sub topic 10
Common-mode rejection and resistor matching
This chapter assumes you can derive the four-resistor difference amplifier output. It also assumes you know the ideal op amp rules from earlier chapters. Here you will see why that circuit only rejects common-mode signals when its resistors are matched.
Differential and common-mode signals
Split the two inputs into a difference and an average:
- Differential voltage: Vd = V2 − V1
- Common-mode voltage: Vcm = (V1 + V2) / 2
A sensor bridge or a shunt resistor often puts a small Vd on top of a large Vcm. The amplifier should respond to Vd and ignore Vcm.
Gain for each input
The difference amplifier has R1 from V1 to the inverting input and Rf as feedback. It has R2 from V2 to the non-inverting input and R3 from that input to ground. Superposition gives:
Vout = V2 · a2 − V1 · a1
Here a1 = Rf/R1 and a2 = R3/(R2 + R3) · (1 + Rf/R1).
Set V1 = V2 = Vcm. The common-mode gain is then:
Acm = a2 − a1 = (R1·R3 − Rf·R2) / (R1·(R2 + R3))
Acm is zero when R3/R2 = Rf/R1. This is the matching condition from the previous chapter. If the ratios differ, part of Vcm reaches the output as an error.
The differential gain is Ad = (a1 + a2) / 2. In the matched case this is Rf/R1. The common-mode rejection ratio is CMRR = Ad / |Acm|, usually quoted in decibels as 20·log10(CMRR).
A worked example
Take R1 = R2 = 10 kΩ and R3 = 100 kΩ, with a target gain of 10. Suppose Rf is 101 kΩ, which is 1% high.
- a1 = 101/10 = 10.1
- a2 = (100/110) · 11.1 ≈ 10.0909
- Acm ≈ −0.00909
- Ad ≈ 10.095
So CMRR ≈ 1110, or about 61 dB. With Vcm = 5 V, the output error is about 5 × 0.00909 ≈ 45 mV. A 5 mV differential signal would be amplified to only 50 mV, so this error is about as large as the signal itself.
import math
def cmrr_db(r1, rf, r2, r3):
a1 = rf / r1
a2 = r3 / (r2 + r3) * (1 + rf / r1)
ad = (a1 + a2) / 2
acm = a2 - a1
return 20 * math.log10(ad / abs(acm))
print(round(cmrr_db(10e3, 101e3, 10e3, 100e3), 1)) # 60.9
print(round(cmrr_db(10e3, 100.1e3, 10e3, 100e3), 1)) # 80.8Reducing the error from 1% to 0.1% on one resistor improves CMRR by about 20 dB.
Worst-case estimate
If every resistor has tolerance t and the errors fall in the worst directions, the ratio mismatch is about 4t. With G = Rf/R1, the CMRR is approximately:
CMRR ≈ (1 + G) / (4t)
For G = 10:
| Tolerance | Worst-case CMRR | In dB |
|---|---|---|
| 5% | 55 | 35 dB |
| 1% | 275 | 49 dB |
| 0.1% | 2750 | 69 dB |
| 0.01% | 27500 | 89 dB |
Common errors
- Ignoring source resistance. Any resistance in series with a source adds to R1 or R2 and breaks the match. Unequal source resistances reduce CMRR even with perfect resistors.
- Matching values instead of ratios. Only R3/R2 = Rf/R1 matters. But all four resistors should still track each other with temperature, so use a matched network or the same resistor type.
- Forgetting the op amp itself. A real op amp has its own CMRR, which sets a ceiling no resistor match can beat.
- Trimming one resistor. A small trimmer in series with R3 can null Acm at one temperature. It does not guarantee the match elsewhere.
Exercise
A difference amplifier has R1 = R2 = 1 kΩ and Rf = R3 = 20 kΩ, so G = 20. All four resistors have 0.5% tolerance. Estimate the worst-case CMRR in dB.
Show answer
CMRR ≈ (1 + G) / (4t) = 21 / (4 × 0.005) = 1050. In decibels, 20·log10(1050) ≈ 60.4 dB.