Pat,
A recent post asked for help making a repeating waveform in
LTSpice. This reminded me of a solution I saw in the
newsletter 'Analog Update', published by Analog Design Tools
in April 1987. The general solution involved feeding a custom
waveform into a transmission line, and looping the output of
the transmission line back to the input. The repeat interval
is set by the transmission line delay time. This method has
an advantage that you can combine any number & kind
of voltage sources to create the final waveform. You don't
have to plot the waveform point by point.
A variation of this technique that is computationally
lighter weight than using a transmission line is to use
a behavioral delay(though the "repeat for endrepeat"
syntax is the fastest) Appended is your schematic
modified to illustrate the technique.
--Mike
--- snip ---
Version 4
SHEET 1 880 728
WIRE -352 416 -352 448
WIRE -352 528 -352 560
WIRE -352 416 -400 416
WIRE -640 416 -688 416
WIRE -480 416 -528 416
WIRE -528 416 -560 416
WIRE -688 624 -688 608
WIRE -688 432 -688 416
WIRE -688 528 -688 512
FLAG -352 560 0
FLAG -528 416 OUT
FLAG -688 624 0
FLAG -688 416 IN
SYMBOL bv -352 432 R0
SYMATTR InstName B1
SYMATTR Value V=delay(2*V(OUT),50m)
SYMBOL res -544 400 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R1
SYMATTR Value 1K
SYMBOL res -384 400 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R2
SYMATTR Value 1K
SYMBOL voltage -688 416 R0
WINDOW 0 -34 4 Left 0
WINDOW 3 -247 -70 Invisible 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value PWL(0 0 500u 10 1m 100 3m 80 4000u 250 6000u 0)
SYMBOL voltage -688 512 M0
WINDOW 3 24 104 Invisible 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR Value SINE(0 100 100 5m 0 0 1)
SYMATTR InstName V2
TEXT -568 632 Left 0 !.tran 0 200m 0 10u