Download presentation

Presentation is loading. Please wait.

Published byHelen Dudney Modified over 3 years ago

1
Simulation Manager for OrCAD PSpice Dalibor Biolek 1,2, Jaroslav Kadlec 1 1,2 Faculty of EE and Communications, Dept. of Microelectronics Brno University of Technology, Czech Republic 1 Faculty of Military Technologies, Dept. of EE University of Defence, Brno, Czech Republic

2
Outline Why PSiM (PSpice Simulation Manager) PSiM Conception PSiM Features Demonstrations Conclusions

3
Why PSiM OrCAD PSpice limitations: ICL (Interactive Command Language) is not implemented No possibility to work in so-called sequential mode Results of the analysis cannot be input data of the following analysis user

4
PSiM Conception SIM user

5
PSiM Conception

6
PSiM Features The PSiM reads the MCF step-by-step, starting from the first line. The programming language of the PSiM should support mathematical computations. The ECIRs of the circuits being analyzed can appear in the MCF. The PCIR can be modified prior to its generation by the PSiM. The PSiM is able to process the results of executed simulations. All the files generated from all executed simulation runs should be available. The PSiM manages commands for program loops and chaining.

7
PSiM Demonstrations Optimization of transistor amplifier Rc design in order to set voltage gain to 10 on a frequency of 1kHz Preliminary PSpice analysis: The gain is approximately 9.

8
PSiM Demonstrations Optimization of transistor amplifier 1: *transistor amplifier 2: set Rc 1.9k gain 1 3: while (gain)<=10 4: assemblycir run.cir 5:*beginspice 6: Vbat bat 0 12V 7: Q c b e Q2N2222 8: Rc bat c #$Rc$ 9: Re e 0 200 10: Rb1 bat b 180k 11: Rb2 b 0 33k 12: Cv in b 10u 13: Vin in 0 AC 1 14:.lib 15: *endspice 16: genFpoint AMPLI 1k {v([c])} 17: endassembly 18: getFpoint AMPLI gain 1 19: set Rc Rc+20 20: endwhile The analysis runs 11 times. Two last results (Rc, gain): 2100 Ohms, 9.997 2120 Ohms, 10.09

9
PSiM Demonstrations AC analysis of SH circuit =0

10
PSiM Demonstrations AC analysis of SH circuit =0 For k=1..2 *computing coefficients bk circuit model in phase k, vin=1V, zero initial conditions TRANSIENT analysis, Tmax =Tk reading the state variable and saving it to the variable bk *computing coefficients ak circuit model in phase k, vin=0V, zero initial conditions the state variable v = 1 TRANSIENT analysis, Tmax=Tk reading the state variable and saving it to the variable ak end Algorithm of the MCF:

11
PSiM Demonstrations AC analysis of SH circuit =0 Compiling the z-domain equations via behavioral modeling (E-sources) Solving equations via.AC analysis PROBE demonstration of frequency responses Algorithm of the MCF:

12
PSiM Demonstrations AC analysis of SH circuit 1:*AC analysis of Sample-Hold circuit 2:set Ron 5k fs 100k T1 0.1/fs T2 1/fs-T1 3:beginnet SH1 4:Ron 1 2 #$Ron$ 5:Rs 2 3 10m 6:C 3 0 1n 7:Rz 2 0 100k 8:endnet 9:beginnet SH2 10:Rs 2 3 10m 11:C 3 0 1n 12:Rz 2 0 100k 13:endnet 14:defsim tran1.TRAN 0 #$T1$ 0 #$T1/100$ skipbp 15:defsim tran2.TRAN 0 #$T2$ 0 #$T2/100$ skipbp 16:defsim AC.AC dec 100 10 #$fs*2$ 17:assemblycir run1.cir 18:Vin 1 0 1V 19:use SH1 20:runsim tran1 21:endassembly

13
PSiM Demonstrations AC analysis of SH circuit 22:getprobe b tran1 V(3) #$T1$ 23:assemblycir run2.cir 24:Vin 1 0 0V 25:use SH1 26:.IC V(3) 1V 27:runsim tran1 28:endassembly 29:getprobe a1 tran1 V(3) #$T1$ 30:assemblycir run3.cir 31:use SH2 32:.IC V(3) 1V 33:runsim tran2 34:endassembly 35:getprobe a2 tran2 V(3) #$T2$ 36:assemblycir run4.cir 37:Vin 1 0 AC 1 38:Ec1 c1 x LAPLACE {V(c2)} {#$a1$*exp(-s*#$T1$)} 39:Ex x 0 value={V(1)*#$b$} 40:Ec2 c2 0 LAPLACE {V(c1)} {#$a2$*exp(-s*#$T2$)} 41:runsim AC/nocsdf 42:endassembly

14
PSiM Demonstrations AC analysis of SH circuit Frequency responses Frequency 100Hz10KHz10Hz200KHz DB(V(c1))DB(V(c2)) -20 -10 0

15
Conclusions PSiM is an independent executable program which controls the OrCAD PSpice. It extends significantly the OrCAD PSpice features: Special simulation tasks can be performed which cannot be done by PSpice alone. Currently the PSiM working on the text file level is available. The graphical User's Interface (GUI) is developed.

Similar presentations

OK

EE 211 Lecture 4 T. H. Ortmeyer Spring 2006. This week’s labs Grounding Lab Labview Tutorial.

EE 211 Lecture 4 T. H. Ortmeyer Spring 2006. This week’s labs Grounding Lab Labview Tutorial.

© 2018 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Free download ppt on social networking sites Ppt on division for class 2 Ppt on systematic layout planning Ppt on credit default swaps pricing Ppt on obesity diet camp Convert word doc to ppt online training Ppt on bluetooth hacking tools Ppt on mars one astronauts Ppt on google file system Ppt on amplitude shift keying experiment