Source: https://fullstackelectronics.com/experiments/04-the-differential-pair

# Experiment 4: The Differential Pair

Give the comparator a second input, and choose its threshold yourself.

In [Experiment 3](https://fullstackelectronics.com/experiments/03-the-almost-comparator.html.md) you built a comparator from one transistor. Its output fell from high to low as the input rose from 0.60 V to 1.10 V. A heat gun moved that fall down by 0.26 V. The NE555 compares against 1.67 V and 3.33 V, and those levels must hold as the chip warms. One transistor compares against its own base-emitter voltage, which nothing outside the circuit sets and which falls as the silicon warms. This experiment adds a second transistor: its base becomes the reference input, and the two junctions warm together.

The aim is that much of the drift cancels. Figure 4-7 tests this: under the same heat gun, my pair showed no clear threshold movement at that scale. The wide transition remains, and Experiment 6 fixes it.

The circuit is called a [differential pair](https://fullstackelectronics.com/reference/glossary.html.md#differential-pair): two transistors with their emitters joined, which share one current through a single resistor to ground. Each base is an input: one takes the signal, as before, and the other takes a reference voltage from power supply output 2. The output changes state as the signal passes through a region near the reference. That is the function of a comparator, and both comparators inside the 555 start from this circuit. Experiments 5 and 6 improve this pair. Experiment 8 builds the same pair from PNP transistors for the second comparator of the 555.

### You will need

- [ ] 2×2N3904 NPN transistors (one is the transistor from Experiment 3)
- [ ] 2×4.7 kΩ resistors
- [ ] 3×Additional 4.7 kΩ resistors for the optional divider in Going further
- [ ] 1×1 kΩ resistor
- [ ] The breadboard from Experiment 3, and jumper wire
- [ ] Power supply with two independently adjustable outputs: output 1 at 5.00 V with a 50 mA current limit, output 2 for the reference
- [ ] Two-channel oscilloscope with one probe
- [ ] Function generator
- [ ] BNC cable, BNC T-piece and a BNC lead that ends in mini-hook clips
- [ ] Multimeter with a milliamp range
- [ ] A heat gun or a hair dryer

## Build the pair

Figure 4-1 shows the circuit described above. Q1 is the transistor from Experiment 3, without its base resistor. Q2 is its twin. Their emitters meet at one point, and a 1 kΩ resistor connects that point to ground. This resistor is the [tail](https://fullstackelectronics.com/reference/glossary.html.md#tail-current), and the current through it is the tail current. Each collector has its own 4.7 kΩ resistor to +5 V.

The base of Q1 is the input that the function generator sweeps, labelled V+. The base of Q2 is the reference input, V−. The output is the collector of Q2.

![Schematic of the differential pair. Two 2N3904 transistors, Q1 on the left and Q2 on the right, have their emitters joined. From the joined emitters, a 1 kilohm tail resistor goes to ground. Each collector has a 4.7 kilohm resistor to +5 volts. V+ is the base of Q1, V− is the base of Q2, and OUT is the collector of Q2. Both inputs come in from the left. The V− wire hops over the collector wire of Q1 to reach the base of Q2.](https://fullstackelectronics.com/experiments/img/04-schematic-pair.svg)

**Figure 4-1:** The differential pair. V+ and V− are the two inputs, and OUT is the collector of Q2.

Figure 4-2 shows the pair on the board of Experiment 3. The transistor of Experiment 3 stays at 9h, 10h and 11h and becomes Q1. The rail links at columns 28 and 29 and the power supply leads also stay. Three parts of Experiment 3 must go first.

1.  **Remove the parts of Experiment 3.** Set power supply output 1 to OFF. Remove the 10 kΩ base resistor from 10f and 10e. Remove the 1 kΩ collector resistor from 11j and the bottom +5 V rail at column 11. Remove the blue emitter wire from 9j and the bottom ground rail at column 9.
2.  **Insert Q2.** Insert the second 2N3904 at 12h, 13h and 14h, with the flat face towards the near edge. Check each flat face before you continue. The legs of both transistors are then emitter, base and collector from left to right. A later test needs the two transistors at the same temperature, so keep them close together.
3.  **Join the emitters.** Connect a green wire from 9i to 12i. This wire joins the emitter columns of Q1 and Q2.
4.  **Insert the resistors.** Insert the 1 kΩ tail resistor from 12j to the bottom ground rail at column 13. The rail has no hole at column 12. Insert a 4.7 kΩ resistor from 11j to the bottom +5 V rail at column 11. Insert the other 4.7 kΩ resistor from 14j to the bottom +5 V rail at column 14.
5.  **Connect the bases to the upper block.** Connect a yellow wire from 10f to 10e, across the centre channel. Connect a green wire from 13f to 13e. The loose leads then connect in the upper block, away from the transistors.
6.  **Move the probe.** Move the oscilloscope channel 2 probe tip from 11i to 14i, the collector of Q2. Move its ground clip to the bottom ground rail at column 20.

[![Breadboard layout of the differential pair. Two 2N3904 transistors sit side by side in the lower block, row h, at columns 9 to 11 and 12 to 14. Their flat faces are towards the near edge. A green wire in row i joins the emitter columns 9 and 12. A 1 kilohm resistor runs from 12j to the inner ground rail at column 13. Two 4.7 kilohm resistors run from 11j and 14j to the outer +5 volt rail. A yellow jumper carries column 10 across the centre channel from 10f to 10e, and a green one carries column 13 from 13f to 13e. The red lead of the function generator arrives at 10c. The positive lead of power supply output 2, at 1.67 volts, arrives at 13c. Both black leads go to the top ground rail. The oscilloscope channel 2 tip is on 14i, the collector of Q2, with its ground clip on the bottom ground rail.](https://fullstackelectronics.com/experiments/img/04-breadboard-pair.svg)](https://fullstackelectronics.com/experiments/img/04-breadboard-pair.svg)

**Figure 4-2:** The pair on the board. The function generator drives 10c, power supply output 2 holds 13c, and the oscilloscope channel 2 probe is on 14i.

## Set the reference and the sweep

With the pair on the board, it needs its two inputs: the swept signal on V+ and the fixed reference on V−. The signal leads are the same as in Experiment 3, as Figure 3-2 shows. The function generator feeds a T-piece on oscilloscope channel 1, and the mini-hook lead goes from the T-piece to the board. Oscilloscope channel 1 shows the input that the circuit receives, and oscilloscope channel 2 shows the output. The new part is the reference. It comes from power supply output 2, as in the LM393 tests of Experiment 2.

1.  **Power the rails.** Set power supply output 1 to 5.00 V with a 50 mA current limit, as in Experiment 3. Set it to ON.
2.  **Set the reference.** Set the power supply to independent mode. Set power supply output 2 to 1.67 V, the lower threshold of the 555 from Experiment 2. With output 2 still OFF, connect its negative lead to the top ground rail at column 16. Connect its positive lead to 13c. Set output 2 to ON, and measure the voltage at 13c with the multimeter. A reading within a few tens of millivolts of 1.67 V is acceptable. Record the value.
3.  **Check the signal leads.** The red wire of the mini-hook lead stays in 10c. Its black wire stays in the top ground rail at column 7. If a trace looks wrong, check the ground clips first.
4.  **Set the function generator.** Set a triangle wave at 100 Hz from 0 V to 3.3 V, into HiZ. On the SDG1062X: Waveforms → Ramp · Frequency 100 Hz · press Offset twice so that it becomes LowLevel, and set 0 V · press Amplitude twice so that it becomes HighLevel, and set 3.3 V · Output on. The sweep covers both reference values in this experiment, 1.67 V and 2.67 V.
5.  **Set the oscilloscope.** Set oscilloscope channel 1 to 1× for the direct BNC cable. Set oscilloscope channel 2 and the switch on its probe to 10×. Set both channels to DC coupling and 1 V/div. Set the timebase to 1 ms/div. Set an edge trigger on oscilloscope channel 1, rising, at about 1.5 V.

The output load of the function generator must be HiZ, as in Experiment 3. On the SDG1062X, hold the Output key of the channel for two seconds, or use Utility → Output Setup → Load → HiZ. If the triangle on oscilloscope channel 1 reaches 6.6 V instead of 3.3 V, this setting is the cause. Check it at the start of each session.

## The transition follows the reference

With the reference set and the triangle sweeping through it, the first question is where the output changes state. In Experiment 3, the transistor and its base resistor set the switching region. Here the second input is at 1.67 V, so the transition should be near that voltage.

This section measures two things. The threshold is the input voltage where the rising output crosses halfway between its low and high levels. The transition width is the range of input voltage over which the output rises from nearly low to nearly high. Use the same output levels for each reference value, and record the reference voltage with them.

The magenta output is low during the lower part of the yellow triangle. It rises as the input passes through the switching region, and it falls again as the input falls. This direction is the reverse of Experiment 3: more input now gives more output.

First, measure the threshold. Press Cursors, and set the type to XY and the source to oscilloscope channel 1. Put an X cursor where the output crosses halfway, and a Y cursor on the input trace at that instant. Record the input voltage. In Figure 4-3, the halfway crossing lies inside the bracket below, between 1.74 V and 1.96 V.

Then bracket the transition. Put X1 where the output starts to rise, and X2 where it reaches the top. Move Y1 and Y2 onto the input trace at those two instants. In Figure 4-3 the input readings are 1.74 V and 1.96 V, so the width is 0.22 V. This interval is about 0.1 V above the 1.67 V reference. The X-Y capture in Figure 4-5 starts its rise nearer the reference, and the next section calculates where the rise should start.

![Oscilloscope: yellow input triangle from 0 to 3.3 volts on channel 1, magenta output on channel 2, both at 1 volt per division. X cursors bracket the rise of the output, 0.38 milliseconds apart. The Y cursors on the input at those instants read 1.74 and 1.96 volts. The reference is 1.67 volts.](https://fullstackelectronics.com/experiments/img/04-threshold-1v67.png)

**Figure 4-3:** Reference at 1.67 V. The output rises while the input goes from 1.74 V to 1.96 V. The cursor source on this screen is oscilloscope channel 2, which has the same scale and offset as oscilloscope channel 1. So the readings are the same.

Increase power supply output 2 to 2.67 V, and repeat both measurements. In Figure 4-4 the rise starts near 2.8 V, about a volt above the rise in Figure 4-3. The input now spends less time above the switching region, so the high part of the output becomes a narrow pulse. These readings show that the transition follows a change in the reference. The NE555 needs this ability to choose a comparison level for its two thresholds.

![Oscilloscope with the reference raised to 2.67 volts. The output is now a narrow pulse near the peak of the input triangle. The X cursors are 0.52 milliseconds apart, wider than the rise. The hand-placed Y cursors read 2.74 and 2.96 volts.](https://fullstackelectronics.com/experiments/img/04-threshold-2v67.png)

**Figure 4-4:** Reference at 2.67 V. The rise follows it, starting near 2.8 V. The Y cursors were placed by hand at 2.74 V and 2.96 V.

Two more features are visible. With the reference at 1.67 V, the low output level is near 1 V, and the next section explains why. The edge also still slopes. Its measured width, 0.22 V, is less than half the 0.5 V of the single transistor. A sharper transition is still necessary, and Experiment 6 provides it.

X-Y mode shows the same transition as a transfer curve, output against input. Press Acquire and set the XY softkey to On. Set oscilloscope channel 1 to 500 mV/div. Figure 4-5 shows my capture. The two shelves are the low and high output levels, about 1 V and 5 V.

The cursors in Figure 4-5 bracket 1.63–1.88 V of input and 3.98 V of output. That is a similar width, 0.25 V, but the interval starts 0.11 V lower than in Figure 4-3. To compare the two views on your board, keep the reference and the function generator settings the same. Use the same output levels for the endpoints.

![X-Y oscilloscope capture of the transfer curve of the pair: a low shelf, a steep rise and a high shelf. The input goes across on channel 1 at 500 millivolts per division, and the output goes up on channel 2 at 1 volt per division. The cursors read X1 1.88 volts and X2 1.63 volts, 0.25 volts apart, and Y1 5.04 volts and Y2 1.06 volts, 3.98 volts apart.](https://fullstackelectronics.com/experiments/img/04-transfer-curve.png)

**Figure 4-5:** The transfer curve with the reference at 1.67 V. The step takes 0.25 V of input for 3.98 V of output.

## What just happened?

The measurements leave three questions: why the transition follows the reference, why the low level is near 1 V, and where the rise starts. The answers come from how the pair shares the tail current. With V− at 1.67 V and Q2 conducting, the joined emitters are about one base-emitter drop below V−, near 1 V. So the 1 kΩ tail carries about 1 mA. Near the crossover, we can treat this current as approximately constant. Then we can study how the pair divides it.

Both emitters are at the same voltage. So the transistor with the higher base has the larger base-emitter voltage. Its collector current increases steeply with that voltage. So a small difference between the inputs can move most of the current to one side.

Figure 4-6 shows the three cases. With V+ well below V−, Q2 conducts and pulls the output low. With V+ well above V−, Q1 conducts, Q2 carries almost no current, and the output rises to +5 V. Matched transistors share the current equally when their bases are equal, if neither transistor is saturated. So the handover occurs near the reference, and a change of reference moves it.

The resistor tail makes the total current depend on the emitter voltage. When V+ rises well above V−, the emitters follow the base of Q1 upwards, and the tail current increases. The arrows in the figure show which side conducts. Their sizes are only a guide to the division of current in each case. A later section measures the changing total.

[![Three drawings of the same differential pair. Left: V+ at 1.0 volts and V− at 1.67 volts. An arrow shows conduction concentrated in Q2, and OUT is low. Middle: both inputs at 1.67 volts. Two arrows show the current shared between matched transistors, and OUT is at an intermediate level. Right: V+ at 2.5 volts. The heavy arrow is now through Q1, Q2 carries almost no current, and OUT is high. The tail current varies with the emitter voltage, and the arrows show which side conducts.](https://fullstackelectronics.com/experiments/img/04-current-steering.svg)](https://fullstackelectronics.com/experiments/img/04-current-steering.svg)

**Figure 4-6:** Current steering. The higher base favours conduction on its side. Arrow sizes are qualitative.

Now the low level. If Q2 took the whole 1 mA through its collector, its 4.7 kΩ resistor would drop 4.7 V. The collector would then be at 0.3 V, below the emitter near 1 V. That calculation then no longer describes the transistor: Q2 saturates. Its collector stays a small saturation voltage above its emitter, which puts the output a little above 1 V.

In saturation, a large current can also flow in through the base. So the collector current alone no longer accounts for the tail current.

At the other extreme, Q2 is off. Its load resistor carries almost no current, and the output rises to +5 V.

Saturation also sets where the rise can start. The output cannot leave its low shelf until the collector of Q2 rises clear of its emitter, near 1.1 V. That needs a current in Q2 below (5 V − 1.1 V) ÷ 4.7 kΩ, about 0.83 mA of the 1 mA tail. That split occurs about 40 mV before V+ reaches V−, near 1.63 V. The X-Y capture in Figure 4-5 starts its rise at 1.63 V. The time-display readings in Figures 4-3 and 4-4 are 0.1 V to 0.2 V higher, and these captures do not show the reason.

What happened to the base-emitter voltage that set the threshold in Experiment 3? Each transistor still needs a base-emitter voltage to conduct. At equal collector currents, matched transistors need almost the same voltage. Their shared emitter connection then makes their bases almost equal too. So the comparison is now between two inputs. Any mismatch between the junctions moves that balance.

#### Current steering

The mechanism in Figure 4-6 is called current steering. The two transistors share an emitter connection and one resistor for their combined current. A difference between their base voltages changes how that current divides. Near the crossover, an approximately constant total makes the exchange easy to see: as one collector carries more, the other carries less. A resistor tail is approximately constant only over a small input range. In Experiment 5 a current source makes that approximation much better.

#### How lopsided is the split?

Current steering leaves a question of scale: how large a difference between the bases moves most of the current to one side? Take matched transistors that are not saturated, at room temperature. A 60 mV difference between the bases gives a collector current ratio of about ten to one. If we neglect base current, that is about 91 % of the tail against 9 %. A 120 mV difference gives about a hundred to one.

This steep relation explains how a small input change moves conduction from one side to the other. The load resistors and saturation also shape the output voltage. At the centre of the step, the slope of the output should be about 46. Across the cursor interval in Figure 4-5, 3.98 V of output divided by 0.25 V of input gives an average slope of about 16. The slope is steepest at the centre and becomes flatter towards both shelves. Experiment 6 increases the gain.

Where the numbers come from optional

First, the ratio of the currents. The collector current of a transistor increases exponentially with its base-emitter voltage:

$$I_C=I_S\,e^{V_{\mathrm{BE}}/V_T}$$

Here $V_T$ is about 26 mV at room temperature, and $I_S$ is a constant of the transistor. Matched transistors have the same $I_S$. The emitters are joined, so the difference between the two base-emitter voltages equals the difference between the bases, $\Delta V$. Divide the current of Q1 by the current of Q2. The constant $I_S$ cancels, and the two exponentials combine:

$$\frac{I_{C1}}{I_{C2}}=\frac{I_S\,e^{V_{\mathrm{BE1}}/V_T}}{I_S\,e^{V_{\mathrm{BE2}}/V_T}}=e^{(V_{\mathrm{BE1}}-V_{\mathrm{BE2}})/V_T}=e^{\Delta V/V_T}$$

For a difference of 60 mV, 60 ÷ 26 = 2.31, and $e^{2.31}=10.1$. The larger share is 10 ÷ (10 + 1) = 0.91, or 91 %. For 120 mV, 120 ÷ 26 = 4.62, and $e^{4.62}=101$.

Second, the start of the rise. The output leaves its low shelf when Q2 carries 0.83 mA. Q1 then carries the rest of the 1.02 mA tail, 0.19 mA, and the ratio is 0.83 ÷ 0.19 = 4.4. Take the natural logarithm of both sides of the ratio equation, with Q2 as the larger current:

$$V_{-}-V_{+}=V_T\ln\frac{I_{C2}}{I_{C1}}=26\text{ mV}\times\ln 4.4=26\text{ mV}\times 1.48\approx 38\text{ mV}$$

So the rise starts at about 1.67 V − 0.04 V = 1.63 V.

Third, the slope at the centre. The slope of the exponential is the [transconductance](https://fullstackelectronics.com/reference/glossary.html.md#transconductance) $g_m$: the change in collector current per volt of change in base-emitter voltage. Differentiate $I_C$ with respect to $V_{\mathrm{BE}}$. The derivative of the exponential is the same exponential, multiplied by $1/V_T$. The result is $I_C$ divided by $V_T$:

$$g_m=\frac{dI_C}{dV_{\mathrm{BE}}}=\frac{I_S\,e^{V_{\mathrm{BE}}/V_T}}{V_T}=\frac{I_C}{V_T}$$

At the centre, each transistor carries half of the 1.02 mA tail, 0.51 mA:

$$g_m=\frac{0.51\text{ mA}}{26\text{ mV}}\approx 19.6\text{ mA/V}$$

Let the bases differ by a small voltage $v_d$. The current that Q1 gains is the current that Q2 loses, so the joined emitters stay almost still. The base-emitter voltage of Q1 rises by $v_d/2$, and that of Q2 falls by $v_d/2$. So the current in Q2 falls by $g_m v_d/2$. The output is 5 V minus the drop across the 4.7 kΩ load $R_C$, so less current gives a higher output:

$$\Delta V_{\mathrm{OUT}}=R_C\,g_m\frac{v_d}{2}$$

The gain is the output change divided by the input difference that caused it:

$$A=\frac{\Delta V_{\mathrm{OUT}}}{v_d}=\frac{g_m R_C}{2}=\frac{19.6\text{ mA/V}\times 4.7\text{ k}\Omega}{2}\approx 46$$

#### The long-tailed pair

The pair on your board is an old arrangement, older than the transistor. Alan Blumlein, an engineer at EMI, filed a patent for it in 1936, with valves. His work also includes stereo recording and wartime radar. He wanted an amplifier that ignored slow changes common to both inputs, such as drift in its supply. In his drawings, the shared resistor went a long way down to a large negative supply. So the circuit is still called a long-tailed pair, and the shared resistor is called the tail.

## Warm both transistors

The reference input fixes flaw 1 from the list of Experiment 3. Flaw 3 was drift: the heat gun moved the threshold of the single transistor down by 0.26 V. The base-emitter voltage needed for a given collector current falls as silicon warms, typically by about 2 mV per degree Celsius. In a matched pair, warming both transistors together changes both junction voltages by similar amounts. So the input difference needed to balance their currents should change much less.

Return power supply output 2 to 1.67 V. Press Acquire and set the XY softkey to Off. Set both channels to 1 V/div and the timebase to 1 ms/div. Trigger on oscilloscope channel 1, so that the input stays in one place on the screen. Press Display/Persist, set the Persist softkey to Infinite, and set the Color softkey to On.

For this test, the threshold is the input voltage where the rising output leaves its low shelf. This is the equivalent of the point used in Experiment 3. Record that input voltage at room temperature.

Warm both packages for a few seconds with a hair dryer, or with the heat gun on its lowest setting, from a hand's width away. Stop before the plastic of the transistors softens. Read the input voltage again where the warm trace leaves the low shelf. Repeat the reading as the pair cools. Subtract the warm reading from the cold reading to find how far the threshold moved down.

![Persistence capture with colour grading during the heat-gun test. The input ramp and the output pulse both show a red core where the traces spent most of their time. The rising and falling edges of the output stay as single red lines with a purple band around them.](https://fullstackelectronics.com/experiments/img/04-drift-cancelled.png)

**Figure 4-7:** Both transistors under the heat gun. No clear threshold movement is visible at this scale. The persistence band alone does not measure the shift.

In Figure 4-7 there is no clear threshold movement at this scale. At this timebase, the 0.26 V shift of Experiment 3 would move the edge by about 0.4 ms, two fifths of a division. The persistence band includes noise, and it can also include small changes in the switching point. Its appearance alone cannot separate them.

Two 2N3904s from one bag are similar, and two separate packages in moving air are seldom at the same temperature. So the cancellation on a breadboard is probably incomplete. Inside an integrated circuit, the two transistors of a pair sit side by side on one piece of silicon, at one temperature. They also match far more closely than two separate parts. That is one reason the comparators of the 555 are built as pairs on a single die. On a breadboard, seating the two packages close together, as in step 2, keeps their temperatures closer.

#### Difference and common mode

The heating test changed something that both sides share. The same idea applies to the inputs. Two input voltages can also be described by two other numbers: their difference, V+ − V−, and their average. The difference is the signal that a comparator acts on. The average, called the [common-mode](https://fullstackelectronics.com/reference/glossary.html.md#common-mode) level, says how high the two inputs sit together.

An ideal comparator responds to the difference and ignores the common-mode level completely. It gives the same result with both inputs near 1 V or near 3 V, as long as the same input is higher. The heating test checked how well the pair rejects a shared change in its junction voltages. The next test checks a different shared change: both input voltages moving together.

## Flaw 4: move both inputs together

We can now choose a reference, and warming both transistors together gave no clear movement at the scale of Figure 4-7. But the pair has another limitation. Join its two bases and sweep them with the function generator: their voltage difference stays zero. If the pair rejected their shared movement completely, its output voltage would stay constant.

Figure 4-8 shows the circuit, with the meter that the second half of the test adds. Figure 4-9 shows the changes on the board for the first half.

1.  **Disconnect the reference.** Set power supply output 2 to OFF. Remove its positive lead from 13c. Remove its negative lead from the top ground rail at column 16.
2.  **Join the bases.** Connect a green jumper from 10d to 13d. The two base columns are then one connection, and the red wire of the mini-hook lead at 10c feeds both.
3.  **Set the function generator.** Set the triangle to 1 V to 2 V, still at 100 Hz. The tail resistor stays where it is for this half of the test.

![Schematic of the pair wired for the common-mode test. The two transistors face each other, and one short wire joins their bases. The input, IN, comes in from the left and jumps over the collector lead of Q1 without a connection. It lands on the midpoint of that wire. The tail resistor no longer goes straight to ground: a milliammeter is between it and ground. OUT is still the collector of Q2.](https://fullstackelectronics.com/experiments/img/04-schematic-common-mode.svg)

**Figure 4-8:** The common-mode test. Both bases on one input, and the meter in the tail.

[![The breadboard of Figure 4-2 drawn faded, with the changes for the common-mode test in colour. A green jumper joins 10d to 13d, so that both bases share one connection. The red lead of the function generator at 10c now feeds both. Everything else, including the tail resistor and the oscilloscope channel 2 probe, is unchanged from Figure 4-2 and drawn faded.](https://fullstackelectronics.com/experiments/img/04-breadboard-common-mode.svg)](https://fullstackelectronics.com/experiments/img/04-breadboard-common-mode.svg)

**Figure 4-9:** The sweep. Bases joined at 10d and 13d, both fed by the function generator.

Now look at oscilloscope channel 2. The output is a triangle of its own. At 1 V/div it spans just under two and a half divisions, about 2.4 V from top to bottom, while the input spans one division. It also runs opposite to the input: as both bases rise from 1 V to 2 V, the output falls. The inputs carried no difference, but their shared movement still reached the output, more than twice its original size. This effect is called common-mode feedthrough, and the next section finds its source.

![Oscilloscope at 1 volt per division and 2 milliseconds per division. Both inputs are tied together and swept as a yellow triangle one division tall, from 1 to 2 volts. The magenta output is an inverted triangle of its own, just under two and a half divisions from top to bottom.](https://fullstackelectronics.com/experiments/img/04-common-mode-feedthrough.png)

**Figure 4-10:** Both inputs move together. The output moves about 2.4 V, in the opposite direction.

## Why the output moved

The bases carried no difference, so the triangle at the output must come from something that both sides share. Follow the voltages down the circuit, starting at the bases.

1.  **The emitters follow the bases.** A conducting transistor keeps its emitter about 0.65 V below its base. Both bases rise together from 1 V to 2 V. So the shared emitters rise with them, from about 0.35 V to about 1.35 V.
2.  **The tail current follows the emitters.** The 1 kΩ tail has the emitter voltage across it. By Ohm's law, 0.35 V across 1 kΩ gives 0.35 mA, and 1.35 V gives 1.35 mA. In general, with V_(cm) for the level that both inputs share:

$$I_{\mathrm{tail}}\approx \frac{V_{\mathrm{cm}}-0.65\text{ V}}{R_{\mathrm{tail}}}$$

3.  **The collectors follow the tail current.** The two bases are equal, so the tail current divides equally. The half in Q2 increases from about 0.17 mA to 0.68 mA. Through its 4.7 kΩ load, that gives a drop of 0.8 V that increases to 3.2 V. The output is +5 V minus that drop, so it falls from about 4.2 V to 1.8 V. A rise of 1 V at the inputs becomes a fall of about 2.4 V at the output. That is the inverted triangle in Figure 4-10.

This test shows the limit of the approximately constant current used near the crossover. When the inputs move together, the emitter voltage rises and the tail current changes considerably. The two transistors still divide the current, but the total changes. Each collector resistor converts its share of that change into an output voltage change.

## Check it with the meter

The chain above gives about 0.35 mA at a shared input of 1 V and 1.35 mA at 2 V. Measure those currents with the meter, as in Figure 4-11. A current meter must be part of the circuit that carries the current. So set the function generator output and both power supply outputs to OFF before you open the tail connection.

1.  **Move the tail.** Remove the tail resistor from 12j and the bottom ground rail at column 13. Insert it from 9j, the emitter column of Q1, to 5j, an empty column. The green wire from 9i to 12i still connects the tail to both emitters.
2.  **Connect the meter.** Set the multimeter to its milliamp range. Connect its red lead to the milliamp socket and its black lead to COM. Connect the red lead to 5i. Connect the black lead to the top ground rail at column 8. The meter now completes the circuit from the resistor to ground.
3.  **Connect a steady input.** Remove the red wire of the mini-hook lead from 10c. Connect the positive lead of power supply output 2 to 10c. Connect its negative lead to the top ground rail at column 16. Keep the jumper from 10d to 13d.
4.  **Read the meter.** Set output 2 to 1.00 V. Set both power supply outputs to ON, and read the meter. Increase output 2 to 2.00 V, and read the meter again.

[![The multimeter above the breadboard, its dial on the milliamp range and its display reading 0.39 milliamps. The 1 kilohm tail resistor now lies along row j from 9j to 5j. A red lead runs from the milliamp jack of the meter into 5i. A black lead runs from its COM jack into the top ground rail, so the tail current flows through the meter. Beside the meter is the power supply, with output 1 reading 5.00 volts and output 2 reading 1.00 volts. The red lead of output 2 runs into 10c and feeds both bases through the greyed jumper from 10d to 13d. Its black lead goes into the top ground rail. The oscilloscope probe is not drawn. The rest of the build is drawn faded.](https://fullstackelectronics.com/experiments/img/04-breadboard-meter.svg)](https://fullstackelectronics.com/experiments/img/04-breadboard-meter.svg)

**Figure 4-11:** The meter in the tail: red lead into 5i, black lead into the top ground rail at column 8, dial on milliamps.

| Common-mode level | Tail current, measured | Calculated, (V − 0.65 V) ÷ 1 kΩ |
|-------------------|------------------------|---------------------------------|
| 1.00 V            | 0.39 mA                | 0.35 mA                         |
| 2.00 V            | 1.36 mA                | 1.35 mA                         |

One volt of common-mode level increased the tail current from 0.39 mA to 1.36 mA, three and a half times. Both readings are within a few hundredths of a milliamp of the 0.35 mA and 1.35 mA calculated above. The oscilloscope and the meter also agree. Half of the extra milliamp flows in Q2, and half a milliamp through 4.7 kΩ is about 2.3 V. That is close to the 2.4 V triangle in Figure 4-10.

Figure 4-12 plots the tail current against the common-mode level. It shows the two meter readings, the calculated line and the two levels that the 555 uses.

![Graph of tail current in milliamps against common-mode input in volts. A red line rises from zero at 0.65 volts with a slope of 1 milliamp per volt. Its label is resistor tail, (V − 0.65 V) ÷ 1 kΩ. Two circles mark the meter readings, 0.39 milliamps at 1 volt and 1.36 milliamps at 2 volts. Blue dots mark 1.67 volts at about 1.0 milliamp and 3.33 volts at about 2.7 milliamps. A green dashed horizontal line at 1 milliamp is labelled a current source: the same current at every level.](https://fullstackelectronics.com/experiments/img/04-tail-current.svg)

**Figure 4-12:** Tail current against common-mode level. Dark points are the meter readings. The dashed line shows the current that a current source would give.

#### Why this matters in the 555

The meter showed the tail current more than tripling over one volt of common-mode level. This matters because the NE555 compares its timing signal with references at one third and two thirds of the supply. At 5 V, those references are 1.67 V and 3.33 V. The resistor-tail calculation gives about 1.0 mA and 2.7 mA at those levels. That large change in bias current affects the gain and the switching behaviour. At the higher level, this simple pair also saturates with its present collector resistors, so the calculation alone cannot give its output.

A [current source](https://fullstackelectronics.com/reference/glossary.html.md#current-source) would hold the tail current almost constant over its operating voltage range. That is the dashed line in Figure 4-12, and Experiment 5 builds one from two more transistors.

Experiment 5 starts from the board of Figure 4-2. So restore the board now, with these moves.

1.  **Switch off the sources.** Set both power supply outputs and the function generator output to OFF.
2.  **Remove the meter.** Remove the red meter lead from 5i. Remove the black meter lead from the top ground rail at column 8. Return the red lead to the voltage socket of the meter, and select DC volts.
3.  **Return the tail.** Remove the 1 kΩ resistor from 9j and 5j. Insert it from 12j to the bottom ground rail at column 13.
4.  **Separate the bases.** Remove the jumper from 10d and 13d.
5.  **Return the reference.** Move the positive lead of power supply output 2 from 10c to 13c. Its negative lead stays in the top ground rail at column 16. Set output 2 to 1.67 V.
6.  **Return the signal.** Connect the red wire of the mini-hook lead to 10c. Its black wire stays in the top ground rail at column 7. Set the function generator to a triangle from 0 V to 3.3 V at 100 Hz.
7.  **Check the probe.** Make sure that the oscilloscope channel 2 probe tip is on 14i. Make sure that its ground clip is on the bottom ground rail at column 20. The board now matches Figure 4-2.

## The flaw list

This experiment added the reference input, and the pair showed no clear thermal drift at the scale of Figure 4-7. The wide transition remains, and this experiment found a new limitation in the resistor tail.

| \# | Flaw | What it means | Found | Status |
|----|----|----|----|----|
| 1 | No reference input | The threshold is the transistor's own 0.6 V. Nothing outside the circuit sets it. | [Experiment 3](https://fullstackelectronics.com/experiments/03-the-almost-comparator.html.md) | Fixed here the differential pair |
| 2 | Wide transition | The output needs a band of input to travel from high to low: about half a volt with one transistor, about a quarter of a volt with the pair. | [Experiment 3](https://fullstackelectronics.com/experiments/03-the-almost-comparator.html.md) | Open until [Experiment 6](https://fullstackelectronics.com/experiments/06-the-active-load.html.md) |
| 3 | Thermal drift | The base-emitter voltage falls about 2 mV per degree, and the threshold falls with it. | [Experiment 3](https://fullstackelectronics.com/experiments/03-the-almost-comparator.html.md) | Reduced here two matched transistors drifting together |
| 4 | Tail current follows the common-mode level | A resistor tail passes more current as both inputs rise, and the output moves with it. | Found here | Open until [Experiment 5](https://fullstackelectronics.com/experiments/05-the-current-mirror.html.md) |

## Going further

Every reference in this experiment came from the power supply. You can also make a reference from resistors. Start from the board of Figure 4-2. Set power supply output 2 to OFF, and remove its leads from 13c and from the top ground rail at column 16. On a free part of the board, build the divider from Experiment 2 with the three additional 4.7 kΩ resistors. Connect it between the +5 V rail and the ground rail.

Connect the junction one resistor above ground to 13c. The unloaded divider gives about 1.67 V, and the base current of Q2 can reduce that voltage. Set power supply output 1 and the function generator to ON. Measure the reference at 13c, and measure the threshold again. Compare them with the readings from power supply output 2.

The reference now comes from the supply of the board, as in the NE555. Experiment 7 fits this divider on the transistor board, and Experiment 9 measures it.

You can also warm one transistor more than the other. Aim the heat gun at Q1 only, from the side away from Q2. Unequal heating should move the threshold more, because the two junction voltages then change by different amounts.

## Quick check

1\. V+ is at 2.0 V and V− at 1.6 V. Where does most of the tail current flow?

through Q1, the transistor with the higher base

equally through both, since both bases are above 0.6 V

through Q2, the transistor holding the reference

V+ is 0.4 V higher, so conduction is concentrated in Q1. Q2 carries almost no current, so its collector rises towards +5 V. The current in a resistor tail depends on the emitter voltage. It is approximately constant only over a small input range.

2\. Why should warming one transistor move the threshold more than warming both together?

a warm transistor changes the value of the tail resistor

similar temperature changes in matched junctions largely cancel in the comparison, and unequal heating changes their balance

warming one transistor doubles the current in its collector load

At a given collector current, warming a transistor lowers the base-emitter voltage that it needs. Matched transistors warmed together change by similar amounts, so the input difference needed to balance them changes little. Unequal heating changes that difference more. Matching and a shared temperature improve the cancellation. So integrated pairs are made close together on one piece of silicon.

3\. Both inputs are tied together and raised by one volt. With a 1 kΩ resistor for a tail, the tail current…

stays the same, because the resistor sets it

falls towards zero as the emitters rise

rises by about a milliamp, because the emitters rise with the inputs and the voltage across the resistor grows

A resistor passes the voltage across it divided by its value. When both inputs rise, the emitters rise by the same amount. So the voltage across the 1 kΩ increases by a volt, and the current by a milliamp. The meter showed this. So Experiment 5 replaces the resistor with a circuit that holds its current constant.

## Before moving on

You added a second transistor to the comparator of Experiment 3 and gave it a reference input. With the reference at 1.67 V, the output rose between 1.74 V and 1.96 V of input. With the reference at 2.67 V, the rise started near 2.8 V. Under the heat gun, the single transistor of Experiment 3 moved 0.26 V. The pair showed no clear movement at the scale of Figure 4-7. Similar changes in the two junction voltages should largely cancel in the comparison.

Then you joined the inputs and found that the circuit responds to their common level. The output swung 2.4 V from a signal with no difference in it. The meter traced this to a tail current that rose from 0.39 mA to 1.36 mA.

The tail must keep its current almost constant as the emitter voltage changes, and a resistor cannot do that. [Experiment 5: The Current Mirror](https://fullstackelectronics.com/experiments/05-the-current-mirror.html.md) builds a current source from two transistors, fits it under the pair and repeats the common-mode test.
