Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- LTspice
- Messages
Search
Re: AKO: Fails When Placed in Sub-Schematic
¿ªÔÆÌåÓýOn 09/02/2025 15:05, Dennisc via
groups.io wrote:
In the case of LTspice, undocumented features were not guaranteed to remain available. Many programs contain them - one of the best examples being Microsoft Excel. AKO is a Donald Rumsfeld example of a "known unknown". There are also some "unknown unknowns", or at least, there used to be. Features that were used internally at LTC, but not intended to be used or even known externally. Analogspiceman found a number of those, and along with Helmut Sennewald, erased all traces, at least within this group and in the LTwiki, at the request of LTC. There is now possibly no one left to ask about those. But I may be wrong. -- Regards, Tony |
Re: AKO: Fails When Placed in Sub-Schematic
¿ªÔÆÌåÓýIndeed; the need for it in the subcircuit case
seems to be a b-u-g. On 2025-02-09 02:19, eewiz via
groups.io wrote:
-- OOO - Own Opinions Only Best Wishes John Woodgate Keep trying |
Re: AKO: Fails When Placed in Sub-Schematic
¿ªÔÆÌåÓýA case for carefully examining the netlists, I
suppose. On 2025-02-09 01:57, Andy I via
groups.io wrote:
-- OOO - Own Opinions Only Best Wishes John Woodgate Keep trying |
Re: How to Set Up Permanent UniversalOpamp Doppelganger
¿ªÔÆÌåÓýOn 09/02/2025 04:25, eewiz via
groups.io wrote:
If you want to decouple your NE5532L3A from ADI's distributed copy of UniversalOpamp3A, simply make a copy of the current UniversalOpamp3A.lib with the parameter customisations, and rename it NE5532L3A.lib. Put that with your collection of personal models, which I assume is listed in Control Panel > Search Paths > Library Search Paths [*] To use it as any other 3rd party opamp: 1. Place an opamp2 symbol in your schematicDone. You won't have interactive access to the parameters, like you would with a generic UniversalOpamp. but know it won't ever change. If you want to grab an NE5532L3A direct from the component chooser, a couple more steps: 4. Make a copy of opamp2.asy, call it NE5532L3A.asyDone. If you prefer to go with any future version of ADI's UniversalOpamp3A, improved or not, just modify your NE5532L3A .subckt: NE5532 Source: UniversalOpAmp Level3A .SUBCKT NE5532L3A?? 1 2 3 4 5 X 1 2 3 4 5 level3a Avol=50k GBW=7.2Meg Slew=9Meg ilimit=38m rail=1.5 Vos=0 phimargin=60 en=5n enk=40 in=0.7p ink=150 Rin=50k * .lib UniversalOpamp3A.lib .ENDS Execute steps 1-3, above. -- Regards, Tony |
Re: AKO: Fails When Placed in Sub-Schematic
On Sat, Feb 8, 2025 at 05:43 PM, David Schultz wrote:
On 2/8/25 7:37 PM, Andy I via groups.io wrote: ?
A model statement like this:
.model LoBT5551 ako:MMBT5551 NPN (Bf=80) ?
expects a ".model MMBT5551 NPN (Bf=blah blah blah....)" to already be defined.
?
It will replace the original BF value with the aliased value when LoBT5551 is used in the schematic. This can be verified by running a simulation with the expanded net list set, then viewing the error logfile. If BF is already defined, it will be listed twice in the models parameter list, with the new one at the very end of the models' original parameter list, overriding the first BF parameter setting.
?
eT
?
? |
How to Set Up Permanent UniversalOpamp Doppelganger
Hello All:
?
I'm trying to use the UniversalOpamp level3a to emulate the NE5532 opamp.
This is so I can place a part named NE5532L3A on my schematic which will actually use the level3a universal opamp with all of it's params set correctly to emulate the NE5532.
TI's NE5532 model won't converge and further causes subsequent sudo-random DEFCON lockups.
I already have my project working by "P" placing the UniversalOpAmp3a.asy on my schematic and then setting all params as necessary.
I took the "X 1 2 3 4 5 level3a" stuff from my netlist and am now attempting to add it to my NE5532.lib file.
?
I keep my opamp/comparator type .lib files with many related devices in each, so I can select one from the many lets say LM339/393 models I have collected along the way.
My NE5532.lib file currently holds two copies of the TI model.
One standard and one modified to draw its output current through its power pins which TI's standard NE5532 model does not.
Both models won't converge among other issues already mentioned.
?
I tried this:
NE5532 Source: UniversalOpAmp Level3A
.SUBCKT NE5532L3A?? 1 2 3 4 5 X 1 2 3 4 5 level3a Avol=50k GBW=7.2Meg Slew=9Meg ilimit=38m rail=1.5 Vos=0 phimargin=60 en=5n enk=40 in=0.7p ink=150 Rin=50k * .ENDS ?
24.0.12 says "Undefined subcircuit: level3a".
I located the UniversalOpAmp3a.lib file and copied its contents, ".SUBCKT level3a" to ".ENDS", into the above where the star in now located. That works; it has no problem finding level3a when the level3a subcircuit is available locally.
?
I hoped that since a "P" placed UniversalOpAmp3a.asy can find the level3a sub-cicuit that the above would work.
But, alas, it does not.
?
LTspice's UniversalOpAmp3a.lib file is located at "C:\Win32\LTC\LTspice\lib\sub".
I tried "X 1 2 3 4 5 C:\Win32\LTC\LTspice\lib\sub\UniversalOpAmp3a.lib\level3a Avol=50k etc..." and it said it can't find that either.
?
I would like to avoid using a copy of ADI's level3a sub-circuit because ADI may improve it in the future leaving my copy without those improvements.
?
Please help me with the correct syntax to use ADI's level3a sub-circuit from where it normally resides.
?
Thank You |
Re: AKO: Fails When Placed in Sub-Schematic
LTtwiki also shows the AKO: syntax without the "NPN" parameter.
?
Sent:?Saturday, February 08, 2025 at 8:37 PM
From:?"Andy I via groups.io" <AI.egrps+io@...> To:[email protected] Subject:?Re: [LTspice] AKO: Fails When Placed in Sub-Schematic Model definitions SHOULD work at any level including inside subcircuits.? In fact it is kind of a necessity.? One may want to use a model name and not have it conflict with another of the same name, and the best way to do that is to move the model definition inside the subcircuit, thus making it local to that subcircuit only.? I think it has always been that way in SPICE.
?
It is most curious that adding "NPN" to the statement seems to fix it, and that "NPN" is not needed outside of subcircuits.? I'd say it is a bit buggy.
?
AKO never was documented in LTspice's Help.? You can find it in the "Undocumented LTspice" section of the LTwiki, .? The parentheses thing does not surprise me, as that is pretty much the norm for SPICE (with a few exceptions).
?
Andy
?
|
Re: AKO: Fails When Placed in Sub-Schematic
On Sat, Feb 8, 2025 at 08:43 PM, David Schultz wrote:
I would be worried about what parameters you actually get when addingOnly the alias. ?
If you used a statement such as:
I am very confident that the only model it would affect or modify is the one named as the target of that .MODEL statement, which is LoBT5551.? It uses the MMBT5551 as its template but does not modify it, and it is an NPN but the statement does not change what it means to be an NPN, any more than any regular .MODEL statement could do.? That much follows the normal action of a .MODEL statement.
?
Of course I could be wrong.? But it makes no sense if it worked any other way.? If it did, that would be a serious bug.
?
Andy
?
? |
Re: AKO: Fails When Placed in Sub-Schematic
On 2/8/25 7:37 PM, Andy I via groups.io wrote:
It is most curious that adding "NPN" to the statement seems to fix it, and that "NPN" is not needed outside of subcircuits.? I'd say it is a bit buggy.I would be worried about what parameters you actually get when adding NPN. Do you modify the Bf parameter of a a generic NPN model or of the one in the alias? -- David Schultz "The cheeper the crook, the gaudier the patter." - Sam Spade |
Re: AKO: Fails When Placed in Sub-Schematic
Model definitions SHOULD work at any level including inside subcircuits.? In fact it is kind of a necessity.? One may want to use a model name and not have it conflict with another of the same name, and the best way to do that is to move the model definition inside the subcircuit, thus making it local to that subcircuit only.? I think it has always been that way in SPICE.
?
It is most curious that adding "NPN" to the statement seems to fix it, and that "NPN" is not needed outside of subcircuits.? I'd say it is a bit buggy.
?
AKO never was documented in LTspice's Help.? You can find it in the "Undocumented LTspice" section of the LTwiki, .? The parentheses thing does not surprise me, as that is pretty much the norm for SPICE (with a few exceptions).
?
Andy
? |
Re: AKO: Fails When Placed in Sub-Schematic
Hello All:
?
It works in a sub-circuit when the "NPN" is included in the statement.
In all places where it does work, it works with or without the parentheses.
?
Searching the help file for "AKO" or "ako" has zero hits.
Many Internet sources show: ".model My5551 ako:MMBT5551 Bf=80" (without the "NPN" parameter).
They are not patently wrong since it does work correctly on a top level schematic without the "NPN" parameter.
?
All for now
?
Sent:?Saturday, February 08, 2025 at 4:38 PM
From:?"eetech00 via groups.io" <eetech00@...> To:[email protected] Subject:?Re: [LTspice] AKO: Fails When Placed in Sub-Schematic Use:
.model LoBT5551 ako:MMBT5551 NPN (Bf=80)
|
Re: AKO: Fails When Placed in Sub-Schematic
¿ªÔÆÌåÓýI think it's reasonable that subcircuits have
limited intelligence and require key data to be specified at the
top level. I suppose this is not documented in the Help, but to
document everything in LTspice (perhaps even in SPICE would
require more than the proverbial three-volume novel. I have one
app that has a PDF manual that is nearly 1 GB, Admittedly, it
has many graphics, but even trying to search it is daunting. So
I don't use it unless I absolutely have to. On 2025-02-08 21:30, eewiz via
groups.io wrote:
-- OOO - Own Opinions Only Best Wishes John Woodgate Keep trying |
AKO: Fails When Placed in Sub-Schematic
Hello All:
?
I have discovered that the spice statement ".model LoBT5551 ako:MMBT5551 Bf=80" fails if placed on a sub-schematic where the "LoBT5551" transistor is located.
?
LTspice 24.0.12 says "Can't find definition of model LoBT5551".
?
Moving the AKO: statement to the top-level schematic works as expected.
?
All for now
? |
Re: Any Good Reason to Create a Hierarchical Connector and Conductors to Route (Plumb) Ground Out of a Hierarchical Schematic
Hello eetech00:
?
Break a huge schematic that has grown so large it can't be easily read from one monitor into a dozen sub-schematics.
Those sub-schematics now have grounds peppered all around.
This lead me to the question which is the title of this thread.
?
I did not intend to add grounds.
I wanted to understand the ramifications of leaving those to-be-hidden grounds behind, or routing ground out of the hierarchical schematic to be connected on a top level schematic.
?
After these discussions, I understand the need to remove all triangular (label 0) ground symbols from the interior of a hierarchical block and physically connect any nets that may have been disconnected by those ground symbol removals.
?
I discovered first hand those confusing probe readings within a sub-circuit as detailed in my have a look here submission.
?
All for now
?
Sent:?Saturday, February 08, 2025 at 10:14 AM
From:?"eetech00 via groups.io" <eetech00@...> To:[email protected] Subject:?Re: [LTspice] Any Good Reason to Create a Hierarchical Connector and Conductors to Route (Plumb) Ground Out of a Hierarchical Schematic On Fri, Feb 7, 2025 at 11:28 PM, eewiz wrote:
HI eewiz ?
I see what you've explained.
But in my humble opinion, it appears to be caused by a misuse of labels. When you add a ground symbol, you are basically adding a reserved label named "0" (zero). It has been known for years that a net should not have multiple dis-similar labels.
What is the intent of internally grounding the RTN pin?
?
|
to navigate to use esc to dismiss