### Where To Find This Example

Select **Help > Open Examples...** from the menus and type either the example name listed above or one of the keywords below.

Or in Version 13 or higher you can open the project directly from this page using this button. Make sure to select the **Enable Guided Help** before clicking this button.

### Design Notes

**BJT Feedback Oscillator Design**

This example shows a simple oscillator design using a NEC68630 nonlinear device model with the collector grounded to provide the negative resistance. A coaxial line is used in the resonator design to adjust the frequency of oscillation. This example shows how a designer should start his or her analysis using linear simulation to find conditions appropriate for oscillation. Once these are found, the designer can perform a non-linear simulation to predict output frequency, output power, and phase noise of the oscillator.

This oscillator also serves as a good example for demonstrating how the NDF measurement is used to check a circuit's stability.

__Overview__

The AWR Design Environment (AWRDE) has some extremely powerful capabilities for analyzing oscillators. However, the designer should follow a suggested design procedure to effectively simulate this type of circuit. Many times designers piece together their circuit and expect the nonlinear simulation to give good results immediately without first analyzing the linear results to get a feeling of how the circuit will behave.

The design in this example starts with a linear simulation of the circuit with the OSCTEST element to break the feedback loop to look for approximate oscillation conditions. Since this is a linear type of analysis, the circuit can easily be tuned or optimized to find the appropriate element values. Once the appropriate linear oscillation conditions have been determined, then the nonlinear simulation can be performed. The OSCTEST2 element is removed and the OSCAPROBE is used to determine the nonlinear characteristics of the oscillator.

A supplemental schematic is added with no OSCTEST or OSCAPROBE, to show how the NDF measurement detects the oscillator's instability as the coax line's length is varied over a wide range.

__Step_1_Linear_Oscillator schematic__

This schematic has the full design with the OSCTEST2 element in the feedback loop to look at the loop characteristics of this circuit. Notice that the direction of the OSCTEST element is into the transistor, which is the forward gain direction. For approximate oscillation conditions to be achieved, the angle of S21 using the OSCTEST will cross the zero angle point when the magnitude of S21 is at a maximum. The phase and magnitude of S21 are shown in the graph “Linear Oscillation Analysis”.

This design is very sensitive to the capacitor C1. Try tuning on its value and watch the linear results change and see how it is possible to get away from the linear oscillation approximation. The original design value is 4.5 pF. Notice with the marker that the approximate oscillation frequency with this circuit is 1.32 GHz.

__Step_2_Nonlinear_Oscillator schematic__

Now that the linear analysis shows that this circuit should oscillate at 1.32 GHz, non-linear oscillator characteristics can be simulated. The OSCTEST element is removed and the OSCAPROBE is hooked into the feedback loop. With this element, the simulator can determine the large signal oscillation frequency, output power and phase noise. Information from the linear analysis is used for setting up the OSCAPROBE** **element. The user has to specify the frequency range that probe will use search between when looking for oscillations. Please use the help for this model for more information on each of the probe’s parameters.

In this design, the coax line in the resonator can be used to set the frequency of oscillation. To help determine the appropriate length of the line to get the right oscillation frequency, the length of this line has been setup as a swept variable to sweep from 8 to 12 mm. The graph “Oscillation Frequency” shows a plot of the oscillation frequency versus the coax line length. You can see that a fairly linear change in oscillation frequency can be achieved by changing this length. Additionally, notice that when the length is 10 mm (same length as the linear schematic); the oscillation frequency is approximately 1.325 GHz, very close to the linear approximation.

Finally, additional characteristics of the oscillator are determined in this example, as shown in the graphs listed below. These are all simulated over the swept coax line and the results are set to be tunable. Open up the tuner, change the value of Coax_Len, and watch all of these graphs change based on the length of coax line simulated:

• “Output Spectrum” - The output power spectrum of the oscillator.

• “Output Waveform” - The output waveform in the time domain, over two periods of oscillation.

• “Phase Noise” - The phase noise of the oscillator. Note that the frequency for the phase noise is the frequency offset from the oscillator fundamental frequency. Also notice the 3dB relationship between the SSB and the DSB phase noise.

__Supplemental_Linear_Oscillator_NDF schematic__

In this schematic, the oscillator circuit is drawn without additional measurement or simulation control elements, except for a SWPVAR block that varies the coax line length over a range so wide that the oscillator will not work at the extremes.

The complex NDF measurement approaches constant real values as frequency approaches 0 or infinity. Instability is indicated when NDF encircles the origin of a polar plot as frequency is swept from very low to very high (see the "NDF Polar" graph).

In other words, if the phase of NDF decreases by more than 360 degrees, the circuit is unstable (see "NDF Unwrapped Angle" graph).

After the simulation is completed, open the NDF graphs and the tuner, then use the slider for the Coax_Len_NDF variable to see how the NDF measurement varies with the coax line length.

The frequency sweep must be set carefully, to ensure that encirclements of the origin can be detected, and that the unwrapped phase of NDF is continuous. Note that the frequency sweep set on this schematic is irregular to ensure sufficient resolution where necessary.