deckle studio
Open the editor
SPICE subcircuitINA240A1DRina240

INA240 (current-sense amplifier, PWM rejection, −4…80 V)

TI INA240: measures the voltage across a shunt at a common mode of −4 V to 80 V with enhanced PWM rejection (inline motor phase or low-side shunt), fixed gain A1 20, A2 50, A3 100, A4 200 V/V, 400 kHz. OUT = gain × (IN+ − IN−) + (REF1 + REF2)/2: REF1 to VS and REF2 to GND gives a bidirectional output around VS/2 (with 3.3 V supply: 1.65 V ± 1.6 V, e.g. ±82 A on 1 mΩ with A1, ±33 A with A2). VS 2.7–5.5 V with 100 nF.

IN+IN−REF1REF2OUTVSGNDINA240A1DR
Schematic symbol

Key data

Category
ICs
Simulation model
SPICE subcircuit
Manufacturer part number
INA240A1DR
Reference prefix
U
Pins
7
Land pattern
SOIC-8_3.9x4.9mm_P1.27mm

Simulation model

The part is a small SPICE netlist (below), solved by the analog engine together with the rest of the circuit. Pin ids are the node names, {braces} are parameters.

SPICE netlist
RR1 7 r 100k
RR2 r 3 100k
E1 x r 8 1 {gain}
Ep pa 6 x 6 1
Vbp p pa DC 0.02977
Dp p o DCL
En na 2 x 2 1
Vbn na n DC 0.02977
Dn o n DCL
R1 o 5 10
C1 5 2 39.8n
D1 5 6 DCL
D2 2 5 DCL
Rin 8 1 10meg
.model DCL D(IS=1e-15 N=0.05)

Pins 7

PinNameUse
8IN+Analog pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
1IN−Analog pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
7REF1Analog pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
3REF2Analog pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
5OUTOutput pinLogic output: drives the next input; do not tie outputs together
6VSSupply pinSupply input: decouple with 100 nF close to the pin
2GNDGround pinGround

Parameters 1

Gain (V/V)gain
Default20
2050100200

Fixed by the part number: INA240A1 20 V/V, A2 50 V/V, A3 100 V/V, A4 200 V/V

PCB

Verified land patternSOIC-8_3.9x4.9mm_P1.27mm
PackageLand patternStatusSource
SOIC-8 (D) · INA240A1DRSOIC-8_3.9x4.9mm_P1.27mmVerified land patternKiCad Package_SO:SOIC-8_3.9x4.9mm_P1.27mm; TI SBOS662C Table 6-1 (D): 1 IN−, 2 GND, 3 REF2, 4 NC, 5 OUT, 6 VS, 7 REF1, 8 IN+