Spice simulation

Hi All

I read here people do not trust simulation.

that,s right it is just simulation, but you can learn with it and the modern simulations like with multisim are a lot better then 40 years ago with that tiny ibm thing.

I always simulate, then build it, and yes you have to tune and change, but sometimes is is just close is my experience, you have to use good models that,s all, I have build now the hybride with simulation, and I have only have to change 2 resistor, the rest was quite accurate.

simulation of strange amps can be a problem though.

it is not like 40 years ago but I like it that people with experience did go from scratch, but will blow up a lot of sometimes expensive transistors special the endstage, with simulation you can prevent that.

even a fuse blows in simulation, haha

regards.
 
Hi, a little question.

How to add a transistor in PSpice?
i.e. BD139

I find this parameters, .lib file:
.MODEL Qbd139 npn
+IS=1e-09 BF=222.664 NF=0.85 VAF=36.4079
+IKF=0.166126 ISE=5.03418e-09 NE=1.45313 BR=1.35467
+NR=1.33751 VAR=142.931 IKR=1.66126 ISC=5.02557e-09
+NC=3.10227 RB=26.9143 IRB=0.1 RBM=0.1
+RE=0.000472454 RC=1.04109 XTB=0.727762 XTI=1.04311
+EG=1.05 CJE=1e-11 VJE=0.75 MJE=0.33
+TF=1e-09 XTF=1 VTF=10 ITF=0.01
+CJC=1e-11 VJC=0.75 MJC=0.33 XCJC=0.9
+FC=0.5 CJS=0 VJS=0.75 MJS=0.5
+TR=1e-07 PTF=0 KF=0 AF=1
* Model generated on Feb 14, 2004
* Model format: PSpice

I have PSpice version 9.1, is posible add in this version?
Greetings
 
IRFL014 and FQB11P06 seem excellent compliments in LTSpice.
But these are not the same thermally. As FQB is TO220 and
the IRFL a tiny surface mount component...

But I find IFRZ14 spec sheet to show identical electrical spec
in every way as IRFL014, but in the TO220 package. Can I then
assume IRFL014 LTSpice default library to be the valid model?
I find no other spice model for the Z14.

Are FQB11P06 and IRFZ14 good compliments in a real circuit?
 
Hi

I think that the thermal aspect is not so easy to simulate.

but the thermal issiue can be easy calculated by hand, and so if you keep the max dissipation and current, voltage in mind you have some space. compare to mosfets, bipolairs are more prone to destroying effect if it is not good calculated, keep the specs in mind with them, here is simulation of high power bipolairs more critical then mosfets who are easy like tubes.

And yes still bipolairs are more liniair, but mosfets get,s more close by day..

regards
 
kees52 said:
Hi


And yes still bipolairs are more liniair, but mosfets get,s more close by day..

regards


We have to be careful of broad statements like this. Doug Self also inappropriately described MOSFETs as less linear than BJTs. Both types of devices are nonlinear when looked at by themselves. The exponential of a BJT is arguably more nonlinear than the square law of a MOSFET. But that all misses the point.

Any device in which the transconductance is a function of current is nonlinear. This includes vacuum tubes.

What matters is how the device is applied. When we are talking about a class AB output stage with reasonable bias levels, it can be said that MOSFETs tend to make less linear output stages than BJTs. This is because of transconductance droop, a phenomena I pointed out in my MOSFET EC amplifier paper in 1982. This was the main reason I incorporated error correction into the amplifier.

MOSFETs have about ten times lower transconductance at the usual modest operating currents in the crossover region than do BJTs. This leads to reduced incremental gain in the crossover region and hence distortion. The distortion created does, however, tend to be softer than that created by BJTs because the transition region is wider.

It is also notable that vacuum tube amplifiers also suffer from transconductance droop in the crossover region.

The sum of the transconductances of the two output tubes at the quiescent bias current is usually less than the transconductance of one of the tubes at its high signal operating current.

Cheers,
Bob
 

GK

Disabled Account
Joined 2006
Bob Cordell said:



We have to be careful of broad statements like this. Doug Self also inappropriately described MOSFETs as less linear than BJTs. Both types of devices are nonlinear when looked at by themselves. The exponential of a BJT is arguably more nonlinear than the square law of a MOSFET. But that all misses the point.


To be fair, from chapter 11 (FET output stages)..........
 

Attachments

  • bjt.gif
    bjt.gif
    9.2 KB · Views: 733
By Bob cordell - MOSFETs have about ten times lower transconductance at the usual modest operating currents in the crossover region than do BJTs. This leads to reduced incremental gain in the crossover region and hence distortion. The distortion created does, however, tend to be softer than that created by BJTs because the transition region is wider.

Interesting statement, Bob. I have noticed slightly higher THD with a direct replacement of BJT's with mosfets in a given topology. You say a "softer" distortion occurs at the Xover region.. what does that mean ??? Different high order distortion products ??(less H5/7).

I do not entirely trust most fet models , but would this difference be a logical "tradeoff" (softer distortion vs. slightly higher THD). In simulation we are only talking about the difference between .003% (BJT) and .006% (IRF's). Also , would these transition differences also hold true with a quasi-comp class B stage??
OS
 
ostripper said:


Interesting statement, Bob. I have noticed slightly higher THD with a direct replacement of BJT's with mosfets in a given topology. You say a "softer" distortion occurs at the Xover region.. what does that mean ??? Different high order distortion products ??(less H5/7).

I do not entirely trust most fet models , but would this difference be a logical "tradeoff" (softer distortion vs. slightly higher THD). In simulation we are only talking about the difference between .003% (BJT) and .006% (IRF's). Also , would these transition differences also hold true with a quasi-comp class B stage??
OS


Hi Ostripper,

You raise several very good questions.

I'm frankly surprised that you did not see a bigger increase in THD with the MOSFETs (and also wonder exactly what you mean when you say "direct replacement"). Are these THD numbers at 20 kHz into an 8-ohm load? THD-1 is much less reliable for such comparisons becasue you may have a lot of NFB at 1 kHz.

In simulation, accurate device models for crossover distortion are extremely important. Even with BJTs this is important, such as in regard to proper modelling of RB, base spreading resistance changes with current, and beta droop.

Models are even more of a problem with vertical MOSFETs, as the ordinary ones do not properly model weak inversion, and that is where you are at in the crossover region with the typical quiescent bias currents for a class AB MOSFET output stage (per device pair, 100-200 mA). The EKV model is more accurate here, but these models are not widely available for the vertical power MOSFETs we like to use. Andy_c and Edmond have put some up here.

The somewhat over-simplified MOSFET transfer characteristic behavior is described as exponential at very weak inversion (like the Ic-Vbe characteristic of a BJT) transitioning to square law at full inversion, and then transitioning to a somewhat different law at very high currents where the Rds begins to come into play. At typical quiescent class AB bias current of 150 mA, many MOSFETs are right in the middle of the transition region from exponential to square law.

The turn-on/turn-off of BJTs tends to be more abrupt than for MOSFETs, so the transition tends to be a little softer. The higher bias current typically associated with MOSFETs also broadens the crossover region. Indeed, there is no danger of ever having gm doubling effects with MOSFETs, so you can bias them as hot as you want within the thermal limitations of the design. Over-biasing BJTs gets you into gm doubling, which Self claims is just as bad as under-biasing (although I'd always rather err on the high side with BJTs).

The abrupt-ness of turn-on/turn-off for some CFP output stages is even steeper, and that I why I don't like them.

Average THD-20 readings are less than optimum for evaluating how bad crossover distortion is, since the garbage is averaged across the full cycle. Look at the peak-to-peak amplitude of the distortion residual on a scope in real time. That will give you a better idea. Of course, looking at the spectrum of the residual is even better.

Here's a thought on an approach I have not tried. Look at the ratio of class AB quiesecent bias current to peak signal current for a good vacuum tube amplifier. Use the same ratio when biasing your class AB MOSFET output stage. I suspect that this will result in a higher quiescent bias current number than we often use with MOSFETs. Maybe the sound will be better this way. Ratio of peak signal current to quiescent bias current may be an interesting metric (both for a crossover distortion view and for a thermal view).

Amplifiers that I have built with vertical MOSFETs that do not have error correction tend to have THD-20 in the range of 0.03% when driving an 8-ohm load when biased at about 150 mA. These amplifiers typically have gain crossover frequencies in the range of 500 kHz to 1 MHz, meaning they have on the order of 30 dB of NFB at 20 kHz. These distortion numbers will be higher with a 4-ohm load.

Cheers,
Bob
 
Bob Cordell said:


Models are even more of a problem with vertical MOSFETs, as the ordinary ones do not properly model weak inversion, and that is where you are at in the crossover region with the typical quiescent bias currents for a class AB MOSFET output stage (per device pair, 100-200 mA).

The somewhat over-simplified MOSFET transfer characteristic behavior is described as exponential at very weak inversion (like the Ic-Vbe characteristic of a BJT) transitioning to square law at full inversion, and then transitioning to a somewhat different law at very high currents where the Rds begins to come into play. At typical quiescent class AB bias current of 150 mA, many MOSFETs are right in the middle of the transition region from exponential to square law.

Hi Bob,

You statements above are not enirely correct. It would be way off topic for this forum to get into the details, however:

- It is true that ordinary Spice MOSFET models do not model the subthreshold behaviour. The subthreshold characteristic is certainly important in the total distortions budget, however I would not overestimate it. The subthreshold conduction is really important for low threshold (pinch) voltage (Vt) devices like the 2SK1530/2SJ201. For high threshold devices like the IRF's, subthreshold conduction has a very limited impact, 150mA through an IRF is already far enough in the strong inversion area. However, the IRF pairs are not matched for transconductance, and here's a significant source or distortion, together with the nonlinear Cgs and Cds. The ideal MOSFET device would have low Vt, very high transconductance (this also helps in avoiding the evil subthreshold conduction area) and have a matching (for transconductance) pair. Such MOSFETs are not available today; the Toshiba pair has relatively low transconductance, while the IRF parts (or Fairchild, etc...) do not have matching pairs and are relatively high Vt devices.

- Speaking about Ciss, there's a significant difference between bipolars and MOSFETs. While the input impedance in an emitter follower can be modelled with good accuracy by a single pole (with a time constant of rb'e*Cb'e) for MOSFETs the absence of rb'e leads to a pretty messy situation; the impedance has to be modelled as a pole-zero pair, and Rs (the source resistor) plays a significant role in determining both the real part and the imaginary part of the input impedance. This, combined with the limited transconductance of MOSFETs, makes them more difficult to be (AC) controlled by the driver stage. While for bipolars the finite output impedance of the driver has only a shifting effect on the input impedance pole, for MOSFETs it's more complicated, both the pole and the zero are moving around. As a result, for the same level of degeneration in the source/emitter, and at the same gm, the MOSFET input impedance can be more nonlinear than the bipolar input impedance. "Can be" because the nature of the MOSFET Cgs is different (and can be smaller) to the bipolar diffusion capacitance that dominates Cb'e. Also, the variation of the Cds with the voltage is usually less nonlinear than the bipolar Cb'c

One to another, I'm afraid we don't have enough general criteria to compare (in terms of performance) MOSFETs and bipolars as output power devices. Due to the significant number of variables, it's very hard to compare even MOSFET pairs! However, by looking at the today's market, with Toshiba the single source of a pair of power MOSFETs intended for linear applications, I would say that the future (in audio) belongs to the power bipolars.

A final comment: at high currents, the transconductance drop in MOSFETs is not due to some parasitic Rds. The problem is in the MOSFET physics foundation. At high current densities in the channel, the carriers (say, electrons) start interacting with each others and as a result their mobility decreases/saturates. The MOSFET transconductance is proportional with the mobility, therefore kinda "Rds" impact at high currents. This effect can be accurately modelled as a nonlinear Rds (depending on Id) but usually a "lambda" parameter is used in the Id-Vgs equation. The nonlinear Rds model illustrates why mobility saturation has an impact on the distortion performance of MOSFETs. BTW, bipolars don't have such an issue, and again comparing the beta drop with a nonlinear Rds is, having completely different physics origins, very difficult.
 
Thermal simulation

I think that the thermal aspect is not so easy to simulate.

Has anyone else played with

.step temp list t1 t2 t3 ...

which runs the sim at the different tempretures?

I realize it runs the whole cct. at the given temp which is unrealistic, but it must give some idea of bias current, CCS variations. (If the models are good, I ran a few transistors thru a Beta test cct. and the odd one dosnt vary the beta very much from 0 to 100 degrees). Any comments would be appreciated.
 
syn08 said:


Hi Bob,

You statements above are not enirely correct. It would be way off topic for this forum to get into the details, however:

- It is true that ordinary Spice MOSFET models do not model the subthreshold behaviour. The subthreshold characteristic is certainly important in the total distortions budget, however I would not overestimate it. The subthreshold conduction is really important for low threshold (pinch) voltage (Vt) devices like the 2SK1530/2SJ201. For high threshold devices like the IRF's, subthreshold conduction has a very limited impact, 150mA through an IRF is already far enough in the strong inversion area. However, the IRF pairs are not matched for transconductance, and here's a significant source or distortion, together with the nonlinear Cgs and Cds. The ideal MOSFET device would have low Vt, very high transconductance (this also helps in avoiding the evil subthreshold conduction area) and have a matching (for transconductance) pair. Such MOSFETs are not available today; the Toshiba pair has relatively low transconductance, while the IRF parts (or Fairchild, etc...) do not have matching pairs and are relatively high Vt devices.

- Speaking about Ciss, there's a significant difference between bipolars and MOSFETs. While the input impedance in an emitter follower can be modelled with good accuracy by a single pole (with a time constant of rb'e*Cb'e) for MOSFETs the absence of rb'e leads to a pretty messy situation; the impedance has to be modelled as a pole-zero pair, and Rs (the source resistor) plays a significant role in determining both the real part and the imaginary part of the input impedance. This, combined with the limited transconductance of MOSFETs, makes them more difficult to be (AC) controlled by the driver stage. While for bipolars the finite output impedance of the driver has only a shifting effect on the input impedance pole, for MOSFETs it's more complicated, both the pole and the zero are moving around. As a result, for the same level of degeneration in the source/emitter, and at the same gm, the MOSFET input impedance can be more nonlinear than the bipolar input impedance. "Can be" because the nature of the MOSFET Cgs is different (and can be smaller) to the bipolar diffusion capacitance that dominates Cb'e. Also, the variation of the Cds with the voltage is usually less nonlinear than the bipolar Cb'c

One to another, I'm afraid we don't have enough general criteria to compare (in terms of performance) MOSFETs and bipolars as output power devices. Due to the significant number of variables, it's very hard to compare even MOSFET pairs! However, by looking at the today's market, with Toshiba the single source of a pair of power MOSFETs intended for linear applications, I would say that the future (in audio) belongs to the power bipolars.

A final comment: at high currents, the transconductance drop in MOSFETs is not due to some parasitic Rds. The problem is in the MOSFET physics foundation. At high current densities in the channel, the carriers (say, electrons) start interacting with each others and as a result their mobility decreases/saturates. The MOSFET transconductance is proportional with the mobility, therefore kinda "Rds" impact at high currents. This effect can be accurately modelled as a nonlinear Rds (depending on Id) but usually a "lambda" parameter is used in the Id-Vgs equation. The nonlinear Rds model illustrates why mobility saturation has an impact on the distortion performance of MOSFETs. BTW, bipolars don't have such an issue, and again comparing the beta drop with a nonlinear Rds is, having completely different physics origins, very difficult.


Hi Syn08,

I know you really know your stuff when it comes to semiconductor physics, but I don't think my statements you quoted are far off. First, my main point was that models are a serious problem for MOSFETs and I don't think you will disagree with that.

I have measured detailed Ids vs Vgs on many MOSFETs and I can tell you for sure that the error in the range of 150 mA for devices like the IRFs is real, as a result of the poor modeling of the weak inversion region and the transition to square law.

I have also simulated MOSFET output stages using EKV and conventional models and there are substantial differences is XO behavior. I think you are really underestimating this effect and the importance of it.

As I said in my post, the explanation I put forth for the MOSFET transfer characteristics was over-simplified, but it is usefully accurate for conveying essentially what is going on. BTW, I did not mean to imply that the Rds I mentioned was some kind of lumped parasitic resistance.

I did not touch on the issue of capacitances, but that is certainly a whole 'nother area of interest and concern. It is one that depends very much on the details of the driver, however. People regularly underestimate the deleterious effects of the large and highly nonlinear capacitance of the BJT BE junction. MOSFETs may not be the piece of cake that some people think they are to drive, but they are generally easier to drive than BJTs.

A key to driving the MOSFETs is to avoid tendencies to parastic oscillations. With equivalent ft's of over 100 MHz that increase with current, they are more prone to oscillate than BJTs without extra care in the drive circuit design.

It is true that there is not nearly as much availability of well-matched P and N MOSFET pairs, and that does put them at a disadvantage. At the same time, BJTs are here to stay and continue to improve. The ThermalTrak BJTs are really great.

Cheers,
Bob
 
Bob Cordell said:
I have measured detailed Ids vs Vgs on many MOSFETs and I can tell you for sure that the error in the range of 150 mA for devices like the IRFs is real, as a result of the poor modeling of the weak inversion region and the transition to square law.

I have also simulated MOSFET output stages using EKV and conventional models and there are substantial differences is XO behavior. I think you are really underestimating this effect and the importance of it.

Hi Bob,

I can't really claim I measured lots of MOSFETs, but I did make lots of measurements (including some statistics) on the Fairchild FQA19N20 (similar to IRFP240). The subthreshold region always ends at about 75mA. Over 50-75mA, the devices are fully into the square law region, up to about 1.5A where the mobility degradation becomes significant.

I can confirm that the Toshiba 2SK1530/2SJ201 pair, having low threshold voltage and limited transconductance, is much more affected by the subthreshold conduction than the Fairchild of IRF pairs. For these devices, 150mA for the square law region is a safe bet and an EKV model is really required to get accurate (as much as possible) simulation results. Andy did a very good job on these devices.

I have never seen good/consistent EKV models for IRFP and FQA devices, but I doubt they would bring much to the table in terms of accuracy. If you are aware of any, I would appreciate a link.
 
Hi John,

I believe I could implement Bob's "PIM" measurement in LtSpice

2 tone testing may not be complete but it does seem sufficient to demonstrate the existence of PIM effects

Is there anything wrong with using Bob's method with 2 tone test signals to get a "PIM" number that can be used in sim to evaluate the OL gain effects on phase modulation distortion?

Can you propose any other PIM metric amenable to easily automated measurement?

If you would actively engage in discussion of the sims with constructive criticisms and propose alternative tests perhaps we could illustrate some of the principles in a form that is accessible to most of us here

In the past I’ve tried to present sims that I hoped showed high low frequency gain appears to be preferable even when PIM is considered – its been pointed out that Prof Leach explored low TIM designs and came to change his mind about the claim that flat OL gain was a necessary condition

The frequency normalization appears to have confused some about the point I think this sim illustrates

http://www.diyaudio.com/forums/showthread.php?postid=489927#post489927


Here I used a behavioral source to make an adjustable tanh input without any nonlinear C that could confuse the soure of PIM in the sim

http://www.diyaudio.com/forums/showthread.php?postid=1434254#post1434254


what would improve these sim’s explanatory power? – how would you interpret the results differently?

Would a PIM number like Bob’s help?
 
Models of newer opamps do this. OPA211 for example. But there are easy ways to reflect the output current (plus as quiescent current) to the rails with the "perfect" single pole opamp model. I did such with LT-spice, will post it here after lunch.

- Klaus