# 0195136047.pdf

(Joyce) #1
``2.5 COMPUTER-AIDED CIRCUIT ANALYSIS: SPICE 87``

``N 1``

``GNAME N1 N2 NC+ NC− GMVALUE``

``+``

``````−
N 2``````

``NC+``

``NC−``

``Gmvx vx``

``N+``

ENAME N+ N− NC+ NC− AVVALUE
(a) (b)

``````+
+``````

``````−
−
N−``````

``NC+``

``NC−``

``Avvx vx``

``N 1``

``````FNAME N1 N2 VSENSE AIVALUE
VSENSE NC1 NC2 O``````

``N 2``

``N+``

HNAME N+ N− VSENSE RMVALUE
VSENSE N1 N2 O
(c) (d)

``+``

``−``

``N−``

``NC 1``

``NC 2``

``````Rmix
ix``````

``vsense Aiix``

``````+
−``````

``NC 1``

``NC 2``

``````ix
vsense``````

``````+
−``````

Figure 2.5.2Four types of controlled sources and their corresponding PSpice statements.(a)Voltage-
controlled voltage source.(b)Voltage-controlled current source.(c)Current-controlled voltage source.
(d)Current-controlled current source.

EXAMPLE 2.5.1

Develop and execute a PSpice program to solve for the currentI 2 in Figure E2.5.1(a).

``Solution``

Figure E2.5.1(b) is drawn showing the node numbers, and adding a voltage source of zero value
in series withR 1 , because there is a current-controlled source. The program is as follows:

``````EXAMPLE E2.5.1(a) A Title Identifying the Program.
* THE CIRCUIT DIAGRAM IS GIVEN IN FIGURE E2.5.1(b); a comment
statement
* CIRCUIT DESCRIPTION WITH COMPONENT STATEMENTS
IS013
R1145
R21210
R3202
R4305
HCCVS 2 3 VSENSE 2
VSENSE430
* ANALYSIS REQUEST``````

• DCIS331

• OUTPUT REQUEST

• PRINT DC I(R2) V(1) V(2) V(3)

• END ; an end statement