Bringup
Open the editor
SPICE subcircuitLM358DRlm358

LM358 (dual op-amp)

Dual bipolar op-amp for single supplies 3–32 V: input range and output down to ground, output up to about V+ − 2 V. Macromodel with GBW 0.7 MHz, slew rate 0.3 V/µs, gain 100 dB. Pinout as in the datasheet.

IN1+IN1−IN2+IN2−OUT1OUT2V+V−LM358DR
Schematic symbol

Key data

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

Notes

Two-stage macromodel per amplifier: the input stage saturates (slew rate), the gain stage has one dominant pole (gain-bandwidth product and open-loop gain from the datasheet), the output is clamped at the swing limits of the datasheet and has an output resistance. Input offset, bias currents, noise and the output current limit are not modelled.

  • The bandwidth falls with the gain: a gain of 10 leaves about a tenth of the gain-bandwidth product. Large fast steps are limited by the slew rate.
  • The output reaches only about V+ − 2 V: for a full swing to the supply use a rail-to-rail type such as the MCP6002.

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
E1m m1 4 8 4 0.5
R1in 3 2 10000000
E1a s1 m1 3 2 {2*PI*GBW*5/SR}
R1s s1 t1 1k
D1h t1 th1 DOPCL
V1h th1 m1 DC 4.965
D1l tl1 t1 DOPCL
V1l m1 tl1 DC 4.965
G1 m1 a1 t1 m1 {SR/5000000000}
R11 a1 m1 {AOL/((2*PI*GBW*5/SR)*(SR/5000000000))}
C11 a1 m1 1n
D1vh a1 hc1 DOPCL
V1vh 8 hc1 DC 2.035
D1vl lc1 a1 DOPCL
V1vl lc1 4 DC 0.04
E1o ob1 4 a1 4 1
R1o ob1 1 10
E2m m2 4 8 4 0.5
R2in 5 6 10000000
E2a s2 m2 5 6 {2*PI*GBW*5/SR}
R2s s2 t2 1k
D2h t2 th2 DOPCL
V2h th2 m2 DC 4.965
D2l tl2 t2 DOPCL
V2l m2 tl2 DC 4.965
G2 m2 a2 t2 m2 {SR/5000000000}
R21 a2 m2 {AOL/((2*PI*GBW*5/SR)*(SR/5000000000))}
C21 a2 m2 1n
D2vh a2 hc2 DOPCL
V2vh 8 hc2 DC 2.035
D2vl lc2 a2 DOPCL
V2vl lc2 4 DC 0.04
E2o ob2 4 a2 4 1
R2o ob2 7 10
RQ 8 4 7143
.model DOPCL D(IS=1e-15 N=0.05)

Pins 8

PinNameUse
3IN1+Input pinAmplifier 1 non-inverting input
2IN1−Input pinAmplifier 1 inverting input: feedback from OUT1 sets the gain
5IN2+Input pinAmplifier 2 non-inverting input
6IN2−Input pinAmplifier 2 inverting input: feedback from OUT2 sets the gain
1OUT1Output pinAmplifier 1 output
7OUT2Output pinAmplifier 2 output
8V+Supply pinPositive supply: 100 nF to GND close to the pin
4V−Ground pinNegative supply or GND (single supply)

Parameters 3

Gain-bandwidth productGBW
Default700000 Hz
Slew rateSR
Default300000 V/s
Open-loop gainAOL
Default100000 V/V

PCB

Verified land patternSOIC-8_3.9x4.9mm_P1.27mm