| eCircuit Center |
|
|
About SPICE |
SPICE Basics |
Running SPICE
| CIRCUIT COLLECTION |
SPICE Commands | SPICE Demos and Downloads |
NOISE ANALYSIS - RESISTOR EXAMPLECIRCUIT
RES_NOISE.CR Download the SPICE file You can't figure it out. You've taken one hundred samples of a 2.5V reference using a 16-bit ADC, but rarely are two consecutive readings the same. Okay, it's got to be noise, but where is it coming from? Unfortunately, one of our basic building blocks - the resistor - comes with its own inherent noise generator. But once we understand a little about the nature of this noise source, we have a few choices regarding how to reduce it.
RESISTOR NOISE NOISE VOLTAGE
The good news is that it's predictable! And its voltage level depends on three conditions: resistor value, circuit bandwidth and temperature. So you might expect the equation predicting the RMS level to include all three E = ( 4 k T R Δf )½ (V RMS)
This noise is called "thermal noise." Why? It describes the random motion of thermally excited electrons in a conductor. As an example, that 100 kΩ resistor you just stuck in your data acquisition circuit (1MHz bandwidth) will add noise to the tune of
Although it doesn't seem like much, you've just lost 1 LSB in a 18-bit ADC (+10V full scale). And if this resistor appears before a gain stage, then things can only get worse!
P = E2 = 4 k T R Δf (V2) Why is this useful? You can add the contributions of multiple noises by adding their powers, not RMS values, as we'll see below.
NOISE SPECTRAL DENSITY POWER SPECTRAL
DENSITY
This is called the Power Spectral Density. But at which frequency is this unit bandwidth (Δf = 1 Hz) located? Is it measured from 1 to 2 Hz, 1000 to 1001 Hz or 1,000,000 to 1,000,001 Hz? The answer is yes - any one of them! The power spectrum is equal at all frequencies.
You've heard it before, this is a White Noise spectrum. Its similar to white light containing colors at all frequencies. You can imagine the thermal noise being generated by uncorrelated sinewave generators at all frequencies. VOLTAGE SPECTRAL
DENSITY
Many manufacturers will specify the noise of their components (opamps for example) using these units.
RESISTOR NOISE EXAMPLE Getting back to our 100 kΩ resistor, let's find its power spectral density
and voltage spectral density
RMS VOLTAGE FROM SPECTRAL DENSITY So now we ask: what is the total resistor noise for a given bandwidth such as Δf = 10,000 Hz, for example? From the power density, we easily find the total power across the bandwidth as
which scales with the bandwidth. We can also find the RMS voltage as
which scales with the square-root of the bandwidth. How noisy does the 100 kΩ resistor get at other circuit bandwidths?
What is this table telling us about low-noise design? If you want a quiet circuit, then reduce bandwidth, resistor value or both!
CIRCUIT NOISE How much noise will various resistors contribute at the output of your circuit? Four easy steps gets you the answer.
Let's walk through an example. Our circuit above is a simple resistor divider (Gain = 1/2) followed by an amplifier (Gain = 1) and a low-pass filter (fc = 1MHz). Let's assume we're seeking the noise density at low frequencies where the low-pass filter has no effect. Step 1: Calculate S, the power spectral density from R1.
Step 2: Find A, the voltage gain from the noise source to the output
Step 3. Repeat for all noise sources. For R2, we get the same answer as R1
Step 4: Adding the contributions from all resistors we get a total power spectral density of
There you have it! At low frequencies, your resistors contribute a total
of 28.8 nV/ Hz½ at the
circuit's output.
SPICE NOISE ANALYSIS What can SPICE do regarding noise analysis? SPICE essentially performs the 4 steps outlined above for you. For example, the statement .NOISE V(4) V1 5 asks SPICE for the following.
CIRCUIT INSIGHT Simulate the SPICE file RES_NOISE.CIR. To recap, this circuit implements a simple resistor divider (Gain = 1/2) followed by an amplifier (Gain = 1) with a low-pass filter (fc = 1MHz).
Open the output file RES_NOISE.OUT to view the noise results. For every 5 th frequency of the AC analysis (100, 1000, 10000, ... Hz), SPICE prints out a nice noise summary. At 100 Hz for example, we see the power spectral density from each resistor R1, R2 and RLP1. Do the results match the densities calculated above? How about the total power and voltage spectral density, does it match our numbers above?
HANDS-ON DESIGN Try lowering the resistors to values like R1 = R2 = 1 kΩ. What is the effect on total noise? Increase the gain of amplifier in the EAMP statement. How does it effect noise? What have you noticed about the noise spectral density at high frequency? The noise begins to drop thanks to the low-pass filter RLP1 and CLP1. This could be a good thing! But of course, here's another one of life's balancing acts. Small bandwidth is good for low-noise, but not if it cuts into your signal's bandwidth! Cool Feature SPICE let's you plot the total voltage spectral density at the output V(4) or the input V1. Just add trace ONOISE or INOISE to the plot window. You can even add these variables to a .PRINT statement!
RMS VOLTAGE CALCULATION Let's revisit calculating the RMS voltage from the power and voltage spectral densities. Here are some possibilities. METHOD 1: FLAT
SPECTRAL DENSITY AND A BRICKWALL FILTER
and the RMS voltage from
Unfortunately, life rarely hands you a flat density or a brickwall filter.
and the RMS voltage
You could say, for a flat power spectral density, the low-pass filter has an equivalent noise bandwidth of
METHOD 3: A
VARYING SPECTRAL DENSITY VERSUS FREQUENCY
and the RMS voltage
Unfortunately, many times we don't have nice neat equations for output noise. Instead, we have spectral densities calculated at discrete frequency points, (fn = f1, f2, f3, ...), like SPICE's noise analysis. In this case, we can approximate the integral by summing the noise in a number of bandwidths Δfn = fn+1 - fn across the frequency range.
Cool Feature You can easily implement this last equation in many SPICE simulators. Recalling that ONOISE represents the voltage spectral density, v, simply add the following equation to the plot window. SQRT(SUM(ONOISE*ONOISE)) The far right of the graph shows the total RMS voltage of your circuit. This can be handy for calculating the SNR of your design. (NOTE: You might have noticed that the frequency Δfn is absent from the equation above. Actually, the SUM function automatically includes the Δfn term.) CIRCUIT INSIGHT Simulate the SPICE file RES_NOISE.CIR with an EAMP gain =1, R1 = R2 = 100k, RLP1 = 100 and CLP1 = 1.59 nF. This time add the trace ONOISE to a plot window. Now, open a new plot window and add the trace SQRT(SUM(ONOISE*ONOISE)). What is the total RMS noise voltage at the highest frequency point of the graph? Can we get the same answer by Method 2 above assuming a flat noise density and a simple low-pass filter? From the plot of ONOISE, find the voltage spectral density of the resistors
Next, knowing the cutoff frequency fc of the low-pass filter, determine the total RMS output noise.
Is this result close to RMS level found using the SUM function?
SNR Now, what is your system's Signal-to-Noise Ratio (SNR) given a signal strength of 10 mV RMS?
HANDS-ON DESIGN Suppose this SNR is not good enough! How much can you lower the bandwidth to get an SNR = 500? What about lowering R1 and R2? But watch out! If you're designing a battery-powered device, low resistor values may sap away precious energy.
FINAL NOTE Noise can be one of the more challenging and tougher design topics! Sometimes it takes a few trips around the block before it begins to make sense. Here are some helpful guides.
SPICE FILE Download the file or copy this netlist into a text file with the *.cir extension. RES_NOISE.CIR - NOISE ANALYSIS: RESISTOR DIVIDER, AMP, AND LP FILTER * * RESISTOR DIVIDER V1 1 0 AC 1 DC 5 R1 1 2 100K R2 2 0 100K * * AMP AND LP FILTER EAMP 3 0 2 0 1 RLP1 3 4 100 CLP1 4 0 1.59NF * .AC DEC 5 100 100MEG .NOISE V(4) V1 5 .PRINT NOISE ONOISE .PROBE .END
© 2005 eCircuit Center |
||||||||||||||||||||||||||