- Let us assume that we have a npn BJT with parameters similar to 2N2222 in LTSPICE at T=27 C
- The thermal voltage at T=27C is VT=25.865 mV
- Let us assume that VCE=0 and VBE=0.85 V
- From 2N2222 in LTSPICE we have: IS=10^-14 A, VA=100 V, BETA=200, BR=3
- From Ebers-Moll equation we get: IC=IS[EXP(VBE/VT)-EXP(VBC/VT)](1-VBC/VA)-IS BR^-1* (EXP(VBC/VT)-1)
- Since VCE=0, VBE=VBC, then Ebers-Moll will be simplified as: IC=-IS *BR^-1 *(EXP(VBE/VT)-1)=-10^-14 *3^-1 *[EXP(850/25.865)-1]=-0.6 A
- If you use LTSPICE as below you get IC=-0.008 A which is a huge error compared to Ebers-Moll (-0.6 A), Do you know what causes this huge error?

- 181
- 10
-
But in your circuit, the BJT's behave more like two diodes B-E diode and B-C diode. So this looks more like a saturation. – G36 Nov 07 '21 at 18:09
-
LTspice isn't showing you an error in the way you think. This is called "user error." Besides, LTspice uses a model that is a little more sophisticated than what you write, besides. Finally, you've forced the collector to be grounded. It's in saturation and not even the usual kind of deep saturation. – jonk Nov 07 '21 at 18:09
-
What's wrong then? The Ebers-Moll should also be valid in Saturation. – Aria Nov 07 '21 at 18:10
-
@Aria The [full Ebers Moll Level I model](https://electronics.stackexchange.com/a/252199/38098) is a lot more than you are thinking. Most people don't apply the full model. But instead a highly simplified version of it. Read that page and tell me if you are using ***all*** of that? – jonk Nov 07 '21 at 18:12
-
jonk do you know that little bit more sophisticated model of LTSPICE? – Aria Nov 07 '21 at 18:12
-
Before I declared one or another of those in error, I'd grab a 2N2222 and a protoboard, and take some measurements. The upshot will probably be that you'll be asking why simulation doesn't match reality when you're trying to simulate a condition that'll never happen in the real world (0.85 on a transistor base? Really?). – TimWescott Nov 07 '21 at 18:12
-
1@Aria The LTspice documentation is where to go for that. The most sophisticated models are based on some version of MEXTRAM. But after EM I, EM II, and EM III, there was Gummel-Poon, then various modified versions of Gummel-Poon, and so on. The physics and construction techniques have yielded continuing developments of the models. – jonk Nov 07 '21 at 18:15
-
@TimWescott this question is regarding a numerical modeling of BJT and we use 2N2222 only to use its parameters for numerical analysis . please do not think about it as a lab measuring of 2N2222 – Aria Nov 07 '21 at 18:15
-
@Aria It would be worth some time studying a book on *microelectronics* to gain some of the physics principles (still, relatively high-level, lumped, and not very deep) about semiconductors such as BJTs. Much will be covered there. But here's a question: What do you imagine happens to the space-charge layer thickness between the thin base itself and the collector when you ground the collector? – jonk Nov 07 '21 at 18:22
-
Realize that if you apply 0.85 V from a DC voltage source directly to the BE and BC junctions of a 2N2222, you are very likely destroying that poor NPN. – Bimpelrekkie Nov 07 '21 at 18:23
-
@Bimpelrekkie Please consider the question as a numerical analysis question not a lab measurement. We use 2N2222 parameters for this numerical analysis. – Aria Nov 07 '21 at 18:25
-
@jonk the equation I wrote is the same as the link you showed for Level I model even I considered the Early voltage – Aria Nov 07 '21 at 18:27
-
1@Aria And you are aware that LTspice doesn't even use the Level I model? It includes bulk resistances added in Level II and basewidth modulation in Level III, the Late Effect found in Gummel-Poon, etc.? By the way, just using the EM I non-linear hybrid-\$\pi\$, without bulk resistances, I compute an emitter current of about 9 mA, discounting the collector, base, and emitter resistances. The resistances will have a significant impact -- look at the values. Finally, you need to apply the full model that they do. Not a simplified version. – jonk Nov 07 '21 at 18:39
-
@Aria For completion, there is also the VBIC model that came between Gummel-Poon and MEXTRAM. Just FYI. – jonk Nov 07 '21 at 18:45
-
@jonk I try to see how I can compute the 9 mA you did. That is good enough for me. Would you please share how you did 9 mA? – Aria Nov 07 '21 at 18:49
-
1@Aria Just read the page I linked, go to the hybrid-\$\pi\$ model, and follow the steps using the LTspice model parameters you can find. Walk through it step by step. However, bear in mind that you will be excluding these parameters: RB=10 RC=.3 RE=.2. Also, you will NOT be following the steps that LTspice does, which uses not just IS but also ISE and other parameters (default values listed there, too) you can find on the help page in LTspice for the BJT. These help compute non-idealities, base charge factors, etc. Closed solutions involve the product-log function, too, if you are mathy. – jonk Nov 07 '21 at 18:53
-
1@Aria Perhaps the best book I can suggest that directly deals with these issues, one at a time, is Ian Getreu's *"Modeling the Bipolar Transistor."* I believe it may still be available [here](https://www.lulu.com/en/us/shop/ian-getreu/modeling-the-bipolar-transistor/paperback/product-195g6k2j.html?page=1&pageSize=4). – jonk Nov 07 '21 at 19:02
-
@Aria If you insert a 1 kOhm resistance in series with the collector, but keep it all grounded, would you still get those 0.6 A? Because if you do it will mean that the voltage on the collector will be 600 V. I think that would make for a very cheap and overly efficient generator. Otherwise it will just mean that Ic=Ib+Ie, which is too mainstream. – a concerned citizen Nov 07 '21 at 19:13
-
@jonk: I am not sure how you could get 9 mA with hybrid pi model. I still get Ic=-0.6 A. Here is why: since VCE=0, then vbe=vbc. Therefore ICC=IEC. Therefore Ic=-IEC/BR=-IS*BR^-1*[EXP(VBC/VT)-1]=-10^-14 *3^-1 *[EXP(850/25.865)-1]=-0.6 A – Aria Nov 07 '21 at 20:41
-
1@Aria See answer I give below. Or did you miss it? – jonk Nov 07 '21 at 20:42
-
1@Aria The bottom line is this. You can simplify something up to a point and still find that it gets you "close." Within a first order of understanding, ignoring 2nd and Nth order effects (formation of emitter-base surface channels, recombination of surface carriers, recombination of carriers in the emitter-base space-charge layer, current crowding, etc.) But if you simplify ***past*** that point, it becomes a cartoon caricature and is no longer a useful view - in some circumstances, anyway. Suffice it that physicists aren't idiots and Spice authors also aren't idiots. Look to improve yourself. – jonk Nov 07 '21 at 20:57
1 Answers
The following model doesn't show many of the physical details, but it at least shows you where the simplified Ebers Moll Level I model applies and where the Level II bulk impedances go:
simulate this circuit – Schematic created using CircuitLab
LTspice cannot show you the internal values within the BJT that are shown primed in the above diagram. All it can do is show you the external voltages that you've applied and what it works out as the currents through the voltage sources I've added to the diagram.
A BJT is asymmetrical. The collector is only lightly doped and by comparison the emitter is more heavily doped. The internal collector voltage, \$V_{_\text{C}}^{'}\$, despite externally grounded in your diagram, must always (because of the relative doping) find a voltage in between that of \$V_{_\text{E}}^{'}\$ and \$V_{_\text{B}}^{'}\$. It cannot be below \$V_{_\text{E}}^{'}\$.
Because of the relatively small value for \$R_{_\text{C}}^{'}\$, even a very small \$V_{_\text{CE}}^{'}=V_{_\text{C}}^{'}-V_{_\text{E}}^{'}\$ will mean a much larger (out-flowing in this case) collector current than an (out-flowing) emitter current (The base supplying both, obviously.)
The model used by LTspice for the 2N2222 is: IS=1E-14, VAF=100, BF=200, IKF=0.3, XTB=1.5, BR=3, CJC=8E-12, CJE=25E-12, TR=100E-9, TF=400E-12, ITF=1, VTF=2, and XTF=3. Unspecified explicitly, but defaulted are: NF=1, NE=1.5, NC=2, MJE=.33, MJC=.33, VJC=.75, VJS=.75, XTI=3, VG=1.206, VO=10, etc. In short, there are quite a few parameters (many that you've not taken into consideration) that relate to Spice's initial DC operating point computations.
But let's keep it simple and just use the Ebers Moll Level I model, and the above slightly modified (not quite Level II) version of events. And let's accept the assumption I earlier mentioned, that LTspice is getting things right enough that we can estimate a few details in the above model (as shown with labels there.)
Keep in mind that I'm only grossly estimating and rounding the values. So we have the following as starting points:
\$V_{_\text{B}}^{'}\approx 750\:\text{mV}\$
(\$850\:\text{mV}-10\:\Omega\cdot 10.394\:\text{mA}\approx 746\:\text{mV}\$, then rounded)
\$V_{_\text{E}}^{'}\approx 500\:\mu\text{V}\$
(\$200\:\text{m}\Omega\cdot 2.33343\:\text{mA}\approx 467\:\mu\text{V}\$, then rounded)
\$V_{_\text{C}}^{'}\approx 2.5\:\text{mV}\$
(\$300\:\text{m}\Omega\cdot 8.05797\:\text{mA}\approx 2.42\:\text{mV}\$, then rounded)
\$V_T=25.865\:\text{mV}\$ (your calculation)
And here are the equations from the non-linear hybrid-\$\pi\$ model that I show here:
- \$\frac{I_{_\text{CC}}}{\beta_{_\text{F}}} = \frac{I_{_\text{S}}}{\beta_{_\text{F}}} \cdot \left[ e^{\frac{q\cdot V_{_\text{BE}}}{k\cdot T}} - 1 \right] \$
- \$\frac{I_{_\text{EC}}}{\beta_{_\text{R}}} = \frac{I_{_\text{S}}}{\beta_{_\text{R}}} \cdot \left[ e^{\frac{q\cdot V_{_\text{BC}}}{k\cdot T}} - 1 \right] \$
- \$I_{_\text{CT}} = I_{_\text{CC}} - I_{_\text{EC}}, \rm{(generator \,\, current)}\$
- \$ I_{_\text{C}} = \left( I_{_\text{CC}} - I_{_\text{EC}} \right) - \frac{I_{_\text{EC}}}{\beta_{_\text{R}}} \$
- \$ I_{_\text{B}} = \frac{I_{_\text{CC}}}{\beta_{_\text{F}}} + \frac{I_{_\text{EC}}}{\beta_{_\text{R}}} \$
- \$ I_{_\text{E}} = -\frac{I_{_\text{CC}}}{\beta_{_\text{F}}} - \left( I_{_\text{CC}} - I_{_\text{EC}} \right) \$
Let's just compute those in order:
\$\frac{I_{_\text{CC}}}{\beta_{_\text{F}}} = \frac{10\:\text{fA}}{200} \cdot \left[ e^{\frac{750\:\text{mV}-500\:\mu\text{mV}}{25.865\:\text{mV}}} - 1 \right]= 192.17078\:\mu\text{A}\therefore I_{_\text{CC}}=38.4341559\:\text{mA}\$
\$\frac{I_{_\text{EC}}}{\beta_{_\text{R}}} = \frac{10\:\text{fA}}{3} \cdot \left[ e^{\frac{750\:\text{mV}-2.5\:\text{mV}}{25.865\:\text{mV}}} - 1 \right]= 11.8580823\:\text{mA}\therefore I_{_\text{EC}}=35.5742468\:\text{mA} \$
\$I_{_\text{CT}} = 38.4341559\:\text{mA} - 35.5742468\:\text{mA} = 2.8599091\:\text{mA}\$
\$ I_{_\text{C}} = 2.8599091\:\text{mA} - 11.8580823\:\text{mA} = -8.9981732\:\text{mA}\$
(LTspice says: \$ -8.05797\:\text{mA}\$)
\$ I_{_\text{B}} = 192.17078\:\mu\text{A} + 11.8580823\:\text{mA} = 12.050253\:\text{mA}\$
(LTspice says: \$10.3914\:\text{mA}\$)
\$ I_{_\text{E}} = -192.17078\:\mu\text{A} - 2.8599091\:\text{mA} = -3.05207988\:\text{mA}\$
(LTspice says: \$-2.33343\:\text{mA}\$)
Even the meager Ebers-Moll Level I model (with internal bulk resistances added, aka Level II) gets kind of close, using values I rounded. (I'll demonstrate in a minute what it means if I used values closer to what LTspice had to work with.)
It doesn't take into account the fuller, adapted Gummel-Poon model that LTspice uses, by default. You should most definitely also read carefully through the LTspice documentation on the Q-card. Much is discussed there. On the web, there are pages which can walk you through myriad details and nuances that are used in modeling.
But I think you can see that even a rather simplified model gets you close enough.
Bear in mind that LTspice goes through a numerical iteration process to reach its values. We could (if you wanted to do it) use my initial calculations and use them to re-adjust the primed \$^{'}\$ values and then re-compute and do that a number of times. (Though convergence would suggest a reverse proccess I'll not belabor just now.) It might be worth your effort to try that. But I'm not going to engage it here, though. (Mostly, because I happen to know that LTspice uses still more model parameter values and inserting all that here would drag this out into an entire chapter -- which I'm not going to do for you.)
So, last note. I mentioned above that I would use LTspice's computed values more closely, instead of rounded values above which I used merely to demonstrate how the model can be applied. Then we'd find the following:
\$\frac{I_{_\text{CC}}}{\beta_{_\text{F}}} = \frac{10\:\text{fA}}{200} \cdot \left[ e^{\frac{746.06\:\text{mV}-466.7\:\mu\text{mV}}{25.865\:\text{mV}}} - 1 \right]= 165.230671\:\mu\text{A}\therefore I_{_\text{CC}}=33.0461342\:\text{mA}\$
\$\frac{I_{_\text{EC}}}{\beta_{_\text{R}}} = \frac{10\:\text{fA}}{3} \cdot \left[ e^{\frac{746.06\:\text{mV}-2.4174\:\text{mV}}{25.865\:\text{mV}}} - 1 \right]= 10.2151691\:\text{mA}\therefore I_{_\text{EC}}=30.6455074\:\text{mA} \$
\$I_{_\text{CT}} = 33.0461342\:\text{mA} - 30.6455074\:\text{mA} = 2.4006268\:\text{mA}\$
\$ I_{_\text{C}} = 2.4006268\:\text{mA} - 10.2151691\:\text{mA} = -7.8145423\:\text{mA}\$
(LTspice says: \$ -8.05797\:\text{mA}\$)
\$ I_{_\text{B}} = 165.230671\:\mu\text{A} + 10.2151691\:\text{mA} = 10.3803998\:\text{mA}\$
(LTspice says: \$10.3914\:\text{mA}\$)
\$ I_{_\text{E}} = -165.230671\:\mu\text{A} - 2.8599091\:\text{mA} = -2.56585747\:\text{mA}\$
(LTspice says: \$-2.33343\:\text{mA}\$)
As you can see, LTspice's results are consistent with the Ebers Moll Level II model. They will be better still because LTspice takes into account variations in \$\beta\$ values and a host of other factors. But you can see that the stripped down model isn't too bad.
The Ebers-Moll model isn't rocket science.
This isn't to say that LTspice (and other Spice programs) don't have their faults. For example, the MOSFET models use capacitance instead of charge storage and its necessary conservation rules. Spice uses the Meyer capacitance model and that model cannot ever be made to comport with the actual MOSFET behavior as it will always result in creating and destroying charge (which doesn't really happen.) This has never been fixed in Spice. Probably never will be, as there is no possible charge function possible that can be differentiated to generate the Meyer capacitance model. Can't be done. And Spice depends upon differentiation to get from A to B.
So, some things will just be wrong -- especially with MOSFETs. Though you can get closer with small time steps.
And for BJTs, Spice doesn't deal with reverse voltage avalanche behaviors (there's more than one), too.
Models are good for some things. But not for everything.

- 77,059
- 6
- 73
- 185
-
-
@Aria You should be able to figure that out from RB, RC, and RE and LTspice's figures. See if you can! – jonk Nov 07 '21 at 21:27
-
1@Aria Note that about 2.4 mA times 200 mOhm is about 500 uV. Note that about 8.1 mA times 300 mOhm is about 2.5 mV? It's a pretty easy starting point, given Spice's numerical results. I'm surprised you didn't immediately see that detail. Keep working on yourself. I also recommend that you start by reading the papers by Dr. Shockley and Dr. Early, to start. Also look up W.J. McCalla, W.M. Webster, J.L. Moll, M.J. Callahan, H.C. Poon, H.K.Gummel, B.R. Chawla, P.E. Gray, J.R. Hauser, J.J Ebers, and L.W. Nagel to name just a few. – jonk Nov 07 '21 at 23:03
-
-
1@Aria Yes. I'm showing you that if you assume Spice is correct, then the Ebers-Moll model confirms Spice's result. There is *nothing* at all wrong with that. If you think there is, then feel free to prove why that's a problem. (It's not, but I'd enjoy seeing the attempt.) Spice uses differentiation and an iterative series of matrix linear solutions in order to develop the initial DC operating point before performing a run (other than the .OP run, where that's all it does.) There are some good sources for the equations to apply (I've mentioned some.) If you want to iterate, feel free. – jonk Nov 08 '21 at 02:44
-
1@Aria If you are interested in developing closed equation solutions, it may be possible. [I show how to achieve this with a single resistor and Shockley diode model here.](https://electronics.stackexchange.com/a/592785/38098). I believe that idea can be expanded upon, though I also believe it would be 'difficult' for this case. Not impossible, though. (And you'd need to include the temperature-dependent saturation current model, too, which involves other parameter values not shown in the Ebers-Moll model, directly, but included by reference.) – jonk Nov 08 '21 at 02:47
-
1@Aria There are four books I'd also directly recommend. Laurence W. Nagel's "Spice2: A computer Program to Simulate Semiconductor Circuits," 1975. Available for free from Berkeley U in California. Reference Memorandum No. UCB/ERL M520 when writing them. Also, "The SPICE BOOK," by Andrei Vladimirescu. Also, "The Designer's Guide to SPICE & SPECTRE" by Kenneth S Kundert. And finally, Ian Getreu's "Modeling the Bipolar Transistor," already mentioned earlier. These are the better to be had on Ebers Moll today. – jonk Nov 08 '21 at 02:55
-
1@Aria Also, there are many other interesting details. For example, there are at least three regions of collector current operation. You can read about some (not all, by any stretch) of the effects uncovered earlier about BJTs [here](https://electronics.stackexchange.com/a/357987/38098). These are 1960's and early 1970's info, though. More is to be had with VBIC and MEXTRAM modeling. Seriously, take a look at the MEXTRAM model. Google it up and find a recent edition. The PDFs are free, well-documented, and cover a host of details about the BJT. You'd learn a great deal from that document alone. – jonk Nov 08 '21 at 03:00