* Z:\home\khalils\Downloads\files\data\raw_asc\a97040f8fa25_Draft04.asc
* Generated by LTspice 26.0.1 for Windows.
* To get output into +-0.3 range from +-0.6V\neasier to just use a resistor divider.
* max
* min
* cannot do max /min at same time\nwould have to be in series.
* Library below included based on ModelFile attribute of instance XU1, XU2, XU3 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\LT1006.asy)
D4 N006 N003 D
R3 N002 N001 50k
XU2 N002 N003 VCC VEE N005 LT1006 ;pnba In+)In-)V+)V-)OUT
V2 VCC 0 15
D1 N002 N001 D
V3 0 VEE 15
V5 N007 0 -0.3V
XU3 N007 N003 VCC VEE N006 LT1006 ;pnba In+)In-)V+)V-)OUT
D2 N001 N002 D
D3 N005 N003 D
I1 N003 VEE 1mA
R4 N001 N004 10k
XU1 0 N001 VCC VEE N002 LT1006 ;pnba In+)In-)V+)V-)OUT
VIN N004 0 PULSE(-2.5 2.5 2ms 10ns 10ns 0.5ms 1ms 7)
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.tran 10ms
.lib LTC.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1904 680
WIRE 304 -192 224 -192
WIRE 416 -192 368 -192
WIRE 224 -112 224 -192
WIRE 304 -112 224 -112
WIRE 416 -112 416 -192
WIRE 416 -112 368 -112
WIRE 224 -16 224 -112
WIRE 288 -16 224 -16
WIRE 416 -16 416 -112
WIRE 416 -16 368 -16
WIRE 688 64 656 64
WIRE -192 80 -272 80
WIRE 64 80 -80 80
WIRE 224 80 224 -16
WIRE 224 80 144 80
WIRE 304 80 224 80
WIRE 800 80 752 80
WIRE -272 96 -272 80
WIRE -192 96 -192 80
WIRE -80 96 -80 80
WIRE 416 96 416 -16
WIRE 416 96 368 96
WIRE 688 96 416 96
WIRE 304 112 256 112
WIRE 656 176 656 64
WIRE 864 176 864 80
WIRE 864 176 656 176
WIRE 256 192 256 112
WIRE 656 256 656 176
WIRE 688 256 656 256
WIRE 800 272 752 272
WIRE 864 272 864 176
WIRE 688 288 656 288
WIRE 656 304 656 288
WIRE 864 384 864 272
WIRE 656 416 656 384
SYMBOL diode 304 -96 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName D2
SYMBOL res 384 -32 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 -50 55 VTop 2
SYMATTR InstName R3
SYMATTR Value 50k
SYMBOL voltage -272 80 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 0 36 39 Left 2
SYMATTR InstName V3
SYMATTR Value 15
SYMBOL res 160 64 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 -50 55 VTop 2
SYMATTR InstName R4
SYMATTR Value 10k
SYMBOL OpAmps\\LT1006 720 16 R0
SYMATTR InstName U2
SYMBOL diode 368 -208 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName D1
SYMBOL OpAmps\\LT1006 720 208 R0
SYMATTR InstName U3
SYMBOL diode 800 288 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName D4
SYMBOL diode 800 96 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName D3
SYMBOL voltage -80 80 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 3 -425 174 Left 2
SYMATTR Value PULSE(-2.5 2.5 2ms 10ns 10ns 0.5ms 1ms 7)
SYMATTR InstName VIN
SYMBOL OpAmps\\LT1006 336 32 R0
SYMATTR InstName U1
SYMBOL current 864 384 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName I1
SYMATTR Value 1mA
SYMBOL voltage 656 288 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 3 -121 75 Left 2
WINDOW 0 -109 41 Left 2
SYMATTR Value -0.3V
SYMATTR InstName V5
SYMBOL voltage -272 -16 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 3 48 40 Left 2
SYMATTR Value 15
SYMATTR InstName V2
FLAG -80 176 0
FLAG -192 96 0
FLAG -272 0 VCC
FLAG -272 176 VEE
FLAG 336 64 VCC
FLAG 336 128 VEE
FLAG 256 192 0
FLAG 720 48 VCC
FLAG 720 112 VEE
FLAG 720 240 VCC
FLAG 720 304 VEE
FLAG 656 416 0
FLAG 864 464 VEE
TEXT -456 304 Left 2 !.tran 10ms
TEXT 72 -472 Left 2 ;To get output into +-0.3 range from +-0.6V\neasier to just use a resistor divider.
TEXT 920 184 Left 2 ;max
TEXT 1088 -224 Left 2 ;min
TEXT 1128 -56 Left 2 ;cannot do max /min at same time\nwould have to be in series.