* Z:\home\khalils\Downloads\files\data\raw_asc\14a467dfa004_CCS.asc
* Generated by LTspice 26.0.1 for Windows.
V1 DAC 0 PULSE(0 2 1m 100m 1m 1m)
V2 N001 0 2048m
M1 N004 N005 N007 N007 IRFH7914
R1 N007 0 100m
V3 N004 0 12 Rser=0.1
XU1 N002 N006 VCC 0 N003 AD8031 ;pnba In+)In-)V+)V-)OUT
R2 N005 N003 100
V4 VCC 0 5
R3 N002 DAC 15k
C1 N003 N006 100p
R4 N003 N002 10Meg
R5 N006 N010 15k
XU2 N008 N011 VCC 0 N010 AD8031 ;pnba In+)In-)V+)V-)OUT
R6 N007 N008 15k
R7 N010 N011 190k
R9 0 N011 10k
R8 N010 N009 1k
C2 N009 0 1n
R10 N010 N011 11
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
* +
* +
.tran 110m
* 1A: Vshunt = 100mV\nVdac_max: 2V\nV=20\nR1: 10k\nR2:190k
* R1
* R2
* R2 = (V-1)*R1
* 10A: Vshunt = 1000mV\nVdac_max: 2V\nV=2\nR1: 10k\nR2:10k
* V= (R2/R1)+1
* Library below included based on ModelFile attribute of instance XU1, XU2 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\AD8032.asy)
.lib ADI.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1472 760
WIRE -320 -144 -352 -144
WIRE -64 -144 -176 -144
WIRE -352 -112 -352 -144
WIRE -176 -112 -176 -144
WIRE 464 -64 400 -64
WIRE 576 -64 544 -64
WIRE 1056 -64 800 -64
WIRE -352 0 -352 -32
WIRE -176 0 -176 -32
WIRE 800 48 800 -64
WIRE 496 96 496 64
WIRE 64 112 -32 112
WIRE 272 112 64 112
WIRE 400 112 400 -64
WIRE 400 112 352 112
WIRE 464 112 400 112
WIRE 1056 112 1056 -64
WIRE 576 128 576 -64
WIRE 576 128 528 128
WIRE 608 128 576 128
WIRE 752 128 688 128
WIRE 464 144 400 144
WIRE -32 160 -32 112
WIRE 800 176 800 144
WIRE 800 176 736 176
WIRE 496 192 496 160
WIRE 800 208 800 176
WIRE 400 256 400 144
WIRE 480 256 400 256
WIRE 576 256 576 128
WIRE 576 256 544 256
WIRE -32 272 -32 240
WIRE 400 272 400 256
WIRE 576 368 576 336
WIRE 640 384 608 384
WIRE 736 384 736 176
WIRE 736 384 720 384
WIRE 208 400 144 400
WIRE 400 400 400 352
WIRE 400 400 288 400
WIRE 544 400 400 400
WIRE 624 416 608 416
WIRE 800 416 800 288
WIRE 1056 416 1056 192
WIRE 1056 416 800 416
WIRE 144 432 144 400
WIRE 400 432 400 400
WIRE 400 432 304 432
WIRE 800 448 800 416
WIRE 304 464 304 432
WIRE 400 464 400 432
WIRE 576 464 576 432
WIRE 144 544 144 496
WIRE 304 576 304 544
WIRE 400 576 400 544
WIRE 400 576 304 576
WIRE 624 576 624 416
WIRE 624 576 400 576
WIRE 624 608 624 576
WIRE 624 720 624 688
FLAG -176 0 0
FLAG -32 272 0
FLAG -352 0 0
FLAG -320 -144 VCC
FLAG 64 112 DAC
FLAG 576 336 0
FLAG 576 464 VCC
FLAG 496 192 VCC
FLAG 624 720 0
FLAG 800 448 0
FLAG 496 64 0
FLAG 144 544 0
SYMBOL voltage -32 144 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value PULSE(0 2 1m 100m 1m 1m)
SYMBOL voltage -176 -128 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 2048m
SYMBOL nmos 752 48 R0
SYMATTR InstName M1
SYMATTR Value IRFH7914
SYMBOL res 784 192 R0
SYMATTR InstName R1
SYMATTR Value 100m
SYMBOL voltage 1056 96 R0
WINDOW 123 0 0 Left 0
WINDOW 39 24 124 Left 2
SYMATTR SpiceLine Rser=0.1
SYMATTR InstName V3
SYMATTR Value 12
SYMBOL OpAmps\\AD8032 496 192 M180
SYMATTR InstName U1
SYMBOL res 704 112 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 100
SYMBOL voltage -352 -128 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V4
SYMATTR Value 5
SYMBOL res 368 96 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 15k
SYMBOL cap 544 240 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value 100p
SYMBOL res 560 -80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 10Meg
SYMBOL res 384 256 R0
SYMATTR InstName R5
SYMATTR Value 15k
SYMBOL OpAmps\\AD8032 576 464 R180
SYMATTR InstName U2
SYMBOL res 736 368 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R6
SYMATTR Value 15k
SYMBOL res 384 448 R0
SYMATTR InstName R7
SYMATTR Value 190k
SYMBOL res 640 704 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R9
SYMATTR Value 10k
SYMBOL res 304 384 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R8
SYMATTR Value 1k
SYMBOL cap 128 432 R0
SYMATTR InstName C2
SYMATTR Value 1n
SYMBOL res 288 448 R0
SYMATTR InstName R10
SYMATTR Value 11
TEXT 616 368 Left 2 ;+
TEXT 432 96 Left 2 ;+
TEXT -384 744 Left 2 !.tran 110m
TEXT 896 608 Left 2 ;1A: Vshunt = 100mV\nVdac_max: 2V\nV=20\nR1: 10k\nR2:190k
TEXT 656 656 Left 2 ;R1
TEXT 344 504 Left 2 ;R2
TEXT 1096 512 Left 2 ;R2 = (V-1)*R1
TEXT 1200 600 Left 2 ;10A: Vshunt = 1000mV\nVdac_max: 2V\nV=2\nR1: 10k\nR2:10k
TEXT 1096 480 Left 2 ;V= (R2/R1)+1