Why Are My Colpitts Oscillator PSPICE Simulations Inconsistent?

In summary: The reason you need a much larger resistance in parallel with the transistor base is because the (damped) input has a large positive impedance which will tend to cancel the oscillation created by the small resistor in series. If you don't have that much resistance in parallel, you will get oscillations at all frequencies.Finally, increasing the current generator I1 to 1mA solved the problem almost instantly.
  • #1
darkbasic
2
0
hpscan002.jpg
hpscan005.jpg
hpscan006.jpg



Hi,
I'm trying to simulate exercise 13.21(a) from Sedra-Smith, with:

  • Vcc=5V
  • f=100 kHz
and the following BJT model:
Code:
.model modn NPN(Is=6.734f Xti=3 Eg=1.11 Vaf=74.03 Bf=416.4 Ne=1.259 Ise=6.734f Ikf=66.78m Xtb=1.5
Br=.7371 Nc=2 Isc=0 Ikr=0 Rc=1 Cjc=3.638p Mjc=.3085 Vjc=.75 Fc=.5 Cje=4.493p Mje=.2593 Vje=.75
Tr=239.5n Tf=301.2p Itf=.4 Vtf=4 Xtf=2 Rb=10)

This is the circuit in pspice:

oscillatore1.png


(I had to put R2=1f because otherwise the simulation didn't converge)

Since I have two conditions for oscillation:

Code:
Im{A*B(jw)}=0
Code:
A*B(jw0)=1

but three electrical reactancesto size, then I have one degree of freedom so I chosed C1=L.

I also chosed I = 1*10^-6 A which should be fine because the BJT works in the forward-active region.

Unfortunaly when I simulate it I get very different results when I change the Run Time or Max Step Size values:

oscillatore2.jpg
oscillatore3.jpg
oscillatore4.jpg
oscillatore6.jpg



What's wrong? :-(

This is the project file, including the models library if someone wants to try it:
https://drive.google.com/file/d/0Bwe9Wtc-5xF1S0xQb2F2Mkh0REk/view?usp=sharing

Thanks
 
Physics news on Phys.org
  • #2
I do not know "Sedra-Smith", but I se several problems with your circuit.

1. The current source will take forever charge a 1000F capacitor (t =C3*V/I = 1000*5/1e-6 = 5e9 seconds or about 158years. You are trying for a frequency of about 700kHz, so go to a larger current and a much smaller capacitor (0.1μF should be large enough by far).

2. L and C are unbalanced. Try multiplying L with 10 and dividing C1 and C2 by 10.

Try this first and see what happens.
 
  • #3
Finally I found the problem(s), there were many of them!

1) The biggest one were the initial conditions. After selecting "Skip the initial transient bias point calculation" (SKIPBP) in PSpice simulation's options everything got better.
2) Another big problem was in the math: I didn't size reactances well. I did it well, but just barely. In fact assuming A*B(jw0)=1 you barely get a persistent oscillation and a small rounding is enough to let it fade. So I assumed A*B(jw0)=100 when sizing reactances.
3) I had to put another small resistor in the project (R2=1f) because otherwise the simulation didn't converge, but it seems it was too small and I still had convergence problems in some circumstances. So I changed it to 1 mOhm instead.
4) The output capacitor took a long time to load (which wasn't a problem), but also lead to convergence problems in some circumstances. So I changed it to 1nF.
5) I also increased the current generator I1 to 1mA to get the oscillations sooner.
6) Finally I sized the reactances once again, assuming L=C1*10^3 to get more realistic values (but it works even if they are balanced).
7) Now THD is ~1% for the first 50 harmonics!

circuit1.png


circuit1.png
circuit2.png
circuit3.png
circuit4.png
circuit5.png
circuit6.png


Thanks for your help Svein, it is much apreciated!
 
  • #4
The reason you need a small resistance in series with the transistor base is because the (undamped) input has a small negative impedance which will tend to create a high frequency oscillation all by itself, ignoring L and C. Usually that does not create a problem in oscillators, but in amplifiers you need to watch out for those spurious oscillations.
 
  • #5
for your question! It seems like you have put a lot of effort into simulating the Colpitts oscillator and troubleshooting any issues that arise. I am not able to access the project file you provided, but based on the information you have provided, there are a few potential issues that could be causing your results to differ when changing the run time or max step size.

First, it is important to make sure that your BJT model is accurately representing the behavior of the actual transistor you are using. Double check the parameters and make sure they are correct for your specific transistor.

Additionally, make sure your circuit is properly grounded and that all connections are correct. Any small errors in the circuit can greatly affect the simulation results.

It is also possible that the simulation time or step size is not long enough to accurately capture the oscillation behavior. Try increasing the simulation time and/or decreasing the step size to see if your results become more consistent.

I hope this helps and good luck with your simulation!
 

FAQ: Why Are My Colpitts Oscillator PSPICE Simulations Inconsistent?

1. What is a Colpitts oscillator?

A Colpitts oscillator is a type of electronic oscillator circuit that is used to generate a continuous, stable oscillating signal at a specific frequency. It is composed of a combination of capacitance and inductance elements, and is commonly used in radio frequency (RF) applications.

2. How does a Colpitts oscillator work?

A Colpitts oscillator works by using an LC tank circuit, which is made up of a capacitor and an inductor, to produce a feedback loop. The capacitor and inductor are connected in parallel, and the feedback is achieved by tapping off a portion of the voltage from the capacitor and feeding it back into the input of the amplifier. This creates a positive feedback loop, which allows the circuit to sustain oscillations at the desired frequency.

3. What is the role of PSPICE in Colpitts oscillator design?

PSPICE is a type of circuit simulation software that allows engineers to design and analyze electronic circuits. In the case of Colpitts oscillators, PSPICE can be used to simulate the behavior of the circuit and optimize its performance. This can save time and resources compared to building and testing physical circuits.

4. What are the advantages of using a Colpitts oscillator?

There are several advantages of using a Colpitts oscillator. First, it is a simple and cost-effective circuit to build, making it a popular choice in RF applications. It also offers good frequency stability and low phase noise, making it suitable for use in communication systems. Additionally, it has a wide tuning range, allowing for flexibility in frequency selection.

5. What are the limitations of a Colpitts oscillator?

While the Colpitts oscillator has many advantages, it also has some limitations. One major limitation is that it can be sensitive to changes in its operating conditions, such as temperature and supply voltage. This can affect the stability and accuracy of the output frequency. Additionally, it may have a narrow bandwidth, making it less suitable for certain applications that require a wide frequency range.

Back
Top