Transimpedance Amplifier With Mic PDF
Transimpedance Amplifier With Mic PDF
Transimpedance Amplifier With Mic PDF
Design Resources
Ask The Analog Experts
Design Archive All Design files WEBENCH Design Center
TINA-TI SPICE Simulator TI Designs Precision Library
OPA172 Product Folder
C2
VCC
R2
R1
C3
- R4 C5 VOUT
VCC
+
U1
R6
VCC
R3
VB
R5
C6
Electret
Microphone
An IMPORTANT NOTICE at the end of this TI reference design addresses authorized use, intellectual property matters and
other important disclaimers and information.
TINA-TI is a trademark of Texas Instruments
WEBENCH is a registered trademark of Texas Instruments
1 Design Summary
The design requirements are as follows:
-2
-4
Magnitude (dBV)
-6
-8
-10
-12
-14
10 100 1000 10000 100000
Frequency (Hz)
2 Theory of Operation
Electret microphones are very common in personal electronics due to their small size, excellent frequency
response, and reasonable cost [1]. An electret is a thin, Teflon-like material with a fixed charge bonded to
its surface [1]. The electret is housed between two electrodes, and the structure forms a capacitor which
contains a fixed charge. Air pressure variations (sound waves) move one of the electrodes of the capacitor
back and forth, changing the distance between the two electrodes, and modulating the capacitance of the
structure. Because the charge on the microphone is fixed, varying the capacitance causes the voltage on
the capacitor to also change, satisfying the equation:
Q =CV (1)
Where Q is charge, C is capacitance, and V is voltage. Therefore the microphone capacitor acts as an ac-
coupled voltage source. Because the charge on the microphone capacitor must be fixed, the amplifier
circuitry directly in contact with it must have extremely high input impedance. Most electret microphones
have an internal JFET which buffers the microphone capacitor. The voltage signal produced by sound
modulates the gate voltage of the JFET, labeled VG in Figure 2 causing a change in the current flowing
between the drain and source of the JFET (IMIC). An extremely high resistance, RG, may be included to
bias the gate of the JFET.
Microphone Capacitor
with Electret
IMIC
VG
JFET
Sound Wave
RG
An example construction of an electret microphone is shown in Figure 3. One electrode of the capacitor is
formed by a metallization layer on the charged polymer film. The metallization layer on the film is
connected to the microphone case by a metal washer, and the microphone case is typically connected to
the source terminal of the internal JFET. The other plate of the capacitor is formed by a metal back plate,
separated from the film by a plastic washer, and connected to the gate of the JFET. Sound waves deform
the metalized film, effectively changing the distance between the two capacitor plates and producing a
voltage.
Opening Metal Case
Metal Washer
Plastic Washer
Charged film (Electret)
Top side has metalization
Circuit Board
Figure 4: The case of an electret microphone (top) was removed to show internal components. From left
to right: metalized film and metal washer, plastic washer, metal back plate, and PCB with JFET.
The basic schematic of the pre-amplifier is shown in Figure 5. To understand its operation consider that
the current in the microphone (IMIC) has a dc component (Idc) necessary to bias the internal JFET, and an
ac component (Iac) caused by sound waves. If the impedance of capacitor C3 is much less than R1 at
audio frequencies, then Iac will flow through C3 and not R1. Op amp U1 acts as a transimpedance
amplifier, and attempts to hold its inverting input at a constant voltage (VB) by varying its output. The
output voltage of the op amp (VOA) will be:
VOA = Iac R 2 + VB (2)
R2
Idc R1
Iac
- R4 C5 VOUT
C3
IMIC VCC
+ VOA
U1
R6
VCC
R3
VB
R5
C6
Electret
Microphone
Figure 5: A simplified schematic of the microphone pre-amplifiers with selected current pathways and
voltages labeled.
This topology was selected for a few reasons. First, it allows for single-supply operation to be easily
accommodated by biasing the non-inverting input of the op amp to the mid-supply point. Second, the gain
of the pre-amp is determined by R2 but the noise gain of the op amp is determined by the ratio of R2 to
R1. Therefore it is possible to achieve lower noise with this topology than with a non-inverting amplifier.
Finally, because capacitor C3 is chosen to have a very low impedance at audio frequencies, the voltage at
the drain of the microphone JFET varies very little, potentially reducing distortion caused by channel length
modulation in the JFET.
However, because the pre-amplifier used in this reference design is a transimpedance type, this must be
converted to a value of current per Pascal of air pressure. Most likely, the microphone sensitivity was
measured using a 2.2k ohm impedance as indicated in the microphone specification table. The output
current per Pascal of air pressure will be:
17.78mV/Pa
= 8.083A/Pa (4)
2.2k
The gain calculation depends on the maximum sound pressure level expected at the microphone input.
For this design, we will use 100dB SPL as the maximum sound pressure level expected, and map this
sound pressure level to typical line level audio levels (1.228Vrms). 100dB SPL is an air pressure of 2 Pa,
giving a microphone output current of
8.083A
2Pa = 16.166A (5)
Pa
The gain calculation for the transimpedance amplifier is:
VOUT 1.228V
VOUT = IIac R 2 R 2 = = = 75961.1 75k (6)
IIN 16.166A
The feedback capacitor C2 compensates for parasitic capacitance at the op amp inverting input which can
cause instability. Capacitor C2 also forms a pole with resistor R2 in the response of the pre-amplifier. The
frequency of this pole must be high enough to not affect the microphone transfer function within the
audible bandwidth. For this design, a response deviation of -0.1dB at 20kHz is acceptable. The location of
the pole can be calculated using the relative gain at 20kHz:
f 20kHz
fp = = = 133725Hz
G 2
1 2 (7)
( 0 ) 1 ( ) 1
Gf 0.989
In the above equation, G0 and Gf are the gains at low frequency and the gain at frequency f respectively.
Inserting 20kHz for f, and 0.989 (-0.1dB) for Gf, gives a pole frequency of 133725Hz. The feedback
capacitor value can then be calculated:
1 1
C2 = = = 15.87pF 15pF (8)
2fP R 2 2(133725Hz)(75k)
A value for R1 slightly less than the calculated value (13.7k as opposed to 14k) is used to
accommodate variation in the supply voltage.
For this pre-amplifier design, it is beneficial to have the largest value for R1 possible for two reasons. First,
the noise gain of op amp U1 is:
R2
AN = 1 + (10)
R1
But the signal gain is directly determined by R2. Therefore, increasing the value of R1 decreases the noise
gain of the op amp. Second, capacitor C3 must be large enough that its impedance is much less than
resistor R1 at audio frequencies. Increasing the value of R1 allows for smaller capacitances to be used for
C3.
Resistor R1 and capacitor C3 form a high-pass filter. The corner frequency of this filter must be low
enough to not attenuate low-frequency sound waves. A 5Hz corner frequency is used to calculate the
value of C3:
1 1
C3 = = = 2.32F 2.2F (11)
2R1 fC 2(13.7k)(5Hz)
Larger resistors may be used if this current needs to be limited further. Capacitor C6 is included to filter
thermal noise created by the resistors and any noise which may be present on the power supply. The
corner frequency of the low pass filter formed by R3, R5, and C6 is:
1
fC = (13)
2(R 3 ||R 5 )C6
This corner frequency should be well below the audible range (<20Hz) in order to prevent noise from
affecting the audio performance of the design. For simplicity, a 2.2uF capacitor was selected for C6 as this
value was used elsewhere in the design. The resulting corner frequency is:
1
fC = = 1.447Hz (14)
2(100k||100k)2.2F
Resistor R4 limits the current through the capacitor in case a circuit at a different dc voltage is connected
to the pre-amplifier output. This resistor may be 10s of ohms to several hundred ohms. A value of 49.9 is
selected to also allow the circuit to also be properly interfaced to 50 test equipment.
The ac coupling capacitor, C5, forms a high-pass filter with resistor R6. However, R6 will be in parallel with
the input impedance of any circuitry attached to the microphone pre-amplifier. For this design we will
assume that the combined impedance of R6 and any attached circuitry will be 10k:
R 6 ||R IN(EXT) = 10k (15)
The corner frequency should be selected to avoid excessive attenuation at low frequencies. -0.5dB is
considered acceptable in this design. Equation (7) can be modified in order to determine the corner
frequency of a high-pass filter:
G0 2 1 2
fC = f( ) 1 = 20( ) 1 = 6.986Hz (16)
Gf 0.944
3 Component Selection
3.2 Amplifier
Some basic amplifier selection criteria are given in Table 3. The maximum supply voltage, and power
supply current are determined by the design requirements. A SOT23-5 package is preferred in this
application to keep the overall solution size small.
Table 3: Basic op amp selection criteria
Criteria Value
Max. Power Supply Voltage >9V
Power Supply Current < 2.5mA
Package SOT23-5
Amplifiers in Package 1
The required slew rate of the amplifier can be determined by calculating the maximum rate of change for a
sine wave at 20kHz and line level audio voltages (1.228Vrms1.736Vp):
= 2 = 2(20)(1.736) = 0.2182/ (18)
As a conservative rule, an op amp should be selected with 10 times this slew rate to eliminate any
possibility of slew-induced distortion, making the required slew rate: 2.182V/s.
The op amp selected should not degrade the signal to noise ratio of the microphone itself. To meet this
criterion, the output noise spectral densities of the microphone and the amplifier circuit will be compared.
Only broadband noise of the op amp and microphone is considered in this analysis. The signal to noise
ratio in Table 2 is used to determine the current noise of the microphone. Several assumptions are made
about the measurement conditions of this value. It is assumed to be an A-weighted value, measured at 1
Pa / 94 dB SPL, with a 2.2 kOhm resistor in the JFET drain. In this measurement condition, the signal
current of the microphone will be 8.083uARMS, and the noise current will be:
8.083
68 = 20 log ( ) = 68 = 3.218 (19)
10 20
This RMS noise current can be converted to a current noise spectral density by dividing by the square root
of bandwidth of integration. An A-weighting curve can be approximated using a 13.5 kHz noise bandwidth
[4]:
3.218
= 27.7/ (20)
13.5
This current noise spectral density includes contributions from both the microphone and the 2.2 k resistor
used for the measurement. The current noise contribution of the resistor is:
4 4(1.381 1023 )(298)
= = = 2.735/ (21)
2.2
Where T is the absolute temperature in degrees Kelvin and KB is Boltzmanns constant. Extracting this
noise from the total noise value gives the current noise spectral density of the microphone:
27.7 2 2.735 2
= 2 2 = ( ) ( ) = 27.56/ (22)
The voltage noise spectral density from the microphone at the amplifier output is:
27.56
() = 2 = 75 = 2.067/ (23)
To ensure that the signal-to-noise ratio of the microphone is not significantly degraded, we will specify that
th
the output voltage noise of the amplifier should be less than 1/10 of the microphone:
()
() < (24)
10
The output noise spectral density of the amplifier circuit is:
() = 2 + 2 + 2 (25)
Where AN is the noise gain, ENI is the op amp current noise contribution, ENV is the op amp voltage noise
contribution, and ENR is the thermal noise contribution from the feedback network. Substituting the
microphone noise into the equation, the terms can be rearranged to give some selection criteria for the op
amp:
() 2
( ) 2 > 2 + 2 (26)
10
() 2
( ) 2 > ( 2 ||1 )2 + 2 (27)
10
The terms to the left of the inequality are already set by the microphone selection and circuit design. The
terms to the right of the inequality, op amp input current noise (IN) and input voltage noise (ENV), are
determined by the op amp selection. Solving for the terms to the left of the inequality first will give the op
amp requirements for noise:
R2 75k
AN = 1 + =1+ = 6.474 (28)
R1 13.7k
2
2.067/ 13.8 2
( ) ( ) > ( 11584)2 + 2
10 6.474 (30)
8.2928 1016 > ( 11584)2 + 2
Due to the high source impedance at the inverting input (11584), the op amp selection will be narrowed
to devices with JFET or CMOS input devices which feature extremely low current noise. For this reason
the input current noise term can be ignored, allowing a limit of input voltage noise spectral density to be
calculated:
8.2928 1016 > 2
28.8
> (31)
The OPA172 was selected for this design because of its small package size, low power consumption, and
excellent noise and slew rate as shown in Table 4.
4 Simulation
A basic model of an electret microphone was used for simulation. The model uses a voltage controlled
current source (VCCS) which mimics the function of the internal JFET of the microphone. A voltage
generator (VS) is used to represent sound pressure level in Pascals (1V = 1Pa), and a dc voltage source
(VE) produces a bias current through the VCCS. A current noise source, In, is used to simulate noise of
the microphone capsule itself.
IMIC
VS
VCCS
+ + +
VE In
-
The transfer function of the VCCS is taken directly from equation 3, replacing Pascals with volts:
8.083A/V. DC voltage source VE is then calculated to establish a bias current using the current
consumption value given in Table 2.
8.083
= 0.5 = = 61.858 (32)
A generic current noise source is available for download at: http://www.ti.com/tool/tina-ti. The net list of the
current noise source will need to be modified to include the broadband current noise spectral density
previously calculated. Double clicking on the icon of the current noise source brings up the parameters
dialog. Selecting Enter Macro allows the user to modify the net list of the current noise source.
Figure 7: Double-clicking on the noise source icon opens the parameters dialog. The Enter Macro
button allows the user to modify the model netlist.
Within the net list, the NLFP and NVRP values are the 1/f and broadband noise values in pA/Hz
respectively. Both of these are changed to 27.7 to model the noise of the microphone capsule as shown in
Figure 8.
Figure 8: Current noise model netlist. The modified parameters are highlighted with red arrows.
Figure 9: An ac nodal voltage simulation for a simulated 94dB SPL input signal.
An ac transfer characteristic simulation was also performed in TINA-TI and the results are displayed in
Figure 10. It is important to note that the gain measurement is taken from the input voltage source (VG2)
which produces a somewhat misleading gain magnitude value. The transfer ratio of the VCCS is
8.083A/V, or effectively -101.849dB. The gain of the pre-amp circuit is 75kV/A or 97.5dB. This gives a an
expected gain with respect to VG2 of 97.5dB 101.849dB = -4.347dB.
Figure 10: An ac transfer characteristic simulation with cursor measurements at 20Hz and 20kHz.
At 20Hz the gain has deviated by -0.3dB and at 20kHz the deviation is -0.1dB. This does not include the
transfer function of the microphone itself, which is not modeled.
4.2 Noise
The total noise of the microphone and pre-amplifier circuit was simulated in a bandwidth of 13.5kHz in
order to mimic an A weighting curve. The noise in this bandwidth was 238.78 Vrms.
This noise voltage can be used to calculate the expected signal-to-noise ratio (SNR) for a given sound
pressure level. At 94 dB SPL, the output voltage of the amplifier will be 0.606Vrms, producing an SNR of:
Vs 0.606Vrms
SNR = 20log ( ) = 20log ( ) = 68.09dB (33)
Vn 238.78Vrms
This SNR is essentially identical to the microphone capsule itself, which shows that the pre-amplifier
contributes minimal noise to the signal chain. The calculated value is slightly higher than the intrinsic SNR
of the microphone due to slight inaccuracies in the noise model.
Figure 12: TINA-TI(TM) schematic for simulating loop gain and phase.
The loop gain is measured at the voltage probe AOLB, and phase margin is determined by measuring the
phase at the frequency where the loop gain is 0 dB.
Figure 13: A phase margin measurement taken where loop gain is 0dB.
With 1nF of cable capacitance added to the output, the phase margin is 63.35 degrees, suggesting the
design will be stable with cables connected to the output.
5 PCB Design
The PCB schematic and bill of materials can be found in the Appendix.
Figure 14: The top layer (upper, red) and bottom layer (lower, blue) of the preamplifier PCB.
The actual measured value of the resistor selected was 124.71k and the signal generator has an output
impedance of 20. Therefore the generator voltage required to produce the proper input current level is:
= 8.083A (124.71k + 20) = 1.008Vrms (35)
Figure 15: The test setup used to measure the microphone pre-amplifier circuit.
The output of the preamplifier circuit was then fed back to the input of the audio analyzer. The 100k input
impedance of the analyzer will only slightly affect the low frequency response of the circuit. Finally, a 9V
battery was used to power the preamplifier circuit for all measurements presented here.
-2
-4
Magnitude (dBV)
-6
-8
-10
-12
-14
10 100 1000 10000 100000
Frequency (Hz)
-20
-40
Magnitude (dBc)
-60
-80
-100
-120
-140
10 100 1000 10000
Frequency (Hz)
The A-weighted THD+N measurement was -93.5dB for a 600mVrms output signal. As the FFT in Figure
17 shows, there are no harmonics above the noise floor of the output spectrum and therefore the THD+N
measurement is noise dominated. This measurement can then be used to determine the output noise of
the pre-amplifier circuit without the microphone:
+() 2
+() 2 (10 20 )
(36)
10 20 = = = 12.68
2 2
th
As stated in section 3.2, the output noise of the pre-amplifier circuit should be less than 1/10 the noise of
the microphone to avoid degrading the overall SNR:
()
() < (37)
10
The A-weighted output RMS noise voltage from the microphone will be:
2.067
() = 13.5 = 240.16 (38)
The total SNR of the system is:
600
= 20 log ( ) = 67.94 (39)
(240.16)2 + (12.68)2
7 Modifications
This circuit may be modified for lower power supply voltages by changing R1 to maintain a 2V bias at the
microphone. Figure 18 illustrates a version of the circuit modified for a 5V power supply. Because R1 must
be decreased to maintain the 2V bias of the microphone, the noise gain of the op amp is increased. In
order to preserve the SNR of the microphone, the input voltage noise requirement of the op amp is now
less than 10.9nV/Hz. The OPA322 and LMV796 are excellent choices for the lower voltage version of this
circuit.
9 References
1. Apply Electret Microphones to Voice-Input Designs,
http://www.gentexcorp.com/assets/gentex/ea/eapdfs/electretappguide.pdf, Gentex Electro-Acoustic
Products, Manchester, NH.
4. Wells, C. Modeling Electret Microphones in TINA Spice, Texas Instruments Internal Presentation.
Appendix A.
Texas Instruments Incorporated ("TI") reference designs are solely intended to assist designers (Buyers) who are developing systems that
incorporate TI semiconductor products (also referred to herein as components). Buyer understands and agrees that Buyer remains
responsible for using its independent analysis, evaluation and judgment in designing Buyers systems and products.
TI reference designs have been created using standard laboratory conditions and engineering practices. TI has not conducted any
testing other than that specifically described in the published documentation for a particular reference design. TI may make
corrections, enhancements, improvements and other changes to its reference designs.
Buyers are authorized to use TI reference designs with the TI component(s) identified in each particular reference design and to modify the
reference design in the development of their end products. HOWEVER, NO OTHER LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL
OR OTHERWISE TO ANY OTHER TI INTELLECTUAL PROPERTY RIGHT, AND NO LICENSE TO ANY THIRD PARTY TECHNOLOGY
OR INTELLECTUAL PROPERTY RIGHT, IS GRANTED HEREIN, including but not limited to any patent right, copyright, mask work right,
or other intellectual property right relating to any combination, machine, or process in which TI components or services are used.
Information published by TI regarding third-party products or services does not constitute a license to use such products or services, or a
warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual
property of the third party, or a license from TI under the patents or other intellectual property of TI.
TI REFERENCE DESIGNS ARE PROVIDED "AS IS". TI MAKES NO WARRANTIES OR REPRESENTATIONS WITH REGARD TO THE
REFERENCE DESIGNS OR USE OF THE REFERENCE DESIGNS, EXPRESS, IMPLIED OR STATUTORY, INCLUDING ACCURACY OR
COMPLETENESS. TI DISCLAIMS ANY WARRANTY OF TITLE AND ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT, QUIET POSSESSION, AND NON-INFRINGEMENT OF ANY THIRD PARTY
INTELLECTUAL PROPERTY RIGHTS WITH REGARD TO TI REFERENCE DESIGNS OR USE THEREOF. TI SHALL NOT BE LIABLE
FOR AND SHALL NOT DEFEND OR INDEMNIFY BUYERS AGAINST ANY THIRD PARTY INFRINGEMENT CLAIM THAT RELATES TO
OR IS BASED ON A COMBINATION OF COMPONENTS PROVIDED IN A TI REFERENCE DESIGN. IN NO EVENT SHALL TI BE
LIABLE FOR ANY ACTUAL, SPECIAL, INCIDENTAL, CONSEQUENTIAL OR INDIRECT DAMAGES, HOWEVER CAUSED, ON ANY
THEORY OF LIABILITY AND WHETHER OR NOT TI HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, ARISING IN
ANY WAY OUT OF TI REFERENCE DESIGNS OR BUYERS USE OF TI REFERENCE DESIGNS.
TI reserves the right to make corrections, enhancements, improvements and other changes to its semiconductor products and services per
JESD46, latest issue, and to discontinue any product or service per JESD48, latest issue. Buyers should obtain the latest relevant
information before placing orders and should verify that such information is current and complete. All semiconductor products are sold
subject to TIs terms and conditions of sale supplied at the time of order acknowledgment.
TI warrants performance of its components to the specifications applicable at the time of sale, in accordance with the warranty in TIs terms
and conditions of sale of semiconductor products. Testing and other quality control techniques for TI components are used to the extent TI
deems necessary to support this warranty. Except where mandated by applicable law, testing of all parameters of each component is not
necessarily performed.
TI assumes no liability for applications assistance or the design of Buyers products. Buyers are responsible for their products and
applications using TI components. To minimize the risks associated with Buyers products and applications, Buyers should provide
adequate design and operating safeguards.
Reproduction of significant portions of TI information in TI data books, data sheets or reference designs is permissible only if reproduction is
without alteration and is accompanied by all associated warranties, conditions, limitations, and notices. TI is not responsible or liable for
such altered documentation. Information of third parties may be subject to additional restrictions.
Buyer acknowledges and agrees that it is solely responsible for compliance with all legal, regulatory and safety-related requirements
concerning its products, and any use of TI components in its applications, notwithstanding any applications-related information or support
that may be provided by TI. Buyer represents and agrees that it has all the necessary expertise to create and implement safeguards that
anticipate dangerous failures, monitor failures and their consequences, lessen the likelihood of dangerous failures and take appropriate
remedial actions. Buyer will fully indemnify TI and its representatives against any damages arising out of the use of any TI components in
Buyers safety-critical applications.
In some cases, TI components may be promoted specifically to facilitate safety-related applications. With such components, TIs goal is to
help enable customers to design and create their own end-product solutions that meet applicable functional safety standards and
requirements. Nonetheless, such components are subject to these terms.
No TI components are authorized for use in FDA Class III (or similar life-critical medical equipment) unless authorized officers of the parties
have executed an agreement specifically governing such use.
Only those TI components that TI has specifically designated as military grade or enhanced plastic are designed and intended for use in
military/aerospace applications or environments. Buyer acknowledges and agrees that any military or aerospace use of TI components that
have not been so designated is solely at Buyer's risk, and Buyer is solely responsible for compliance with all legal and regulatory
requirements in connection with such use.
TI has specifically designated certain components as meeting ISO/TS16949 requirements, mainly for automotive use. In any case of use of
non-designated products, TI will not be responsible for any failure to meet ISO/TS16949.IMPORTANT NOTICE
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright 2015, Texas Instruments Incorporated