Digest Number 23


Peter Kapas
 

Hi Neil /New user: how to edit digital models?
-----------------------------------------------

Try these:

CD4093.asc
------------------------------------------------
Version 4
SHEET 1 892 692
WIRE 288 304 304 304
WIRE 160 320 112 320
WIRE 160 256 112 256
WIRE 160 272 128 272
WIRE 128 272 128 352
WIRE 128 352 160 352
WIRE 160 352 160 336
WIRE 160 352 240 352
WIRE 240 352 240 320
WIRE 160 352 160 368
FLAG 112 256 a
IOPIN 112 256 In
FLAG 112 320 b
IOPIN 112 320 In
FLAG 304 304 c
IOPIN 304 304 Out
FLAG 160 368 gnd
IOPIN 160 368 BiDir
SYMBOL C:\Program\ Files\LTC\SwCADIII\Digital\and 256 224 R0
WINDOW 3 0 0 Invisible 0
SYMATTR Value Vlow=.1 Vhigh={VDD}
SYMATTR InstName A1
SYMATTR Value2 Trise=2n Tfall=2n
SYMBOL C:\Program\ Files\LTC\SwCADIII\Digital\schmtbuf 160 192 R0
WINDOW 3 8 60 Invisible 0
SYMATTR Value Vt={Vtt} Vh={Vhh} Trise=10n Tfall=10n
SYMATTR InstName A2
SYMATTR Value2 Vlow=.1 Vhigh={VDD} Td=193n
SYMBOL C:\Program\ Files\LTC\SwCADIII\Digital\schmtbuf 160 256 R0
WINDOW 3 17 89 Invisible 0
SYMATTR Value Vt={Vtt} Vh={Vhh} Trise=10n Tfall=10n
SYMATTR InstName A3
SYMATTR Value2 Vlow=.1 Vhigh={VDD} Td=193n
------------------------------------------------
CD4093.asy
------------------------------------------------
Version 4
SymbolType BLOCK
LINE Normal 16 -32 -32 -32
LINE Normal 17 32 -32 32
LINE Normal -32 32 -32 -32
LINE Normal 0 -16 16 -16
LINE Normal -8 16 0 -16
LINE Normal -16 16 -8 16
LINE Normal 0 16 -8 16
LINE Normal 8 -16 0 16
CIRCLE Normal 64 8 48 -8
ARC Normal -15 -32 48 32 17 32 16 -32
WINDOW 0 49 -42 Left 0
WINDOW 1 66 28 Left 0
PIN -32 -16 NONE 8
PINATTR PinName a
PINATTR SpiceOrder 1
PIN -32 16 NONE 8
PINATTR PinName b
PINATTR SpiceOrder 2
PIN 64 0 NONE 8
PINATTR PinName c
PINATTR SpiceOrder 3
PIN 0 32 NONE 8
PINATTR PinName gnd
PINATTR SpiceOrder 4
-------------------------------------------
and finally an example:
Relax.asc
-------------------------------------------
Version 4
SHEET 1 900 700
WIRE 80 -80 160 -80
WIRE 160 -80 160 48
WIRE 160 48 112 48
WIRE 16 32 -16 32
WIRE -80 32 -80 96
WIRE 16 64 -16 64
WIRE -16 64 -16 32
WIRE -16 32 -80 32
WIRE -16 32 -16 -80
WIRE -16 -80 0 -80
WIRE -80 192 -80 176
WIRE -80 176 48 176
WIRE -80 176 -80 160
WIRE 48 176 48 80
FLAG -80 192 0
SYMBOL C:\Program\ Files\LTC\SwCADIII\DC4093 48 48 R0
SYMATTR InstName U1
SYMATTR SpiceLine k=3 VDD=5*k Vtt=2.4*k Vhh=.532*k
SYMBOL cap -96 96 R0
SYMATTR InstName C1
SYMATTR Value 1n
SYMBOL res 96 -96 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R1
SYMATTR Value 20k
TEXT -100 216 Left 0 !.tran 1000u
-------------------------------------------

----- Original Message -----
From: <LTspice@...>
To: <LTspice@...>
Sent: Saturday, February 15, 2003 1:39 AM
Subject: [LTspice] Digest Number 23


To unsubscribe from this group, send an email to:
LTspice-unsubscribe@...


------------------------------------------------------------------------

There are 4 messages in this issue.

Topics in this digest:

1. Some basic uestions
From: Massimo Gaspari <gaspari@...>
2. Re: Some basic uestions
From: Panama Mike <panamatex@...>
3. New user: how to edit digital models?
From: "neel_christian <neel_c@...>"
<neel_c@...>
4. Re: New user: how to edit digital models?
From: "Helmut Sennewald <helmutsennewald@...>"
<helmutsennewald@...>


________________________________________________________________________
________________________________________________________________________

Message: 1
Date: Fri, 14 Feb 2003 21:41:24 +0100
From: Massimo Gaspari <gaspari@...>
Subject: Some basic uestions

Hi everybody,

I am a new user of LTSpice.

Looking into the model list I am not
able to find the models for a semiconducor (diffused) resistors and
capacitors.
They are not very important but some netlists are using them.
Are these models available in LTSpice? They are standard models in
Berkeley Spice3, may be useful to add them for compatibility.


Is there an upper limit for the numeber of components in the standard.*
libraries (diode,resistor,capacitor...)?

Using the .STEP statement it seems difficult to analyze the different
waveforms because it is not possible (is it right?) to understand which
value of the parameter is related with a particular waveform. Is there a
way to show which value is used with any waveforms?


Regards

Massimo


--

''~``
( o o )
+------------------.oooO--(_)--Oooo.------------------+
| |
| e-mail: gaspari@... |
| |
| ICQ # = 166939207 |
| |
| PGP fingerprint16: |
| 76 80 F2 F9 8D 70 F3 D1 42 2B CD 80 29 49 CB 25 |
| |
| .oooO |
| ( ) Oooo. |
+---------------------&#92; (----( )--------------------+
&#92;_) ) /
(_/




________________________________________________________________________
________________________________________________________________________

Message: 2
Date: Fri, 14 Feb 2003 13:10:50 -0800 (PST)
From: Panama Mike <panamatex@...>
Subject: Re: Some basic uestions

Looking into the model list I am not able to find
the
models for a semiconductor (diffused) resistors and
capacitors. They are not very important but some
netlists are using them. Are these models available
in LTSpice? They are standard models in Berkeley
Spice3, may be useful to add them for compatibility.
You can use the standard resistor and capacitors model
statements. It should be able to understand both
Berkeley and PSpice syntax.

Is there an upper limit for the number of components
in the standard.* libraries
(diode,resistor,capacitor...)?

Absolutely not, but there isn't any facility there you
help you organize your models. If you wish, you can
also keep your own libraries separate and include them
by putting a SPICE directive on the schematic of the
form ".lib <filenamepath>"

Using the .STEP statement it seems difficult to
analyze the different waveforms because it is not
possible (is it right?) to understand which value of
the parameter is related with a particular waveform.
Is there a way to show which value is used with any
waveforms?
Yes, it can be difficult. You can navigate an
attached
cursor from one dataset to the next with the up/down
keyboard cursor keys.

--Mike

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com


________________________________________________________________________
________________________________________________________________________

Message: 3
Date: Fri, 14 Feb 2003 23:25:22 -0000
From: "neel_christian <neel_c@...>"
<neel_c@...>
Subject: New user: how to edit digital models?

Hello Group,

I discovered LTSpice a few days ago and I find it very usefull, fun
and easy-to-use :-)

I am now trying to use mixed-mode simulation, and I cannot edit nor
see the models of simple parts like DFLOP (I just want to modify Hold
Time, Threshold, etc.). I did it easily for simple analog parts (like
nmos,pmos), but no way to find a file (even after a search in the
help files and FAQ) for digital parts...maybe I should buy new
glasses.

A Hint?

Thank you in advance for your help

Christian Nel




________________________________________________________________________
________________________________________________________________________

Message: 4
Date: Sat, 15 Feb 2003 00:00:07 -0000
From: "Helmut Sennewald <helmutsennewald@...>"
<helmutsennewald@...>
Subject: Re: New user: how to edit digital models?

--- In LTspice@..., "neel_christian <neel_c@c...>"
<neel_c@c...> wrote:
Hello Group,

I discovered LTSpice a few days ago and I find it very usefull,
fun
and easy-to-use :-)

I am now trying to use mixed-mode simulation, and I cannot edit nor
see the models of simple parts like DFLOP (I just want to modify
Hold
Time, Threshold, etc.). I did it easily for simple analog parts
(like
nmos,pmos), but no way to find a file (even after a search in the
help files and FAQ) for digital parts...maybe I should buy new
glasses.

A Hint?
Hello Christian,
new glasses wouldn't help. I had the same question half a year ago.
The developer of LTSpice, Mike Engelhardt, kindky send me the
necessary information.
By the way, he is around here in the group as Panama Mike,
but keep it for yourself. It is a secret.

The attached sample circuit helps to understand the syntax.
This file is also from Mike.

Hello Mike,
are there even more parameters for digital parts?

Best Regards
Helmut


Original answer from Mike:
--------------------------
The low and high levels are given with Vlow and Vhigh. The
logic thresholds default to half way between but can be
specified with ref. Hysteresis is not possible for gates,
but only for the Schmitt devices. Attached is and example
that hopefully illustrates. Tripdt is a type of temporal
accuracy it should strive for in switching.

Sample circuit file "gate.asc":
-------------------------------

Version 3
SHEET 1 892 692
WIRE 408 304 408 320
WIRE 420 292 436 292
WIRE 420 300 520 300
WIRE 344 356 344 340
WIRE 344 320 344 296
WIRE 344 296 404 296
WIRE 520 300 520 308
WIRE 520 328 520 340
WIRE 408 244 408 260
WIRE 420 232 436 232
WIRE 404 236 344 236
WIRE 344 236 344 296
WIRE 344 236 344 200
WIRE 344 200 404 200
WIRE 420 200 452 200
WIRE 404 204 404 212
FLAG 408 320 GND
FLAG 344 356 GND
FLAG 520 340 GND
FLAG 408 260 GND
FLAG 404 212 GND
SYMBOL digital&#92;and 412 280 R0
WINDOW 0 4 6 Left 0
WINDOW 3 4 28 Left 0
WINDOW 39 4 44 Left 0
WINDOW 40 4 52 Left 0
WINDOW 123 4 36 Left 0
SYMATTR InstName A1
SYMATTR Value Vhigh=5
SYMATTR Value2 Vlow=0 Rout=100
SYMATTR SpiceModel AND
SYMATTR SpiceLine Ref=2 Td=50n tripdt=3n
SYMATTR SpiceLine2 Trise=20n Tfall=40n
SYMBOL voltage 344 316 R0
WINDOW 0 6 4 Left 0
WINDOW 3 6 26 Left 0
SYMATTR InstName V1
SYMATTR Value pulse(0 5 0 100n 100n 0 200n)
SYMBOL res 516 304 R0
WINDOW 0 9 10 Left 0
WINDOW 3 9 19 Left 0
SYMATTR InstName R1
SYMATTR Value 1K
SYMBOL digital&#92;and 412 220 R0
WINDOW 0 4 6 Left 0
WINDOW 3 4 28 Left 0
WINDOW 39 4 44 Left 0
WINDOW 40 4 52 Left 0
WINDOW 123 4 36 Left 0
SYMATTR InstName A2
SYMATTR Value Vhigh=5
SYMATTR Value2 Vlow=0 Rout=100
SYMATTR SpiceModel AND
SYMATTR SpiceLine Ref=2 Td=50n tripdt=3n
SYMATTR SpiceLine2 Tau=10n
SYMBOL digital&#92;schmtbuf 404 184 R0
WINDOW 0 2 8 Left 0
WINDOW 3 5 24 Left 0
WINDOW 123 5 32 Left 0
SYMATTR InstName A3
SYMATTR Value Vt=2.5 Vh=1
SYMATTR Value2 tripdt=3n
SYMATTR SpiceModel SCHMITT
text 328 368 Left 0 !.tran 1u








________________________________________________________________________
________________________________________________________________________



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/