I've got my own issue with bipolar junction transistor models. What get pub lished are Gummel-Poon models, which don't model inverted transistors all t hat accurately, and - in particular - can't model the "squegging" mode in b ipolar Baxandall class-D oscillators with big feed inductors.
The VBIC model ought to be able to manage this, but it's parameters are tre ated as "commercial in confidence" by transistor manufacturers, so I've nev er been able to get my hands on one.
formatting link
The paper only mentions "squegging" in a footnote at the bottom of page 752 , but the behaviour blocks the obvious route to minimising the harmonic con tent of the output waveform. MOS-FET-switched versions of the circuit don't squeg, but mostly end up being a bit more complicated.
formatting link
is a actually an LTSpice .asc file, which will work fine after you have cha nge the extension from .htm to .asc.
Bill Sloman, Sydney
Didn't find your answer? Ask the community — no account required.
Concatenate .CIR and .NET above, and you can run this on LTspice, just do file, open, choose the .CIR file, then RUN.
[snip]
Wowee! That does not prove that the simulator you use has no flaws.
I designed $ millions of chips BC (before CAD), some as long ago as 56 years ago are still selling.
Check out the LTspice List. I suggest that all of you who use LTspice subscribe, so that you're aware of its pitfalls.
e.g. It almost categorically can't run Microchip models. PSpice can. ...Jim Thompson
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| STV, Queen Creek, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
It's what you learn, after you know it all, that counts.
J
Jim Thompson
[snip]
That's because you're not recognized as a professional in the industry
[snip]
...Jim Thompson
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| STV, Queen Creek, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
It's what you learn, after you know it all, that counts.
B
bill.sloman
published are Gummel-Poon models, which don't model inverted transistors al l that accurately, and - in particular - can't model the "squegging" mode i n bipolar Baxandall class-D oscillators with big feed inductors.
treated as "commercial in confidence" by transistor manufacturers, so I've never been able to get my hands on one.
Why would I be? I've worked on the electron-beam microfabricators that wrot e the masks for the assorted layers in the process of creating integrated c ircuits, and on electron-beam testers that looked at a single transistors o n those integrated circuits when they had been built and were working, but that was just electronic engineering.
There'd have needed to be a need to know on my part to facilitate something that they wanted done before I'd a "commercial in confidence" disclosure.
Bill Sloman, Sydney
P
Phil Hobbs
Well, U1 sure looks like a S-K lowpass to me, and at 33k*1uF is a bit slow for audio--the corner frequency is 3 Hz. Also it apparently has no output, and two of the resistors on each base don't look to be doing much.
Apart from that, it's entirely sane and rational. ;)
Cheers
Phil Hobbs
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510
http://electrooptical.net
https://hobbs-eo.com
J
Jim Thompson
Duh! You and Larkin like to play team-tag-assholes against me... but you blew it, AGAIN... you looked inside the BEHAVIORAL MODEL for U1 (BU7262, OP-AMP-CONFIG, from the Device Models & Subcircuits Page of my website), an OP-AMP... the 3Hz is the open-loop corner of the Op-Amp.
There's no S-K Filter ANYWHERRE in that circuit.
The circuit was just posted to show PROPER computation of power dissipation. ASC file coming... I will look forward to your "expert" analysis >:-}
Apart from that, you're a perfectly sane and rational AMATEUR... who couldn't even properly analyze how the model works >:-}
...Jim Thompson
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| STV, Queen Creek, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
It's what you learn, after you know it all, that counts.
P
Phil Hobbs
You posted the picture I'm talking about--look at it yourself. I sure didn't go spelunking round your website. In the picture you posted, U1 is clearly a 3-Hz Sallen-Key. That photo ain't no audio amp. I saved a copy of it in the Wayback Machine for future reference:
or .
If that isn't what you thought you posted, that would partly explain your confusion.
And regarding the above bluster and mud slinging: Where I come from, we know a trick worth two of that one.
Cheers
Phil Hobbs
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510
http://electrooptical.net
https://hobbs-eo.com
J
Jim Thompson
The reference file showing PSpice power computation was...
as is the .CIR and .NET above; how it got snipped into referring to the LTspice ASC file I don't know, but the LTspice ASC file _does_ show negative power... apparently because LTspice keep the +/- terminals the same for voltage direction, even if the resister is flipped.
So, irrespective of S-K or audio, LTspice _can_ report incorrect power. ...Jim Thompson
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| STV, Queen Creek, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
It's what you learn, after you know it all, that counts.
J
John Larkin
Really, Jim, you're snarling in all directions and not making sense any more. That's sad.
Maybe R6 is installed "backwards", with the current direction wrong relative to the voltage nodes. Resistors do have a current direction in LT Spice, and I sometimes flip them over to see the current the way I want. We know that resistors don't generate power, so it's easy to fix.
John Larkin Highland Technology, Inc
picosecond timing precision measurement
jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com
J
Jim Thompson
[snip]
Confusions abound:
(1) It wasn't my "bizarre circuit". Someone here posted it as a question back early in the year. I downloaded the file, but was too ill at the time (Septic Shock) to analyze it (and have since forgotten what the original question was ;-) I picked it as an example arbitrarily because it came up first in a search for *.asc
(2) Suspecting, from the equation that appears when you apply the ALT key over a component, I found that the flaw is committing to the +/- terminal convention of the component.
(3) Thus I flipped R6 end-to-end and got negative power.
That _is_ a flaw in LTspice.
I posted this (previously)...
to show how PSpice does it.
I'm not peddling PSpice... you can't even buy PSpice with the features I have anymore. Cadence/OrCAD has completely neutered the product to be only PCB-specific... they want you to have to buy Cadence/Virtuoso/Spectre for the big $$$$.
Maybe I'll have my heirs auction off my version ;-) ...Jim Thompson
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| STV, Queen Creek, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
It's what you learn, after you know it all, that counts.
J
Jim Thompson
[snip]
You're making the world far more difficult to deal with than it really needs to be....
By circuit analysis convention all currents are defined INTO the nodes. That's where Mikey blew it.
Let the plebes respond first as to how to calculate power dissipated.
HINT: Kirchhoff's Laws apply ;-) ...Jim Thompson
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| STV, Queen Creek, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
It's what you learn, after you know it all, that counts.
J
John Larkin
In this case, I flipped R2 to reverse the current direction. LT Spice got both equations right.
formatting link
I can't make LT Spice produce any, even transient, negative power into a resistor. Maybe you can.
I think my negative averaged power was probably a windowing issue into a capacitor. Capacitors can absorb or deliver energy.
John Larkin Highland Technology, Inc
picosecond timing precision measurement
jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com
J
Jim Thompson
It seems to be related to when you change something in a circuit, whether you do a "Save" or not. "Save" is good, not saved produces the anomaly.... seems to blow LTspice's mind as to current and voltage sign direction. Strange.
Do you have Solver=Alternate set? I have that set by default, cures most mismatches between LTspice and industry standard simulators. ...Jim Thompson
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| STV, Queen Creek, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
It's what you learn, after you know it all, that counts.
P
Phil Hobbs
HINT: There's life after the trapezoidal rule. ;)
Cheers
Phil Hobbs
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510
http://electrooptical.net
http://hobbs-eo.com
J
Jim Thompson
And the horse may talk ;-) ...Jim Thompson
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| STV, Queen Creek, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
It's what you learn, after you know it all, that counts.
J
Jasen Betts
How'd you get it to say "POWER in R6"?
The upside down graph is easy enough, flip the resistor after setting up the plot and the current is reversed but the voltage is measured on original nodes.
This email has not been checked by half-arsed antivirus software
J
John Larkin
OK, that makes negative power. Flip the resistor *after* you run the simulation but before you do the alt/click thermometer thing, so the post-sim calculation and plot uses old RAW data but a new equation.
The simple fix: don't do that.
John Larkin Highland Technology, Inc
lunatic fringe electronics
J
John Larkin
Of course it does.
Hey, look at this one!
formatting link
John Larkin Highland Technology, Inc
lunatic fringe electronics
J
Jim Thompson
[snip]
[snip]
Observe the displayed equation when pressing the ALT key (power, NOT integrated). ...Jim Thompson
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| STV, Queen Creek, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
It's what you learn, after you know it all, that counts.
J
John Larkin
As far as I can tell, LT Spice does everything right.
One can use The Thompson Trick to demonstrate that LT Spice is wrong: run a sim, change the schematic but don't rerun the sim, screen capture, complain that the screen shows a conflict. You can do a power calculation after changing the schematic and the RAW file data doesn't change, so you can manufacture criticism that way too.
If you change the schematic, it's a good idea to rerun the simulation. I suppose LT Spice could delete the plot plane and delete the RAW file if one makes any change to the schematic pane, but I prefer it the way it is. I'm not working to deliberately demonstrate that LT Spice is wrong; you are.
Can you post an .asc file that simulates negative power in a resistor, without using The Thompson Trick?
Incidentally, resistors are indeed "signed" and operate correctly, and the generated power equation always seems to have the correct sign. To tell which direction a resistor reports current, run a sim and then hover over the resistor. The cursor becomes an arrow that shows the current sign convention.
More than half the time, when I put a new resistor, it's in the wrong direction by my standards, so I flip it to make the current direction to my liking. If you create a new resistor the convention is "down" and then if you ctrl/r rotate CCW, the current convention becomes left to right, whereas I usually want right to left; so I ctrl/r three times.
Always glad to try to help an amateur get un-confused.
John Larkin Highland Technology, Inc
lunatic fringe electronics
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.