* Z:\home\khalils\Downloads\files\data\raw_asc\LT1804.asc
* Generated by LTspice 26.0.1 for Windows.
* Inverting DC Restore
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\LT1804.asy)
V3 IN N005 PULSE(0 50m 10u 1u 1u 88u 100u) Rser=10
R4 OUT N004 10k
V4 N005 0 PWL(0 0 1m .1)
V1 V- 0 -5
D2 N002 N003 1N4148
R3 V+ N002 2k
V2 V+ 0 5
R5 N004 IN 1k
D1 N002 N001 1N4148
C1 IN 0 0.1
C2 N003 0 0.1
R1 N001 N006 100k
R2 N006 OUT 10k
XU1 N003 N004 OUT V+ V- 0 N006 N001 LT1804 ;pnba +INA)-INA)OUTA)V+)V-)+INB)-INB)OUTB
R6 N003 V- 1Meg
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.tran 1m
.lib LT1804.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4.1
SHEET 1 964 1380
WIRE 288 608 176 608
WIRE 416 608 288 608
WIRE 416 640 416 608
WIRE 288 752 240 752
WIRE 416 752 416 720
WIRE 416 752 352 752
WIRE 480 752 416 752
WIRE 864 752 544 752
WIRE -336 768 -400 768
WIRE -192 768 -256 768
WIRE -128 768 -192 768
WIRE 176 768 176 608
WIRE 176 768 144 768
WIRE -912 864 -1184 864
WIRE -640 864 -832 864
WIRE -512 864 -640 864
WIRE -400 864 -400 768
WIRE -400 864 -432 864
WIRE -128 864 -400 864
WIRE 240 864 240 752
WIRE 240 864 144 864
WIRE 272 864 240 864
WIRE 400 864 352 864
WIRE 432 864 400 864
WIRE 768 864 512 864
WIRE -1184 912 -1184 864
WIRE -640 912 -640 864
WIRE -512 960 -576 960
WIRE -400 960 -512 960
WIRE -128 960 -400 960
WIRE 400 960 400 864
WIRE 400 960 144 960
WIRE -512 1008 -512 960
WIRE -1184 1024 -1184 992
WIRE -640 1024 -640 976
WIRE -400 1040 -400 960
WIRE -176 1056 -192 1056
WIRE -128 1056 -176 1056
WIRE 192 1056 144 1056
WIRE -400 1152 -400 1104
WIRE -80 1152 -96 1152
WIRE -64 1152 -80 1152
WIRE 96 1152 80 1152
WIRE 112 1152 96 1152
WIRE -64 1184 -64 1152
WIRE 80 1184 80 1152
WIRE -512 1216 -512 1088
WIRE -192 1216 -192 1056
WIRE -192 1216 -512 1216
WIRE -64 1296 -64 1264
WIRE 80 1296 80 1264
WIRE -576 1376 -576 960
WIRE 864 1376 864 752
WIRE 864 1376 -576 1376
SYMBOL voltage -816 864 R90
WINDOW 0 -32 56 VBottom 2
WINDOW 3 32 56 VTop 2
WINDOW 123 60 56 VTop 2
SYMATTR InstName V3
SYMATTR Value PULSE(0 50m 10u 1u 1u 88u 100u)
SYMATTR Value2 Rser=10
SYMBOL voltage 80 1168 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 5
SYMBOL cap -656 912 R0
SYMATTR InstName C1
SYMATTR Value 0.1
SYMBOL res 416 880 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R2
SYMATTR Value 10k
SYMBOL res -528 992 R0
SYMATTR InstName R6
SYMATTR Value 1Meg
SYMBOL diode 480 768 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName D2
SYMATTR Value 1N4148
SYMBOL voltage -1184 896 R0
SYMATTR InstName V4
SYMATTR Value PWL(0 0 1m .1)
SYMBOL res -240 752 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 10k
SYMBOL diode 352 736 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName D1
SYMATTR Value 1N4148
SYMBOL res -416 848 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R5
SYMATTR Value 1k
SYMBOL cap -416 1040 R0
SYMATTR InstName C2
SYMATTR Value 0.1
SYMBOL LT1804 16 960 R0
SYMATTR InstName U1
SYMBOL res 400 624 R0
SYMATTR InstName R3
SYMATTR Value 2k
SYMBOL voltage -64 1168 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value -5
SYMBOL res 256 880 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R1
SYMATTR Value 100k
FLAG -176 1056 V-
FLAG -64 1296 0
FLAG 80 1296 0
FLAG 96 1152 V+
FLAG -80 1152 V-
FLAG 192 1056 0
FLAG 768 864 OUT
FLAG -640 1024 0
FLAG -1184 1024 0
FLAG -400 1152 0
FLAG -192 768 OUT
FLAG -640 864 IN
FLAG 288 608 V+
TEXT 0 648 Bottom 2 ;Inverting DC Restore
TEXT -40 696 Left 2 !.tran 1m