# Isolated Amplifier with Shunt (`isolatedAmplifier`)

> A shunt resistor and amplifier whose reading crosses an isolation barrier.

![isolatedAmplifier](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/img/isolatedAmplifier.svg)

[Component reference](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/) · [繁體中文](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/ic/isolatedAmplifier/)

**Group:** ICs · **Kind:** `{"definition":"isolatedAmplifier","kind":"subsystem"}`

## When to use it

Use it to measure current on a high-voltage node, such as a motor phase, and pass the reading to a controller. Use Shunt Amplifier with Shunt when no isolation is needed.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `IPP` | electrical | Primary current in, positive reading |
| `IPN` | electrical | Primary current out |
| `OUTP` | electrical | Positive output, read as OUTP minus OUTN |
| `OUTN` | electrical | Negative output, sits above GND2 |
| `GND2` | electrical | Ground reference of the output side |

## Common parameters

- `rSense`: The shunt resistor between IPP and IPN (your choice, not part of the IC) (Default: 0.01)
- `gain`: Nominal gain (Default: 8.2)
- `bw`: Output bandwidth: the single pole of the response (Default: 210000)
- `clip`: Clipping differential output voltage: the output is limited to plus and minus this (Default: 2.49)
- `noise`: RMS output noise; 0 = a noiseless amplifier (Default: 0)

## Parameters

| Key | Unit | Default | Typical range | Description | Datasheet source |
|---|---|---|---|---|---|
| `rSense` | Ω | 0.01 | 1u – 10 Ω | The shunt resistor between IPP and IPN (your choice, not part of the IC) | assumption |
| `gain` | V/V | 8.2 | 1 – 100 V/V | Nominal gain | Section 6.9 nominal gain, p.9 |
| `gainErr` | — | 0 | -100m – 100m | Gain error as a fraction (typically +/-0.05 %; 0 = nominal) | Section 6.9 EG typ +/-0.05 %, p.9 (set to 0 here) |
| `bw` | Hz | 210000 | 1k – 100meg Hz | Output bandwidth: the single pole of the response | Section 6.9 BW typ, p.9 |
| `vos` | V | 0.00005 | -1m – 1m V | Input offset voltage (the datasheet gives it as +/-) | Section 6.9 VOS typ +/-0.05 mV, p.9 |
| `clip` | V | 2.49 | 100m – 5 V | Clipping differential output voltage: the output is limited to plus and minus this | Section 6.9 VCLIPout typ +/-2.49 V, p.9 |
| `vcm` | V | 1.44 | 0 – 5 V | Common-mode output voltage (the output pins sit this far above GND2) | Section 6.9 VCMout typ, p.9 |
| `rIn` | Ω | 22000 | 1k – 1g Ω | Differential input resistance, across the shunt | Section 6.9 RIND typ, p.9 |
| `tDelay` | s | 0.000001075 | 0 – 1m s | Signal delay ahead of the bandwidth pole: with the pole, a step reaches 50 % this plus ln 2 / (2 pi bw) late | Section 6.10 VINx to VOUTx signal delay (50 % - 50 %, unfiltered output) typ 1.6 us (max 2.6 us), p.10, less the pole's own 50 % time ln 2 / (2 pi 210 kHz) = 0.525 us (derived) |
| `noise` | V | 0 | 0 – 1 V | RMS output noise; 0 = a noiseless amplifier | Section 6.9 output noise typ 220 uV rms with a 100 kHz brickwall filter, p.9 (set to simulate) |
| `seed` | — | 1 | 0 – 9007t | Whole-number seed of the noise | model parameter |
| `vIowm` | V | 1500 | 0 – 100k V | Isolation working voltage (DC, peak): the largest voltage across the barrier the part is rated for (0: not set, no check) | Section 6.6 VIOWM at DC voltage 1500 VDC (1000 VRMS at AC sine; VIORM 1500 VPK), p.7 |

_Parameter descriptions are in English in both languages._

## Model

The primary path is the shunt rSense in series with a current meter, with the input resistance rIn across it. The differential output V(OUTP) - V(OUTN) is gain * (1 + gainErr) * (rSense * i + vos), then a first-order low-pass at bw, then seeded Gaussian noise of noise volts rms, then a limit to plus or minus clip. V(OUTN) sits at vcm above GND2. The isolation barrier, the common-mode transient immunity and the fail-safe output are not modelled.

## Common mistakes

- Read the output as the difference between OUTP and OUTN, not against ground. Each pin sits near 1.44 V, so a single-ended reading is wrong by that level.
- The output clips at plus or minus 2.49 V, which is an input of about 0.3 V. The input range is only plus or minus 250 mV, so choose rSense so that the peak current stays below it.
- Connect GND2 to the controller ground, and keep a ground in the primary-side circuit as well. Keep the step below about a tenth of the response time, which is about 0.8 us at 210 kHz.
- The noise is 0 by default. Set 220u to see the datasheet noise, and use another seed for another noise.

Problems rules: `step.too_large`, `param.out_of_range`

## Datasheet and sources

gain is the nominal gain (8.2 V/V), bw is the output bandwidth, and vos is the typical input offset. gainErr is the gain error as a fraction. clip is the clipping differential output voltage, vcm is the common-mode output voltage, rIn is the differential input resistance, and noise is the output noise. rSense is your design value. Pass them to ic.fromSpec with the isolatedAmplifier template and rename the pins to the datasheet names.

## Example

Open the example with the command `file.openExample` and the name `demo:isolatedAmplifier`.

---
Generated by `cargo xtask reference` from the usage texts and parameter specs. Do not edit by hand.
