* Z:\tmp\asc_dec_bjh7r6w2\0f821a222f89_ATtiny85_Brake_Flasher_Complete_dec1.asc
* Generated by LTspice 26.0.1 for Windows.
B_FLASH_GENERATOR NC_01 NC_02 V=if(V(LAMP_MINUS)>2.5, if((time-int(time/0.5)*0.5)<0.25, 5, 0), 5) AC 0
R_BUCK_LOAD VCC_5V LAMP_MINUS 5
M_LOAD_SWITCH NC_03 LAMP_MINUS LAMP_MINUS LAMP_MINUS RFP30N06LE l=1u w=100u
B_GATE_DRIVER LAMP_MINUS NC_04 V=V(LAMP_MINUS)*V(LAMP_MINUS)/5 AC 0
R_FLASH_LOAD 0 N002 1Meg
R2_DIVIDER LAMP_MINUS 0 10k
B_ADC_DELAY NC_05 NC_06 V=delay(V(LAMP_MINUS), 10m) AC 0
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2400 1400
WIRE 80 -80 80 -112
WIRE 208 -80 80 -80
WIRE 336 -80 208 -80
WIRE 464 -80 336 -80
WIRE 848 -80 720 -80
WIRE 976 -80 848 -80
WIRE 1104 -80 976 -80
WIRE 80 -32 80 -80
WIRE 208 -32 208 -80
WIRE 336 -32 336 -80
WIRE 464 -32 464 -80
WIRE 592 -32 592 -80
WIRE 720 -32 720 -80
WIRE 848 -32 848 -80
WIRE 976 -32 976 -80
WIRE 1104 -32 1104 -80
WIRE 80 80 80 48
WIRE 208 80 208 48
WIRE 208 80 80 80
WIRE 336 80 336 48
WIRE 336 80 208 80
WIRE 464 80 464 48
WIRE 464 80 336 80
WIRE 592 80 592 48
WIRE 592 80 464 80
WIRE 720 80 720 48
WIRE 720 80 592 80
WIRE 848 80 848 48
WIRE 848 80 720 80
WIRE 976 80 976 48
WIRE 976 80 848 80
WIRE 1104 80 1104 48
WIRE 1104 80 976 80
WIRE 80 128 80 80
WIRE 176 128 80 128
WIRE 304 128 176 128
WIRE 432 128 304 128
WIRE 560 128 432 128
WIRE 688 128 560 128
WIRE 816 128 688 128
WIRE 944 128 816 128
WIRE 1072 128 944 128
WIRE 176 176 176 128
WIRE 304 176 304 128
WIRE 432 176 432 128
WIRE 560 176 560 128
WIRE 688 176 688 128
WIRE 816 176 816 128
WIRE 944 176 944 128
WIRE 1072 176 1072 128
WIRE 176 288 176 256
WIRE 304 288 304 256
WIRE 304 288 176 288
WIRE 432 288 432 256
WIRE 432 288 304 288
WIRE 560 288 560 256
WIRE 560 288 432 288
WIRE 688 288 688 256
WIRE 688 288 560 288
WIRE 816 288 816 256
WIRE 816 288 688 288
WIRE 944 288 944 256
WIRE 944 288 816 288
WIRE 1072 288 944 288
WIRE 176 336 176 288
WIRE 432 352 432 288
WIRE 560 352 560 288
WIRE 688 352 688 288
WIRE 816 352 816 288
WIRE 944 352 944 288
WIRE 560 464 560 432
WIRE 560 464 432 464
WIRE 688 464 688 432
WIRE 688 464 560 464
WIRE 816 464 816 432
WIRE 816 464 688 464
WIRE 944 464 816 464
WIRE 688 176 688 128
WIRE 688 208 688 176
WIRE 688 208 752 208
WIRE 752 208 752 176
WIRE 752 176 816 176
SYMBOL bv 672 160 R0
WINDOW 123 24 124 Left 2
SYMATTR Value2 AC 0
SYMATTR InstName B_FLASH_GENERATOR
SYMATTR Value V=if(V(flash_ctrl)>2.5, if((time-int(time/0.5)*0.5)<0.25, 5, 0), 5)
SYMBOL res 192 -48 R0
SYMATTR InstName R_BUCK_LOAD
SYMATTR Value 5
SYMBOL nmos 1024 48 R0
WINDOW 123 56 100 Left 2
SYMATTR Value2 l=1u w=100u
SYMATTR InstName M_LOAD_SWITCH
SYMATTR Value RFP30N06LE
SYMBOL bv 800 160 R0
WINDOW 123 24 124 Left 2
SYMATTR Value2 AC 0
SYMATTR InstName B_GATE_DRIVER
SYMATTR Value V=V(flash_ctrl)*V(gate_drive)/5
SYMBOL res 672 336 R0
SYMATTR InstName R_FLASH_LOAD
SYMATTR Value 1Meg
SYMBOL res 288 160 R0
SYMATTR InstName R2_DIVIDER
SYMATTR Value 10k
SYMBOL bv 544 160 R0
WINDOW 123 24 124 Left 2
SYMATTR Value2 AC 0
SYMATTR InstName B_ADC_DELAY
SYMATTR Value V=delay(V(threshold), 10m)
FLAG 176 336 0
FLAG 80 -112 VIN
FLAG 1104 -80 LAMP_PLUS
FLAG 1072 128 LAMP_MINUS
FLAG 336 -80 VCC_5V
FLAG 432 128 SENSE
FLAG 688 128 THRESHOLD
FLAG 816 128 FLASH_CTRL
FLAG 944 128 GATE_DRIVE