* Z:\home\khalils\Downloads\files\data\raw_asc\174a4c835adf_StepperCtrl_2ph_I.asc
* Generated by LTspice 26.0.1 for Windows.
* Behavioral Fine-Step Motor Controller (current output) - V. 11-aug-05
* .tran 0 10 0
* .options plotwinsize=0
* +1V ->reverse
* REM: set Td>0 if Trise & Tfall of clk\nhave to be specified.
A1 fc N002 0 0 0 1y 1x 0 MODULATOR mark=0.25 space=0
A2 fc N002 0 0 0 0 N005 0 MODULATOR mark=1 space=0
A3 N005 0 0 0 0 0 clk 0 BUF Ref=0 Trise=10n Tfall=10n
B1 0 b1 I=Imax*2*(u(V(1x)+eps1)-0.5) tripdv=10m tripdt=10n
B2 0 b2 I=Imax*2*(u(V(1y)+eps1)-0.5) tripdv=10m tripdt=10n
V4 N001 0 0.5
S3 b2 A N001 Rev SWD
D2 A N003 LDio
D3 N004 B LDio
V3 0 N004 {Vmax}
R1 Rev 0 1Meg
S4 b1 A Rev N001 SWD
D1 B N003 LDio
V2 N003 0 {Vmax}
D4 N004 A LDio
V1 N002 0 PULSE(0 1 0 5n 5n 1E12)
S2 b2 B Rev N001 SWD
S1 b1 B N001 Rev SWD
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.param Vmax=30 Imax=0.25
.param eps1=1E-20
.model SWD SW(Ron=1m Roff=1MEG Vt=0 Vh=-0.1)
.model LDio D(Vfwd=0 Ron=1u Roff=1MEG )
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2276 1548
WIRE -704 640 -720 640
WIRE -672 224 -720 224
WIRE -672 512 -672 224
WIRE -624 352 -624 288
WIRE -560 288 -624 288
WIRE -560 576 -560 288
WIRE -496 224 -672 224
WIRE -496 288 -560 288
WIRE -496 512 -672 512
WIRE -496 576 -560 576
WIRE -304 224 -352 224
WIRE -304 288 -352 288
WIRE -304 544 -352 544
WIRE -304 672 -304 544
WIRE -224 224 -224 192
WIRE -224 416 -224 384
WIRE -208 672 -304 672
WIRE -160 192 -224 192
WIRE -128 384 -224 384
WIRE -128 384 -128 336
WIRE -128 432 -128 384
WIRE -128 448 -128 432
WIRE -96 192 -160 192
WIRE -96 224 -96 192
WIRE -96 560 -96 224
WIRE -64 496 -64 272
WIRE -64 640 -704 640
WIRE -64 640 -64 496
WIRE -32 608 -32 384
WIRE -32 704 -32 608
WIRE 0 224 -96 224
WIRE 0 336 -128 336
WIRE 0 448 -128 448
WIRE 0 560 -96 560
WIRE 16 272 -64 272
WIRE 16 384 -32 384
WIRE 16 496 -64 496
WIRE 16 608 -32 608
WIRE 112 448 80 448
WIRE 112 560 80 560
WIRE 112 560 112 448
WIRE 144 272 64 272
WIRE 144 496 64 496
WIRE 144 496 144 272
WIRE 144 704 -32 704
WIRE 144 704 144 496
WIRE 144 736 144 704
WIRE 176 224 80 224
WIRE 176 336 80 336
WIRE 176 336 176 224
WIRE 176 384 64 384
WIRE 176 608 64 608
WIRE 176 608 176 384
WIRE 176 640 -64 640
WIRE 176 640 176 608
WIRE 224 224 176 224
WIRE 224 336 224 288
WIRE 224 384 224 336
WIRE 224 448 112 448
WIRE 272 336 224 336
WIRE 272 512 272 336
WIRE 352 224 224 224
WIRE 352 336 352 288
WIRE 352 384 352 336
WIRE 352 448 224 448
WIRE 400 336 352 336
WIRE 400 512 400 336
WIRE 432 672 -144 672
WIRE 448 224 352 224
WIRE 448 448 352 448
IOPIN -720 224 In
IOPIN -720 640 In
IOPIN 448 224 Out
IOPIN 448 448 Out
IOPIN 432 672 Out
SYMBOL sw -16 336 R270
SYMATTR InstName S2
SYMATTR Value SWD
SYMBOL diode 336 384 R0
WINDOW 3 -45 4 Left 0
SYMATTR Value LDio
SYMATTR InstName D4
SYMBOL sw -16 224 R270
SYMATTR InstName S1
SYMATTR Value SWD
SYMBOL bv -224 512 R180
WINDOW 3 -122 145 Left 0
WINDOW 123 -86 112 Left 0
SYMATTR Value I=Imax*2*(u(V(1y)+eps1)-0.5)
SYMATTR Value2 tripdv=10m tripdt=10n
SYMATTR InstName B2
SYMBOL voltage 144 720 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V4
SYMATTR Value 0.5
SYMBOL res -720 624 R0
WINDOW 3 34 72 Left 0
SYMATTR Value 1MEG
SYMATTR InstName R1
SYMBOL sw -16 448 R270
SYMATTR InstName S3
SYMATTR Value SWD
SYMBOL bv -224 320 R180
WINDOW 3 -123 186 Left 0
WINDOW 123 -123 159 Left 0
SYMATTR Value I=Imax*2*(u(V(1x)+eps1)-0.5)
SYMATTR Value2 tripdv=10m tripdt=10n
SYMATTR InstName B1
SYMBOL diode 240 448 R180
WINDOW 0 24 72 Left 0
WINDOW 3 -45 61 Left 0
SYMATTR InstName D2
SYMATTR Value LDio
SYMBOL SpecialFunctions\\modulate2 -496 224 R0
WINDOW 3 -73 121 Left 0
SYMATTR Value mark=0.25 space=0
SYMATTR InstName A1
SYMBOL SpecialFunctions\\modulate -496 512 R0
WINDOW 3 16 -20 Left 0
SYMATTR Value mark=1 space=0
SYMATTR InstName A2
SYMBOL Digital\\buf1 -208 608 R0
WINDOW 3 -163 103 Left 0
SYMATTR Value Ref=0 Trise=10n Tfall=10n
SYMATTR InstName A3
SYMBOL voltage 400 608 R180
WINDOW 3 -55 -23 Left 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR Value {Vmax}
SYMATTR InstName V3
SYMBOL voltage 272 496 R0
WINDOW 0 13 16 Left 0
WINDOW 3 -39 137 Left 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value {Vmax}
SYMBOL diode 368 288 R180
WINDOW 0 24 72 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D3
SYMATTR Value LDio
SYMBOL voltage -624 336 R0
WINDOW 3 31 85 Left 0
WINDOW 0 39 55 Left 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR Value PULSE(0 1 0 5n 5n 1E12)
SYMATTR InstName V1
SYMBOL diode 208 224 R0
WINDOW 3 26 63 Left 0
SYMATTR Value LDio
SYMATTR InstName D1
SYMBOL sw -16 560 R270
SYMATTR InstName S4
SYMATTR Value SWD
FLAG -624 432 0
FLAG -720 224 fc
FLAG -704 720 0
FLAG -720 640 Rev
FLAG -304 288 1y
FLAG -304 224 1x
FLAG 448 224 B
FLAG 448 448 A
FLAG 144 816 0
FLAG -224 304 0
FLAG -224 496 0
FLAG 432 672 clk
FLAG 272 592 0
FLAG 400 592 0
FLAG -160 192 b1
FLAG -128 432 b2
FLAG 0 0 b2
TEXT -608 24 Left 0 ;Behavioral Fine-Step Motor Controller (current output) - V. 11-aug-05
TEXT -408 64 Left 0 !.param Vmax=30 Imax=0.25\n.param eps1=1E-20
TEXT -736 144 Left 0 ;.tran 0 10 0
TEXT -736 112 Left 0 ;.options plotwinsize=0
TEXT -72 56 Left 0 !.model SWD SW(Ron=1m Roff=1MEG Vt=0 Vh=-0.1)
TEXT -800 760 Left 0 ;+1V ->reverse
TEXT -384 744 Left 0 ;REM: set Td>0 if Trise & Tfall of clk\nhave to be specified.
TEXT -72 88 Left 0 !.model LDio D(Vfwd=0 Ron=1u Roff=1MEG )