QucsStudio Tutorial p2
QucsStudio Tutorial p2
QucsStudio Tutorial p2
Tutorial
Part 2:
Harmonic Balance
Simulations
Version 1.0
Author:
Gunthard Kraus, DG8GB,
Guest Professor at the Duale Hochschule Baden-Wuerttemberg (Friedrichshafen /
Germany), assisted by the Programs Author Michael Margraf, DD6UM
Email: mail@gunthard-kraus.de
Homepage: www.gunthard-kraus.de
7.2. How can I quickly find every DC Voltage of the Operating Point? 40
2
7.3. What are the necessary Preparations for a successful HB Simulation? 40
7.4. How can I present the Input Voltage and the Output Voltage including
the gain (= linear / in dB / in dBm)? 41
7.5. I want to see the Signal to Noise Ratio for f = 1 MHz at the Output in db 42
7.6. I want to simulate the Output Voltage versus the Input Voltage. How does the
Schematic look like for this Task?s task? 43
7.7. Parameter Sweep of the Input Voltage: how do the Output Voltage and the
Transfer Function look like? 43
7.8. Parameter Sweep of the Input Voltage: at the output I would like to see
the fundamental frequency and two Harmonics 45
7.9. Parameter Sweep of the Input Voltage: how can I evalute the
Output IP3 Point? 45
7.10. Parameter Sweep of the Input Voltage: how does the noise voltage at the
output vary with an increasing Input Voltage? 46
7.11. Parameter Sweep of the Input Voltage: how can I simulate the
Signal to Noise Ratio in dB at the Output? 47
7.12. Parameter Sweep of the Input Voltage: how can I determine the
Signal to Noise Ratio in dB for a Bandwidth of 1000 Hz? 48
7.14. Parameter Sweep of the Frequency: curves of Output Voltage and Gain 50
3
4
1. Harmonic Balance: Why?
Simulations in the Time Domain (e.g. with SPICE) give a lot of information concerning the curves of currents
and voltages and an FFT provides all information to the new frequency content caused by the nonliearities of
the parts in the circuit. But this is always only a „snapshot“ because all input signal frequencies are held
constant during the simulation.
An „ACSweep“ ignores every nonlinearity and shows only the Transfer Functions for sine wave input
signals with constant amplitude.
So you find a „Simulation gap“ if you want an AC sweep and afterwards present the „nonlinearities
over frequency“ for different amplitudes or frequencies of the input signals.
This gap is now closed by the „Harmonic Balance Simulation“ which is a free part of qucsstudio.
But remember: Harmonic Balance is always a Frequency Domain Simulation!
a) Linear Parts (including connections and nodes) are collected in a „linear subcircuit“.
b) All the nonlinear parts (including connections and nodes) are collected in a „nonlinear subcircuit“.
c) Now the two subcircuits (or „blocks“) are connected together by exactly named connection lines.
Now we have again our correct circuit and the input signals can be applied.
Everything in the linear subcircuit can at once be calculated in the Frequency Domain without any
difficulties or problems.
All calculations and simulations in the nonlinear subcircuit can (after a FFT) be done in the Time
Domain. So you get as a result every „current curve distortion“ which can be FFT re-transformed into
a frequency spectrum for every connection between linear and nonlinear subcircuit. These results
are sent back to the linear subcircuit.
There is a lot to calculate....because the user must at first tell the „maximum order of the regarded
harmonics“ in the nonlinear subcircuit. Then the program starts to calculate and compares the „energy
entry from the linear subciruit into the nonlinear subcircuit (for every connection!) to the energy
„which ist given back from the nonlinear subcircuit to the linear subcircuit in form of a frequency
spectrum“. If no identy is reached then a new trial with altered values will be started.
This needs a lot of iterations up to the point of a correct „Harmonic Balance“.....and thus the user must also
enter (before starting HB simulation) the maximum number of trials and the maximum allowable error at the
end of the simulation.
Theory and mathematical background are complicated. If somebody is interested in this: please read [1]..
But the possibilities and results of a successful Harmonic Balance Simulation are fascinating. Additionally
working with a „Parameter Sweep“ you have a huge stock of data and results. You can calculate the
relationship between the input voltage and the distortions over the frequency, the 1 dB compression point,
the IP3 point, the spectrum of generated harmonics.....and so on...and so on....
Let uns start with an example which can be downloaded from the qucsstudio homepage, named
„FET_P1dB.sch“
There you find a collecton of „examples“, followed by „HB-Analysis“. Download and extract the packjage
using the path „Project / Extract package“.
6
3. First Example: a FET Amplifier Stage explored by a Parameter Sweep
3.1. Preparations
At first check the identity of your downloaded example and this schematic.
The next steps can be found in the above schematic. Please open „edit“ in the Menu taskbar and
click on
Deactivate / Activate
Now you find a small rectangle hanging on your cursor and if you now click on both „Parameter
Sweep“ and on „Harmonic Balance“, these three functions are deactivated.
(At every moment you can roll back this action by repeating the procedure)
Now impose order on your screen and shift these deactivated directives away from the schematic –
we want to examine and to explain the circuit itself!
7
The Gate Bias Voltage is fed to
the gate by a „Bias T“ and the
voltage value is -0,43V.
Task:
Find the DC quiescent current of the FET.
Solution:
Pick „DC Simulation“ (path: „Components / Simulations“) and simulate. The results are given in a table.
This means:
You get a Drain current of 60 mA for a Drain voltage Vdd of +4 V and a Gate voltage of
-0,43V
8
Now we continue with the Parameter Sweep
On the last card you find the simulation name „HB1“ and
a) the settings for the relative and absolute tolerance when convergence is reached
Still a sharp look at the two Parameter Sweeps beside the schematic:
a) „SW1“ sweeps the input RF voltage „u_RF“ in 76 logarithmic steps from 10 mV up to 800 mV
b) „SW2“ sweeps the supply voltage „Vdd“ using the values „2V / 3V / 4V / 5V“.
9
With equation equ1 the start values (u_RF = 1 mV and Vdd = +4V) are given for a non-parametric
simulation.
Remember:
For a result presentation of a non-parametric simulation in the Frequency Domain you have only to
enter the name of the variable in the Graph Property equation.
For a result presentation of a Parameter Sweep the Graph Property equation must start with
„yvalue...“
But now....simulate!
A line thickness of „2“ is used in the diagram. The vertical axis is scaled linearly from 0.....12.
The horzontal axis is scaled linearly from 0....800 mV for the RF input voltage „u_RF“.
10
Task:
Present S21 in dB and mark the vertical axis as „S21 (in dB)“. Choose a red line with thickness „2“.
Solution:
Write a new Graph property equation:
Task::
Find the 1 dB compression point for a supply
voltage Vdd = +5V
Solution:
Use the last diagram „S21 versus u_RF“ and set
two markers:
Remark:
0.6 V is the peak value of the input signal „u_RF“. The RMS value would be
And if you are interested in the „level at 50 Ώ expressed in dBm“ another calculation is necessary:
You get the „Output 1dB compression point“ by adding the gain (S21 = 19.7 dB) at this point. This gives a
value of
+5,6dBm + 19,7dBm = +25,3 dBm
11
Task:
Simulate the 1 dB Compression Points for Vdd = +2V / +3V / +4V
---------------------------------------------------------------------------------------------------------------------------------
yvalue(output.Vb,1.9e9)
This is not complicated and can be read as follows:
„--------------------------------------------------------------------------------------------------------------------------------
12
4.2. Ideal and real Transfer Characteristic
We use a cartesian diagram after the simulation and write the following Graph property equation for the
presentation of the real Transfer characteristic at f = 1.9 GHz:
yvalue(output.Vb,1.9e9)
(Use blue colour and line width = 2 for the curve).
1) Calculate the maximum value of the Input to Output ratio at f = 1.9 GHz:
3) At last plot this result also in the same diagram. Use red colour and a line width of „2“:
13
4.3. Linear Presentation of S21 for different Input Voltage Amplitudes
2*yvalue(output.Vb,1.9e9) / u_RF
Using a marker we find without any problems the
value for S21 at f = 1.9 GHz for an input voltage
u_RF = 20 mV (= peak value) to
10.9 / 123o
14
4.5. Rise of the Harmonics for increasing Input Voltage Amplitude (linear
Presentation)4
This is a quite simple affair because the following Graph Properties equation will do the job:
yvalue(output.Vb,[frequency])
Remember:
P = 0 dBm = 1 mW at the
characteric system
resistance.
So to change from „dB“ to „dBm at 50Ώ“ for this diagram the following Graph property equation was
used: (yvalue(output.Vb,[frequency]) / peak reference voltage)
15
Attention:
This equation is necessary if the charactistic system
impedance differs from the default setting of „Z = 50Ώ“
For Z = 50Ώ this calculation is much
simpler, because this case is already
prepared for you. Enter the equation
dBm(value(output.Vb,
[frequency]))
Please compare....
-------------------------------------------------------------------------------------------------------------------------
dBm(output.Vb)
for a cartesian diagram and use a marker
to indicate every harmonic frequency and
amplitude.
16
4.8. The IP3 Point
4.8.1. Fundamentals
In chapter 14.4. (of part 1) this text can be found:
The simulation of the „Third Order Intercept Point“ informs about the nonlinearities and distortions of a
stage when the input level increases.
When reaching the IP3 (on the “Pout / Pin curve”) the third order
distortion products would be equal to the applied RF signal at the input.
And this is not very good, because 3rd order distortion products have
nearly the same frequency as the input signal.....
But:
this IP3 point is a pure theoretical value due to the fact of compression, followed by limiting, in the stage
with increasing input levels.
That can be shown by this diagram:
But if you exactly know this IP3 point, then you can for every input or output level calculate the
level difference to the undesired 3rd order intermodulation products!
(You have simply to solve two equations for straight lines....)
And so you can for this case define an intermodulation free dynamic range with the stage's noise
as “floor”
17
4.8.2. Simulation of IP3 using the Transfer Characteristic
To determine the IP3 we feed the stage with two “in band signals” with the same
amplitudes but a very small frequency difference.
The Levels are now increased and very soon you will see the 3rd order intermodulation products at every side
of the couple of test signals. The frequency distance to the test signals is exactly the frequency
difference of the test signals. But the IP3-products can't normally be eliminated by filtering!
(...There exist also 2nd order intermodulation products with higher amplitudes. But their frequencies are far
away from the two test signals. So they don't disturb and can be eliminated by filtering....)
Example:
At the input two voltage sources (with f1 = 1.9
GHz and f2 = 1.91 GHz) are connected in
series. This gives a frequency difference of 10
MHz. In this case you'll find the IP3 products at
(1.9 GHz - 10 MHz) = 1.89 GHz
and
(1.91 GHz + 10 MHz) = 1.92 GHz
dBm(yvalue(output.Vb,1.91e9)
and
dBm(yvalue(output.Vb.1.92e9)
Then you'll see the output power levels in dBm
for the „fundamental frequency f2 = 1.91 GHz“
in red and the „upper IP3 product at f = 1.92 GHz“ in green
Remark:
If you want to calculate the frequencies of
the third order distortion products then use
the formula:
fIP3 = 2*f1 - f2
and you'll get f=1.89 GHz and f=1.92 GHz.
The amplitudes and relationships are the
same for both products.
18
Let us start with the fundamental frequency of
f = 1.91 GHz and write a simple equation for the
next graph:
dBm(u_RF)
As you can see: the pink line must be a little bit
shifted upwards and for „dBm“ scaling you have
simply to multiply u_RF by a constant factor to do
this.
dBm(5.5*u_RF)
u_RF*u_RF*u_RF
by the equation. Afterwards shift the
(green) line upwards by multiplying by a
constant factor to coincide with the
simulated IP3 product.
dBm(1.4*(u_RF*u_RF*u_RF))
19
Now we have found what we wanted to see:
And this coincides with an RMS level of 20*log10(1.41 V/ 0.224V) dBm = +16,8 dBm
Now we have found the „Input Intercept Point IIP3“ with +16.8 dBm.
-------------------------------------------------------------------------------------------------------------
Task:
An input voltage with a peak value of 0.02 V is applied to the input. Try to find the attenuation of the
third order intermodulation produkt.
20
Solution:
Use the above diagram and draw (in your brain!!) a vertical line at the point for u_RF = 0.02 V starting
at the horizontal axis.
Mark now the break even points of the vertical line with the two approximation straight lines in the
diagram using two markers.
Calculate the level difference in dB.
Task:
Theory says that an increase of 20 dB of the input voltage u_RF causes an increase of 60 dB of the
third order intermodulation product.
Thus the level difference (= attenuation of the third order product in relation to the input level) will be
reduced by 40 dB in this case.
Please check this using the above diagram.
21
4.8.3. Simulation of OIP3 using the Output Spectrum
As already mentioned: for a spectrum presentation you have either to de-activate all parameter sweeps or to
avoid the expression „yvalue“ in a Graph property equation!
dBm(output.Vb)
as equation for the Graph
properties.
22
Let us use the zoom function to present only the frequency range from 1.8....2.0 GHz!
But now the vertical axis is scaled from -300 dB up to 0 dB. Thus we find additional products of higher order
–.. and the slope of such a signal increases with the order of the intermodulation product.
23
5. A Half Complex Mixer“ to generate an SSB Signal
This is a modern version of the good old „phase method of SSB generation“. But at first we have to discuss
some new terms.
a) The signal with the double sided spectrum is the real signal (..as coming from a generator, a microphone,
a loudspeaker....) and is named „I“ Signal (= in phase signal). This signal must not be changed.
b) additionally you use a circuit named „Hilbert Transformer“. If you connect the real signal to its input, then
you get at the output a constant phase shift of exactly 90 degrees for all input frequencies! This artificial
output signal is named „Q“ signal = „Quadrature Signal“.
Using digital signal processing you have now two data streams named „I“ and „Q“ which are the two
components of a complex signal! This is the famous analyctic pair. It can be defined as
I + j*Q
and you find only
positive frequencies for „I + j*Q“ resp. only negative
frequencies for „I – j*Q“
a) A real information U = „Iinf“ (= speech, music..) which is converted to an Analytic Pair by the aid of a
Hilbert Transformer. Its form is now:
b) A already complex carrier signal which can (due to Eulers law) also be written as
+jωct
Ucarrier = Ucarrier_max * e = Ucarrier_max * [cos(ωct) + j * sin(ωct)]
Attention: in practice you use the amplitude value „1“ for the carriers's amplitude and a Sine and
a Cosine voltage source with the same frequency. This represents a signal with only one positive
frequency.
.
24
Now multiply the Information's Analytic Pair by the complex carrier with an amplitude value = 1 and only
one positive frequency:
Uinf * Ucarrier = (Iinf + j * Qinf) * [cos(ωct) + j * sin(ωct)] =
The real part of the product is marked in red. Only this part (= USB = upper side band) can be
transmitted into the air and this part must be realized by the following circuit.
Remark:
The Hilbert Transformer with 90 degrees of constant phase shift is not complicated when realized in digital
signal processing. But an analog version with a greater bandwidth.....can be a life task.....Sorry....
25
This is the correct realization and by using Harmonic Balance we'll find some interesting details.
The real RF input signal is presented by two identical voltage sources. The first source is the „I“
Channel, the second source feeds the Hilbert transformer to generate the constant phase shift of 90
degrees for the Q Channel.
This is the „I“ Channel including the multiplying circuit as regarded example:
The peak internal voltage
value of the RF source is
0.316 V.
But at the input of the
multiplying circuit we
find only the half value of
0.158 V due to the
voltage divider
consisting of R7 and R6.
„P_I“
The LO signal has an
amplitude peak value of
1 V and a frequency of 1
GHz.
26
That is the evidence:
at point „P_I“ we observe a peak voltage of 0.158 V and this equates to a level of -6 dBm and the RF signal
frequency is1 MHz.
At the „LO_cosinus“ pin we find a peak voltage of 1 V = a level of +10 dBm (LO frequency is 1 GHz9
27
But the output is interesting:
We have to add the output signals of the two multipliers to get the LSB signal.
28
5.3. Parameter Simulation of the „undesired Side Band's Rejection“ for
different Phase Errors
The rejection of an undesired side band depends on the exactness of the 90 degree phase shift of the Hilbert
transformer. So we start a parameter sweep to show this rejection for phase shifts between 99 and 92
degrees.
a) In the property list of the Hilbert Transformer a variable „pdiff“ is used for the phase shift.
b) We need an equation to set the start value of the phase shift to 90 degreees.
c) The parameter sweep varies the angle „pdiff“ from 88 to 92 degrees using 101 steps. durchgespielt.
Then de-activate the parameter sweep and simulate. Compare the result to the above simulation
result – it should be identic.
29
But now.....activate the parameter sweep and simulate.
We present in a cartesian diagram the USB signal but show only the frequency range of the undesired
LSB with f = 999MHz. So we observe the level of this signal in relation of the phase error.
dBm(yvalue(out1_USB.Vb,999e6))
Remember that the level of the desired USB was „-6 dBm“. With this information you could now easily
calculate the „undesired side band's attenuation“ – in your brain or by the modified formula
dBm(yvalue(out1_USB.Vb,999e6))+6
30
6. A Double Balanced Mixer (DBM)
6.1. The Schematic (coming from chapter 14.3. in part 1 of the tutorial)
This circuit was investigated in the mentioned chapter and we have simulated
(calibration still in
„dBV“)
31
6.2. Used Schematic for the Harmonic Balance Simulation
There is only one modifaction: now Schottky diodes „1N6263“ are used because they switch faster and
show lower capacitance values. They can be found under „Schottky diodes“ in the qucsstudio diode
library. These are the properties
Voltage sources
properties:
a) RF input
peak voltage = 10 mV
frequency = 137 MHz
b) LO signal
peak voltage = 2 V
frequency = 37 MHz
32
6.3. Harmonic Balance Parameter Sweep of the LO Level
6.3.1. Output Spectrum for different LO Amplitudes
For a successful simulation we need a variable for the internal voltage of the LO signal source and name it
„LO_level“. Using equation „Eqn1“ the start value is ÛLO = 2V.
The parameter sweep starts at a minimum voltage value of ÛLO = 0.1 V and rises up to 3 V in steps of
0.1 V.
LO level = 2 V
33
You can also indicate the LSB level at f = 100 MHz versus the LO level.
dBm(yvalue(IF_out.Vb,100e6))
dBm(RF_Source_Level)
and the result is a level of -30 dBm at f =
137 MHz(see diagram)
The Incident Wave can be calculated by the
well known relationship
„Incident Wave = Uo / 2
= RF_Source_Level/2“
Thus the Incident Wave Level (which arrives
at the mixer input pin) must be 6 dB down
and has a value of -36 dBm (= 5 mV)
dB(yvalue(IF_out.Vb,100e6)/5e-3)
You see:
The conversion loss is 5,71 dB for a LO
peak voltage value of 2 V
(See the marker field).
34
6.3.3. Addition of a Diplexer to the Mixer Output
Double Balanced Mixers equipped with diodes must have a perfect broadband 50Ώ termination at
every port to reduce distortions and to show the specifications given in the data sheet.
This can be done by a circuit named „Diplexer“ with the following properties:
a) a band pass filter characteristic for the IF-Signal output (here: f = 100 MHz), but
b) a perfect 50Ώ termination for the mixrer output – for the complete regarded frequency range
http://www.changpuak.ch
35
The Input Reflection S11 is below -40 dB in the complete frequency range. And if we could use lossless
parts, S21 would be 0 dB for f = 100 MHz.
Now combine the mixer and the diplexer.
The simulated spectres for the input and the output of the diplexer can be found on the next page. A
full success....
36
------------------------------------------------------------------------------------------------------------------------------------
a) At the RF input two voltage sources are connected in series. The sources use the same peak voltage
value „RF_Source“ = 20 mV as starting value. The input frequencies are 137 MHz and 137.1 MHz –
thus we find a frequency difference of 0.1 MHz.
37
dBm(LSB_100MHz_out.Vb)
The LSB signals with f = 100 MHz and 100.1 MHz can easily be found in the diagram. Examining the „tops
of the arrows“ we see that the value range starts at -37 dBm and rises up to nearly 0 dBm.
The „IP3 intermodulation products“ are found at 99.9 MHz at 100.2 MHz. Their amplitude values are
nearly invisible for small values of the input voltage level „U_RF“, but thenD
To see the details we regard only the IP3 product at 99.9 MHz and the adjacent LSB signal at 100MHz for
the parameter sweep.
Then followes the game „how to find the approxmation straight lines for the simulated curves“ using
four different equations:
b) for the associated approximation straight line for this curce: dBm(RF-Source/3.9)
dBm(RF_Source*RF_Source*RF_Source)/70)
38
The result:
The break even point of the straight lines lies at the right hand side at more than „U_RF“ = 3V (peak
value). The associated output level is ca. +10 dBm at the left vertical axis.
39
7. Summary: Harmonic Balance Simulation in Question and Answer for
an Amplifier Stage
7.1. Which Circuit?
-----------------------------------------------------------------------------------------------------------------------------
7.2. How can I quickly find every DC Voltage of the Operating Point?
-----------------------------------------------------------------------------------------------------------------------------
7.3. What are the necessary Preparations for a successful HB
Simulation?
You need at first the „Harmonic balance
directive“ with the necessary entries for
a successful noise simulation (see this
illustration).
.
Now start the simulation.
40
7.4. How can I present the Input Voltage and the Output Voltage
including the gain (= linear / in dB / in dBm)?
Open a cartesian
diagram and enter
„IN.Vb“ as graph
property.
OUT2.Vb
dBm(IN.Vb)
dBm(OUT2.Vb)
OUT2.Vb / IN.Vb
and
db(OUT2.Vb / IN.Vb
But the result is very irritating:
41
Every Harmonic frequency is marked by an arrow on the horizontal diagram axis and for every Harmonic
frequency the amplitude will be calculated. But these amplitudes decrease with the order „N“ and thus the
calculated gain for the Harmonics rises with N and rises and rises.....
-------------------------------------------------------------------------------------------------------------------------------------------
7.5. I want to see the Signal to Noise Ratio for f = 1 MHz at the Output in
db
Use this equation:
dB(yvalue(OUT2.Vb,1e6 / OUT2.vbn)
42
7.6. I want to simulate with the Input Voltage as Parameter. How does
the Schematic look like for this Task?
That is it:
43
7.7. Parameter Sweep of the Input Voltage: I want to see the Output
Voltage and the Transfer Function
Write a parameter sweep declaration and sweep logarithmic from
And this is the transfer function in linear and double logarithmic form:
Gleichungen:
yvalue(OUT2.Vb,1e6)/U_in dB(yvalue(OUT2.Vb,1e6)/U_in)
44
7.8. Parameter Sweep of the Input Voltage: I would like to see the
Fundamental Frequency and two Harmonics in dBm at the Output
For this purpose we use the double logarithmic presentation and write three graph property equations
dBm(yvalue(OUT2.Vb,1e6))
dBm(yvalue(OUT2.Vb,2e6))
dBm(yvalue(OUT2.Vb,3e6))
------------------------------------------------------------------------------------------
7.9. Parameter Sweep of the Input Voltage: how can I evalute the
Output IP3 Point?
We use the same graph as above and extend (in our brain) the associated approximation straight lines of the
curve for 1 MHz (= fundamental frequency) and the curve for 3 MHz (= third order product). Then we
evaluate the break-even point:
45
7.10. Parameter Sweep of the Input Voltage: how does the Noise Voltage
at the Output vary with an increasing Input Voltage?
Never forget:
Noise voltages are always given as „Volts per square root of 1 Hz“ and this is the noise voltage resp.
noise power which can be measured in a bandwidth of 1 Hz. The amplitude values are extremely small and
thus they are normally given as „NanoVolts“. But 1 Volt is identical to „109 NanoVolts“ and thus the graph
equation can be written as:
1e9*yvalue(OUT2.vbn)
46
7.11. Parameter Sweep of the Input Voltage: how can I simulate the
Signal to Noise Ratio in dB at the Output?
You have two options
a) Present the output signal „OUT2.Vb“ in dBm and the output noise voltage in dBm in the same
diagram. Then determine the level difference between the curves for a desired input voltage.
Remark:
The output signal has a frequency
of f = 1 MHz.
equations:
dBm(yvalue(OUT2.Vb)
und
dBm(yvalue(OUT2.vbn)
(dBm(yvalue(OUT2.Vb,1e6)))-
(dBm(yvalue(OUT2.vbn,990e3)))
47
7.12. Parameter Sweep of the Input Voltage: how can I determine the
Signal to Noise Ratio in dB for a Bandwidth of 1000 Hz?
Very easy:
The noise power increases linearly with the bandwidth. Working with „dB“ or „dBm“, then the following
expression must be subtracted from the S / N ratio:
(dBm(yvalue(OUT2.Vb,1e6)))
-(dBm(yvalue(OUT2.vbn,990e3)))
-30
48
7.13. Parameter Sweep of the Frequency: Preparation of the HB
Simulation
This simulation needs some time for the preparation:
a) Use two variables in the property menu of the input voltage source (= „U_in“ and „freq_in“)
49
7.14. Parameter Sweep of the Frequency: curves of Output Voltage and
Gain
At first write the correct equations for the result of a frequency sweep:
yvalue(OUT2.Vb,fmax) dBm(yvalue(OUT2.Vb,fmax)
yvalue(OUT2.Vb,fmax)/U_in) dB(yvalue(OUT2.Vb,fmax)/U_in)
In the right diagram you can see how the „upper 3 dB cutoff frequency“ was determined by two markers.
The right marker has been shifted to 95.4 MHz. There the gain dropped to 5.2 dB (= 3 dB reduction).
50
7.15. Simultaneous Parameter Sweep of Frequency AND Input Voltage
Simply add a parameter sweep SW2 for the input voltage „U_in“.
51