* Z:\home\khalils\Downloads\files\data\raw_asc\17c57d9e1be6_CURRENT_LIMITING.asc
* Generated by LTspice 26.0.1 for Windows.
* Reference Voltage. Limits the output current by 0.5A/V
* Library below included based on ModelFile attribute of instance XU2 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\AD8410A.asy)
* Library below included based on ModelFile attribute of instance XU3 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\AD8541.asy)
* Library below included based on ModelFile attribute of instance XU1, XU5 (C:\users\khalils\AppData\Local\LTspice\lib\sym\PowerProducts\LT3081.asy)
Rload out 0 50
XU3 N016 N012 5V 0 N013 AD8541 ;pnba In+)In-)V+)V-)OUT
M1 gate_drive N013 0 0 BSP89
Vref N016 0 5 Rser=1k
R5 gate_drive IN 5k
XU5 NC_02 N015 Imon N011 N010 IN LT3081 ;pnba Ilim)SET)Imon)OUT)Temp)IN
R2 IN N014 0.5
R10 N015 0 350K
R1 N001 0 1K
C2 N004 N006 4.7 V=50 Irms=0 Rser=0.0051 Lser=500p
V1 N014 0 20 Cpar=100uF
M4 N008 N009 0 0 BSB012N03MX3
R4 N011 N003 10m
XU2 N006 0 0 N012 IN 0 N003 AD8410A ;pnba IN-)GND)REF2)OUT)VS)REF1)IN+
R6 N004 gate_drive 100
Q1 N003 IN N014 0 2N4403
XU1 NC_01 N005 Imon N002 N001 IN LT3081 ;pnba Ilim)SET)Imon)OUT)Temp)IN
R7 N002 N003 10m
C1 N003 0 100F Rser=1 Lser=1nH
R_short_circuit out N008 3
R3 N005 0 350K
V3 5V 0 6
Rsense N003 N006 0.05
M2 out N004 N006 N006 FDS4953
V4 N009 0 PULSE(0 5 1ms 1n 1n 25ms 50ms) Rser=100
R8 N010 0 1K
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.tran 0 .6 0 10u startup
.lib AD8410A.lib
.lib AD8541.lib
.lib LT3081.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2936 1396
WIRE -192 64 -208 64
WIRE 128 64 -192 64
WIRE 128 96 128 64
WIRE -96 160 -112 160
WIRE 0 160 -16 160
WIRE 288 160 256 160
WIRE 416 160 368 160
WIRE 0 256 -16 256
WIRE -624 288 -624 240
WIRE 1056 288 992 288
WIRE 1200 288 1136 288
WIRE 1312 288 1200 288
WIRE 1200 304 1200 288
WIRE 128 336 128 320
WIRE 1312 352 1312 288
WIRE -624 384 -624 368
WIRE 416 400 416 160
WIRE 528 400 416 400
WIRE 672 400 528 400
WIRE 720 400 672 400
WIRE 848 400 800 400
WIRE 1200 400 1200 368
WIRE 1200 400 848 400
WIRE 1296 400 1200 400
WIRE 2256 400 1392 400
WIRE 2384 400 2256 400
WIRE 2464 400 2384 400
WIRE 2256 416 2256 400
WIRE 128 432 128 416
WIRE 2464 432 2464 400
WIRE 1312 448 1312 432
WIRE 2256 528 2256 496
WIRE 2464 528 2464 512
WIRE -208 544 -208 64
WIRE -208 544 -224 544
WIRE 112 544 -208 544
WIRE 112 576 112 544
WIRE 1472 608 1472 560
WIRE 2208 608 2048 608
WIRE -224 640 -224 544
WIRE -224 640 -432 640
WIRE -112 640 -128 640
WIRE -16 640 -32 640
WIRE 288 640 240 640
WIRE 416 640 416 400
WIRE 416 640 368 640
WIRE 2048 656 2048 608
WIRE -224 672 -224 640
WIRE 1472 704 1472 688
WIRE 1600 704 1472 704
WIRE -304 720 -320 720
WIRE 1472 720 1472 704
WIRE -16 736 -32 736
WIRE 672 752 672 400
WIRE 912 752 672 752
WIRE -432 768 -432 640
WIRE -384 768 -432 768
WIRE 2048 768 2048 736
WIRE 1200 784 1056 784
WIRE 1424 800 1264 800
WIRE -224 816 -224 752
WIRE -224 816 -320 816
WIRE 112 816 112 800
WIRE 848 816 848 400
WIRE 912 816 848 816
WIRE 1200 816 1152 816
WIRE -224 832 -224 816
WIRE 1472 896 1472 816
WIRE 112 912 112 896
WIRE 1152 912 1152 816
WIRE -224 928 -224 912
WIRE 1152 1024 1152 992
WIRE -304 1040 -304 720
WIRE 512 1040 -304 1040
WIRE 528 1040 528 400
WIRE 528 1040 512 1040
WIRE 512 1088 512 1040
WIRE 512 1184 512 1152
SYMBOL res 1488 704 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R5
SYMATTR Value 5k
SYMBOL res 2240 400 R0
SYMATTR InstName R_short_circuit
SYMATTR Value 3
SYMBOL res 96 800 R0
SYMATTR InstName R10
SYMATTR Value 350K
SYMBOL OpAmps\\AD8541 1232 736 R0
SYMATTR InstName U3
SYMBOL nmos 2208 528 R0
SYMATTR InstName M4
SYMATTR Value BSB012N03MX3
SYMBOL nmos 1424 720 R0
SYMATTR InstName M1
SYMATTR Value BSP89
SYMBOL PowerProducts\\LT3081 112 688 R0
SYMATTR InstName U5
SYMBOL voltage -624 272 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value 6
SYMBOL res -240 656 R0
SYMATTR InstName R2
SYMATTR Value 0.5
SYMBOL OpAmps\\AD8410A 944 784 R0
SYMATTR InstName U2
SYMBOL pmos 1392 352 R90
SYMATTR InstName M2
SYMATTR Value FDS4953
SYMBOL cap 1184 304 R0
SYMATTR InstName C2
SYMATTR Value 4.7ľ
SYMATTR SpiceLine V=50 Irms=0 Rser=0.0051 Lser=500p
SYMBOL cap 496 1088 R0
SYMATTR InstName C1
SYMATTR Value 100ľF
SYMATTR SpiceLine Rser=1 Lser=1nH
SYMBOL res 704 416 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName Rsense
SYMATTR Value 0.05
SYMBOL voltage 1152 896 R0
WINDOW 123 0 0 Left 0
WINDOW 39 24 124 Left 2
SYMATTR SpiceLine Rser=1k
SYMATTR InstName Vref
SYMATTR Value 5
SYMBOL voltage -224 816 R0
WINDOW 123 0 0 Left 0
WINDOW 39 24 124 Left 2
SYMATTR SpiceLine Cpar=100uF
SYMATTR InstName V1
SYMATTR Value 20
SYMBOL voltage 2048 640 R0
WINDOW 123 0 0 Left 0
WINDOW 39 24 124 Left 2
SYMATTR SpiceLine Rser=100
SYMATTR InstName V4
SYMATTR Value PULSE(0 5 1ms 1n 1n 25ms 50ms)
SYMBOL res 112 320 R0
SYMATTR InstName R3
SYMATTR Value 350K
SYMBOL res -16 624 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R8
SYMATTR Value 1K
SYMBOL PowerProducts\\LT3081 128 208 R0
SYMATTR InstName U1
SYMBOL res 0 144 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 1K
SYMBOL pnp -384 720 R0
SYMATTR InstName Q1
SYMATTR Value 2N4403
SYMBOL res 2448 416 R0
SYMATTR InstName Rload
SYMATTR Value 50
SYMBOL res 272 176 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R7
SYMATTR Value 10m
SYMBOL res 272 656 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R4
SYMATTR Value 10m
SYMBOL res 1152 272 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R6
SYMATTR Value 100
FLAG -112 160 0
FLAG 128 432 0
FLAG 2464 528 0
FLAG 1152 1024 0
FLAG 1232 832 0
FLAG -192 64 IN
FLAG -128 640 0
FLAG 112 912 0
FLAG -224 928 0
FLAG 1472 896 0
FLAG 1472 560 IN
FLAG 1600 704 gate_drive
FLAG 992 288 gate_drive
FLAG -624 384 0
FLAG -624 240 5V
FLAG 1232 768 5V
FLAG 2256 624 0
FLAG 2048 768 0
FLAG 2384 400 out
FLAG -16 256 Imon
FLAG -32 736 Imon
FLAG 944 864 0
FLAG 976 864 0
FLAG 976 704 0
FLAG 944 704 IN
FLAG 512 1184 0
TEXT -264 -48 Left 2 !.tran 0 .6 0 10u startup
TEXT 1216 968 Left 2 ;Reference Voltage. Limits the output current by 0.5A/V