Problem 7.3 - The Unit Rectangular Pulse Waveform
*
* NOTE: This is a three-part problem.
* 1. Use the PULSE waveform function to generate v(t) = ã(t-2).
* According to the definition of the unit rectangular pulse
* function, v(t) describes a pulse that is centered at t=2
* seconds and has a duration of 1 second.
* 2. Use the PULSE waveform function to generate v(t) = 2ã((t-3)/2).
* This pulse is centered at t=3, has a duration of 2 seconds
* and a pulse amplitude of 2 volts.
* 3. Use two PWL waveform functions to generate v(t) = ã(t-2).
*
* For each of the waveforms generated above:
* Use the .TRAN command with a time interval 0 < t < 5 seconds,
* and use .PROBE to display a graph of v(t), the node voltage V(1).
*
* The use and limitations of the PULSE and PWL waveform functions are
* described in Problems 7.1 and 7.2 for your reference.
*
* Part 1 of the program below is complete and ready to run. It is to
* use as a guide when completing Parts 2 and 3. See also Problem 7.1.
*
.OPT NOPAGE
V1 1 0 PULSE(0 1 1.5 .001 .001 1) ; The PULSE function defines
; a waveform with a value
; of zero at t=0, a peak (or final) value
; of 1 volt, a 1.5 second delay to the
; start of the rising edge, rise and fall
; times of 1 millisecond, and a width of
; 1 second at the top of the pulse.
R1 1 2 1K
R2 2 0 3K
.TRAN .1 5 0 .05 UIC ; See Problem 7.1 or 7.2 on this disk
; for a description of this command.
.PROBE
.END
Problem 7.3, Part 2. The Unit Rectangular Pulse Waveform
*
* Write a PULSE function description of the waveform v(t) = 2ã((t-3)/2).
* This is a 2-volt pulse with 2 second width, centered at t=3 seconds.
*
.OPT NOPAGE
V1 1 0 PULSE(0 2 ?????????????????) ; Complete the PULSE wave-
; form specification.
; Note that commas and/or spaces may be
; used to separate the data entries.
R1 1 2 1K
R2 2 0 3K
.TRAN ??????????????????? ; Complete the .TRAN command statement.
.PROBE
.PLOT TRAN V(1) V(2) ; This is an optional printer-plot command.
; You may use it, delete it, or ignore it.
.END
Problem 7.3, Part 3. The Unit Rectangular Pulse Waveform
*
* Use two PWL voltage sources in series (one positive and one negative)
* to generate the waveform function v(t) = ã(t-2) as in Part 1.
*
.OPT NOPAGE
V1 1 101 PWL(0 0 ?????????????????) ; Complete the PWL description.
V2 101 0 PWL(0 0 ?????????????? -1) ; Complete the PWL description.
R1 1 2 1K
R2 2 0 3K
.TRAN ?????????????????? ; Complete the .TRAN command statement.
.PROBE
.END