* Z:\home\khalils\Downloads\files\data\raw_asc\0f932bb89804_PMOS_OPEN_CKT_DETECT.asc
* Generated by LTspice 26.0.1 for Windows.
V1 Vsw 0 PULSE(0 24 0 0 0 0.1 0.2 10)
R1 N006 N009 5k
R5 Vsw N002 5k
R9 N001 N008 5k
V2 24V 0 24
M2 N005 N007 0 0 NMOS
S1 N001 24V Vsw 0 MYSW
R2 24V N003 5k
M3 N004 N008 0 0 Si7336ADP
R3 Vsw N007 100
R6 N002 0 10k
D3 N004 0 D
R7 24V N004 5k
D1 N009 0 QTLP690C
R8 N008 0 5k
Rload N001 0 100
M1 N006 N002 24V 24V BSS84
D2 N003 N005 D
R4 N007 0 10k
.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 2
.model MYSW SW(Ron=0.001 Roff=1Meg Vt=5 Vh=4)
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1768 680
WIRE 1312 -464 1280 -464
WIRE -592 -448 -592 -496
WIRE -192 -448 -192 -496
WIRE 1280 -432 1280 -464
WIRE 1312 -432 1312 -464
WIRE 1216 -384 1056 -384
WIRE 1424 -384 1296 -384
WIRE 1680 -384 1424 -384
WIRE -592 -336 -592 -368
WIRE -192 -336 -192 -368
WIRE 448 -336 448 -368
WIRE 1056 -240 1056 -384
WIRE 0 -224 0 -368
WIRE -272 -208 -352 -208
WIRE -128 -208 -192 -208
WIRE -48 -208 -128 -208
WIRE 448 -208 448 -256
WIRE 1424 -176 1424 -384
WIRE -128 -160 -128 -208
WIRE 1056 -128 1056 -160
WIRE 1280 -128 1056 -128
WIRE 1680 -128 1680 -384
WIRE 448 -112 448 -144
WIRE 1280 -96 1280 -128
WIRE 0 -80 0 -128
WIRE 1056 -80 1056 -128
WIRE -128 -32 -128 -80
WIRE 240 -32 176 -32
WIRE 400 -32 320 -32
WIRE 1424 -16 1424 -96
WIRE 1424 -16 1328 -16
WIRE 320 16 320 -32
WIRE 1424 16 1424 -16
WIRE 0 32 0 0
WIRE 1056 32 1056 -16
WIRE 1280 32 1280 0
WIRE 1280 32 1056 32
WIRE 1056 80 1056 32
WIRE 1424 112 1424 96
WIRE 1680 112 1680 -48
WIRE 0 144 0 96
WIRE 320 144 320 96
WIRE 448 144 448 -16
SYMBOL res 432 -352 R0
SYMATTR InstName R2
SYMATTR Value 5k
SYMBOL res 1664 -144 R0
SYMATTR InstName Rload
SYMATTR Value 100
SYMBOL res -288 -192 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R5
SYMATTR Value 5k
SYMBOL res 224 -16 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R3
SYMATTR Value 100
SYMBOL res 1040 -256 R0
SYMATTR InstName R7
SYMATTR Value 5k
SYMBOL nmos 400 -112 R0
SYMATTR InstName M2
SYMBOL res 1408 -192 R0
SYMATTR InstName R9
SYMATTR Value 5k
SYMBOL sw 1312 -384 R90
SYMATTR InstName S1
SYMATTR Value MYSW
SYMBOL res -16 -96 R0
SYMATTR InstName R1
SYMATTR Value 5k
SYMBOL res 304 0 R0
SYMATTR InstName R4
SYMATTR Value 10k
SYMBOL pmos -48 -128 M180
SYMATTR InstName M1
SYMATTR Value BSS84
SYMBOL res 1408 0 R0
SYMATTR InstName R8
SYMATTR Value 5k
SYMBOL LED -16 32 R0
SYMATTR InstName D1
SYMATTR Value QTLP690C
SYMBOL LED 1040 -80 R0
SYMATTR InstName D3
SYMBOL voltage -592 -464 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value PULSE(0 24 0 0 0 0.1 0.2 10)
SYMBOL nmos 1328 -96 M0
SYMATTR InstName M3
SYMATTR Value Si7336ADP
SYMBOL res -144 -176 R0
SYMATTR InstName R6
SYMATTR Value 10k
SYMBOL voltage -192 -464 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 24
SYMBOL LED 432 -208 R0
SYMATTR InstName D2
FLAG 0 144 0
FLAG 448 144 0
FLAG 448 -368 24V
FLAG 320 144 0
FLAG -128 -32 0
FLAG 176 -32 Vsw
FLAG -592 -336 0
FLAG -192 -336 0
FLAG -192 -496 24V
FLAG -592 -496 Vsw
FLAG -352 -208 Vsw
FLAG 0 -368 24V
FLAG 1056 80 0
FLAG 1312 -432 0
FLAG 1232 -432 Vsw
FLAG 1680 112 0
FLAG 1424 112 0
FLAG 1056 -384 24V
TEXT -112 152 Left 2 !.tran 2
TEXT 1000 -528 Left 2 !.model MYSW SW(Ron=0.001 Roff=1Meg Vt=5 Vh=4)