Problem 7.6 - The PSpice SIN Function for Waveform Generation
*
* NOTE: This is a two-part problem.
* 1. Use the SIN waveform function to generate v(t) = 1.5*SIN(4ăt).
* 2. Use the SIN waveform function to generate v(t) = 1.5*SIN(4ăt-45).
* For each of the waveforms generated above:
* Use the .TRAN command with a time interval 0 < t < 2.5 seconds.
* Use .PROBE to display a graph of the node voltages V(1) and V(2).
*
* NOTES ON THE SIN FUNCTION: (See Appendix A for additional information.)
* 1. The SIN function is defined in terms of any dc offset from zero
* average value, the peak amplitude of the sinusoidal part of the
* total waveform, the frequency IN HERTZ, the time delay from t=0
* to the start of the sinusoidal waveform, the damping coefficient
* of any exponential damping (exponential decay) of the waveform,
* and the t=0 phase angle of the sinusoid (assumed periodic).
* 2. The SIN function generates a time dependent sine wave. A cosine
* waveform is generated by using the SIN function with a +90 degree
* phase shift.
* 3. The offset and peak amplitude must be specified for the SIN
* function. If a frequency is not given, PSpice will assign a
* frequency equal to the reciprocal of the .TRAN analysis period so
* that one cycle of the sinusoidal waveform will be displayed on a
* PROBE graph. It is always better to specify the frequency as well
* as the offset and amplitude.
* 4. The time delay, damping coefficient, and phase default to zero if
* not specified. If a phase angle is required, then the other two
* parameters must be specified, even if the values are zero.
*
.OPT NOPAGE
V1 1 0 SIN(0 ??? ???) ; Enter the minimum specification for
; the sinusoidal waveform of the
; problem statement. The requirement
; for five complete cycles on a PROBE
; graph means that the frequency can
; not be defaulted.
R1 1 2 1K
R2 2 0 3K
.TRAN ??? 2.5 ??? ??? ??? ; Enter values for the .TRAN command.
; Use a TSTEP of TFINAL/50. Use a
; maximum step size that will give
; at least 100 data points on the
; PROBE graph of the waveform. You
; may want more data points if the
; waveform is not "smooth," but more
; points will take longer to run.
.PROBE
.END
Problem 7.6, Part 2. The PSpice SIN Function for Waveform Generation
*
* Write a SIN function description of the waveform v(t)=1.5*SIN(4ăt-45)
* and enter values for the .TRAN command to complete the program below.
*
.OPT NOPAGE
V1 1 0 SIN(0 1.5 ??? ??? ??? ???)
R1 1 2 1K
R2 2 0 3K
.TRAN ??? 2.5 ??? ??? ???
.PROBE
.END