diff --git a/ltspice/current source/ad8615.cir b/ltspice/current source/ad8615.cir new file mode 100644 index 0000000..722f715 --- /dev/null +++ b/ltspice/current source/ad8615.cir @@ -0,0 +1,121 @@ +* AD8615 SPICE Macro-model +* Description: Amplifier +* Generic Desc: 2.7/5V, CMOS, OP, Fast, RRIO, 1X +* Developed by: VW ADSJ +* Revision History: 08/10/2012 - Updated to new header style +* 2.0 (02/2010) +* Copyright 2010, 2012 by Analog Devices +* +* Refer to http://www.analog.com/Analog_Root/static/techSupport/designTools/spiceModels/license/spice_general.html for License Statement. Use of this model +* indicates your acceptance of the terms and provisions in the License Statement. +* +* BEGIN Notes: VSY=5V, T=25°C +* +* Not Modeled: +* +* Parameters modeled include: +* +* END Notes +* +* Node Assignments +* noninverting input +* | inverting input +* | | positive supply +* | | | negative supply +* | | | | output +* | | | | | +* | | | | | +.SUBCKT AD8615 1 2 99 50 45 +* +* INPUT STAGE +* +M1 4 7 8 8 PIX L=1E-6 W=3.64E-04 +M2 6 2 8 8 PIX L=1E-6 W=3.64E-04 +M3 14 7 18 18 NIX L=1E-6 W=1.44E-04 +M4 16 2 18 18 NIX L=1E-6 W=1.44E-04 +RD1 4 50 1.33E+04 +RD2 6 50 1.33E+04 +RD3 99 14 1.33E+04 +RD4 99 16 1.33E+04 +C1 4 6 5.95E-14 +C2 14 16 5.95E-14 +I1 99 8 3.65E-05 +I2 18 50 3.65E-05 +V1 99 9 -1.087E+01 +V2 19 50 1.280E-01 +D1 8 9 DX +D2 19 18 DX +EOS 7 1 POLY(4) (73,98) (22,98) (81,98) (83,98) 2.30E-05 1 1 1 1 +IOS 1 2 5.00E-14 +* +*CMRR +* +E1 72 98 POLY(2) (1,98) (2,98) 0 1.507E-03 1.507E-03 +R10 72 73 1.061E+01 +R20 73 98 8.842E-02 +C10 72 73 1.00E-06 +* +* PSRR +* +EPSY 21 98 POLY(1) (99,50) -0.3750E+00 0.750E-01 +RPS1 21 22 7.9577E+00 +RPS2 22 98 1.061E-02 +CPS1 21 22 1.00E-06 +* +* VOLTAGE NOISE +* +VN1 80 98 0 +RN1 80 98 16.45E-3 +HN 81 98 VN1 4.3E+00 +RN2 81 98 1 +* +* FLICKER NOISE +* +DFN 82 98 DNOISE +VFN 82 98 DC 0.6551 +HFN 83 98 POLY(1) VFN 1.00E-03 1.00E+00 +RFN 83 98 1 +* +* INTERNAL VOLTAGE REFERENCE +* +EREF 98 0 POLY(2) (99,0) (50,0) 0 0.5 0.5 +GSY 99 50 POLY(1) (99,50) 8.786E-04 1.33E-05 +EVP 97 98 (99,50) 0.5 +EVN 51 98 (50,99) 0.5 +* +* GAIN STAGE +* +G1 98 30 POLY(2) (4,6) (14,16) 0 3.710E-03 3.710E-03 +R1 30 98 1.00E+06 +RZ 45 31 5.321E+01 +CF 30 31 2.975E-10 +V3 32 30 1.50E+00 +V4 30 33 1.08E+00 +D3 32 97 DX +D4 51 33 DX +* +* OUTPUT STAGE +* +M5 45 46 99 99 POX L=1E-6 W=1.48E-03 +M6 45 47 50 50 NOX L=1E-6 W=9.26E-03 +EG1 99 46 POLY(1) (98,30) 8.250E-01 1 +EG2 47 50 POLY(1) (30,98) 7.000E-01 1 + +* +* MODELS +* +.MODEL POX PMOS (LEVEL=2,KP=4.00E-05,VTO=-0.7,LAMBDA=0.047,RD=0) +.MODEL NOX NMOS (LEVEL=2,KP=1.00E-05,VTO=+0.6,LAMBDA=0.022,RD=0) +.MODEL PIX PMOS (LEVEL=2,KP=1.50E-05,VTO=-0.5,LAMBDA=0.047) +.MODEL NIX NMOS (LEVEL=2,KP=4.00E-05,VTO=0.5,LAMBDA=0.022) +.MODEL DX D(IS=1E-14,RS=0.1) +.MODEL DNOISE D(IS=1E-14,RS=0,KF=4.83E-11) +*.MODEL DNOISE D(IS=1E-14,RS=0,KF=3.43E-11) +* +* +.ENDS + + + + + diff --git a/ltspice/current source/current_source.asc b/ltspice/current source/current_source.asc new file mode 100644 index 0000000..1b59aa6 --- /dev/null +++ b/ltspice/current source/current_source.asc @@ -0,0 +1,65 @@ +Version 4 +SHEET 1 880 680 +WIRE 576 -304 384 -304 +WIRE 384 -256 384 -304 +WIRE 576 -256 576 -304 +WIRE 192 -224 96 -224 +WIRE 256 -224 192 -224 +WIRE 192 -192 192 -224 +WIRE 384 -112 384 -176 +WIRE 192 -80 144 -80 +WIRE 320 -64 256 -64 +WIRE 112 -48 80 -48 +WIRE 192 -48 112 -48 +WIRE 80 0 80 -48 +WIRE 144 16 144 -80 +WIRE 384 16 384 -16 +WIRE 384 16 144 16 +WIRE 384 48 384 16 +WIRE 80 112 80 80 +WIRE 384 160 384 128 +WIRE 576 160 576 -176 +WIRE 576 160 384 160 +WIRE 80 208 80 192 +WIRE 384 208 384 160 +FLAG 80 208 0 +FLAG 384 208 0 +FLAG 224 -96 V+ +FLAG 224 -32 V- +FLAG 256 -304 V+ +FLAG 96 -144 V- +FLAG 192 -192 0 +FLAG 112 -48 IN +SYMBOL res 368 32 R0 +SYMATTR InstName R1 +SYMATTR Value 10 +SYMBOL res 368 -272 R0 +SYMATTR InstName R2 +SYMATTR Value 100 +SYMBOL npn 320 -112 R0 +SYMATTR InstName Q1 +SYMATTR Value 2N3904 +SYMBOL voltage 80 -16 R0 +WINDOW 3 24 44 Left 2 +WINDOW 123 24 72 Left 2 +WINDOW 39 0 0 Left 2 +SYMATTR InstName V1 +SYMATTR Value SINE(0 100m 500) +SYMBOL voltage 576 -272 R0 +SYMATTR InstName V2 +SYMATTR Value 5 +SYMBOL Opamps\\AD8552 224 -128 R0 +SYMATTR InstName U1 +SYMBOL voltage 256 -320 R0 +SYMATTR InstName V3 +SYMATTR Value 10 +SYMBOL voltage 96 -240 R0 +SYMATTR InstName V4 +SYMATTR Value 10 +SYMBOL voltage 80 96 R0 +WINDOW 3 24 44 Left 2 +WINDOW 123 0 0 Left 2 +WINDOW 39 0 0 Left 2 +SYMATTR InstName V5 +SYMATTR Value 1 +TEXT 32 296 Left 2 !.tran 0 10ms 0 100us diff --git a/ltspice/current source/current_source.net b/ltspice/current source/current_source.net new file mode 100644 index 0000000..cf0e0db --- /dev/null +++ b/ltspice/current source/current_source.net @@ -0,0 +1,20 @@ +* C:\Users\elmar\Desktop\UU\UppSense\ltspice\current source\current_source.asc +R1 N003 0 50 +R2 N001 N002 {R} +Q1 N002 N004 N003 0 2N3904 +V1 IN N005 1.5 +V2 N001 0 5 +V3 V+ 0 10 +V4 0 V- 10 +V5 N005 0 0 +XU1 IN N003 V+ V- N004 AD8615 +.model NPN NPN +.model PNP PNP +.lib C:\Users\elmar\OneDrive\Documents\LTspiceXVII\lib\cmp\standard.bjt +;tran 0 10ms 0 100us +.include ad8615.cir +.op 1 +.step param R 50 200 1 +.op +.backanno +.end diff --git a/ltspice/current source/current_source.raw b/ltspice/current source/current_source.raw new file mode 100644 index 0000000..dc7e148 Binary files /dev/null and b/ltspice/current source/current_source.raw differ diff --git a/ltspice/current source/pwm_output.png b/ltspice/current source/pwm_output.png new file mode 100644 index 0000000..c4457b3 Binary files /dev/null and b/ltspice/current source/pwm_output.png differ diff --git a/ltspice/current source/schematic_1.png b/ltspice/current source/schematic_1.png new file mode 100644 index 0000000..4420146 Binary files /dev/null and b/ltspice/current source/schematic_1.png differ diff --git a/ltspice/current source/sine_output.png b/ltspice/current source/sine_output.png new file mode 100644 index 0000000..249cd3e Binary files /dev/null and b/ltspice/current source/sine_output.png differ