Chapter 12 - Fundamentals of Linear Simulation

This chapter illustrates the simulation and measurement of linear circuits by analyzing transient, AC, noise, and Fast Fourier Transform (FFT) responses of a non-inverting amplifier. Measurements included in this analysis are signal voltages, current in the wire, device current, frequency response, and FFT.

12.1 Non-Inverting Amplifier

Open the schematic file NonInvertingAmp_MCP6001.wxsch. The circuit shown in the figure below is driven by a 2 kHz, 200 mVpp sinusoidal signal source with a DC offset of 1.5 V.

MCP6001Amplifier.PNG

a

Double-click on signal source V2 to edit its signal source type, frequency, amplitude, and offset. Select the signal source to be of type 'Sine'.

b

Select 'Enable DC' and 'Enable AC' at the top right corner of the dialog.

SignaGenerator.PNG

12.2 Transient Analysis

Next, set the simulator for performing a transient analysis.

a

Select Simulator > Choose Analysis.

b

Select 'Transient' in Analysis Mode. Also select 'DCOP'. This computes the DC operating point bias annotations shown on the schematic. Image_BiasAnnotation.PNG

c

Set the stop time of the analysis to 2 mS. A 2 mS simulation of a 2 kHz signal will run four cycles of 2 kHz. Uncheck the default setting for the '.PRINT' step and enter 500n for the resolution at which the transient response is to be computed. It is best practice to select a value 1000 times faster than the signal period to increase the output resolution. Enable the radio button 'Output at .PRINT step'. When completed select Ok.

d

Run the simulation by selecting Simulator > Run Schematic (Function Key F9).

e

Measurement probes must be placed at the input and output nodes to view the simulation results. Select Probe > Place Fixed Voltage Probe and place probes at nodes Vsignal and at AmpOut. See the figure below for placement of probes Vsignal and AmpOut.

Voltage-Probe-Placements.PNG

f

Double-click on the Vsignal and AmpOut probes to edit probe properties as shown below. Enable 'Transient Analysis'. Select Ok.

g

Run the transient analysis Simulator > Run Schematic.

h

The resulting simulation output is shown in the figure below.

i

Click on the graph, check the Vsignal and AmpOut boxes shown below and select Measure > A More Functions > Peak-to-Peak. This computes the peak-to-peak voltage of the transient signals Vsignal and AmpOut.

Graph_MCP6001AmplifierTransient_header.PNG

The output is not 400.00 mVpp as this is a real op-amp with a 1 MHz GBWP. The response of the amplifier at 2 kHz will be 54 dB and this results in an error. This is because the typical Open-Loop gain listed in the datasheet at low frequencies is 112 dB but falls off with frequency. See the figure below in the MCP6001 datasheet.

Graph_MCP6001AmplifierTransient.PNG

The error due to finite open loop gain is 1/(Avol*β) where 1/β is the feedback gain and is equal to 2, the open-loop gain of MCP6001 is 25.11K. Therefore, the gain error is 0.079 mV. To achieve 400 mVpp, change the op-amp to a high gain bandwidth amplifier such as the MCP6021 or MCP6291, which has 10 times the GBWP of MCP6001.

12.3 AC Analysis

To run the AC response of the circuit, we need to add the Bode Plot tool to the circuit.

a

Select Probe AC/Noise > Bode Plot Probe – with Measurements and place it on the schematic (this is already placed for you on the schematic). Connect the AmpOut terminal to the OUT node and Vsignal to the IN node of the Bode Plot Probe.

b

Select Simulator > Choose Analysis and select 'AC' in Analysis Mode.

c

Double-click on the AmpOut probe and select 'AC Sweep'.

Probe_AmpOut_Transient.PNG

d

Set the start frequency to 1 Hz and the stop frequency to 2 MHz with 500 points/decade. Select Simulator > Run Schematic. The resulting output is shown in the figure below.

ACSetup.PNG

e

The AC stimulus is 1 Vrms and the resulting gain is 6 dB (due to gain of 2). The graph shows the gain cross over frequency at 510 kHz. This is the frequency at which the gain plot in dB units crosses the 0 dB level.

Graph_MCP6001AmplifierAC.PNG

12.4 Noise Analysis

Intrinsic and thermal noise contributions degrade the signal-to-noise ratio of signals. This is an important attribute to consider when an amplified signal is converted to a digital format by an Analog-to-Digital Converter (ADC). Therefore, understanding noise contributions to the output signal is an essential factor in selecting an ADC for signal conversion. This section illustrates the simulation and measurement of amplifier noise contribution.

There are three sources of noise: amplifier voltage noise, amplifier current noise (converted to voltage by the equivalent source resistance), and thermal noise (arising from the gain resistors). Voltage noise en and current noise ei are provided in the datasheets. The resistor noise is given by the formula er = √4KbTR where Kb is the Boltzmann constant, R is the resistance, and T is the temperature in kelvins.

a

Select Simulator > Choose Analysis and select 'Noise'. See the dialog below.

b

Set the start frequency to 1 Hz and the stop frequency to 2 MHz.

c

In the 'Noise' parameters section, list the Output node as AmpOut. Select Simulator > Run Schematic.

NoiseSetup.PNG

d

View the noise plot by selecting Probe AC/Noise > Plot Output Noise.

e

The figure below shows the output noise at node, AmpOut, in red.

f

Run a second noise analysis with the Output node set to AmpFilter. View the noise plot by selecting Probe AC/Noise > Plot Output Noise. The output from this analysis is displayed in the figure below with a green trace.

Graph_MCP6001AmplfierNoise.PNG

g

In the figure above, we also compute the total integrated noise. Check the 'Output Noise' check box at the top of the graph as shown in the figure, then select Measure > A More Functions > Total Noise. Observe that the total integrated noise for the bandwidth limited signal after the filter formed by R1 and C2 is one half the integrated noise from the non-filtered signal at AmpOut. This is because the total noise contribution is dependent on the √ bandwidth, thus limiting the amplifier's output bandwidth will also limit the noise bandwidth, improving signal-to-noise ratio.

12.5 Fast Fourier Transform (FFT) Analysis

Fast Fourier Transforms help us observe the effect of signal components across the amplifier's bandwidth of interest and determine the noise floor of the amplifier. To run an FFT analysis, we first need to run a transient analysis and then apply the FFT Probe to the output node of interest. To get an accurate output, the transient analysis needs to be computed at user-specified time-step intervals.

a

Set up the transient analysis for FFT. Select Simulator > Choose Analysis and set Analysis Mode to 'Transient'. Uncheck 'Default' for the '.PRINT' step. Enter 500n (500 nS) for the time step interval. Enable 'Output at .PRINT step'. Run transient analysis. Select Simulator > Run Schematic.

Transient-Setup.png

b

Select Probe > Fourier > Probe Voltage Custom and place the probe tool at the AmpFilter node. Then edit the resulting FFT setup menu as shown in the dialog below. After editing select Ok.

FFTSetup.PNG

c

An FFT output will be rendered in a separate graph as shown in the figure below. Using the signal measurement cursors, we can show that the signal frequency does appear at 2 kHz and the noise floor is well below the signal.

Graph_MCP6001AmplfierFFT.PNG

12.6 Measurement of Current in Wires and Device

We can measure the current at any wire in the circuit by using Probe > Current in Wire on the circuit. Run Transient analysis first. Then select Probe > Current in Wire and place the probe at the output of the Amplifier. The resulting output is shown in the figure below.

Graph_MCP6001AmplfierOutCurrent.PNG

Next, we use Probe > Current in Device Pin to measure the current in the Amplifier itself. Select this probe and place it at the positive supply connection of the amplifier. The Amplifier quiescent current will be plotted in a graph and will look like the plot in the figure above. This shows that the supply current used by the amplifier during its signal amplification operation is a maximum of 1.6 mA.

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.