Ecd302 unit 04 (analysis)

69
Appendix C Analysis Tools

Transcript of Ecd302 unit 04 (analysis)

Page 1: Ecd302 unit 04 (analysis)

Appendix C

Analysis Tools

Page 2: Ecd302 unit 04 (analysis)

Analysis Tools

• Three major types of analysis:– DC analysis– AC analysis– Transient analysis

Page 3: Ecd302 unit 04 (analysis)

A Quick Tour of the Analysis

EWB does this…When you choose… DC

AnalysisAC

AnalysisTransient

DC Operating Point YesAC Frequency 1st 2nd

Transient 1st 2nd

Fourier YesNoise 1st 2nd

Distortion 1st 2nd

Parameter Sweep OptionalSweep

OptionalSweep

OptionalSweep

Temperature Sweep OptionalSweep

OptionalSweep

OptionalSweep

Page 4: Ecd302 unit 04 (analysis)

A Quick Tour of the Analysis

EWB does this…When you choose… DC

AnalysisAC

AnalysisTransient

Pole Zero YesTransfer Function YesDC Sensitive YesAC Sensitive 1st 2nd

Monte Carlo Optional Optional OptionalWorst Case Optional Optional Optional

Page 5: Ecd302 unit 04 (analysis)

DC Operating Point Analysis

• To determines the DC operating point of a circuit.• Results are DC node voltages and branch currents.

Setting for DC analysis:– AC sources are zeroed out.– Steady state is assumed:

• Capacitors are open circuits.• Inductors are short circuits.

– Assumptions:Digital components (such as IC’s) are treated as large resistances to ground.

Page 6: Ecd302 unit 04 (analysis)

Example: Colpitts Oscillator

Page 7: Ecd302 unit 04 (analysis)

Setting DC Operating Point analysis parameters

• There is no analysis parameters to be set.• User able to select which voltages or branches to

analyze.

Available voltage nodes

Available Current branches

Selected variable for analysis

Page 8: Ecd302 unit 04 (analysis)

DC Operating Point analysis result

VoltAmpere

Direct measurement to the original circuit would not obtain these results.

Page 9: Ecd302 unit 04 (analysis)

Example: Colpitts OscillatorWhen running DC Operating Point Analysis, Multisim reduces the circuit like below:

Output voltage

Collector Current

Page 10: Ecd302 unit 04 (analysis)

AC Frequency Analysis

• To determines how the circuit behave to a range of frequency.

Setting for AC analysis:• The DC operating point is first obtained for non-

linear circuit.• All input sources are considered to be sinusoidal.• The frequency of the sources is ignored.• The AC simulation is done based on a sweep over a

range of frequencies.

Page 11: Ecd302 unit 04 (analysis)

AC Frequency Analysis

• Assumptions:Analogue circuits, small signal.Digital components are treated as large resistances to ground.

• The result is displayed on two graphs:– Gain versus Frequency– Phase versus Frequency

Similar to using Bode Plotter for measurement

Page 12: Ecd302 unit 04 (analysis)

Example: 5V DC power supply

Page 13: Ecd302 unit 04 (analysis)

Setting AC frequency analysis parameters

Page 14: Ecd302 unit 04 (analysis)

Result

What can you comment for this frequency range?

Is this a distortion?

Gain versus

frequency

Phase versus

frequency

Page 15: Ecd302 unit 04 (analysis)

Transient Analysis

• Also called Time-domain analysis.• Closely simulates the phenomena seen in the real

circuit by means of an oscilloscope.• To determines how the circuit behave over time.• A simulation consists usually of a time sweep

starting at time, t = 0. • The result of the transient analysis is a graph of

voltage versus time.

Page 16: Ecd302 unit 04 (analysis)

Example: CMOS Inverter

Page 17: Ecd302 unit 04 (analysis)

Setting Transient analysis parameters

Page 18: Ecd302 unit 04 (analysis)

ResultInput voltage signal (Vin)

Output voltage signal (Vout)

What can you comment on the circuit response time?

Page 19: Ecd302 unit 04 (analysis)

Fourier Analysis

• A method to analyze complex periodic waveforms.• It permits any complex periodic waveforms to be

resolved into sine or cosine waves and a DC component. • This permits further analysis and allows you to determine

the effect of combining the waveform with other signals.

Page 20: Ecd302 unit 04 (analysis)

Fourier Analysis• The Fourier analysis is basically the same as

spectrum analyzer. • The only difference is, the spectrum analyzer

runs continuously, reflecting any changes in the harmonics of the input waveform, whereas the Fourier analysis performs the analysis only within a specified period of time.

Page 21: Ecd302 unit 04 (analysis)

Setting

• Do not worry about setting the frequency resolution. When not sure what to do, just press the “estimate” button to have the software estimate for you.

Page 22: Ecd302 unit 04 (analysis)

Estimate

• The software estimated the fundamental frequency of our complex waveform to be 5 kHz.

• Isn’t our lowest frequency 10 kHz? Well, yes, but that is not the fundamental frequency. The fundamental frequency should be the lowest common factor of all the frequencies. In this case, precisely 5 kHz.

Page 23: Ecd302 unit 04 (analysis)

Number of harmonics

• In our case, we need at least 10 harmonics to show the 50 kHz harmonic. (Our fundamental is 5 kHz, so 50 kHz is the 10th harmonic.) But we will set the number of harmonic to 20, assuming we do not know the answer.

Page 24: Ecd302 unit 04 (analysis)

Stopping time

• As mentioned before, fourier analysis is only performed for a fixed period of time. So, we need to specify that period of time as well. Let us make our setting as 0.01 s:

Page 25: Ecd302 unit 04 (analysis)

Specifying output

• You need to also specify the output node of your circuit. In this case, node 5.

Page 26: Ecd302 unit 04 (analysis)

Results of Fourier analysis:

Need to scroll down to show the third component (which is the 10th harmonic)

Page 27: Ecd302 unit 04 (analysis)

Noise Analysis

• Noise is any undesired voltage or current appearing in the output.

• One common result of noise is “snowy” television reception caused by fluctuations across all frequencies of TV signal.

• Multisim can model 3 kinds of noise:– Thermal noise– Shot noise– Flicker noise

Page 28: Ecd302 unit 04 (analysis)

Noise Analysis

• Thermal noise– Is temperature dependent and caused by the thermal

interaction between free electrons and vibrating ions in a conductor.

– Its frequency content is spread equally throughout the spectrum.

Page 29: Ecd302 unit 04 (analysis)

Noise Analysis

• Shot noise– Cause by the discrete-particle nature of the current

carriers in all forms of semiconductors.– The major cause of transistor noise.– The equation for shot noise in a diode is given as below.– For other devices such as transistors, no valid formula is

available. Provided in manufacturer’s data sheet.

Page 30: Ecd302 unit 04 (analysis)

Noise Analysis

• Flicker noise– Also known as excess noise, pink noise or 1/f noise.– Present in BJT and FET and occurs at frequencies below 1kHz.– It is inversely proportional to frequency and directly

proportional to temperature and DC current levels.

Page 31: Ecd302 unit 04 (analysis)

Example: Inverting amplifier

Page 32: Ecd302 unit 04 (analysis)

Setting Noise analysis parameters

Page 33: Ecd302 unit 04 (analysis)

Result

The thermal noise voltage produce by resistor R1

The thermal noise voltage produce by resistor R2

Page 34: Ecd302 unit 04 (analysis)

Distortion Analysis

• Distortion analysis is a type of transient analysis that applies a single frequency sinusoidal signal to the input source and measures the resulting distortion in the specified output.

• Signal distortions are usually the result of gain non linearity or phase non uniformity in a circuit. Nonlinear gain causes harmonic distortion, while non uniform phase causes inter modulation distortion.

• Distortion analysis is useful for investigating small amounts of distortion that are normally un-resolvable in transient analysis.

Page 35: Ecd302 unit 04 (analysis)

Example: Class B push-pull amplifier

Page 36: Ecd302 unit 04 (analysis)

Setting Distortion analysis parameters

Page 37: Ecd302 unit 04 (analysis)

Result

Page 38: Ecd302 unit 04 (analysis)

DC sweep analysis

• To quickly determines the DC operating point of your circuit by simulating it across a range of values for 1 or 2 DC sources.

• The effect is the same as simulating the circuit using DC operating point analysis several times with different values.

Page 39: Ecd302 unit 04 (analysis)

Example: CE amplifier

Page 40: Ecd302 unit 04 (analysis)

Setting DC sweep analysis parameters

Page 41: Ecd302 unit 04 (analysis)

Result

The collector voltage versus the collector source

Page 42: Ecd302 unit 04 (analysis)

Sensitivity analysis (DC and AC)

• Sensitivity analysis help to identify the components which affect a circuit’s DC bias point the most.

• This will focus efforts on reducing the sensitivity of the circuit to component variations (or drifting).

• It may provide evidence that a design is too conservative and that less expensive components, with more variation may be used.

Page 43: Ecd302 unit 04 (analysis)

Example: RC circuit

Page 44: Ecd302 unit 04 (analysis)

Setting sensitivity analysis parameters

Page 45: Ecd302 unit 04 (analysis)

ResultChanges to resistor, R2 affect the circuit output for over a range of frequency

Page 46: Ecd302 unit 04 (analysis)

Parameter Sweep Analysis

• A function that able to perform 3 types of sweeps:– DC operating point analysis– Transient analysis– AC frequency analysis

• You will find that some components have more parameters to perform a sweep. While others, such as inductors has only inductance available as a parameter for analysis.

Page 47: Ecd302 unit 04 (analysis)

Example: Colpitts Oscillator

Page 48: Ecd302 unit 04 (analysis)

Setting parameter sweep analysis parameters

Page 49: Ecd302 unit 04 (analysis)

Result

Page 50: Ecd302 unit 04 (analysis)

Temperature Sweep Analysis

• Quick verification of circuit behaviour towards temperature changes.

• Similar to simulating the circuit several times, once for each different temperature.

• Default temperature is 27C.

• Default temperature may be changed from the Analysis Options’ Global tab.

Page 51: Ecd302 unit 04 (analysis)

Example: Opamp comparator

Page 52: Ecd302 unit 04 (analysis)

Setting temperature sweep analysis parameters

Default temperatureSweep

parameter

Page 53: Ecd302 unit 04 (analysis)

Result

Page 54: Ecd302 unit 04 (analysis)

Transfer function analysis

• Transfer function analysis calculates the DC small-signal transfer function between an input source and two output nodes (for voltage) or an output variable (for current) in a circuit.

• It also calculates input and output resistances.

Page 55: Ecd302 unit 04 (analysis)

Example: Inverting Opamp

Page 56: Ecd302 unit 04 (analysis)

Setting transfer function analysis parameters

Page 57: Ecd302 unit 04 (analysis)

Result

Page 58: Ecd302 unit 04 (analysis)

Worst case analysis

• Worst case analysis is a statistical analysis that lets you explore the worst possible effects of variations in component parameters on the performance of a circuit.

Page 59: Ecd302 unit 04 (analysis)

Example: Wien-bridge oscillator

Page 60: Ecd302 unit 04 (analysis)

Setting Worst case analysis parameters

Page 61: Ecd302 unit 04 (analysis)

Result

Page 62: Ecd302 unit 04 (analysis)

Pole Zero Analysis

• Finds the poles and zeros in the small-signal AC transfer function of a circuit.

• Useful in determining the stability of electronic circuits. Stable circuits should have poles on negative real parts.

• Note: May occasionally receive message such as:“Pole-zero iteration limit reached, giving up after 200 iteration”

Even with this message, the analysis may still have found all the poles and zeros.

Page 63: Ecd302 unit 04 (analysis)

Example: LR passive filter

Page 64: Ecd302 unit 04 (analysis)

Setting Pole Zero analysis parameters

Page 65: Ecd302 unit 04 (analysis)

Result

Page 66: Ecd302 unit 04 (analysis)

Monte Carlo Analyses

• Statistical analysis that allows explorations in affects brought by component properties variations.

• The first simulation is always performed with nominal values.

• For the rest of the simulations, a delta value is randomly added to or subtracted from the nominal value.

• The tolerance percentage is applied globally.

Page 67: Ecd302 unit 04 (analysis)

Example: RLC circuit

Page 68: Ecd302 unit 04 (analysis)

Setting Monte Carlo analysis parameters

Page 69: Ecd302 unit 04 (analysis)

Result