Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Transient analysis
11
Chapter overview
This chapter describes how to set up a transient analysis
and includes the following sections:
• Overview of transient analysis on page 340
• Defining a time-based stimulus on page 342
• Transient (time) response on page 353
• Internal time steps in transient analyses on page 356
• Switching circuits in transient analyses on page 357
• Plotting hysteresis curves on page 357
• Fourier components on page 359
Pspug.book Page 340 Tuesday, November 2, 1999 2:29 PM
340
Pspug.book Page 341 Tuesday, November 2, 1999 2:29 PM
341
Pspug.book Page 342 Tuesday, November 2, 1999 2:29 PM
342
Pspug.book Page 343 Tuesday, November 2, 1999 2:29 PM
343
Pspug.book Page 344 Tuesday, November 2, 1999 2:29 PM
Stimulus files
The Stimulus Editor produces a file containing the stimuli
with their transient specification. These stimuli are
defined as simulator device declarations using the V
(voltage source), I (current source), and U STIM (digital
stimulus generator) forms. Since the Stimulus Editor
produces these statements automatically, you will never
have to be concerned with their syntax. However, if you
are interested in a detailed description of their syntax, see
the descriptions of V and I devices in the Analog Devices
chapter and stimulus generator in the Digital Devices
chapter of the the online OrCAD PSpice A/D Reference
Manual.
344
Pspug.book Page 345 Tuesday, November 2, 1999 2:29 PM
345
Pspug.book Page 346 Tuesday, November 2, 1999 2:29 PM
346
Pspug.book Page 347 Tuesday, November 2, 1999 2:29 PM
Example: sine wave sweep This example creates a 10 k sine wave with
1 Open an existing schematic or start a new one. the amplitude parameterized so that it can
be swept during a simulation.
2 Place a VSTIM part on your schematic.
3 To name the stimulus, double-click the
implementation property and type Vsin.
4 Click the VSTIM part to select it.
5 From the PSpice menu, choose Edit Stimulus to start
the Stimulus Editor.
347
Pspug.book Page 348 Tuesday, November 2, 1999 2:29 PM
348
Pspug.book Page 349 Tuesday, November 2, 1999 2:29 PM
349
Pspug.book Page 350 Tuesday, November 2, 1999 2:29 PM
Editing a stimulus
To edit an existing stimulus
1 Start the Stimulus Editor and select Get from the
Stimulus menu.
2 Double-click the trace name (at the bottom of the X
axis for analog and to the left of the Y axis for digital
traces.) This opens the Stimulus Attributes dialog box
where you can modify the attributes of the stimulus
directly and immediately see the effect of the changes.
PWL stimuli are a little different since they To edit a PWL stimulus
are a series of time/value pairs. 1 Double click the trace name. This displays the handles
for each defined data point.
2 Click any handle to select it. To reshape the trace, drag
it to a new location. To delete the data point, press X.
3 To add additional data points, either select Add from
the Edit menu or click the Add Point button.
4 Right-click to end adding new points.
This provides a fast way to scale a PWL To select a time and value scale factor for PWL
stimulus. stimuli
1 Select the PWL trace by clicking on its name.
2 Select Attributes from the Edit menu or click the
corresponding toolbar button.
350
Pspug.book Page 351 Tuesday, November 2, 1999 2:29 PM
351
Pspug.book Page 352 Tuesday, November 2, 1999 2:29 PM
352
Pspug.book Page 353 Tuesday, November 2, 1999 2:29 PM
353
Pspug.book Page 354 Tuesday, November 2, 1999 2:29 PM
354
Pspug.book Page 355 Tuesday, November 2, 1999 2:29 PM
355
Pspug.book Page 356 Tuesday, November 2, 1999 2:29 PM
356
Pspug.book Page 357 Tuesday, November 2, 1999 2:29 PM
357
Pspug.book Page 358 Tuesday, November 2, 1999 2:29 PM
* Capture Netlist
R_RIN 1 2 50
R_RC1 0 3 50
R_R1 3 5 185
R_R2 5 8 760
R_RC2 0 6 100
R_RE 4 8 260
R_RTH2 7 0 85
C_CLOAD 0 7 5PF
V_VEE 8 0 dc -5
V_VIN 1 0
+PWL 0 -8 1MS -1.0V 2MS -1.8V
R_RTH1 8 7 125
Q_Q1 3 2 4 QSTD
Q_Q2 6 5 4 QSTD
Q_Q3 0 6 7 QSTD
Q_Q4 0 6 7 QSTD
358
Pspug.book Page 359 Tuesday, November 2, 1999 2:29 PM
Fourier components
Fourier components
Note You must do a transient analysis
Fourier analysis is enabled through the Output File
in order to do a Fourier analysis. The
Options dialog box under the Time Domain (Transient)
sampling interval used during the
Analysis type. Fourier analysis calculates the DC and
Fourier transform is equal to the print
Fourier components of the result of a transient analysis.
step specified for the transient analysis.
By default, the first through ninth components are
computed; however, more can be specified.
When selecting Fourier to run a harmonic decomposition
analysis on a transient waveform, only a portion of the
waveform is used. Using the Probe window in PSpice
A/D, a Fast Fourier Transform (FFT) of the complete
waveform can be calculated and its spectrum displayed.
In the example shown in Figure 64 on page 354, the
voltage waveform at node OUT2 from the transient
analysis is to be used and the fundamental frequency is to
be one megahertz for the harmonic decomposition. The
period of fundamental frequency is one microsecond
(inverse of the fundamental frequency). Only the last one
microsecond of the transient analysis is used, and that
359
Pspug.book Page 360 Tuesday, November 2, 1999 2:29 PM
360