---
title: "Charge injection"
description: "Why switching a MOSFET injects charge, how charge injection affects an autoranging shunt ammeter and its range selection, and how Joulescope instruments minimize it."
breadcrumb: "Theory"
url: "https://docs.joulescope.com/en/theory/charge_injection.html"
last_updated: "2026-11-28"
---

<a id="theory-charge-injection"></a>

# Charge injection

Zoom in on the moment a Joulescope changes current range and you may see a
brief spike that your target did not cause.  Part of it comes from *charge
injection*: the charge that a MOSFET pushes into the circuit it switches
every time it turns on or off.  This page explains why MOSFETs inject charge,
how that affects an autoranging ammeter, and how Joulescope instruments are
designed to minimize it.  The Theory of operation chapter of your
instrument’s user’s guide summarizes the effect, for example
[the JS320 User’s Guide](https://docs.joulescope.com/en/products/js320/guide/theory.md#js320-autoranging-errors).

<a id="theory-charge-injection-capacitor"></a>

## A MOSFET is a capacitor

A MOSFET’s gate is insulated from the rest of the device by a thin oxide
layer.  No DC current flows into the gate.  The gate connects to the
channel only through capacitance: the gate-to-source capacitance
*C<sub>GS</sub>* and the gate-to-drain capacitance *C<sub>GD</sub>*.  Together they
form the input capacitance that the gate driver sees:

$$
C_{ISS} = C_{GS} + C_{GD}
$$

Turning a MOSFET on means charging this capacitance to the drive voltage.
Turning it off means discharging it.  Because *C<sub>GD</sub>* changes with the
drain voltage, datasheets describe it more usefully as *gate charge*: the
total charge *Q<sub>G</sub>* needed to switch the MOSFET, split into
*Q<sub>GS</sub>* and *Q<sub>GD</sub>*.
[Fig. 11](#theory-charge-injection-gate-charge-figure) shows the typical
shape.  The gate voltage rises as the driver charges both capacitances,
then pauses at the *Miller plateau* while the drain voltage changes and
*C<sub>GD</sub>* charges, then rises again to the drive voltage.  Vishay
application note
[AN608A](https://www.vishay.com/docs/73217/an608a.pdf) explains the gate
charge curve in detail.

![Gate voltage versus gate charge rising to a flat Miller plateau, then rising again to the drive voltage](https://docs.joulescope.com/en/_images/theory_charge_injection_gate_charge.svg)

The gate charge curve of a MOSFET, illustrative.  The flat Miller plateau is
where the drain voltage changes and the gate-to-drain capacitance charges.

Capacitance comes with size.  For a given MOSFET technology, lower
on-resistance means a larger die, and a larger die has more capacitance and
more gate charge.
Choosing a MOSFET is always a trade-off between on-resistance and charge.

<a id="theory-charge-injection-what"></a>

## What charge injection is

The gate capacitances connect the gate to the drain and source, the circuit
that the MOSFET switches.  When the gate voltage swings, these capacitances
couple part of the gate charge into that circuit.  The charge has to go
somewhere, so it flows as a short current pulse through whatever is
connected to the drain and source, as shown in
[Fig. 12](#theory-charge-injection-pulse-figure).

![A gate voltage step with an RC rise, and below it a short current pulse whose area is the injected charge](https://docs.joulescope.com/en/_images/theory_charge_injection_pulse.svg)

A gate voltage step and the current pulse it injects through a 2 pF
coupling capacitance, illustrative.  The area of the pulse is the injected
charge, 10 pC.

The injected charge is approximately the coupling capacitance times the
gate voltage swing, *Q ≈ C ΔV*.  Most of the gate charge returns to the gate
driver through its own loop.  Only the part coupled into the measured path,
through the coupling capacitance *C*, appears as injected charge.  In a
switch that selects a shunt resistor, the drain-to-source voltage barely
changes, so the gate voltage swing dominates, not the Miller plateau.  The
pulse lasts about as long as the gate
takes to switch.  The same effect occurs in analog switches, multiplexers
and sample-and-hold circuits, whose datasheets specify it as charge
injection in pC.  Turning the MOSFET off injects charge of the opposite
polarity.

<a id="theory-charge-injection-ammeter"></a>

## Charge injection in an autoranging ammeter

An autoranging shunt ammeter switches shunt resistors with MOSFETs.  In a
Joulescope, a change of current range turns on the MOSFET for the new range
and turns off the MOSFET for the old one.  Each injects charge into the
shunt resistors and into the supply path of your target.

<a id="theory-charge-injection-size"></a>

### How large is it?

The injected charge is tiny, but it arrives in a very short time.  Take the
illustrative 10 pC of [Fig. 12](#theory-charge-injection-pulse-figure), injected
in about 100 ns.  It averages 100 µA over those 100 ns and peaks near 330 µA.
On an illustrative sensitive range with a full scale of 10 µA, that peak is
more than thirty times full scale.  The most sensitive ranges, the ones you
use for sleep current, are affected the most.

The charge itself is negligible in an average.  A target that sleeps at
2 µA consumes 2 µC every second, 200,000 times the injected charge.  Even
with a range change on every wake-up, charge injection barely changes the
average current, charge or energy of a measurement.  It matters for what you
see in the waveform, and for how the autoranger behaves.

<a id="theory-charge-injection-effects"></a>

### Two effects

Measurement artifact
: The injected charge flows through the shunt resistors, so the instrument
  measures it.  The instrument’s bandwidth spreads the short pulse in time
  and lowers its peak, so the spike you see is wider and smaller than the
  pulse itself; see [Sample rate and bandwidth](https://docs.joulescope.com/en/theory/bandwidth.md#theory-bandwidth-sample-rate).

Real disturbance
: A range change also changes the shunt resistance in series with your
  target.  The target’s bypass capacitors charge or discharge to the new
  voltage, which drives a real current through the instrument.  This effect
  is not charge injection, but it happens at the same moment.  See
  [the JS320 User’s Guide](https://docs.joulescope.com/en/products/js320/guide/theory.md#js320-autoranging-errors).

<a id="theory-charge-injection-autoranging"></a>

### Effects on range selection

An autoranger decides when to change range from the current it measures.
Charge injection is a current that the range change itself creates, so it
can mislead that decision:

* The spike can exceed the full scale of the new range.  If the autoranger
  treated it as real, it would switch again to a less sensitive range, whose
  larger MOSFET injects even more charge.  The autoranger could chase its own
  spikes, a behavior called *hunting*.
* Every range change costs injected charge and disturbs the target, so an
  autoranger should change range only when the current requires it.
* Large range jumps switch MOSFETs sized for larger currents.  Those have
  lower on-resistance, and therefore more capacitance, so they inject more
  charge.  Large jumps also change the shunt resistance the most, so they
  disturb the target the most.

<a id="theory-charge-injection-design"></a>

## How Joulescope minimizes it

Charge injection cannot be eliminated, but it can be made small and kept
from misleading the instrument.  Joulescope instruments use several
measures, which vary by model:

MOSFET selection
: The shunt-select MOSFETs are chosen for low charge relative to their
  on-resistance.  Charge injection is tested on every instrument at the
  factory.

Make-before-break switching
: The new range’s MOSFET turns on before the old one turns off, so your
  target never sees an open circuit, even for an instant.

Comparator lockout
: Dedicated comparators detect when the current exceeds the active range,
  much faster than the digital measurement.  Right after a range change, the
  instrument ignores them briefly, so its own spike cannot trigger another
  range change.

Settling and dwell time
: After a range change, the instrument waits for the measurement to settle
  before it trusts the new range.  It switches to a more sensitive range
  only after the current has stayed low for a while, so it does not switch
  back and forth.

Measuring through the transition (JS320)
: The JS320 measures the current on more than one range at the same time,
  so it continues to measure accurately while a range change settles.  Its
  [predicted current range](https://docs.joulescope.com/en/products/js320/guide/theory.md#js320-predicted-current-range) makes
  smaller range jumps, which switch smaller MOSFETs and change the shunt
  resistance less, so they inject less charge and disturb the target less.

Earlier models handle range changes differently.  See
[the JS320 User’s Guide](https://docs.joulescope.com/en/products/js320/guide/theory.md#js320-autoranging-models) for how the JS110,
JS220 and JS320 compare.

<a id="theory-charge-injection-practice"></a>

## What you see, and what to do

The injected pulse lasts a few hundred nanoseconds.  After the instrument’s
bandwidth, it appears as a short spike that lines up with a change in the
current range.  To confirm, show the **Current range** signal (`r`) in the
Joulescope UI **Oscilloscope** view along with the current.

Usually, no action is needed.  The charge is too small to affect averages,
charge or energy.  When a spike gets in the way, such as when you study the
waveform of a very small event:

* Limit autoranging to the ranges your target actually needs, with the
  current range limits in the **Device Control** widget.  Fewer and smaller
  range changes mean fewer and smaller spikes.  See
  [the JS320 User’s Guide](https://docs.joulescope.com/en/products/js320/guide/theory.md#js320-optimizing-for-accuracy).
* Set a fixed current range for the duration of the event, if a single range
  covers it.  A fixed range never switches, so it never injects charge, but
  currents above the range are not measured accurately.  See
  [the JS320 User’s Guide](https://docs.joulescope.com/en/products/js320/guide/theory.md#js320-isolating-events).
