Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
68
Добавлен:
06.06.2017
Размер:
3.31 Mб
Скачать

Transformer

Schematic format

PART attribute <name>

Example

T1

VALUE attribute

<primary inductance>,<secondary inductance>,<coupling coefficient>

Example

.01,.0001,.98

The transformer component consists of two inductors with a mutual inductance between them. It is entirely equivalent to two discrete inductors and a linear K device defining a mutual inductance between them.

The coefficient of coupling is related to the mutual inductance by the following equation.

k = M / (LP*LS)0.5

M is the mutual inductance.

k is the coefficient of coupling and 0 < k < 1. LP is the primary inductance.

LS is the secondary inductance.

477

Transmission line

SPICE format

Ideal Line

T<name> <A port + node> <A port - node> +<B port + node> <B port - node> +[model name]

+ Z0=<value> [TD=<value>] | [F=<value> [NL=<value>]]

Example

T1 10 20 30 40 Z0=50 TD=3.5ns

T1 10 20 30 40 Z0=150 F=125Meg NL=0.5

T1 20 30 40 50 TLMODEL

Lossy Line

T<name> <A port + node> <A port - node> +<B port + node> <B port - node> +[<model name> [physical length]]

+LEN=<len value> R=<rvalue> L=<lvalue> G=<gvalue>

+C=<cvalue>

Examples

T1 20 30 40 50 LEN=1 R=.5 L=.8U C=56PF

T3 1 2 3 4 TMODEL 12.0

Schematic format

PART attribute <name>

Example

T1

VALUE attribute for ideal line

Z0=<value> [TD=<value>] | [F=<value> [NL=<value>]]

Example for ideal line

Z0=50 TD=3.5ns

VALUE attribute for lossy line

<physical length> LEN=<len value> R=<rvalue> L=<lvalue> G=<gvalue> C=<cvalue>

478 Chapter 22: Analog Devices

Examples for lossy line

LEN=1 R=.5 L=.8U C=56PF

R=.5 L=.8U C=56PF

MODEL attribute <model name>

Example

RELAY

Model statement form

.MODEL <model name> TRN ([model parameters])

Examples

.MODEL TIDEAL TRN(Z0=50 TD=10ns)

.MODEL TLOSS TRN(C=23pf L=13nh R=.35)

Model parameters for ideal line

 

 

Name

Parameter

Units

Default

Z0

Characteristicimpedance

Ohms

None

TD

Transmission delay

S

None

F

Frequency for NL

Hz

None

NL

Relativewavelength

 

0.25

Model parameters for lossy line

 

 

Name

Parameter

Units

Default

R

Resistance per unit length

Ohms / unit

None

L

Inductance per unit length

Henries / unit

None

G

Conductance per unit length

Mhos / unit

None

C

Capacitance per unit length

Farads / unit

None

LEN

Physical length

Same as RLGC None

LEN, R, L, G, and C must use a common unit of length. For example, if C is measured in units of farads/cm, then R must be in ohms/cm, L must be in henrys/cm, G must be in mhos/cm, and LEN must be in centimeters.

Model Equations

The ideal and lossy lines are represented by the model shown in Figure 22-20. The principal difference between the two models is in the implementation of the delay. In the ideal model, the delay is implemented as a linked-list of data pairs (time,value) and breakpoints.

479

The lossy line implementation of the delay is quite different. It uses the SPICE3 convolution method to represent the line, producing an accurate representation of a lossy line. The method employed is to convolve the input waveform with the

Figure 22-21 Transmission line model

impulse response of the lossy line to produce the output waveform. The impulse response is obtained from a presolved analytical formula. Presolved analytical solutions for the line impulse response are faster and more accurate than evaluating the inverse Fourier transform of the line's S plane representation. Convolution assures that any waveform can be handled, not just steps and linear ramps.

Note that only the RLC, RC, RG, and LC lines are supported. Nonzero values for R, L, C, and G specifying other line types will generate an error.

For both types of transmission lines, both VALUE and MODEL parameter descriptions may be given. VALUE parameters replace MODEL parameters and the final result is checked for adherence to the VALUE attribute syntax rules.

Note that either 'Z0' (Z -zero) or 'ZO' (Z-Oh) may be used in either the VALUE or MODEL parameters.

If the length modifier, <physical length>, is given, it overrides the model parameter LEN, if <model name> is used.

For examples of lossless transmission line circuits see the TL1, TL2, and TL3 circuits, and for a lossy transmission line circuit see the LTRA3 circuit.

480 Chapter 22: Analog Devices

User file source

Schematic format

PART attribute <name>

Example

U1

FILE attribute <file name>

Example

AMP.USR

EXPRESSION attribute [expression]

Example

V(10)+V(11)

The User file source is a voltage source whose waveform or curve comes from an ASCII text file. The files contain a header and N sequential lines, each with a variable number of data values:

Transient analysis:

 

Two data values per line:Time, Y

X set to T

Three data values per line:Time, X, Y

 

AC:

Three data values per line: Frequency, Real(Y), Imag(Y) X set to Frequency Five data values per line: Frequency, Real(X), Imag(X), Real(Y), Imag(Y)

DC: Three data values per line:

DCINPUT1, X, Y

where X is the X expression value, Y is the Y expression value, and DCINPUT1 is the value of variable1.

User files may be created using a text editor, by external software, or by saving one or more curves or waveforms after an analysis run. To save a particular

481

waveform, press F10 to invoke the Plot Properties dialog box after the analysis is over and select the waveform to be saved from the Save Curves section of the dialogbox.

When you place a user source in a schematic, MC7 reads the current data directory to find any files with the extension *.USR. It then reads the files themselves to see what waveforms are available for use. It presents the files and waveforms as items in drop-down lists in the FILE and EXPRESSION fields so you can easily select the file name and waveform expression.

Curves saved in user files can be displayed directly in an analysis simply by selecting them from the Curves section of the Variables list. To invoke the Variables list, click in the Y Expression field and click the right mouse button. The X and Y parts of a waveform are stored as CurveX and CurveY, to let you select the X and Y parts independently.

See the files USER and USER2 for examples of how to use this type of source. Here is the SAMPLE.USR user file as an example of the format used:

[Main]

FileType=USR

Version=2.00 Program=Micro-Cap [Menu]

;Simple = T,X,Y

;SimpleNoX = T,Y ;Complex = F,Xr,Xi,Yr,Yi ;ComplexNoX=F,Yr,Yi

;FormatType = Simple | Complex | SimpleNoX | ComplexNoX ;Format=FormatType

WaveformMenu=label vs T [Waveform]

Label=label vs T MainX=T LabelX=T LabelY=label vs T Format=Simple

Data Point Count=256 0,0,0

2.352941176E-009,2.352941176E-009,0

4.705882353E-009,4.705882353E-009,0

...

482 Chapter 22: Analog Devices

W (Current-controlled switch)

SPICE format

W<name> <plus output node> <minus output node> +<controlling voltage source name> <model name>

Example

W1 10 20 V1 IREF

Schematic format

PART attribute <name>

Example

W1

REF attribute

<controlling voltage source name>

Example

VSENSE

MODEL attribute <model name>

Example

SW

This two terminal device, current-controlled switch is controlled by the current through the source defined by <controlling voltage source name>. The model parameters RON and ROFF must be greater than zero and less than 1/Gmin.

Do not make the ratio ROFF/RON larger than about 15 decades. The 15 digits of precision used by the simulator can not make meaningful use of a spread greater than 15 in the ratio. Do not make the transition region, ION-IOFF, too small as this will cause an excessive number of time points required to cross the region. The smallest value for ION-IOFF is (RELTOL(max(ION,IOFF))+ABSTOL).

Model statement form

.MODEL <model name> ISWITCH ([model parameters])

483

Example

.MODEL W1 ISWITCH (RON=1 ROFF=1K ION=1 IOFF=1.5)

Model parameters

 

 

Name

Parameter

Units

Default

RON

On resistance

Ohms

1

ROFF

Off resistance

Ohms

1E6

ION

Control current for On state

A

.001

IOFF

Control current for Off state

A

0

Model Equations

 

 

IC

=

Controlling current

 

 

LM =

Log-mean of resistor values = ln((RONROFF)1/2)

LR =

Log-ratio of resistor values = ln(RON/ROFF)

IM =

Mean of control currents = (ION+IOFF)/2

ID

=

Difference of control currents = ION-IOFF

k

=

Boltzmann's constant

 

 

T

=

Analysis temperature

 

 

RS =

Switch output resistance

 

 

If ION > IOFF

If IC >= ION

RS = RON

If IC <= IOFF

RS = ROFF

If IOFF < IC < ION

RS = exp(LM + 3LR(IC-IM)/(2ID) - 2LR(IC-IM)3/ID3)

If ION < IOFF

If IC <= ION

RS = RON

If IC >= IOFF

RS = ROFF

If IOFF > IC > ION

RS = exp(LM - 3LR(IC-IM)/(2ID) + 2LR(IC-IM)3/ID3)

Noise effects

Noise is modeled as a resistor equal to the resistance found during the DC operating point. The thermal noise current is calculated as follows:

I= sqrt(4kT/RS)

484 Chapter 22: Analog Devices

Z transform source

Schematic format

PART attribute <name>

Example

E1

ZEXP attribute <transform expression>

Example (.10*(Z+1)*(POW(Z,2)-.70*Z+1))/((Z-.56)*(POW(Z,2)-1.16*Z+.765))

CLOCK FREQUENCY attribute <clock frequency>

Example 24Khz

The Z transform source is a voltage source whose waveform is expressed as a complex Z variable expression. It behaves like a Laplace source with Z replaced by EXP(S/<clock frequency>), where S = J * 2 * PI * F, and F = frequency.

See the sample file ZDOMAIN.CIR for an example of how to use the source.

485

486 Chapter 22: Analog Devices

Соседние файлы в папке Micro-Cap v7.1.6
  • #
    06.06.20171.32 Кб60model.CNT
  • #
    06.06.201776.72 Кб62MODEL.HLP
  • #
    06.06.20173.72 Кб60NETHASP.INI
  • #
    06.06.2017450 б59os.dat
  • #
    06.06.2017545 б63READ.ME
  • #
    06.06.20173.31 Mб68RM.PDF
  • #
    06.06.2017226.69 Кб61setup.bmp
  • #
    06.06.201795 б59SETUP.INI
  • #
  • #
    06.06.201749 б60setup.lid
  • #
    06.06.20172.04 Mб60Standard.cmp