A transistor can stay on briefly after its input falls. Put a Schottky diode between the base and collector of a 2N3904 switch and see whether the collector begins to rise sooner. Capture the circuit with the diode absent, installed and absent again. The same traces will show what you give up in the low output voltage.

Why can a transistor stay on after the drive falls?

An NPN bipolar junction transistor (BJT) has n-type emitter and collector regions with a p-type base between them. In this grounded-emitter switch, the base drive turns on collector current and pulls the collector down through the load. As the collector voltage drops below the base voltage, the base–collector junction starts to conduct. With enough base drive, both junctions are forward biased and the transistor is in saturation. Charge stored in the device can hold the collector near its low level after the input drive falls. The collector returns toward the supply after the transistor stops carrying most of the load current.

Connect an external Schottky diode with its anode at the base and banded cathode at the collector. When the base is sufficiently above the collector, the diode diverts some of the drive-resistor current into the collector node. This reduces heavy forward bias across the transistor's base–collector junction and can reduce the amount of charge held there. It also raises the collector's low voltage because the collector is held closer to the base. Measure the trade-off at the same drive and load. A shorter delay and a higher low level can be useful in one circuit and unacceptable in another.

The experiment uses the onsemi 2N3904BU, a through-hole TO-92 transistor, and Vishay BAT85S-TAP, a DO-35 axial diode with a cathode band. The 2N3904/D Rev. 3 data sheet lists pins 1 emitter, 2 base and 3 collector. For the straight-leaded TO-92 illustration, these run left to right with its flat marked face toward you and leads downward. Check that drawing before assembly. The Vishay data sheet lists a maximum forward drop of 0.32 V at 1 mA and 0.40 V at 10 mA under its test conditions. The clamp voltage in this circuit depends on the current that the diode actually diverts. The 2N3904's collector-to-emitter maximum rating is 40 V and the BAT85S reverse-voltage maximum is 30 V at the tabulated conditions. The fixture operates at about 3 V and a few milliamps to roughly 10 mA per branch.

Grounded-emitter 2N3904 with a 300-ohm collector load, three scope test points and an optional Schottky diode from base to collector. Constructed collector curves show an earlier rise and a higher low level with the clamp fitted.
Keep the same three scope connections while adding and removing the diode. The constructed curves illustrate the 1.50 V timing threshold and the higher clamped low level. The drawing omits the DHO804 power adapter and separate chassis earth lead; connect them as described before adding any input or output cables. Full-size PNG · Editable SVG

Wire the driver, load and three test points

Before connecting any input or output cables, connect the RIGOL DHO804's rear Ground Terminal to earth ground using the supplied ground cable, as required by the DHO800 User Guide. Its Type-C power input does not ground the instrument through the power cord. Use the supplied power adapter. Keep the AFG1022 and SPD3303X protective earth connections intact. The probe ground clips and any signal cable shields share G0 as described below; they do not replace this required chassis earth lead.

Use a short fixture on a soldered prototyping board or clean copper-ground strip. Build around one 2N3904BU. Put two short contacts beside the base and collector so the diode can be fitted without moving the probes. Use Vishay MRS25 1% resistors or equivalent measured 1.0 kΩ and 300 Ω parts. Fit a Vishay MKT1820410015 100 nF film bypass capacitor directly from the 3 V rail to the emitter reference G0.

ConnectionDestinationPurpose
Emitter, pin 1G0Common reference
Base, pin 2DRIVE through 1 kΩLimits drive current
Collector, pin 3+3.00 V through 300 ΩResistive load
Optional clampAnode to base, band to collectorDiverts excess drive
Scope tipsCH1 drive, CH2 base, CH3 collectorThree synchronous traces

Set the Siglent SPD3303X CH1 to independent output, 3.00 V and 20 mA current limit. Bond its negative output to G0. Connect the Tektronix AFG1022 CH1 BNC shell to G0 and its center to DRIVE, before the 1 kΩ resistor. First verify a 10 kHz, 50% duty square wave going from 0 V to 3 V with the generator's load display set to High Z. High Z changes the displayed voltage convention. The generator still has about 50 Ω source impedance. Check the actual connected voltage levels on CH1 and trim the generator near 0 V and 3.00 V if necessary. Leave its controls unchanged for the three records. Turn off both outputs before fitting or removing the diode.

Use three matched PVP2350 probes set to 10× at the probe and on a RIGOL DHO804. Set all three scope channels to direct-current (DC) coupling and full bandwidth, and keep the fourth analog channel unused. Put all three ground springs on G0. A scope probe ground on the base or collector would short that node to G0. Keep the probe leads and connections the same for all three stages. Before the runs, compare CH1 and CH3 on the same generator edge, using a separate 0–3 V common-edge node before attaching the two probes to the circuit. Use the two probes' observed skew as a bench check and correct the scope setup if the readings differ by more than about one 3.2 ns sample. Reattach the tips and leave their places fixed. Check zero and scale on the base and collector channels before subtracting their measured levels.

Estimate the current before applying drive

At a 3.00 V drive setting, a 0.80 V base level and 1 kΩ in series with the generator's nominal 50 Ω, the drive-resistor current is roughly (3.00 − 0.80) / 1050 Ω = 2.10 mA. In the actual trace, estimate that current using the measured voltage difference (VDRIVE − VB) divided by 1 kΩ. In the no-clamp circuit it is essentially the base current. With the diode fitted, it splits between the base and the Schottky branch.

The 300 Ω resistor supplies (3.00 V − VC) / 300 Ω. At a 0.20 V collector level, it supplies 9.33 mA and dissipates about 26 mW. In the open topology the implied collector-to-base current ratio is about 4.4 for these illustrative voltages. When the diode conducts, its current also enters the collector node, so the load-resistor current alone does not give the transistor's collector current. Even treating both paths as shorts to ground, each source is limited by its series resistor to approximately 10 mA and 3 mA, respectively at the stated settings.

The onsemi 200 ns maximum storage-time entry is at 3 V supply, 10 mA collector current and specified 1 mA forward and reverse base-drive magnitudes. Here the 0 V generator state discharges the base through 1 kΩ and the generator impedance. The measured timing also includes the collector load, node capacitance, probes and switching response. For scale, 300 Ω × 10 pF gives a 3 ns time constant for a simple resistive–capacitive node. The PVP2350 10× nominal input capacitance is 10 pF and the BAT85S capacitance table uses 1 V reverse bias and 1 MHz. Those values are only guides to fixture sensitivity. Use the method below to observe the complete switch, with no claim to reproduce the transistor's specified storage-time test.

Capture open, clamped and open again

  1. Start with the short clamp contacts empty. Use a falling Edge trigger on CH1 DRIVE near 1.50 V in Normal trigger mode. First verify the full drive pulse, a settled low collector and the full collector return around the 10 kHz cycle. Zoom to one falling edge, starting around 200 ns/div, with at least 200 ns before the crossing and 1000 ns after it. Aim for a 2–3 µs raw window. Leave sample acquisition in Normal, without averaging or interpolation of exported points.
  2. Use Storage → Save → Choose → Save Wave and choose Memory and comma-separated values (CSV). Keep the original exports. With three active DHO804 inputs, the maximum specified real-time sample rate is 312.5 MSa/s, equivalent to about 3.2 ns per sample. Verify the actual CSV time spacing is 4 ns or less throughout. If a front-panel setting yields a coarser capture, adjust the timebase or memory depth and capture again.
  3. Save the first single-edge record with the two contacts open. Disable both outputs, fit the Schottky with cathode band facing the collector, and use the same settings and probe fixtures for the clamped record. Disable both outputs again, remove the diode, and take a third record to check that the original timing returns. If the supply is in current limit or the circuit gets visibly different drive levels, correct the setup and take all three records again.
  4. Make a CSV copy of each record with the header from the normalization template. Use one time column in seconds followed by CH1 DRIVE, CH2 BASE and CH3 COLLECTOR in volts. Keep the simultaneous rows and numeric sample values. Remove instrument header/unit rows and crop to a contiguous window with exactly one falling drive edge. If needed, subtract one common constant from the time column so that its times are within ±10 ms of zero. Keep spacing intact. Preserve the original voltage samples and relative timestamps through copying and cropping.

Compare two definitions of the same turn-off event

For each capture, set time zero at the falling 1.50 V drive crossing. Take median pre-edge and post-edge plateaus from −200 to −80 ns and +850 to +1000 ns. Measure the collector's rise through the same fixed 1.50 V in all three captures. Separately measure the time to reach 20% of the rise from each capture's own collector low to its high. A shifted collector low changes the relative threshold, so both timing comparisons must show the effect. The program interpolates each crossing between two samples. The displayed tenths of a nanosecond are computational digits. Actual resolution depends on sample spacing, noise, channel skew and the waveform shape.

The program checks that the drive levels, its 90–10% fall time and the collector high level agree across the three captures. It requires single crossings of the relevant thresholds, and a steady collector plateau before the edge and after the return. The unclamped base must be at least 0.52 V above its collector before the edge. With the diode added, that gap must be 0.18–0.47 V, at least 0.12 V lower than either open measurement, and the collector low must rise by at least 0.12 V. The restored open delay must agree within 15 ns or 10% of the open-run average, whichever is larger. At both timing thresholds the clamp must beat both open captures by at least 20 ns or 20% of their average, whichever is larger. These are screening criteria for this fixture.

The included constructed records give the following values. A real transistor, fixture or drive edge may produce smaller contrast or an unresolved comparison.

CaptureCollector low (V)Base − collector (V)Delay at 20% (ns)Delay at 1.50 V (ns)
Open0.100+0.680224.1243.8
Clamped0.440+0.36055.566.6
Restored0.110+0.670232.1251.7

If the collector low rises so far that it fails the receiving circuit's specified low threshold, a shorter delay will not fix the logic-level problem. If you cannot reproduce the original open timing, look for a touched probe, changed sample interval or unstable drive. If one threshold moves and the other does not, report the timing comparison as unresolved. These curves and test records are synthetic. Actual switching performance still has to be measured.

Run the complete analyzer

Python 3.9 or later and its standard library are sufficient. Download the analyzer, tests, editable figure, worksheet and constructed captures. Exit 0 means both timing comparisons passed along with the fixture controls. Exit 1 means the full run is unresolved, including any stage lines printed before the failure. Exit 2 indicates malformed input or invalid command syntax.

python3 clamped_switch.py open.csv clamp.csv restore.csv
python3 clamped_switch.py synthetic/open.csv synthetic/clamp.csv synthetic/restore.csv
python3 -m unittest -v test_clamped_switch
"""Compare three captured turn-off windows with a fixed and a relative threshold."""
import argparse
import csv
import hashlib
import math
import statistics
import struct
from dataclasses import dataclass
from pathlib import Path

HEADER = ("time_s", "drive_v", "base_v", "collector_v")
MAX_BYTES = 1_000_000
MAX_ROWS = 12_000
TIME_ROUND_NS = 1e-6
VOLT_ROUND = 1e-10


class BadInput(ValueError):
    pass


class Unresolved(ValueError):
    pass


@dataclass(frozen=True)
class Edge:
    time_ns: float
    drive_v: float
    drive_low_v: float
    base_v: float
    collector_low_v: float
    collector_high_v: float
    relative_delay_ns: float
    fixed_delay_ns: float

    @property
    def vbc(self):
        return self.base_v - self.collector_low_v


def in_range(value, low, high, label, tolerance=VOLT_ROUND):
    if value < low - tolerance or value > high + tolerance:
        raise Unresolved(f"{label} is {value:.6g}; expected {low:g} to {high:g}")
    return value


def load(path):
    try:
        if path.stat().st_size > MAX_BYTES:
            raise BadInput("CSV exceeds byte budget")
        with path.open(encoding="utf-8-sig", newline="") as handle:
            reader = csv.reader(handle, strict=True)
            if tuple(next(reader, ())) != HEADER:
                raise BadInput("header must be " + ",".join(HEADER))
            rows = []
            digest = hashlib.sha256()
            for line, row in enumerate(reader, 2):
                if line > MAX_ROWS + 1:
                    raise BadInput("CSV exceeds row budget")
                if len(row) != len(HEADER):
                    raise BadInput(f"row {line}: expected four columns")
                try:
                    values = tuple(float(text) for text in row)
                except ValueError as error:
                    raise BadInput(f"row {line}: expected numeric values") from error
                if not all(map(math.isfinite, values)):
                    raise BadInput(f"row {line}: samples must be finite")
                if rows and values[0] <= rows[-1][0]:
                    raise BadInput(f"row {line}: time must be strictly increasing")
                rows.append(values)
                digest.update(struct.pack(">4d", *(v if v else 0.0 for v in values)))
    except (OSError, UnicodeError, csv.Error) as error:
        raise BadInput(str(error)) from error
    if len(rows) < 100:
        raise Unresolved("capture needs at least 100 samples")
    return rows, digest.hexdigest()


def crossing(times, signal, threshold, rising, label):
    hits = []
    for t0, t1, v0, v1 in zip(times, times[1:], signal, signal[1:]):
        passed = v0 < threshold <= v1 if rising else v1 <= threshold < v0
        if passed:
            hits.append(t0 + (t1 - t0) * (threshold - v0) / (v1 - v0))
    if len(hits) != 1:
        raise Unresolved(f"{label}: threshold missing or recrossed ({len(hits)} expected-direction crossings)")
    return hits[0]


def plateau(times, signal, low, high, label, spread):
    values = [v for t, v in zip(times, signal) if low <= t <= high]
    if len(values) < 15:
        raise Unresolved(f"{label}: insufficient plateau coverage")
    in_range(max(values) - min(values), 0, spread, label + " plateau spread")
    return statistics.median(values)


def measure(rows):
    ts, drive, base, collector = zip(*rows)
    if any(abs(t) > .01 for t in ts):
        raise Unresolved("timestamp origin exceeds ±10 ms; align copy by one constant only")
    time = [(t - ts[0]) * 1e9 for t in ts]
    in_range(time[-1], 1000, 5000, "capture span (ns)", TIME_ROUND_NS)
    in_range(max(b - a for a, b in zip(time, time[1:])), 0, 4, "sample gap (ns)", TIME_ROUND_NS)
    for signal, low, high, label in ((drive, -.20, 3.35, "drive"),
                                     (base, -.20, 1.15, "base"),
                                     (collector, -.20, 3.35, "collector")):
        in_range(min(signal), low, high, label + " raw voltage minimum")
        in_range(max(signal), low, high, label + " raw voltage maximum")

    edge = crossing(time, drive, 1.50, False, "falling drive 1.50 V")
    time = [t - edge for t in time]
    if time[0] > -200 + TIME_ROUND_NS or time[-1] < 1000 - TIME_ROUND_NS:
        raise Unresolved("coverage: keep samples from −200 ns to +1000 ns around the drive fall")
    dh = plateau(time, drive, -200, -80, "drive high", .08)
    dl = plateau(time, drive, 850, 1000, "drive low", .08)
    bh = plateau(time, base, -200, -80, "base high", .06)
    bl = plateau(time, base, 850, 1000, "base low", .07)
    cl = plateau(time, collector, -200, -80, "collector low", .06)
    ch = plateau(time, collector, 850, 1000, "collector high", .08)
    for value, low, high, label in ((dh, 2.88, 3.12, "drive high"),
                                    (dl, -.08, .10, "drive low"),
                                    (bh, .60, .95, "base high"),
                                    (bl, -.10, .13, "base low"),
                                    (cl, -.03, .65, "collector low"),
                                    (ch, 2.88, 3.12, "collector high")):
        in_range(value, low, high, label)

    d90 = crossing(time, drive, dl + .90 * (dh - dl), False, "falling drive 90%")
    d10 = crossing(time, drive, dl + .10 * (dh - dl), False, "falling drive 10%")
    in_range(d10 - d90, 1, 60, "drive 90–10% fall (ns)", TIME_ROUND_NS)
    relative = crossing(time, collector, cl + .20 * (ch - cl), True, "rising collector 20%")
    fixed = crossing(time, collector, 1.50, True, "rising collector 1.50 V")
    upper = crossing(time, collector, cl + .80 * (ch - cl), True, "rising collector 80%")
    in_range(relative, 0, 750, "collector 20% delay (ns)", TIME_ROUND_NS)
    in_range(fixed - relative, 0, 400, "collector 20% to fixed threshold (ns)", TIME_ROUND_NS)
    in_range(upper - fixed, 0, 400, "collector fixed threshold to 80% (ns)", TIME_ROUND_NS)
    in_range(upper, 0, 830, "collector 80% delay (ns)", TIME_ROUND_NS)
    return Edge(d10 - d90, dh, dl, bh, cl, ch, relative, fixed)


def compare(first, clamp, restored):
    for item in (first, restored):
        in_range(item.vbc, .52, .94, "open-stage base–collector plateau (V)")
        in_range(item.collector_low_v, -.03, .30, "open-stage collector low (V)")
    in_range(clamp.vbc, .18, .47, "clamp base–collector plateau (V)")
    for measure_name, tolerance in (("drive_v", .08), ("drive_low_v", .05), ("collector_high_v", .08)):
        values = [getattr(item, measure_name) for item in (first, clamp, restored)]
        in_range(max(values) - min(values), 0, tolerance, measure_name + " between captures (V)")
    in_range(max(item.time_ns for item in (first, clamp, restored)) -
             min(item.time_ns for item in (first, clamp, restored)),
             0, 10, "drive fall spread (ns)", TIME_ROUND_NS)
    for measure_name in ("base_v", "collector_low_v"):
        delta = abs(getattr(first, measure_name) - getattr(restored, measure_name))
        in_range(delta, 0, .055, "restore " + measure_name + " (V)")
    in_range(clamp.collector_low_v - max(first.collector_low_v, restored.collector_low_v),
             .12, .68, "clamp collector-low cost (V)")
    in_range(min(first.vbc, restored.vbc) - clamp.vbc, .12, .80, "base–collector reduction (V)")

    facts = []
    for attr in ("relative_delay_ns", "fixed_delay_ns"):
        a, b, c = (getattr(item, attr) for item in (first, clamp, restored))
        center = (a + c) / 2
        if abs(a - c) > max(15, .10 * center) + TIME_ROUND_NS:
            raise Unresolved(f"restore timing differs for {attr}")
        improvement = min(a, c) - b
        if improvement < max(20, .20 * center) - TIME_ROUND_NS:
            raise Unresolved(f"clamp is not clearly shorter at {attr}")
        facts.append(improvement)
    return facts


def main():
    parser = argparse.ArgumentParser(description=__doc__)
    for name in ("open", "clamp", "restore"):
        parser.add_argument(name, type=Path, metavar=name + ".csv")
    args = parser.parse_args()
    try:
        data = [load(path) for path in (args.open, args.clamp, args.restore)]
        if len({key for _, key in data}) != 3:
            raise BadInput("duplicate parsed capture; take three fresh records")
        edges = []
        for name, (rows, _) in zip(("open", "clamp", "restore"), data):
            try:
                edge = measure(rows)
            except Unresolved as error:
                raise Unresolved(f"{name}: {error}") from error
            edges.append(edge)
            print(f"{name:7} | VCL {edge.collector_low_v:.3f} V | "
                  f"VBC {edge.vbc:+.3f} V | collector delay at 20% {edge.relative_delay_ns:.1f} ns | "
                  f"at 1.50 V {edge.fixed_delay_ns:.1f} ns")
        relative, fixed = compare(*edges)
    except BadInput as error:
        parser.exit(2, f"INPUT: {error}\n")
    except Unresolved as error:
        parser.exit(1, f"UNRESOLVED: {error}\n")
    print(f"PASS: clamp reduced both measured delays by at least "
          f"{relative:.1f} ns (20%) and {fixed:.1f} ns (1.50 V); collector low rose.")
    return 0


if __name__ == "__main__":
    raise SystemExit(main())

Check the low-level cost

The same receiver accepts a logic low up to 0.35 V. Your unclamped collector reads 0.12 V and the clamp raises it to 0.43 V. Can you use the faster clamped edge for that receiver?

Show the answer

The clamped level is outside the receiver’s low-input limit. It exceeds 0.35 V by 0.08 V, so this clamp setup does not qualify for that input even if it switches sooner. Keep the logic margin and timing results together when evaluating the change.

Primary sources and related bench work