Modul week 7

36
Modul week 7 Introduction to PSpice

description

Modul week 7. Introduction to PSpice. Introduction. SPICE = Simulation Program for Integrated Circuit. Industrial based simulation. Same function as Multisim. PSpice is used to simulate Analog circuit Digital circuit Mixed signal circuit. Types of circuit analysis. - PowerPoint PPT Presentation

Transcript of Modul week 7

Page 1: Modul week 7

Modul week 7

Introduction to PSpice

Page 2: Modul week 7

Introduction SPICE = Simulation Program for

Integrated Circuit. Industrial based simulation. Same function as Multisim. PSpice

is used to simulate Analog circuit Digital circuit Mixed signal circuit

Page 3: Modul week 7

Types of circuit analysis DC analysis(DC transfer curve) Transient analysis(Output as a function

of time) AC analysis(Output as a function of

frequency) Noise analysis Sensitivity analysis Distortion analysis Fourier analysis Monte Carlo analysis

Page 4: Modul week 7

Steps in simulating a circuit

Figure: The steps involved in simulating a circuit with PSpice.

Page 5: Modul week 7

Values of elements T or Tera (= 1E12) G or Giga (= E9) MEG or Mega (= E6) K or Kilo (= E3) M or Milli (= E-3) U or Micro (= E-6) N or Nano (= E-9) P or Pico (= E-12) F of Femto (= E-15)

Page 6: Modul week 7

LAB 5: PSPICE FOR DC ANALYSIS

Experiment involved:4.1 Basic DC Nodal Analysis5.1 Basic DC Sweep Analysis5.2 Diode I-V Characteristic5.3 Maximum Power Transfer

Page 7: Modul week 7

4.1

Basic DC Nodal Analysis

Page 8: Modul week 7

How to start?

STARTAll ProgramsMicroSim Eval 8Schematics

Page 9: Modul week 7

Step 1: Creating the circuit in Capture

1. Create new project:

Figure: Schematic windows and toolbars

Page 10: Modul week 7

2. Place the components and connect part

DrawGet new Part..

Figure: Place part window

Page 11: Modul week 7

Example: Complete connection

Figure: Bias point detail simulation

VIEWPOINT

IPROBE

BUBBLE

Page 12: Modul week 7

Step 2: Specifying the type of analysis and simulationAnalysisSetup For all analysis selected except Bias Point Detail, click

on the function button to fill in all the requirements.

Figure: Analysis Setup Dialog Box

Page 13: Modul week 7

Step 3: Create netlist

AnalysisCreate netlist

(Nothing will appear)

Page 14: Modul week 7

Step 4: Run the simulation

AnalysisSimulate

Figure: Simulated circuit

Page 15: Modul week 7

Step 5: Examine the netlist

AnalysisExamine netlist (To show the node names, position of each component and value of each component).

Figure: Schematic netlist

Page 16: Modul week 7

Step 6: To examine the content of the output file

AnalysisExamine Output (Print out)

Figure: Content of output file

Page 17: Modul week 7

Step 6: To examine the content of the output file (Continue)

Schematic netlist

Schematic aliases

Page 18: Modul week 7

Step 6: To examine the content of the output file (Continue)

Date and time of simulation

Voltage drop at each nodeCurrent flow

at Vx and V2Aliases

Page 19: Modul week 7

5.1Basic DC Sweep Analysis

DC sweep analysis- Adds more flexibility- Allow DC sources to change voltages or

current.Eg: From previous simulation, 15V VDC

will produce a 97.26mV Vo. But for this experiment, the input VDC is varied from 0-25V and a range

of Vo is produced.

Page 20: Modul week 7

DC Sweep Analysis Circuit

1. Build the circuit

Vx = 0 – 25V

Page 21: Modul week 7

DC Sweep Analysis Circuit (Continue)

2. AnalysisSetup

Page 22: Modul week 7

DC Sweep Analysis Circuit (Continue)

3. Double click DC Sweep button.

Range of Vx = 0-25V with increment 1V

Select voltage source

Select linear type

Page 23: Modul week 7

DC Sweep Analysis Circuit (Continue)

4. AnalysisExamine netlist5. AnalysisSimulate

Page 24: Modul week 7

DC Sweep Analysis Circuit (Continue)

6.Microsim Probe

Page 25: Modul week 7

DC Sweep Analysis Circuit (Continue)

7. From the microsim probe, click TraceAdd

Page 26: Modul week 7

DC Sweep Analysis Circuit (Continue)

Page 27: Modul week 7

5.3Maximum Power Transfer

Maximum Power Transfer Theorem

- To obtain maximum power from a source with a fixed internal resistance, the resistance of the load must be made the same as that of the source.

Page 28: Modul week 7

Maximum Power Transfer (Continue)

1. Wire the following circuit

Figure: The schematic circuit

Page 29: Modul week 7

Maximum Power Transfer (Continue)

2. Double click RL and set the value of RL as {RL_val}

Page 30: Modul week 7

Maximum Power Transfer (Continue)

3. Double click PARAMETERS

We would like to vary the value of RL. To do this we need to define the value of RL as a parameter. Type the text {RL_val} on the set attribute value for resistor RL.

Page 31: Modul week 7

Maximum Power Transfer (Continue)

4. AnalysisSetup. Enabled DC sweep.

Select Global Parameter because we are varying RL_val

Number of points to plot

Page 32: Modul week 7

Maximum Power Transfer (Continue)

5.Simulate. If there is no error, the Microsim Probe window will appear.

Page 33: Modul week 7

Maximum Power Transfer (Continue)

6. Add trace

Page 34: Modul week 7

Maximum Power Transfer (Continue)

Output in linear form

Page 35: Modul week 7

Maximum Power Transfer (Continue)

Output in log form. Change x-axis setting to log form. PlotX Axis-SettingScaleLog

Page 36: Modul week 7

Maximum Power Transfer (Continue)