File size: 14,959 Bytes
89ae596
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
%!PS-Adobe-3.0 EPSF-3.0
%%Title: 021.eps
%%Creator: XCircuit v3.7 rev55
%%CreationDate: Wed Nov  5 15:56:02 2014
%%Pages: 1
%%BoundingBox: 68 68 480 162
%%DocumentNeededResources: font Helvetica Helvetica-Bold Helvetica-Oblique 
%%+ font Times-Roman Symbol 
%%EndComments
%%BeginProlog
%
%  PostScript prolog for output from xcircuit
%  Version: 3.7
%
%  Electrical circuit (and otherwise general) drawing program
%
%  Written by Tim Edwards 8/5/93--11/1/10  (tim.edwards@multigig.com)
%  The Johns Hopkins University (1993-2004)
%  MultiGiG, Inc. (2004-present)
%
%%BeginResource: procset XCIRCproc 3.7 2
%
% supporting definitions --- these are the primary xcircuit types.

/XCIRCsave save def
/topmat matrix currentmatrix def

/fontslant { /slant exch def [1 0 slant 1 0 0] 
    exch findfont exch makefont dup length dict /ndict exch def
    { 1 index /FID ne { ndict 3 1 roll put } { pop pop } ifelse } forall
    ndict definefont pop} def
/ul { dup type /stringtype eq showflag 1 eq and { gsave 
   currentpoint topmat setmatrix 0 0 moveto 2 index stringwidth pop (_)
   false charpath flattenpath pathbbox grestore exch pop 1 index
   sub setlinewidth exch pop currentpoint 3 -1 roll add moveto 0
   rlineto stroke moveto } if } def
/ol { dup type /stringtype eq showflag 1 eq and { gsave gsave
   currentpoint topmat setmatrix 2 index stringwidth pop 3 index
   true charpath flattenpath pathbbox grestore exch pop
   exch pop topmat setmatrix (_) true charpath pathbbox grestore
   exch pop 1 index sub setlinewidth exch pop currentpoint
   exch 4 1 roll exch sub add moveto pop 0 rlineto stroke
   moveto } if } def
/stW { gsave currentpoint newpath moveto true charpath flattenpath
	pathbbox pop exch pop sub grestore } def
/Ts {mark Tabs aload pop counttomark 1 add array astore /Tabs exch def Tabs
	0 currentpoint pop put} def
/Tbn {mark Tabs aload pop counttomark dup 2 add 1 roll cleartomark 1 sub} def
/Tb { 0 1 Tbn {Tabs exch get dup currentpoint pop lt
	{currentpoint exch pop moveto exit} {pop} ifelse } for } def
/Tf { Tbn -1 0 {Tabs exch get dup currentpoint pop gt
	{currentpoint exch pop moveto exit} {pop} ifelse } for } def
/qS { (aa) stW (a a) stW sub 4 div 0 Kn } def
/hS { qS qS } def
/pspc 0 def
/cf0 { scalefont setfont } bind def
/Kn { dup kY add /kY exch def rmoveto } bind def
/ss { /fscale fscale 0.67 mul def currentfont 0.67 cf0 0 fscale0 fscale mul
	0.33 mul neg Kn} def
/Ss { /fscale fscale 0.67 mul def currentfont 0.67 cf0 0 fscale0 fscale mul
	0.67 mul Kn } def
/ns { 0 kY neg Kn /kY 0 def /fscale 1.0 def xfont0 1.0 cf0 } def
/CR { ns 0 /Bline Bline fscale0 neg add def Bline moveto } def
/cf { dup type /realtype ne {1.0} if exch findfont exch kY 0 eq
	{ 40 mul dup /fscale0 exch def cf0 /xfont0 currentfont def}
	{fscale0 mul fscale mul cf0} ifelse } def
/ctmk { counttomark dup 2 add -1 roll pop } bind def
/label { gsave translate 0 0 moveto dup scale neg /rotval exch def
	/just exch def just 384 and 0 gt {/mshow {pop} def} {/mshow {show}
	def} ifelse just 16 and 0 gt {gsave rotval rotate 0 1 dtransform
	gsave pagemat setmatrix idtransform exch grestore 1 0 dtransform
	gsave pagemat setmatrix idtransform exch grestore dup abs 1e-9 lt
	{pop mul 0 gt} {3 1 roll pop pop 0 lt} ifelse grestore {-1 /rotval
	rotval neg def /just just dup 3 and 1 ne {3 xor} if def} {1} ifelse
	exch -1e-9 lt {-1 /rotval rotval neg def /just just dup 12 and
	4 ne {12 xor} if def} {1} ifelse scale } if /showflag 0 def
	/fspc pspc def /Bline 0 def /Tabs 0 array def /fscale 1.0 def
	/kY 0 def gsave dup 1 add copy 0 exch 1 0 dtransform exch atan rotate
	{exch dup type /stringtype eq {true charpath flattenpath} {dup type
	/arraytype eq {exec} {12 string cvs true charpath flattenpath} ifelse}
	ifelse} repeat pop pathbbox grestore 3 -1 roll pop 3 1 roll just
	1 and 0 gt {just 2 and 0 gt {exch pop neg fspc sub} {exch sub 0.5
	mul neg} ifelse} {pop neg fspc add} ifelse exch Bline exch just 4
	and 0 gt {just 8 and 0 gt {exch pop neg fspc sub} {add 0.5 mul neg}
	ifelse} {pop neg fspc add} ifelse rotval rotate Kn currentpoint
	translate /showflag 1 def /Bline 0 def /Tabs 0 array def /fscale
	1.0 def /kY 0 def {dup type /stringtype eq {mshow} {dup type
	/arraytype eq {exec} {12 string cvs mshow} ifelse} ifelse} repeat
	grestore endclip} def
/pinlabel { 4 index 32 and 0 ne hlevel 0 eq or { /pspc 10 def label
	/pspc 0 def } { pop pop pop pop pop {pop} repeat } ifelse } def
/pinglobal { pinlabel } def
/infolabel { pinlabel } def
/graphic { gsave 4 index cvx exec /DataSource get resetfile translate 0 0
	moveto neg rotate dup scale cvx exec image grestore endclip} def

/scb { setrgbcolor } bind def  /sce { defColor aload pop scb } bind def
/cRedef {/defColor currentcolor 3 array astore def} def
/begingate {dup type /dicttype ne {1 dict} if begin	% default params
	dup type /dicttype ne {1 dict} if begin		% instanced params
	/hlevel hlevel 1 add def /defColor currentcolor sce 3 array astore
	def gsave sce translate 0 0 moveto neg rotate dup type /nametype
	eq not { dup abs currentlinewidth exch div setlinewidth } { pop }
	ifelse dup abs scale clipped 1 and 1 eq {/clipped clipped 1 add def}
	if} bind def
/endgate { /hlevel hlevel 1 sub def grestore defColor aload pop cRedef
	scb end end endclip} bind def

/hlevel 0 def
/endclip {clipped 1 and 1 eq {grestore /clipped clipped 1 sub def} if} def
/tmpa [1 0 0 1 0 0] def
/gar {8 8 true tmpa {<c0 c0 00 00 0c 0c 00 00>} imagemask} bind
{8 8 true tmpa {<30 70 60 02 03 07 06 20>} imagemask} bind
{8 8 true tmpa {<0c 1e 1e 0c c0 e1 e1 c0>} imagemask} bind
{8 8 true tmpa {<0f 0f 0f 0f f0 f0 f0 f0>} imagemask} bind
{8 8 true tmpa {<3f f3 e1 e1 f3 3f 1e 1e>} imagemask} bind
{8 8 true tmpa {<df cf 8f 9f fd fc f8 f9>} imagemask} bind
{8 8 true tmpa {<ff 3f 3f ff ff f3 f3 ff>} imagemask} bind 7 array astore def
/ppaint { gsave clip tmpa dup setmatrix pathbbox neg exch neg 4 2 roll
  neg 4 -1 roll 2 copy gt {exch} if 8 div ceiling 8 mul 4 2 roll neg 2 copy
  gt {exch} if 8 div ceiling 8 mul 3 -1 roll -8 5 -1 roll
  { 3 index exch 5 exch put dup -8 3 index { 3 index
  exch 4 exch put 3 index exec } for } for pop pop pop pop grestore } bind def
/setstyles {
  currentlinewidth mul setlinewidth /style exch def style 2048 and 0 gt
  clipped 1 and 0 eq and {clip newpath /clipped clipped 1 add def} {
  style 1 and 0 gt not {closepath} if
  style 1024 and 0 gt {2 setlinecap 0 setlinejoin} if
  style 2 and 0 gt {currentlinewidth 4 mul dup 2 array astore 0 setdash} if
  style 4 and 0 gt {0.5 currentlinewidth 4 mul 2 array astore 0 setdash} if
  gsave style 16 and 0 gt { style 224 and -5 bitshift style 256 and 0 gt {
  7 exch sub 8 div dup 1 exch sub currentrgbcolor 3 array astore
  {3 copy mul add 4 1 roll pop} forall pop pop setrgbcolor eofill}
  {dup 7 lt {gar exch get ppaint} {pop eofill} ifelse} ifelse}
  {style 256 and 0 gt {1 setgray eofill} if} ifelse grestore style 8 and 0 gt 
  style 512 eq or {newpath} {stroke} ifelse grestore endclip} ifelse} def     

/addtoy {exch dup dup 2 mul 3 add 1 roll -1 1 { 4 1 roll dup 4 1 roll add
	4 -1 roll 2 mul 1 add index 2 mul 2 add 2 roll} for pop} def
/addtoy1 {1 exch addtoy pop} def
/addtoy3 {3 exch addtoy pop} def
/addtoy4 {4 exch addtoy pop} def
/addtox {exch dup dup 2 mul 3 add 1 roll -1 1 { 4 1 roll dup 4 1 roll 3 -1 roll
	add exch 4 -1 roll 2 mul 1 add index 2 mul 2 add 2 roll} for pop} def
/addtox1 {1 exch addtox pop} def
/addtox3 {3 exch addtox pop} def
/addtox4 {4 exch addtox pop} def
/polygon { gsave /num exch def moveto num 1 sub {lineto} repeat setstyles } def
/xcarc   { gsave newpath arc setstyles } def
/elb { matrix currentmatrix 7 -1 roll 7 -1 roll translate 5 1 roll 4 -1 roll
	3 index div 1 scale } def
/ele { 0 4 1 roll 0 4 1 roll } bind def
/ellipse { gsave elb newpath ele arc setmatrix setstyles } def
/pellip  { elb ele arc setmatrix } def
/nellip  { elb ele arcn setmatrix } def
/spline  { gsave moveto curveto setstyles } def
/polyc   { {lineto} repeat } bind def
/beginpath { gsave moveto } bind def
/endpath { setstyles } bind def
/bop	 { 1 setlinecap 2 setlinejoin 6 setmiterlimit 0 0 0 scb cRedef
	/clipped 0 def} def
/psinsertion {/PSobj save def /showpage {} def /setpagedevice {pop} def bop
	rotate translate dup scale} def
/end_insert {PSobj restore} def
/setpagemat {/pagemat matrix currentmatrix def} def
/inchscale  {setpagemat 0.375 mul dup scale} def
/cmscale    {setpagemat 0.35433071 mul dup scale} def

%%EndResource
%%EndProlog

% XCircuit output starts here.

%%BeginSetup

/analog::polarized {
begingate
1 1.000 0 -64 0 -6 2 polygon
1 1.000 0 64 0 6 2 polygon
1 1.000 -32 6 32 6 2 polygon
1 1.000 0 -80 74 66.000 114.000 xcarc
1.000 0.000 0.000 scb
(t) {/Times-Roman cf} 2 9 0 1.000 0 64 pinlabel
(b) {/Times-Roman cf} 2 13 0 1.000 0 -64 pinlabel
0.180 0.545 0.341 scb
(spice:C%i %pt %pb 1.0P) {/Times-Roman cf} 2 0 0 1.000 -208 -160 infolabel
(sim:e %pt %pb %pb) {/Times-Roman cf} 2 0 0 1.000 -208 -208 infolabel
endgate
} def

/generic::dot {
% trivial
begingate
248 1.000 0 0 6 0.000 360.000 xcarc
1.000 0.000 0.000 scb
(x) {/Times-Roman cf} 2 29 0 1.000 0 0 pinlabel
endgate
} def

/analog::resistor {
begingate
1 1.000 0 64 0 36 2 polygon
1 1.000 0 -64 0 -36 2 polygon
1 1.000 0 -36 14 -30 -14 -18 14 -6 -14 6 14 18 -14 30 0 36 8 polygon
1.000 0.000 0.000 scb
(r.1) {/Times-Roman cf} 2 9 0 1.000 0 64 pinlabel
(r.2) {/Times-Roman cf} 2 13 0 1.000 0 -64 pinlabel
0.180 0.545 0.341 scb
(spice:R%i %pr.1 %pr.2 1.0K) {/Times-Roman cf} 2 0 0 1.000 -208 -160 infolabel
(sim:r %pr.1 %pr.2) {/Times-Roman cf} 2 0 0 1.000 -208 -208 infolabel
endgate
} def

/analog::source {
% hidden
begingate
1 1.000 0 0 32 0.000 360.000 xcarc
1 1.000 0 32 0 64 2 polygon
1 1.000 0 -32 0 -64 2 polygon
endgate
} def

/analog::vsource {
begingate
1.000 0 0 0 analog::source
(+) {/Symbol cf} 2 5 0 1.000 0 14 label
(-) {/Symbol cf} 2 5 0 1.000 0 -22 label
1.000 0.000 0.000 scb
(v.p) {/Times-Roman cf} 2 9 0 1.000 0 64 pinlabel
(v.m) {/Times-Roman cf} 2 13 0 1.000 0 -64 pinlabel
endgate
} def

/::Arrow {
begingate
1.000 0.000 0.000 scb
1 1.000 0 24 0 -40 2 polygon
1 1.000 -8 -32 0 -40 8 -32 3 polygon
endgate
} def


%%EndSetup

%%Page: 021 1
%%PageOrientation: Portrait
/pgsave save def bop
% 32.00 8.00 gridspace
0.5000 inchscale
2.6000 setlinewidth 1104 608 translate

1.000 0 -400 0 analog::polarized
1 1.000 -400 64 -400 96 2 polygon
1.000 0 -400 96 generic::dot
1 1.000 -400 96 -416 160 2 polygon
1.000 0 -416 144 generic::dot
1.000 0 -384 144 generic::dot
1 1.000 -416 144 -560 144 2 polygon
1 1.000 -240 144 -384 144 2 polygon
1 1.000 -624 64 -624 144 -560 144 3 polygon
1 1.000 -176 64 -176 144 -240 144 3 polygon
1.000 0 -176 0 analog::resistor
1 1.000 -624 -64 -624 -144 -176 -144 -176 -64 4 polygon
1.000 0 -400 -144 generic::dot
1 1.000 -400 -144 -400 -64 2 polygon
(V) {/Times-Roman cf} 2 16 0 1.000 -704 -16 label
(C) {/Times-Roman cf} 2 16 0 1.000 -464 -16 label
(R) {/Times-Roman cf} 2 16 0 1.000 -224 -16 label
0.000 0.000 1.000 scb
1 2.000 -640 64 -640 48 2 polygon
1 2.000 -648 56 -632 56 2 polygon
1 2.000 -648 -48 -632 -48 2 polygon
1 2.000 -416 40 -416 24 2 polygon
1 2.000 -424 32 -408 32 2 polygon
1 2.000 -424 -32 -408 -32 2 polygon
1.000 0.000 0.000 scb
(Charging current) {/Helvetica-Oblique cf} 2 16 0 0.500 -592 96 label
(Charging current) {/Helvetica-Oblique cf} 2 16 0 0.500 -576 -112 label
sce
( switch in "charge" position) {/Helvetica cf} (Step 1:) {/Helvetica-Bold cf} 4 
16 0 1.000 -720 208 label
1.000 0 352 0 analog::polarized
1 1.000 352 64 352 96 2 polygon
1.000 0 352 96 generic::dot
1.000 0 336 144 generic::dot
1.000 0 368 144 generic::dot
1 1.000 336 144 192 144 2 polygon
1 1.000 512 144 368 144 2 polygon
1 1.000 128 64 128 144 192 144 3 polygon
1 1.000 576 64 576 144 512 144 3 polygon
1.000 0 576 0 analog::resistor
1 1.000 128 -64 128 -144 576 -144 576 -64 4 polygon
1.000 0 352 -144 generic::dot
1 1.000 352 -144 352 -64 2 polygon
(V) {/Times-Roman cf} 2 16 0 1.000 48 -16 label
(C) {/Times-Roman cf} 2 16 0 1.000 288 -16 label
(R) {/Times-Roman cf} 2 16 0 1.000 528 -16 label
0.000 0.000 1.000 scb
1 2.000 112 64 112 48 2 polygon
1 2.000 104 56 120 56 2 polygon
1 2.000 104 -48 120 -48 2 polygon
1 2.000 336 40 336 24 2 polygon
1 2.000 328 32 344 32 2 polygon
1 2.000 328 -32 344 -32 2 polygon
sce
( switch in "neutral" position) {/Helvetica cf} (Step 2:) {/Helvetica-Bold cf} 
4 16 0 1.000 32 208 label
1 1.000 352 96 352 160 2 polygon
1.000 0.000 0.000 scb
1 1.000 -384 -32 -384 -96 2 polygon
1 1.000 -392 -88 -384 -96 -376 -88 3 polygon
0.000 0.000 1.000 scb
(Capacitor acts as a load) {/Helvetica-Oblique cf} 2 16 0 1.000 -624 -192 label
0.604 0.604 0.604 scb
0 3.000 -720 192 -720 -224 -128 -224 -128 192 4 polygon
0 3.000 32 192 32 -224 624 -224 624 192 4 polygon
0.000 0.000 1.000 scb
(Capacitor holds its charge) {/Helvetica-Oblique cf} 2 16 0 1.000 128 -192 
label
sce
1.000 0 1104 0 analog::polarized
1 1.000 1104 64 1104 96 2 polygon
1.000 0 1104 96 generic::dot
1.000 0 1088 144 generic::dot
1.000 0 1120 144 generic::dot
1 1.000 1088 144 944 144 2 polygon
1 1.000 1264 144 1120 144 2 polygon
1 1.000 880 64 880 144 944 144 3 polygon
1 1.000 1328 64 1328 144 1264 144 3 polygon
1.000 0 1328 0 analog::resistor
1 1.000 880 -64 880 -144 1328 -144 1328 -64 4 polygon
1.000 0 1104 -144 generic::dot
1 1.000 1104 -144 1104 -64 2 polygon
(V) {/Times-Roman cf} 2 16 0 1.000 800 -16 label
(C) {/Times-Roman cf} 2 16 0 1.000 1040 -16 label
(R) {/Times-Roman cf} 2 16 0 1.000 1280 -16 label
0.000 0.000 1.000 scb
1 2.000 864 64 864 48 2 polygon
1 2.000 856 56 872 56 2 polygon
1 2.000 856 -48 872 -48 2 polygon
1 2.000 1088 40 1088 24 2 polygon
1 2.000 1080 32 1096 32 2 polygon
1 2.000 1080 -32 1096 -32 2 polygon
0.604 0.604 0.604 scb
0 3.000 784 192 784 -224 1376 -224 1376 192 4 polygon
sce
( switch in "discharge" position) {/Helvetica cf} (Step 3:) 
{/Helvetica-Bold cf} 4 16 0 1.000 784 208 label
1 1.000 1104 96 1120 160 2 polygon
0.000 0.000 1.000 scb
(Capacitor acts as a source) {/Helvetica-Oblique cf} 2 16 0 1.000 864 -192 
label
1.000 0.000 0.000 scb
(Discharging current) {/Helvetica-Oblique cf} 2 16 0 0.500 1128 104 label
(Discharging current) {/Helvetica-Oblique cf} 2 16 0 0.500 1128 -112 label
1 1.000 1120 -96 1120 -32 2 polygon
1 1.000 1112 -40 1120 -32 1128 -40 3 polygon
0.000 0.000 1.000 scb
1 2.000 1344 56 1344 40 2 polygon
1 2.000 1336 48 1352 48 2 polygon
1 2.000 1336 -48 1352 -48 2 polygon
sce
1.000 0 -624 0 analog::vsource
1.000 0 128 0 analog::vsource
1.000 0 880 0 analog::vsource
1.000 0 -384 64 ::Arrow
1.000 270 -528 128 ::Arrow
1.000 90 -512 -128 ::Arrow
1.000 180 -608 -96 ::Arrow
1.000 180 -608 80 ::Arrow
1.000 270 1200 128 ::Arrow
-1.000 90 1216 -128 ::Arrow
1.000 0.000 0.000 scb
1 1.000 1120 24 1120 88 2 polygon
1 1.000 1112 80 1120 88 1128 80 3 polygon
1 1.000 1312 120 1312 56 2 polygon
1 1.000 1304 64 1312 56 1320 64 3 polygon
1 1.000 1312 -56 1312 -120 2 polygon
1 1.000 1304 -112 1312 -120 1320 -112 3 polygon
pgsave restore showpage

%%Trailer
XCIRCsave restore
%%EOF