orca dp spice
TRANSCRIPT
-
8/2/2019 Orca Dp Spice
1/18
-
8/2/2019 Orca Dp Spice
2/18
PSPICE Seminar / DeVry KC - Spring 2002 - Page 2
2002 Tom A. Wheeler
DC Static Analysis Example
1 . S t a r t O r C A D L i t e a s s h o w n b e l o w :
N o t e t h a t t h e o n l y p r o g r a m y o u n e e d t o s t a r t i s C a p t u r e L i t e E d i t i o n . T h e o t h e r
p r o g r a m s w i l l r u n a u t o m a t i c a l l y a s t h e y r e n e e d e d .
2 . C l i c k t h e C r e a t e D o c u m e n t b u t t o n o n t h e t o o l b a r .
Create Document
3 . T h e f o l l o w i n g d i a l o g w i l l a p p e a r . F i l l i n t h e i n f o r m a t i o n a s s h o w n .
1. Type in thename of the project
2. Select Analog or
Mixed A/D asshown.
3. Specify where theproject will be saved
on your co mputer
4. Click OK
-
8/2/2019 Orca Dp Spice
3/18
PSPICE Seminar / DeVry KC - Spring 2002 - Page 3
2002 Tom A. Wheeler
4 . T h e f o l l o w i n g d i a l o g w i l l a p p e a r :
C h o o s e C r e a t e a b l a n k p r o j e c t a n d c l i c k O K .
5 . T h e s c h e m a t i c e d i t o r w i l l o p e n . E n t e r t h e f o l l o w i n g s c h e m a t i c i n t o t h e p r o g r a m :
0
R3
1k
0
R2
1k
V1
10V
R1
1k
N o t e t h e f o l l o w i n g :
P a r t s a r e p l a c e d b y S H I F T - P
T h e v o l t a g e s o u r c e i s c a l l e d V D C i n t h e p a r t s l i b r a r y
T h e r e s i s t o r s a r e c a l l e d R
T h e g r o u n d i s o b t a i n e d b y c l i c k i n g t h e g r o u n d b u t t o n
a n d c h o o s i n g p a r t 0 / S O U R C E .
SOURCE libraryshould show here.
If not, press AddLibrary button.
-
8/2/2019 Orca Dp Spice
4/18
PSPICE Seminar / DeVry KC - Spring 2002 - Page 4
2002 Tom A. Wheeler
6 . C r e a t e a n e w s i m u l a t i o n p r o f i l e f o r t h e c i r c u i t b y g o i n g t o t h e P S P I C E m e n u a n d c h o o s i n g
N e w S i m u l a t i o n P r o f i l e a s s h o w n :
1. Type a name for the
profile and click Create.
2. The Simulation Settingsdialog will appear, but
theres nothing to set, so
click OK.
Y o u c a n h a v e m u l t i p l e p r o f i l e s f o r a g i v e n p r o j e c t . T h i s a l l o w s y o u t o a n a l y z e a c i r c u i t i n
d i f f e r e n t w a y s w i t h o u t h a v i n g t o c h a n g e s e t t i n g s b a c k a n d f o r t h .
7 . C l i c k t h e t o o l b a r b u t t o n s f o r d i s p l a y i n g t h e b i a s - p o i n t v o l t a g e s a n d c u r r e n t s s o t h a t t h e y
a r e d e p r e s s e d .
8 . P r e s s F 1 1 t o r u n t h e s i m u l a t i o n . ( T h i s i s t h e s a m e a s g o i n g t o t h e P S P I C E m e n u a n d
c h o o s i n g R u n ) . T h e s c r e e n w i l l s h o w t h e D C v o l t a g e s a n d c u r r e n t s d i r e c t l y o n t h e
s c h e m a t i c .
-
8/2/2019 Orca Dp Spice
5/18
PSPICE Seminar / DeVry KC - Spring 2002 - Page 5
2002 Tom A. Wheeler
Debugging PSPICE Simulation Errors
S o o n e r o r l a t e r ( p r o b a b l y s o o n e r ) , y o u l l g e t a n a s t y e r r o r m e s s a g e f r o m t h e s i m u l a t o r .
B e c a u s e t h i s p r o g r a m u s e s a P S P I C E c o r e t o d o t h e a c t u a l w o r k , y o u n e e d t o b e a b l e t o
l o c a t e a n d d e c i p h e r t h e a c t u a l e r r o r w i t h i n t h e O U T P U T f i l e , t h e n c o r r e c t i t i n y o u r c i r c u i t .
1 . L e t s b r e a k t h e c i r c u i t . D e l e t e o n e o f t h e c o n d u c t o r s a n d p r e s s F 1 1 t o r u n t h e s i m u l a t i o n
a g a i n . I b r o k e m i n e l i k e t h i s :
R2
1k
0
V1
10V
R1
1k3.333V
R3
1k
0V
0V
0
D e p e n d i n g o n h o w y o u r v e r s i o n o f P S P I C E i s c o n f i g u r e d , y o u l l g e t e i t h e r a d i a l o g b o x
w i t h a n e r r o r , o r a f u l l s c r e e n d u m p o f t h e o u t p u t f i l e , w h i c h s h o w s t h e e r r o r .
I f y o u d o n t g e t t h e o u t p u t f i l e , s e l e c t V i e w O u t p u t f r o m t h e P S P I C E m e n u t o s e e i t . I t
m i g h t l o o k l i k e t h i s :
2 . Y o u c a n s e e t h e E R R O R . A t n o d e N 0 0 8 1 2 t h e r e s a p r o b l e m . B y l o o k i n g a t t h e n e t l i s t
p o r t i o n o f t h e l i s t i n g , y o u c a n s e e t h a t n o d e N 0 0 8 1 2 i s a s s o c i a t e d w i t h R 1 .
** Creating circuit file "wheels-schematic1-dc simulation.sim.cir"
** WARNING: THIS AUTOMATICALLY GENERATED FILE MAY BE OVERWRITTEN BY SUBSEQUENT
SIMULATIONS
*Libraries:
* Local Libraries :
* From [PSPICE NETLIST] section of C:\Program Files\OrcadLite\PSpice\PSpice.inifile:
.lib "nom.lib"
*Analysis directives:
.PROBE V(*) I(*) W(*) D(*) NOISE(*)
.INC ".\wheels-SCHEMATIC1.net"
**** INCLUDING wheels-SCHEMATIC1.net ****
* source WHEELS
V_V1 N00893 0 10V
R_R1 N00812 N00197 1k
R_R2 0 N00197 1k
R_R3 0 N00197 1k
**** RESUMING "wheels-schematic1-dc simulation.sim.cir" ****
.END
ERROR -- Less than 2 connections at node N00812
Node N00812 belongs to R1.
-
8/2/2019 Orca Dp Spice
6/18
PSPICE Seminar / DeVry KC - Spring 2002 - Page 6
2002 Tom A. Wheeler
Transient Analysis
I n P S P I C E , t h e t r a n s i e n t a n a l y s i s o p t i o n i s u s e d t o d o b o t h s t e a d y a n d t r a n s i e n t a n a l y s i s o f
c i r c u i t s . T h i s c a n i n v o l v e b o t h A C a n d D C s i g n a l s o u r c e s . S t e a d y - s t a t e A C t i m e - d o m a i n
r e s u l t s a r e o b t a i n e d b y t h e s a m e s e t u p a s f o r t r a n s i e n t a n a l y s i s . L e t s t r y i t o u t .
1 . S t a r t a n e w p r o j e c t c a l l e d b o i n g a n d b u i l d t h e f o l l o w i n g s c h e m a t i c i n t o i t . ( M a k e s u r e t o
c o m p l e t e l y c l o s e t h e p r e v i o u s p r o j e c t ) .
0
C1
25uF
V1
TD = 1
TF = 0PW = 10PER = 0
V1 = 0v
TR = 0
V2 = 1v
L1
1000H
1 2
V
0
0V
0V
0V
0V
R1
632
V
0V
P l a c e t h e t w o v o l t a g e p r o b e s b y c l i c k i n g t h e p r o b e b u t t o n o n t h e t o o l b a r . N o t e t h e
c o l o r o f e a c h p r o b e ; i t w i l l m a t c h t h e c o l o r o f t h e t r a c e i n t h e P R O B E r e a d o u t d u r i n g
s i m u l a t i o n .
T h e s o u r c e u s e d i s c a l l e d V P U L S E a n d t h e p a r a m e t e r s o n t h e s o u r c e h a v e t h e f o l l o w i n g
m e a n i n g s :
V 1 i s t h e o f f v o l t a g e
V 2 i s t h e o n v o l t a g e
T h e s i m u l a t i o n b e g i n s w i t h t h e s o u r c e i n t h e O F F s t a t e . T D i s t h e t i m e d e l a y i n
s e c o n d s b e f o r e t h e p u l s e t u r n s o n .
T R a n d T F a r e t h e r i s e a n d f a l l t i m e s o f t h e s t e p f u n c t i o n .
P W i s t h e p u l s e w i d t h ( h o w l o n g t h e s o u r c e s t a y s o n a f t e r T D h a s p a s s e d . )
P E R i s t h e p e r i o d . E n t e r 0 f o r a o n e - s h o t p u l s e , o r a n o n - z e r o p e r i o d f o r t h e p u l s e t o
b e p e r i o d i c .
-
8/2/2019 Orca Dp Spice
7/18
PSPICE Seminar / DeVry KC - Spring 2002 - Page 7
2002 Tom A. Wheeler
2 . B u i l d a n e w s i m u l a t i o n p r o f i l e c a l l e d t r a n s i e n t a n d m a k e i t l o o k l i k e t h i s :
R u n t o t i m e s a y s h o w l o n g t o r u n t h e s i m u l a t i o n . 1 0 s e c o n d s i s f o r e v e r i n t h e w o r l d
o f c i r c u i t s , b u t t h i s o n e i s s p e c i a l .
S t a r t s a v i n g d a t a a f t e r 0 s e c o n d s m e a n s t o u s e a l l s i m u l a t i o n r e s u l t s s t a r t i n g w i t h
t i m e = 0 . E n t e r i n g a n o n - z e r o v a l u e c a u s e s i n i t i a l d a t a p o i n t s t o b e d i s c a r d e d .
M a x i m u m s t e p s i z e i s a v e r y i m p o r t a n t s e t t i n g . I t s p e c i f i e s h o w o f t e n P S P I C E w i l l
r e c a l c u l a t e t h e c i r c u i t p a r a m e t e r s d u r i n g s i m u l a t i o n . I f y o u r e e x p e c t i n g s i n u s o i d s t o
l o o k g o o d , y o u n e e d a t l e a s t 1 0 0 o r m o r e c a l c u l a t i o n s f o r e a c h s i n e w a v e p e r i o d .
3 . P r e s s t h e F 1 1 k e y . ( W a r n i n g : S t a n d s e v e r a l f e e t b a c k f r o m t h e c i r c u i t w h e n d o i n g t h i s ! )
Y o u s h o u l d g e t t h e f o l l o w i n g d i s p l a y :
-
8/2/2019 Orca Dp Spice
8/18
PSPICE Seminar / DeVry KC - Spring 2002 - Page 8
2002 Tom A. Wheeler
4 . T r y r e p l a c i n g t h e D C p u l s e s o u r c e i n t h e c i r c u i t w i t h a n A C s i g n a l s o u r c e a n d r e p e a t t h e
a n a l y s i s a g a i n . Y o u m i g h t w a n t t o c h a n g e t h e R u n t o t i m e i n t h e a n a l y s i s p r o f i l e t o 2 0
s e c o n d s . T h e c i r c u i t l o o k s l i k e t h i s :
R1
632
0
V
0
V1
FREQ = 1VAMPL = 1VOFF = 0
L1
1000H
1 2
V
0V
0V
0V
0V
C1
25uF
0V
F o r t h e V S I N s i g n a l s o u r c e , t h e p a r a m e t e r s h a v e t h e f o l l o w i n g m e a n i n g s :
V O F F i s t h e D C o f f s e t
V A M P L i s t h e p e a k v o l t a g e o f t h e s i n e w a v e
F R E Q i s ( y o u g u e s s e d i t ) , t h e f r e q u e n c y o f t h e s i g n a l i n H z .
Y o u c a n s e t o t h e r p a r a m e t e r s o f t h e V S I N s o u r c e b y d o u b l e - c l i c k i n g t h e b o d y o f t h e p a r t .
Y o u l l g e t a c o m p l e t e l i s t i n g o f t h e s e t t a b l e p a r a m e t e r s a n d t h e i r v a l u e s .
-
8/2/2019 Orca Dp Spice
9/18
PSPICE Seminar / DeVry KC - Spring 2002 - Page 9
2002 Tom A. Wheeler
AC Parametric Sweeps
I n o r d e r t o l e a r n a b o u t t h e f r e q u e n c y r e s p o n s e o f c i r c u i t s , a n A C p a r a m e t r i c s w e e p c a n b e
p e r f o r m e d . T h i s i s a d i f f e r e n t t y p e o f a n a l y s i s t h a n t r a n s i e n t a n a l y s i s a s f a r a s P S P I C E i s
c o n c e r n e d , b e c a u s e i n s t e a d o f c a l c u l a t i n g t h e i n s t a n t a n e o u s v a l u e s f o r v o l t a g e s a n d c u r r e n t s ,
P S P I C E i n s t e a d c a l c u l a t e s t h e s t e a d y - s t a t e e f f e c t i v e c u r r e n t s a n d v o l t a g e s .
A n y s o u r c e w i t h a n A C p a r a m e t e r c a n b e u s e d a s a s w e p t - f r e q u e n c y A C v o l t a g e s o u r c e . T h e
o b j e c t V S R C i s a g e n e r i c A C s i g n a l s o u r c e . T h e V S I N d e v i c e a l s o h a s t h e c a p a b i l i t y t o b e
u s e d d u r i n g A C s w e e p s . I t i s u s u a l l y m o r e c o n v e n i e n t t o u s e V S I N s i n c e t h e s a m e s i g n a l
s o u r c e c a n b e u s e d f o r b o t h s t e a d y s t a t e a n d t r a n s i e n t a n a l y s i s .
P S P I C E c a n p r e s e n t t h e r e s u l t s o f a n A C s w e e p i n m a n y u s e f u l w a y s . W e l l f i r s t l o o k a t r a w
v o l t a g e d a t a , t h e n h a v e P S P I C E d i s p l a y t h e d a t a i n d e c i b e l f o r m .
1 . C h a n g e t h e s c h e m a t i c d i a g r a m o f t h e p r o j e c t t o l o o k l i k e t h i s :
V
V1
FREQ = 10.065VAMPL = 1VOFF = 0
L1
10H
1 2
0
V
C1
25uF
0
R1
6.32
T h i s m o d i f i c a t i o n r a i s e s t h e r e s o n a n t f r e q u e n c y o f t h e c i r c u i t t o 1 0 . 0 6 5 H z , a n d t h e Q
b e c o m e s 1 0 0 .
2 . C h a n g e t h e s i m u l a t i o n p r o f i l e t o l o o k l i k e t h i s :
-
8/2/2019 Orca Dp Spice
10/18
PSPICE Seminar / DeVry KC - Spring 2002 - Page 10
2002 Tom A. Wheeler
3 . R u n t h e s i m u l a t i o n . N o t i c e t h a t t h e c i r c u i t t a k e s a l i t t l e w h i l e t o b u i l d i t s v o l t a g e u p d u e
t o t h e h i g h Q o f t h e t a n k c i r c u i t !
4 . L e t s f i n d t h e f r e q u e n c y r e s p o n s e o f t h i s f i l t e r c i r c u i t . F i r s t , l e t s c r e a t e a n e w s i m u l a t i o n
p r o f i l e ( r e m e m b e r , a p r o j e c t c a n c o n t a i n m u l t i p l e s i m u l a t i o n p r o f i l e s . )
A t t h e P S P I C E m e n u , c h o o s e N e w S i m u l a t i o n P r o f i l e
F i l l i n t h e r e s u l t i n g d i a l o g b o x a s f o l l o w s a n d c l i c k t h e C R E A T E b u t t o n .
A n e w s i m u l a t i o n p r o f i l e w i l l a p p e a r . S e t i t u p a s f o l l o w s :
T h i s p r o f i l e w i l l s w e e p a n y A C s o u r c e s i n t h e c i r c u i t f r o m 1 H z t o 1 0 0 H z ( t w o
d e c a d e s ) , w i t h 1 0 0 p o i n t s f o r e a c h d e c a d e .
-
8/2/2019 Orca Dp Spice
11/18
PSPICE Seminar / DeVry KC - Spring 2002 - Page 11
2002 Tom A. Wheeler
5 . T o d o a n A C f r e q u e n c y s w e e p , t h e r e m u s t b e a t l e a s t o n e s i g n a l s o u r c e w i t h a n A C
p a r a m e t e r i n t h e c i r c u i t . D o u b l e c l i c k t h e b o d y o f t h e v o l t a g e s o u r c e a n d y o u l l g e t a
d e t a i l e d s c r e e n l i k e t h i s o n e :
Click on any field to change its value.Change the AC field to 1V and the DC
f ield to 0V (no DC offset).
T h i s s c r e e n i s a v a i l a b l e f o r a l l c o m p o n e n t s i n a d e s i g n . N o t a l l o f t h e p a r a m e t e r s d i s p l a y
o n y o u r d r a w i n g b e c a u s e t h e d i s p l a y i s n t t u r n e d o n f o r t h e m . T o f i x t h a t , h i g h l i g h t o n e o f
t h e i t e m s , t h e n c l i c k t h e D i s p l a y . . . b u t t o n . C h o o s e N a m e a n d V a l u e f r o m t h e d i a l o g t o
m a k e t h e p a r a m e t e r s h o w o n t h e d r a w i n g .
T o e x i t t h e p r o p e r t y e d i t o r , c l i c k t h e l o w e r X b u t t o n a t t h e u p p e r - r i g h t p o r t i o n o f t h e
d i s p l a y .
6 . T h e c i r c u i t s h o u l d n o w s i m u l a t e . P r e s s t h e F 1 1 k e y t o d o s o . B u t w a i t , t h e r e s a p r o b l e m - -
w h y d o e s n t t h e o u t p u t v o l t a g e r i s e a l l t h e w a y t o 1 V ( V i n ) a t r e s o n a n c e ? T h e c i r c u i t
d o e s n t w o r k ! ( T r y m o r e p o i n t s p e r d e c a d e i n t h e s i m u l a t i o n s e t u p - - 1 0 0 0 i s a g o o d
n u m b e r . )
7 . Y o u c a n e a s i l y s w i t c h b a c k t o t h e p r e v i o u s s i m u l a t i o n p r o f i l e . S i m u l a t i o n p r o f i l e s a r e
s t o r e d w i t h t h e p r o j e c t .
F r o m t h e W i n d o w m e n u o f t h e s c h e m a t i c e d i t o r , c h o o s e b o i n g . o p j . Y o u l l s e e t h e
f o l l o w i n g d i s p l a y :
-
8/2/2019 Orca Dp Spice
12/18
PSPICE Seminar / DeVry KC - Spring 2002 - Page 12
2002 Tom A. Wheeler
B y e x p a n d i n g t h e S i m u l a t i o n P r o f i l e s f o l d e r , y o u c a n s e e t h a t y o u r p r o j e c t h a s t w o
d i f f e r e n t p r o f i l e s .
Y o u c a n e n a b l e a n y p r o f i l e b y h i g h l i g h t i n g i t , t h e n s e l e c t i n g M a k e A c t i v e f r o m t h e
P S P I C E m e n u .
T h e a c t i v e p r o f i l e i s a l w a y s h i g h l i g h t e d w i t h a r e d P ! ( f o r P r o b e ) .
8 . L e t s l o o k a t t h e d a t a w i t h a d e c i b e l d i s p l a y . S w i t c h b a c k t o t h e s c h e m a t i c ( m a k i n g s u r e
t h e f r e q u e n c y r e s p o n s e p r o f i l e i s a c t i v e ) .
P S P I C E p r o v i d e s s p e c i a l p r o b e s t h a t r e a d i n d B V u n i t s . B y d e f i n i t i o n :
=Volt
VdBV
1log20
T h e s e s p e c i a l p r o b e s a r e a v a i l a b l e b y f o l l o w i n g t h e m e n u s a s f o l l o w s :
P l a c e t w o o f t h e s e p r o b e s o n t o t h e c i r c u i t ( a n d d e l e t e t h e o t h e r v o l t a g e p r o b e s ) . T h e
c i r c u i t s h o u l d l o o k l i k e t h i s :
V1
FREQ = 10.065VAMPL = 1VOFF = 0
AC = 1DC = 0
C1
25uF
L1
10H
1 2
0
R1
6.32
VDB
0
VDB
-
8/2/2019 Orca Dp Spice
13/18
PSPICE Seminar / DeVry KC - Spring 2002 - Page 13
2002 Tom A. Wheeler
9 . W i t h t h e s e s p e c i a l p r o b e s i n t h e c i r c u i t , r u n t h e a n a l y s i s a g a i n . N o t i c e t h a t w e p l a y e d a
d i r t y l i t t l e t r i c k . B y s e t t i n g t h e i n p u t v o l t a g e t o 1 V ( 0 d B V ) , w e g e t o u t p u t v o l t a g e
m a g n i t u d e r e a d i n g s t h a t c o r r e s p o n d t o t h e v o l t a g e g a i n .
I t i s p o s s i b l e t o m a t h e m a t i c a l l y c o m p u t e g a i n b y a d d i n g a t r a c e t o t h e p l o t . S e e i f y o u c a n
f i g u r e o u t h o w i t w o r k s .
DC Parametric Sweeps
I t i s a l s o p o s s i b l e t o v a r y t h e p a r a m e t e r s i n a D C - s w e p t f a s h i o n . C o m m o n e x a m p l e s o f
p a r a m e t e r s t h a t c a n b e v a r i e d i n c l u d e r e s i s t a n c e , c a p a c i t a n c e , t r a n s i s t o r B e t a , a n d s o o n .
A g o o d e x a m p l e o f t h i s i s t o d e m o n s t r a t e t h e m a x i m u m p o w e r t r a n s f e r t h e o r e m , w h e r e t h e
l o a d r e s i s t a n c e o f a c i r c u i t m u s t e q u a l t h e s o u r c e r e s i s t a n c e i n o r d e r t o g e t m a x i m u m p o w e r
i n t o t h e l o a d .
1 . C r e a t e a n e w p r o j e c t c a l l e d p o w e r a n d a d d a s c h e m a t i c t o t h e p r o j e c t a s f o l l o w s . N o t e
t h a t t h e v a l u e o f R 2 i s { R L O A D } , w h i c h w i l l r e f e r t o a g l o b a l p a r a m e t e r .
00
V1
100V
W
R2
{RLOAD}
R1
1k
2 . P l a c e a n e w p a r t o n t h e d r a w i n g c a l l e d P A R A M ( f r o m t h e S P E C I A L l i b r a r y . ) P l a c e i t o n
t h e s c h e m a t i c , t h e n d o u b l e - c l i c k i t s b o d y t o o p e n i t s p r o p e r t y s h e e t .
W i t h i n t h e p r o p e r t y s h e e t e d i t o r , m a k e t h e f o l l o w i n g c h a n g e s t o t h e P A R A M b l o c k :
S e l e c t t h e O r C A D - P S p i c e F i l t e r t o m a k e i t e a s i e r t o s e e t h e i m p o r t a n t f i e l d s .
C l i c k t h e N e w C o l u m n b u t t o n a n d a d d a c o l u m n c a l l e d R L O A D . S e t i t s v a l u e t o 1 k ,
a s s h o w n b e l o w .
M a k e s u r e t o s e t R L O A D v i s i b l e b y h i g h l i g h t i n g i t a n d c l i c k i n g t h e D i s p l a y b u t t o n .
-
8/2/2019 Orca Dp Spice
14/18
PSPICE Seminar / DeVry KC - Spring 2002 - Page 14
2002 Tom A. Wheeler
C l o s e t h e p r o p e r t y s h e e t . Y o u r d r a w i n g s h o u l d n o w h a v e a p a r a m e t e r b l o c k t h a t
l o o k s s o m e t h i n g l i k e t h i s :
PARAMETERS:
RLOAD = 1k
T h e v a l u e o f 1 k h a s n o e f f e c t o n a D C s w e p t a n a l y s i s , b u t w i l l i n s t e a d b e u s e d f o r
b i a s p o i n t ( s t e a d y - s t a t e ) c a l c u l a t i o n ( i f t h a t i s r e q u i r e d ) .
3 . E d i t t h e a n a l y s i s p r o f i l e t o l o o k l i k e t h i s :
T h e s w e e p w i l l v a r y t h e g l o b a l p a r a m e t e r y o u n a m e d - - R L O A D - - i n a c c o r d a n c e w i t h t h e
r u l e s s e t f o r t h u n d e r S w e e p t y p e .
4 . R u n t h e a n a l y s i s w i t h F 1 1 .
-
8/2/2019 Orca Dp Spice
15/18
PSPICE Seminar / DeVry KC - Spring 2002 - Page 15
2002 Tom A. Wheeler
Solid State Circuit Analysis
O r C A D P S P I C E c a n m o d e l c i r c u i t s w i t h m i x e d a n a l o g a n d d i g i t a l c o m p o n e n t s . B e l o w i s a
c o m m o n - e m i t t e r a m p l i f i e r . U s i n g P S P I C E s i m u l a t i o n w e c a n d e t e r m i n e :
W h a t a r e t h e D C o p e r a t i n g v o l t a g e s o f t h e a m p l i f i e r ?
W h a t i s t h e v o l t a g e g a i n a n d c o m p l i a n c e o f t h e a m p l i f i e r ?
W h a t i s t h e f r e q u e n c y r e s p o n s e o f t h e u n i t ?
1 . S t a r t a n e w p r o j e c t c a l l e d t r a n s i s t o r a n d i n s e r t t h e c i r c u i t o f t h e a m p l i f i e r b e l o w .
C2
1uF
C3
220uFR2
150
V
0
Q1
Q2N3904
V2
FREQ = 1kVAMPL = .1VOFF = 0
V
R1
22
R3
1k
0
V1
18v
RL
1k
C1
1uF
0
R6
33k
0 00
R5
4.7k
-
8/2/2019 Orca Dp Spice
16/18
PSPICE Seminar / DeVry KC - Spring 2002 - Page 16
2002 Tom A. Wheeler
2 . C r e a t e a n e w s i m u l a t i o n p r o f i l e a n d s e t i t a s f o l l o w s :
N o t e t h a t t h e V S I N s o u r c e i n t h e c i r c u i t i s s e t t o 1 K H z , a n d t h a t t h e a n a l y s i s s t e p s a r e
1 S - - s o t h e r e w i l l b e 1 0 0 0 c a l c u l a t i o n s f o r e a c h s i n e w a v e c y c l e . W i t h t h e T S T O P
s e t t i n g o f 1 0 m S , w e s h o u l d s e e 1 0 c y c l e s o f t h e w a v e f o r m o n t h e d i s p l a y .
3 . R u n t h e s i m u l a t i o n . T o s e e t h e D C v o l t a g e s a n d c u r r e n t s , c l i c k t h e a p p r o p r i a t e t o o l b a r
b u t t o n s .
Compliance Evaluation
T o p e r f o r m a c o m p l i a n c e t e s t o f a n a m p l i f i e r , w e g r a d u a l l y i n c r e a s e t h e i n p u t s i g n a l
a m p l i t u d e u n t i l c l i p p i n g i s o b s e r v e d a t t h e a m p l i f i e r o u t p u t . W e c a n s w e e p t h e V S I N
a m p l i t u d e i n o u r c i r c u i t t o a c h i e v e t h i s .
1 . C r e a t e a n e w s i m u l a t i o n p r o f i l e c a l l e d C o m p l i a n c e T e s t . I n h e r i t t h e p r o f i l e f r o m t h e
o r i g i n a l p r o f i l e i n y o u r p r o j e c t .
-
8/2/2019 Orca Dp Spice
17/18
PSPICE Seminar / DeVry KC - Spring 2002 - Page 17
2002 Tom A. Wheeler
2 . M o d i f y t h e s i m u l a t i o n p r o f i l e t o l o o k l i k e t h i s :
T o s e t t h i s u p , f i r s t c l i c k o n t h e c h e c k b o x b y P a r a m e t r i c S w e e p i n t h e O p t i o n s w i n d o w .
T h e n f i l l i n t h e f i e l d s o n t h e r i g h t a s s h o w n .
3 . A d d a p a r t c a l l e d P A R A M t o t h e s c h e m a t i c p a g e . D o u b l e - c l i c k t h e P A R A M b l o c k b o d y
a n d a d d a f i e l d c a l l e d V I N . S e t t h e v a l u e o f V I N t o 0 . 1 V ( f o r s t a t i c a n a l y s i s ) a n d t u r n
i t s d i s p l a y o n .
4 . M o d i f y t h e s i g n a l s o u r c e V A M P p a r a m e t e r t o b e { V I N } , w h i c h w i l l c a u s e t h e s i g n a l
s o u r c e a m p l i t u d e t o r a m p u p i n s t e p w i t h t h e p a r a m e t r i c s w e e p .
5 . R u n t h e s i m u l a t i o n . Y o u l l n o w s e e a f a m i l y o f c u r v e s f o r V i n a n d V o u t . Y o u c a n n o w t e l l
w h e n t h e a m p l i f i e r w i l l c l i p .
Frequency Response of the Amplifier
1 . C r e a t e a n e w s i m u l a t i o n p r o f i l e c a l l e d f o r t h e c i r c u i t c a l l e d F r e q u e n c y R e s p o n s e . I n h e r i t
t h i s p r o f i l e f r o m t h e b a s e p r o f i l e s t e a d y s t a t e .
-
8/2/2019 Orca Dp Spice
18/18
PSPICE Seminar / DeVry KC - Spring 2002 - Page 18
2002 Tom A Wheeler
2 . D o a n A C s w e e p o n t h i s p r o f i l e a s f o l l o w s :
3 . R e c a l l t h a t t h e V S I N c o m p o n e n t i s a d u a l - p u r p o s e s i g n a l s o u r c e - i t c a n b e u s e d f o r b o t h
t r a n s i e n t a n d A C s w e e p a n a l y s i s - y o u j u s t h a v e t o e n a b l e t h e A C p a r a m e t e r s . D o u b l e -
c l i c k t h e b o d y o f t h e V S I N s o u r c e a n d s e t t h e A C v a l u e t o 0 . 1 v ( R M S ) , a n d t h e D C v a l u e
t o 0 v . T u r n o n t h e d i s p l a y o f t h e s e i t e m s s o t h a t y o u c a n s e e t h e m o n t h e s c h e m a t i c .
4 . R u n t h e s i m u l a t i o n . Y o u m a y w a n t t o e x c h a n g e t h e V i n a n d V o u t v o l t a g e m a r k e r s f o r
V D B m a r k e r s .