Sie sind auf Seite 1von 1

Pspice Advanced Features

87

where
FUNCT_NAME is a name of the function with argument, ARG. The
FUNCT_NAME must be different from built-in functions, shown in
Table 3.9;
ARG is the argument for the function. Up to 10 arguments may be used in
a definition. The number of arguments in a function must agree with
the number in the function definition. A function may be defined
with no arguments, but the parenthesis is still required; and
BODY of a function definition may refer to other functions previously
defined. The body of a function is enclosed in curly braces { }.

The following points should be borne in mind using the .FUNC


statement.

1. The .FUNC statement must precede the first use of the function
name FUNCT_NAME.
2. The body of a function definition must fit on one line.
3. FUNC statements if they appear in subcircuits, are local to those
subcircuits.

If an application has several .FUNC statements, the user can create a file
that contains the .FUNC definitions and access the function definitions
with a .INC statement near the beginning of the circuit file. The next section
describes the .INC statement. The following example describes the use of the
.FUNC statement.

Example 3.4:  Thermister Characteristics

Thermister is a device whose resistance is highly dependent on temperature. It


can be used to measure temperature. The resistance, RT, of a thermister can be
expressed as:

  1 1 
RT = RO exp  β  −   (3.9)
  T TO  

where
RT is the resistance of a thermister at temperature T degrees Kelvin;
RO is the resistance at TO in degrees Kelvin, which is usually taken to be 298°K
( ≡ 25°C); and
β is a characteristic temperature that varies with material composition of a ther-
mister. A typical value is 4000°K, but it can vary from 1500°K to 6000°K.

Figure 3.8 shows a simple thermister circuit. VS = 10 V and RS = 25 KΩ. The ther-
mister resistance at temperature 298°K is 25 KΩ. The characteristic temperature of

Das könnte Ihnen auch gefallen