* Z:\home\khalils\Downloads\files\data\raw_asc\094757473fbc_Draft6.asc
* Generated by LTspice 26.0.1 for Windows.
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\Optos\PC817A.asy)
R2 N001 N004 10
Vss VBAT+ 0 6 Rser=100m
R1 N005 N001 100k
Vdd Vdd 0 -6 Rser=100m
R3 N003 N002 50
M1 VBAT+ N001 N005 N005 Si7489DP
XU1 N003 0 N004 Vdd PC817 Igain=1m ;pnba A)K)C)E
VBAT+ VBAT+ 0 30 Rser=100m
M2 N006 N001 N005 N005 Si7489DP
D1 N001 N005 UFZV15B
V1 N002 0 PULSE(0 3.3 0 1n 1n 500u 1m 5)
R4 N006 VBAT- 100
VBAT- VBAT- 0 -30 Rser=100m
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.tran 10m
.lib PC817.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4.1
SHEET 1 880 772
WIRE 304 -64 48 -64
WIRE 768 -64 304 -64
WIRE 304 16 304 -64
WIRE 256 96 160 96
WIRE -320 112 -496 112
WIRE -256 112 -320 112
WIRE 48 112 -64 112
WIRE -496 128 -496 112
WIRE -320 144 -320 112
WIRE -432 208 -496 208
WIRE -256 208 -352 208
WIRE 32 208 -64 208
WIRE 160 208 160 96
WIRE 160 208 112 208
WIRE 192 208 160 208
WIRE 304 208 304 112
WIRE 304 208 272 208
WIRE 160 304 160 208
WIRE 192 304 160 304
WIRE 304 304 304 208
WIRE 304 304 256 304
WIRE 304 400 304 304
WIRE 160 416 160 304
WIRE 256 416 160 416
WIRE 304 528 304 496
WIRE -720 544 -720 512
WIRE -608 544 -608 512
WIRE -496 544 -496 512
WIRE -368 544 -368 512
WIRE -720 656 -720 624
WIRE -608 656 -608 624
WIRE -496 656 -496 624
WIRE -368 656 -368 624
WIRE 304 656 304 608
SYMBOL zener 192 320 R270
WINDOW 0 36 32 VTop 2
WINDOW 3 -4 32 VBottom 2
SYMATTR InstName D1
SYMATTR Value UFZV15B
SYMBOL voltage -496 528 R0
WINDOW 123 0 0 Left 0
WINDOW 39 24 124 Left 2
SYMATTR InstName VBAT+
SYMATTR Value 30
SYMATTR SpiceLine Rser=100m
SYMBOL pmos 256 16 R0
SYMATTR InstName M1
SYMATTR Value Si7489DP
SYMBOL res -336 192 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 50
SYMBOL Optos\\PC817A -160 160 M180
SYMATTR InstName U1
SYMBOL pmos 256 496 M180
SYMATTR InstName M2
SYMATTR Value Si7489DP
SYMBOL res 288 512 R0
SYMATTR InstName R4
SYMATTR Value 100
SYMBOL res 288 192 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 100k
SYMBOL voltage -496 224 R180
WINDOW 0 24 96 Left 2
WINDOW 3 24 16 Left 2
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value PULSE(0 3.3 0 1n 1n 500u 1m 5)
SYMBOL voltage -368 528 R0
WINDOW 123 0 0 Left 0
WINDOW 39 24 124 Left 2
SYMATTR InstName VBAT-
SYMATTR Value -30
SYMATTR SpiceLine Rser=100m
SYMBOL voltage -720 528 R0
WINDOW 123 0 0 Left 0
WINDOW 39 24 124 Left 2
SYMATTR InstName Vss
SYMATTR Value 6
SYMATTR SpiceLine Rser=100m
SYMBOL res 128 192 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 10
SYMBOL voltage -608 528 R0
WINDOW 123 0 0 Left 0
WINDOW 39 24 124 Left 2
SYMATTR InstName Vdd
SYMATTR Value -6
SYMATTR SpiceLine Rser=100m
FLAG -320 144 0
FLAG -720 656 0
FLAG -608 656 0
FLAG -496 656 0
FLAG -368 656 0
FLAG -720 512 Vss
FLAG -608 512 Vdd
FLAG -496 512 VBAT+
FLAG -368 512 VBAT-
FLAG 304 656 VBAT-
FLAG 768 -64 VBAT+
FLAG 48 112 Vdd
FLAG 48 -64 Vss
TEXT -640 -88 Left 2 !.tran 10m