Search This Blog

Friday, April 30, 2010

RF: Noise to Power Ratio (NPR) Test

Introduction
NPR, or Noise to Power Ratio, is a figure of merit describing an amplifier's linearity.  When I say linearity, I am referring to the amplifier's ability to keep it's gain flat versus output power.  Of course it's deeper than this but this is a good way to understand it.

Now many people know of different types of linearity figures of merit, OIP3 for instance.  Unfortunately, OIP3 is only good for certain instances, single carriers or very few carriers.  But what about OFDM or QAM modulation techniques that have closely spaced signals?

This is where an NPR test is useful.  It takes into account a lot of different carriers during the test and tests how linear the amplifier is.  I'm not going into great detail of the mathematics but I will indicate the basics of how it works

The Basics
The most common way to perform an NPR test is to use 5 main devices in the lab:

  1. AWGN source (Noise Source): This is used to simulate the many frequency tones.
  2. Bandpass Filter: A filter used to bandlimit the noise into a usable bandwidth. Generally, this is the waveform's bandwidth.
  3. Notch Filter: A filter, or method, of taking out a small section of the noise, creating a "notch" in the middle of the waveform.
  4. AUT: This is the amplifier that is being tested, generally a power amplifier.
  5. Spectrum Analyzer: Used to take the measurements. (Could be a Network Analyzer)
So in order to perform the test, you need to hook up the source to the bandpass filter then the notch filter.  Followed by this is the AUT and finally the Spectrum Analyzer.  Generally the notch will be the bandwidth of the signal separation.

Ultimately, the point of this setup is to see how much the notch is filled after the sample noise waveform passes through the amplifier.  This idea is based on intermod theory.  When many tones are very close together they will "intermodulate" with each other and form harmonics at other close frequencies.  This is how the notch "fills up," by the intermodulation harmonics from other tones.  Based on this we can find how linear the amplifier is relative to different noise power levels.

Conclusion
So there is a lot here that wasn't said but I hope you have a basic idea on what the purpose and why NPR works.  An NPR test is basically using intermod theory on a large number of tones to see how much they modulate with each other.  After that, it's simple math using dBc/Hz reference powers of Spectral Density.  If you desire more information or examples, I'll be more than happy to help.  Just email me or comment. Later!

-------------------------------
Justin Coulston
justin.coulston@gmail.com

Thursday, April 29, 2010

RF: Broadband Matching

Introduction
Today at work, I came to the conclusion that Broadband matching is a fine art.  It takes years of experience to understand and get it right.  Even the most experienced RF Engineers still have issues developing a matching network for amplifiers and power transistors.

I'm going to give a brief overview of Broadband matching and how it applies to the RF engineer.

The Basics
A matching network is simply any network that can transform impedances from it's input to output.  Generally, they consist of either LC networks or microstrip equivalents.  They come in the form of filter type matches.  I have mostly used strings of networks with the high pass and low pass structure.

There are many ways to match networks and many structures you can use.  At low frequencies (under 1 GHz) and at narrow bandwidths (under 100 MHz) it's generally easier to match using the Smith Chart.  At higher frequencies and higher bandwidths, I recommend a more trial and error approach.  This is what broadband matching entails (higher bandwidths).  There is no single method to broadband matching, so I'll show you my method and then only with amplifier/transistors.

My Method
So let's say we have an RF amplifier that is denoted like so:


Every amp has an inherent input impedance and output impedance.  This is modeled by something like so:


Now generally, input impedances are meant to be extremely high (Megaohms in Op-Amps) but in RF amps they can be very small (sometimes 2 - 3 ohms).  The output can be almost anything, but generally smaller.

Now something to notice, is the inherent resistances.  Most of the time they are not strictly resistive and will be reactive as well.  I noticed today that the amp I was using was in fact inductive at high frequencies.  So I had to match accordingly.  



Since Rin = Lin, I began my matching with a series capacitor like so:


So you see, I used the internal inductor as my first component, then use the series capacitor to complete this first part of the match (High Pass Filter).

To shorten this post up a little bit, I will say that you will then put a shunt capacitor as the next component, then a series inductor, etc, etc.  Repeat those until you have a match.  Do the same for the output.

Now the big question you'll be asking is "what about the values?"  Well this is where the art comes in.  It's not a very simple topic to go through.  This is completely dependent on what frequency return loss goals you have and how many networks you have. I generally use an optimizer in Agilent's ADS Simulation Software (EESof).

But I will give you a general overview of what "type" of values you'll need for certain frequency ranges:

HIGH FREQUENCY (500MHz-2GHz)
  • Shunt C: Very low values (0.1pF - 2pF)
  • Shunt L: Medium values (50nH - 100nH)
  • Series C: Medium RF values (20pF - 50pF) [These are more dependent on other factors]
  • Series L: Very low values (1.6nH - 15nH)
LOW FREQUENCY ( < 500MHz)
  • Shunt C: Medium values (100pF - 1uF)
  • Shunt L: High Values (1uH - 100uH) [This is a guesstimate]
  • Series C: High RF values (1000pF - 10uF)
  • Series L: Medium values (100nH - 10uH)
I hope this post is somewhat useful.  I know it's vague on details but I want to give you an idea on broadband matching.  I can't really write a whitepaper on it for a post.  If you have specific questions email/comment and ask.  Later

--------------------
Justin Coulston
justin.coulston@gmail.com

Component Selection: Coilcraft Correction

I had a marketing associate from Coilcraft comment politely on my post about Coilcraft inductors.  He pointed out that samples are available to everyone, not just working professionals, specifically university students.  They are currently trying to market to a younger engineering crowd and are looking for suggestions.

As of now, college kids, simply go online and request samples.  This is a great tool to use for those senior projects.  I remember trying to get parts and it was a pain.  So now you have a venue to get some inductors.  They are very helpful and want to see you use their products.

Anyways, this was really just a correction post about their inductors.  I hope it's helpful.

P.S. No they're not paying me...I wish...

------------------------
Justin Coulston
justin.coulston@gmail.com

Saturday, April 24, 2010

Simulation: SPICE Update 1

I haven't had much to say these past few days...nothing really new.  I finally came up with a structure for my software.  I will have separate models (including companion models) for every device except for the basics: resistor, independent voltage, current sources, and dependent voltage, current sources.  After this everything else is modeled.  So I have a format for my "netlist"

I'm not using the classical netlist format.  I will have to be able to import classic netlists into the software but I haven't gotten that far yet.  Hopefully this will come sooner than later.  Anyways, sorry this isn't more detail oriented.

----------------------
Justin Coulston
justin.coulston@gmail.com

Tuesday, April 20, 2010

Component Selection: Amplifier Nonlinearity

Introduction
A linear device is any device that changes due to a linear relationship between it's input and output.  For example, a 3dB attenuator will always attenuate 3dB of power regardless of power (Of course this doesn't take into account the breakdown voltage of components).  Another example is amplifiers in small-signal applications.  In small signal applications the output voltage of an amplifier can be modeled by the following equation:



where R0 and R1 are DC Voltage and Voltage Gain of an amplifier.  This is typical usage of amplifiers.  Unfortunately, Amplifiers won't continue to amplify signals infinitely.  This is why with large-signals amplifiers have "non-linear" behavior...

The Non-Linear Amplifier
So what causes these non-linearities? Non-linearity occurs due to device saturation, or the point where the device can no longer provide any more power.  In the below graph, you can see an amplifier's input power to output power characteristics.  For smaller input power signals, the line is very straight, or linear.  As the input power draws near to 0 dBm, you can see it starts to roll off.  This indicates that the gain is no longer the same and is in fact dropping as the input power rises.

From Maxim-IC.Com

If the input power continues to rise, eventually you would see a straight horizontal line indicating it has hit saturation.  This output power level is known as the Saturation Level of the amplifier (simple enough).

Many non-linear amps can be modeled using a Taylor Expansion style equation:


This is the equation where you can derive the second, third, fourth, etc harmonics.  If you were to input a cos(wt) into the equation you would see components of many frequencies (I'll do this math at a later date).  This is also where the non-linear figure of merit, 3rd Order Intercept Point (IP3), comes from.  If you have a signal Vin = cos(w0t) + cos(w1t) into the equation you would see where the third-order harmonic comes into play.  Very interesting math to go through (again...at a later date)

Summary
Granted, this is a very basic explanation of non-linear behavior but it's important to know where it comes from when working with power amplifiers especially.  I put this under Component Selection mainly because of the importance this idea is when picking out amplifiers.  Be sure that your amplifier is as linear as possible when selecting an amp, otherwise many unexpected problems can arise.  If you have specific questions feel free to ask. Enjoy!

------------------------
Justin Coulston
justin.coulston@gmail.com

Sunday, April 18, 2010

Simulation: Netlist Template

I have spent the last 2 days trying to figure out how to generalize the process of subcircuits for the SPICE software.  I've gone through a few design possibilities and finally came to the conclusion that simple netlist style templates will work perfectly.

So instead of reinventing the wheel, I'll use the classic technique of netlisting.  I will end up using a different netlist for different simulation types.

Example:
The capacitor companion model for a ...

Transient Analysis: Consists of a resistor in parallel with a current source.
DC Analysis: Consists of either a perfect open or very high value resistor (> 1 Gigaohm)
Small Signal or AC Analysis: Consists of a resistor with equation R = 1/(2*pi*f*C)

So I'll have different models for different simulation types as you can see.  The biggest question will be how to define the equations for the individual parameters.  How should I implement these into classes inside the program?  Creating text file models is the easy task.  It's a little more difficult to implement into Classes.

That's the extent of where I am currently.

--------------------
Justin Coulston
justin.coulston@gmail.com

Friday, April 16, 2010

Technological Advances: About the Memristor - Video

This is a really good video explaining the memristor principle and idea from an HP guy himself. Enjoy