* Z:\home\khalils\Downloads\files\data\raw_asc\099ad81d7881_StepperCtrl_2ph_V.asc
* Generated by LTspice 26.0.1 for Windows.
* Behavioral Fine-Step Motor Controller (voltage output) - V.9-aug-05
* +1V ->reverse
* REM: set Td>0 if Trise & Tfall of clk\nhave to be like specified.
A1 fc N003 0 0 0 1y 1x 0 MODULATOR mark=0.25 space=0
A2 fc N003 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
R1 Rev 0 1Meg
S3 N004 A N002 Rev SWD
S2 N004 B Rev N002 SWD
S1 N001 B N002 Rev SWD
B2 N004 0 V=Vmax*2*(u(V(1y)+eps1)-0.5)
V1 N003 0 PULSE(0 1 0 5n 5n 1E12)
B1 N001 0 V=Vmax*2*(u(V(1x)+eps1)-0.5)
S4 N001 A Rev N002 SWD
V4 N002 0 0.5
.params Vmax=6
.param eps1=1E-30 ;start at V(A)=V(B)=+Vmax
.tran 0 10 0
.options plotwinsize=0
.model SWD SW(Ron=1m Roff=1MEG Vt=0 Vh=-0.1)
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2276 1548
WIRE -752 640 -768 640
WIRE -720 224 -768 224
WIRE -720 512 -720 224
WIRE -624 352 -624 288
WIRE -560 288 -624 288
WIRE -560 576 -560 288
WIRE -496 224 -720 224
WIRE -496 288 -560 288
WIRE -496 512 -720 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 -128 384 -224 384
WIRE -128 384 -128 336
WIRE -128 448 -128 384
WIRE -96 192 -224 192
WIRE -96 224 -96 192
WIRE -96 560 -96 224
WIRE -64 496 -64 272
WIRE -64 640 -752 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 288 224 176 224
WIRE 288 448 112 448
WIRE 288 672 -144 672
IOPIN -768 224 In
IOPIN -768 640 In
IOPIN 288 224 Out
IOPIN 288 448 Out
IOPIN 288 672 Out
SYMBOL SpecialFunctions\\modulate -496 512 R0
WINDOW 3 16 -20 Left 0
SYMATTR Value mark=1 space=0
SYMATTR InstName A2
SYMBOL sw -16 560 R270
SYMATTR InstName S4
SYMATTR Value SWD
SYMBOL bv -224 400 R0
WINDOW 3 -124 130 Left 0
SYMATTR Value V=Vmax*2*(u(V(1y)+eps1)-0.5)
SYMATTR InstName B2
SYMBOL SpecialFunctions\\modulate2 -496 224 R0
WINDOW 3 -73 121 Left 0
SYMATTR Value mark=0.25 space=0
SYMATTR InstName A1
SYMBOL sw -16 448 R270
SYMATTR InstName S3
SYMATTR Value SWD
SYMBOL Digital\\buf1 -208 608 R0
WINDOW 3 -163 103 Left 0
SYMATTR Value Ref=0 Trise=10n Tfall=10n
SYMATTR InstName A3
SYMBOL res -768 624 R0
WINDOW 3 34 72 Left 0
SYMATTR Value 1MEG
SYMATTR InstName R1
SYMBOL sw -16 336 R270
SYMATTR InstName S2
SYMATTR Value SWD
SYMBOL bv -224 208 R0
WINDOW 3 -120 152 Left 0
SYMATTR Value V=Vmax*2*(u(V(1x)+eps1)-0.5)
SYMATTR InstName B1
SYMBOL voltage -624 336 R0
WINDOW 3 -80 56 Left 0
WINDOW 0 8 4 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 sw -16 224 R270
SYMATTR InstName S1
SYMATTR Value SWD
SYMBOL voltage 144 720 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V4
SYMATTR Value 0.5
FLAG -624 432 0
FLAG -768 224 fc
FLAG -752 720 0
FLAG -768 640 Rev
FLAG -304 288 1y
FLAG -304 224 1x
FLAG 288 224 B
FLAG 288 448 A
FLAG 144 816 0
FLAG -224 304 0
FLAG -224 496 0
FLAG 288 672 clk
TEXT -608 24 Left 0 ;Behavioral Fine-Step Motor Controller (voltage output) - V.9-aug-05
TEXT -472 64 Left 0 !.params Vmax=6\n.param eps1=1E-30 ;start at V(A)=V(B)=+Vmax
TEXT -744 144 Left 0 !.tran 0 10 0
TEXT -744 112 Left 0 !.options plotwinsize=0
TEXT -192 128 Left 0 !.model SWD SW(Ron=1m Roff=1MEG Vt=0 Vh=-0.1)
TEXT -848 760 Left 0 ;+1V ->reverse
TEXT -384 744 Left 0 ;REM: set Td>0 if Trise & Tfall of clk\nhave to be like specified.