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: SUBCKT problem
Forgot to say:
.subckt NMOS 3 1 2 actually means that the first pin is 3, then the 2nd is 1 and the 3rd is 2, the numbers are interpreted literally, not numerically. Just an example to show that the order is what counts. Vlad ______________________ ltspicegoodies.ltwiki.org -- holding, among others: a universal analog/digital filter, block-level models for power electronics (and not only), math blocks with a more stream-lined approach, some digital ADC, DAC, (synchronous-)counter, JKflop, etc. |
Re: SUBCKT problem
Normally they are accounted for correctly within the subcircuit but, for different cases, the main thing that should be remembered is the order of the pins (not necessarily digits). E.g.:
.subckt NMOS G D S means that any symbol having the pins numbered as 1, 2, 3 will assign G <> 1, D <> 2 and S <> 3. If the symbol itself has letters instead of numbers, say A, B and C, then the internal order is what matters, order that can be easily checked by editing the symbol (LTspice or any text editor).
Vlad ______________________ -- holding, among others: a universal analog/digital filter, block-level models for power electronics (and not only), math blocks with a more stream-lined approach, some digital ADC, DAC, (synchronous-)counter, JKflop, etc. |
Re: SUBCKT problem
Helmut,
Thank you.? I originally wanted to use nmos, but I didn't find Ctrl-right mouse to change the prefix, so I did it the hard way, but didn't know to set the Prefix and Value.in the ASY. I also have a model file, which I suspect can be connected directly to the nmos symbol, but again I did not figure out how to do that. In this case the order of the pins matched without changing anything, but if use use nmos, how should one fix a pin order mismatch between the symbol and the SUBBCKT? Brian |
Re: SUBCKT problem
Hello Brian,
You forgot to set two values in the symbol(.asy). Prefix:X Value:BSH103 LTspice assumed a hierarchical schematic due to of these missing attributes and failed because you don't have a hierarchical schematic. You don't need a special symbol for Mosfet with subcircuits. It's much easier to simply use the symbol "nmos" or "pmos" and make it ready for a subcircuit in the schematic. ? Place the symbol "nmos" Ctrl-right mouse-click on it Change Prefix:MN to X Change Value:nmos to BSH103 OK Add a SPICE-directive to include the model file as shown below. .include BSH103_8_20_2010.lib I have uploaded an example to the Files section. Files > Lib > BSH103_8_20_2010_test.zip Just unzip this example into any folder, but never make any of your own folders below C:\Program ... Best regards, Helmut ? |
SUBCKT problem
All,
I uploaded BSH103_test.zip.? I am attempting to make the BSH103 subckt work. The simulation seems to rn, but emits a warning which I recognize as being about the pin names in the ASY file, but I can find no explanation of the meaning or how to fix it. I mostly want to understand what this warning means so I can fix it myself. Brian |
I uploaded a file
All,
I uploaded a file called BSBH103_test,zip. I am attempting to use the subckt file for the BSH103. The run seems to work, but there is a warning that I have been unable to decipher. I recognize the subject of the warning as being the names of the pins in the ASY file, but have been unable to determine how to fix it. I am mostly looking for understanding of the warning so I can fix it. Brian |
Re: Varicap MVAM108
> "Winfield Hill" winfieldhill>>Jim, what do suggest using for varacters these days? > >- Win > >Winfield Hill >Rowland Institute at Harvard >100 Edwin Land Blvd >Cambridge, MA 02142 > >617-497-4670 Hi Win, How's it going? I don't have a particular varactor/varicap that I'm fond of using.? Recent chips have used an on-board MOS device as a varicap (at ~5GHz). In the past the customer usually has an LC system already in mind, and I provide the oscillator core and level-shifting required (and the AGC).
???????????????????????????????????????
...Jim Thompson
James E. Thompson
35129 North Laredo Drive
San Tan Valley, AZ? 85142-3361
Voice: 480-460-2350? Skype: Contacts Only
Web Site:
Wearer of the Brass Rat - Class of 1962
????????????
America: Land of the Free, Because of the Brave |
Re: uc3842
Theunis Prinsloo
Thank you Helmut,
One is never too old to earn. Theunis From: LTspice@... [mailto:LTspice@...] Sent: Sunday, June 01, 2014 12:57 PM To: LTspice@... Subject: RE: [LTspice] Re: uc3842 Hello Theunis, It would be bad practice to store something in the installation folders of LTspice. Copy the symbols(.asy) and the model file(s) in the folder of your schematic. You will then reach the extra symbols by setting the "Top directory" in the "Add Component"-dialog. Press F2 then choose the "Top directory". Your schematic folders should never be under C:\Program ... Best regards, Helmut [Non-text portions of this message have been removed] |
Re: uc3842
Hello Theunis,
It would be bad practice to store something in the installation folders of LTspice. Copy the symbols(.asy) and the model file(s) in the folder of your schematic. You will then reach the extra symbols by setting the "Top directory" in the "Add Component"-dialog. Press F2 then choose the "Top directory". Your schematic folders should never be under C:\Program ... Best regards, Helmut |
Re: uc3842
Theunis Prinsloo
Thanks Bud will do.
From: LTspice@... [mailto:LTspice@...] Sent: Sunday, June 01, 2014 12:08 PM To: LTspice@... Subject: [LTspice] Re: uc3842 Hello, At least one more chance, but I assume the model from analogspiceman mentioned in my previous answer is better. Please also search in "all_files.htm" for more examples using the UC3842. This "all_files.htm" contains links to all files of this group. Best regards, Helmut [Non-text portions of this message have been removed] |
Re: regarding library file
Kesi Kumar wrote: ? ?"i am getting error message that could open library file of MIC4420.lib"
Did you mean that it could NOT open the library file? ?That would be an error. ?It is no error if it could open the file.
You haven't given us enough information to tell why you had the error, so I have to make a lot of guesses. ?The file is not where LTspice thinks it should be. ?You probably had a line on your schematic that was something like:
.include MIC4420.lib or
.lib MIC4420.lib What exactly did this line look like? ?Was the library file at the specified location? ?The error message indicates that it was not.
? ?"i had downloded lib file of?Micrel FET Driver Models, and placed at sym folder of LTspice"
That might be your mistake. ?Never put models in LTspice's folders. ?Microsoft Windows might have prevented you from putting it into the folder, by putting it instead into a virtual folder that isn't where you think it is. ?Windows does this to "protect" program files, and LTspice is in the Program Files directory tree. ?Never put your models and files there.
Put the file in your working directory where you have your schematic, which should not be under Program Files. ?Stay away from Program Files and all its subdirectories.
Regards,
Andy |
regarding library file
when i am using MIC4420, i am getting error message that could open library file of MIC4420.lib, i had downloded lib file of?Micrel FET Driver Models, and placed at sym folder of LTspice...but stilll i m getting same error , can anyone suggest me idea that where i am doing mistake... ? |
Re: Varicap MVAM108
There is one in the standard component menu for diodes in LTspice. I tend to use that one for applications that need something in the range of 2-10pf.
toggle quoted message
Show quoted text
Jim Wagner Oregon Research Electronics On May 31, 2014, at 2:59 PM, Winfield Hill hill@... [LTspice] wrote:
|
Re: Varicap MVAM108
¿ªÔÆÌåÓý?Jim, what do suggest using for varacters these days? -- - Win Winfield Hill Rowland Institute at Harvard 100 Edwin Land Blvd Cambridge, MA 02142 617-497-4670 |
Re: (unknown)
Kesi Kumar wrote: ? ?"i did all these...process which u said but when i m simulating then it is saying an error that unknown subcircuit about CD4013"
Then you left out something. The subcircuit for the CD4013 is inside that .lib file. ?Open the .lib file in a text editor (like I just did) and you can find it there. ?Perhaps you forgot to include it in your schematic? ?The usual way is to add the line to your schematic:
.lib CD4000.lib Regards, Andy |
to navigate to use esc to dismiss