Chapter 13 - MPLAB® Mindi™ Analog Simulator - AC Amplification
- 13.1 Prerequisites
- 13.2 AC Amplifier Design
- 13.3 Circuit Topology & Simulation Sources
- 13.4 Transient Analysis
- 13.5 AC Analysis
- 13.6 FFT Spectrum Output
This chapter introduces the simulation of AC signal amplification and the identification and analysis of error sources. This exercise guides you through the use of first-order simulations to select an amplifier to achieve a design specification.
13.1 Prerequisites
- Chapter 01 - Getting Started with the MPLAB® Mindi™ Analog Simulator
- Chapter 12 - Fundamentals of Linear Simulation
- or equivalent experience with analog simulators and MCP6V01, MCP6001, and MCP6231 datasheets
13.2 AC Amplifier Design
Design an amplifier that amplifies an AC-coupled sinusoidal signal of 2 kHz, amplitude ±200 mV to a span of 1.00 Vpp at an accuracy of 1%, and is DC-biased at half the supply voltage at the output of the amplifier. Perform an FFT analysis to view the spectral content of the amplified signal. The circuit supply voltage is set to 3 V to emulate a battery-operated system and is needed to minimize current consumption. In this lab, we will evaluate three different amplifiers: MCP6001, MCP6231, and MCP6V01.
The amplifiers referenced above differ from each other in their Gain Bandwidth (GBW), quiescent current, input offset voltage, and voltage noise density. This lab explores how these specifications contribute to the total error of the system by performing a transient, AC, and noise analysis of the circuit. The results from the simulation allow a first-order understanding of parameters to aid in selecting an amplifier to meet the specifications described above.
13.3 Circuit Topology & Simulation Sources
Open the file named AC Amplfier_MCP6001.wxsch. The complete schematic is shown in the accompanying figure. The input signal is AC-coupled via capacitor Ci. The signal generator source is V1 and AC sweep analysis source is V2. AC sweep analysis uses a 1 Vrms amplitude and no phase delay.
The input signal is AC-coupled via capacitor Ci and the output is biased at half the supply voltage by Ra and Rb. Capacitor Ci and the parallel combination of Rb and Ra create a high-frequency pole at 438 Hz where frequency = 1/(2*PI*Ra ||Rb*Ci) and Ri and Cg create another pole at 88 Hz where frequency = 1/(2*PI*Ri*Cg).
Capacitor Cg prevents DC gain and hence the amplifier's input offset voltage error contribution adds directly to the output. The AC gain is given by the following:
Amplifier AC Gain = √12 + (Rf)2/(Ri + Xc)2 = √((Rf+Ri+Xc)2/(Ri+Xc)2)
= √ (3.9K + 1K +442)2 / (1K + 442)2 = 4.5
where Rf = 3.9K, Ri = 1K, Xc=1/ωC4=1/(2*PI*2000*180e-9)= 442.1
In the following transient and AC simulations, we observe the signal input to the amplifier and the resulting output.
13.4 Transient Analysis
Double-click on the waveform generator V1. Edit the waveform generator dialog as shown in the accompanying figure. The amplitude is set to 200 mV with an offset of 0 mV and the frequency is 2 kHz.
Select Simulator > Choose Analysis > Transient. Enter a Stop time of "2 mS" to get four cycles of transient responses. The first cycle in the simulation is never used as it might include system power up and other delays etc. Set the data output to be computed at "500 nS" time intervals for transient analysis.
Select Place > Probe > Voltage Probe and place the probe at terminal VIN. Name probe "signal_input". Place the second probe at the terminal labeled AmpOut and name the probe "signal_output". Double-click the probes signal_input and signal_output. Edit the probe specifications as shown in the accompanying figure.
The measured signal_input probe is 200 mVpp. The resulting transient response at signal_output is 883 mVpp. The expected transient output is (signal_input * AC Gain) 200 mVpp * 4.5 = 900 mVpp. The error is -0.78% of the expected response. The bias annotation at the output is 0.7 mV away from the DC input value. The bias annotation points are computed when the DCOP box is checked in Analysis Mode.
13.5 AC Analysis
AC Analysis is run to understand the frequency response of the circuit to the input.
Select Simulator > Choose Analysis > AC. The start frequency is 1 Hz and the stop frequency is 2 MHz.
Double-click on the signal_output probes and enable AC Sweep. Set the Axis type to Use Separate Grid.
The AC Analysis Bode Plot Tool is placed on the schematic and connected to AmpOut and VIN as shown here. AC response is shown in the accompanying figure.
Select Simulate > Run Schematic (F9). The resulting AC response is shown in the accompanying figure.
Gain improves to 4.509 and transient output measurements show an output of 901.3 mVpp, which results in an error of +0.14% by moving capacitor Ci to 1 µF.
13.5.1 AC Analysis using MCP6V01 & MCP6291
Now run the analysis using Amplifier Circuits MCP6231 and MCP6V01. These simulation files are named AC Amplfier_MCP6231 and AC Amplifier_MCP6V01 respectively. The simulation files have the signal_input and signal_output probes assigned.
Table 13.1 AC Gain Analysis
Amplifier | Measured AC Gain | Measured Transient Out | DC Error (mV) | Measured Signal In | Min Open Loop Gain (V/V) | GBWP |
MCP6001 | 4.418 | 883 mVpp | 0.7 mV | 200 mVpp | 25.11K | 1 MHz |
MCP6231 | 4.466 | 890.2 mVpp | 4 mV | 199.4 mVpp | 31.6 K | 300 kHz |
MCP6V01 | 4.510 | 899.7 mVpp | 0 mV | 200 mVpp | 3.162 M | 1.3 MHz |
13.6 FFT Spectrum Output
Open the file named AC Amplfier_MCP6001.wxsch. Set up for transient analysis as in section 13.4. After the transient analysis is complete, select Probe > Fourier > Probe Voltage Custom and place the probe tool at node AmpOut. Then edit the FFT setup menu as shown in the accompanying dialog. After editing select Ok.
The FFT response curve is shown in the accompanying figure. The spectrum at 2 kHz is the signal. The first highest spectrum at -54 dB, down from 2kHz, defines the spurious free dynamic range.