summaryrefslogtreecommitdiff
path: root/Solid_State_Pulse_Circuits/Chapter_1.ipynb
blob: 46e3fef2597795bd7dc2021ff6e5a449e01c8846 (plain)
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
386
387
388
389
{
 "metadata": {
  "name": "",
  "signature": "sha256:713321f65fd84ba9c4674fa3873dd2848da0b4de310a07717d67fbc6a52c86ad"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 1 - PULSE FUNDAMENTALS "
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example E1 - Pg 9"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Caption:Find (a)Pulse amplitude (b)PRF (c)PW (d)Duty cycle and (e)M/S ratio\n",
      "v=1.#Vertical scale(Volt per division)\n",
      "h=0.1#Horizontal scale(Milli sec per division)\n",
      "pv=3.5#Amplitude of pulse in divisions\n",
      "t=6.#Time in divisions\n",
      "pw=2.5#Width of pulse\n",
      "P=pv*v\n",
      "print '%s %.1f' %('(a)Pulse Amplitude (in volts)=',P)\n",
      "T=t*h\n",
      "prf=(1/T)*1000\n",
      "print '%s %.f' %('(b)PRF(in pps)=',prf)\n",
      "p=pw*h\n",
      "print '%s %.2f' %('(c)PW (in ms)=',p)\n",
      "sw=pv*h\n",
      "d=(p/T)*100\n",
      "print '%s %.1f' %('(d)Duty cycle(in %)=',d)\n",
      "m=p/sw\n",
      "print '%s %.2f' %('(e)M/S ratio=',m)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "(a)Pulse Amplitude (in volts)= 3.5\n",
        "(b)PRF(in pps)= 1667\n",
        "(c)PW (in ms)= 0.25\n",
        "(d)Duty cycle(in %)= 41.7\n",
        "(e)M/S ratio= 0.71\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example E2 - Pg 12"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Caption:Determine (a)Pulse amplitude,tilt,rise time,fall time,PW,PRF,mark to space ratio,and duty cycle (b)tilt\n",
      "vs=100.#Vertical scale(in mv/divisions)\n",
      "hs=100.#Horizontal scale(in micro sec/division)\n",
      "e1=380.#first peak of waveform(in mv)\n",
      "e2=350.#second peak of waveform(in mv)\n",
      "E=(e1+e2)/2.\n",
      "t=(e1-e2)*100./E\n",
      "tr=0.3*hs\n",
      "tf=0.4*hs\n",
      "T=5.*hs\n",
      "prf=10.**6./T\n",
      "pw=2.2*hs\n",
      "sw=2.8*hs\n",
      "ms=pw/sw\n",
      "dc=(pw*100.)/T\n",
      "print '%s %.f'%('(a)Pulse Amplitude(in mv)=',E)\n",
      "print '%s %.1f'%('(a)tilt(in %)',t)\n",
      "print '%s %.f'%('(a)rise time(in micro sec)=',tr)\n",
      "print '%s %.f'%('(a)fall time(in micro sec)=',tf)\n",
      "print '%s %.f'%('(a)PW(in micro sec)=',pw)\n",
      "print '%s %.f'%('(a)PRF(in pps)=',prf)\n",
      "print '%s %.2f'%('(a)M/s ratio=',ms)\n",
      "print '%s %.f' %('(a)Duty cycle(in %)=',dc)\n",
      "eb=0.5*vs\n",
      "ee=2.25*vs\n",
      "tb=eb*100./ee\n",
      "print '%s %.1f' %('(b)Tilt(in %)=',tb)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "(a)Pulse Amplitude(in mv)= 365\n",
        "(a)tilt(in %) 8.2\n",
        "(a)rise time(in micro sec)= 30\n",
        "(a)fall time(in micro sec)= 40\n",
        "(a)PW(in micro sec)= 220\n",
        "(a)PRF(in pps)= 2000\n",
        "(a)M/s ratio= 0.79\n",
        "(a)Duty cycle(in %)= 44\n",
        "(b)Tilt(in %)= 22.2\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example E3 - Pg 15"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Caption:Determine average voltage level\n",
      "vs=2.#Vertical scale(V/div)\n",
      "hs=1.#Horizontal scale(ms/div)\n",
      "v1=8.#Amplitude of signal in (+)ve direction (in volts)\n",
      "v2=-1.#Amplitude of signal in (-)ve direction (in volts)\n",
      "t1=0.8#Horizontal divisions for v1\n",
      "t2=2.2#Horizontal divisions for v2\n",
      "T=3.*hs\n",
      "T1=t1*hs\n",
      "T2=t2*hs\n",
      "Va=((T1*v1)+(T2*v2))/T\n",
      "print '%s %.1f' %('Average voltage (in volts)=',Va)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Average voltage (in volts)= 1.4\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example E4 - Pg 20"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Caption:Determine the upper 3db frequency of the amplifier\n",
      "tr=1.#Rise time(in micro sec)\n",
      "fu=0.35*10**3/tr\n",
      "print '%s %.f' %('The upper 3db frequency of the amplifier(in khertz)=',fu)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The upper 3db frequency of the amplifier(in khertz)= 350\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example E5 - Pg 21"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Caption:Determine (a)Minimum upper cut frequency (b)Minimum pulse width and duty cycle\n",
      "prf=1.5#in Khz\n",
      "dc=3.#Duty cycle(in %)\n",
      "pa=1.5#Amplitude of pulse(in Khz)\n",
      "fu=1.#High frequency limit(in Mhz)\n",
      "tr=10.#Rise time(in %)\n",
      "pw=(dc/100.)*10.**6./pa\n",
      "Tr=(tr/100.)*pw\n",
      "fh=0.35*10.**6./Tr\n",
      "print '%s %.f' %('(a)Minimum upper cut frequency(in hertz)=',fh)\n",
      "Tr2=0.35*10.**(-6.)/fu\n",
      "Pw=10.*Tr2\n",
      "dc=Pw*100.*(pa*1000.)\n",
      "print '%s %.7f' %('(b)Pulse width(in sec)=',Pw)\n",
      "print '%s %.1f' %('(b)Duty cycle(in %)=',dc)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "(a)Minimum upper cut frequency(in hertz)= 175\n",
        "(b)Pulse width(in sec) and Duty cycle(in %)= 0.0000035\n",
        "(b)Duty cycle(in %)= 0.5\n"
       ]
      }
     ],
     "prompt_number": 14
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example E6 - Pg 22"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Caption:Calculate (a)Rise time in output waveform (b)Minimum upper cut off frequency and print '%s %.2f' %layed rise time\n",
      "import math\n",
      "tr=10.#Rise time of input waveform(in micro sec)\n",
      "fu=350.#Upper cut off frequency(in KHz)\n",
      "ti=100.#Input rise time(in ns)\n",
      "trc=0.35*(10.**(-3.))/350.\n",
      "tro=math.sqrt(((tr)*(10.**(-6.)))**2.+(trc**2.))*10.**6.\n",
      "print '%s %.2f' %('(a)Rise Time(in Micro sec)=',tro)\n",
      "tc=ti*(10.**(-9.))/3.\n",
      "fh=0.35*10.**(-6.)/tc\n",
      "Tro=math.sqrt((ti*(10.**(-9.)))**2.+(tc**2.))*10.**9.\n",
      "print '%s %.1f' %('(b)Minimum upper cut off frequency(in Mhz)=',fh)\n",
      "print '%s %.f' %('(b)rise time(in ns)=',Tro)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "(a)Rise Time(in Micro sec)= 10.05\n",
        "(b)Minimum upper cut off frequency(in Mhz)= 10.5\n",
        "(b)rise time(in ns)= 105\n"
       ]
      }
     ],
     "prompt_number": 16
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example E7 - Pg 23"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Caption:Calculate lowest input frequency \n",
      "import math\n",
      "fl=10.#Lower cutoff frequency(in hertz)\n",
      "t=0.02#Tilt on output waveform\n",
      "f=math.pi*fl/(t*1000)\n",
      "print '%s %.2f' %('Lowest input frequency(in Khz)=',f)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Lowest input frequency(in Khz)= 1.57\n"
       ]
      }
     ],
     "prompt_number": 17
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example E8 - Pg 23"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Caption:Determine (a)upper cutoff frequency (b)lower cutoff frequency\n",
      "import math\n",
      "f=1.#frequency of square wave(in khz)\n",
      "tr=200.#rise time of output(in ns)\n",
      "t=0.03#fractional tilt\n",
      "fh=0.35*10.**3./tr\n",
      "print '%s %.2f' %('(a)upper cutoff frequency(in MHz)=',fh) \n",
      "fl=f*t*1000./math.pi\n",
      "print '%s %.1f' %('(b)Lower cutoff frequency(in Hz)=',fl)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "(a)upper cutoff frequency(in MHz)= 1.75\n",
        "(b)Lower cutoff frequency(in Hz)= 9.5\n"
       ]
      }
     ],
     "prompt_number": 19
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example E9 - Pg 24"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Caption:Determine upper and lower Frequencies\n",
      "import math\n",
      "tr=30.#Rise time(in micro sec)\n",
      "PRF=2000.#Pulse repetition Frequency(in pps)\n",
      "t=0.082#Tilt(in %)\n",
      "Pw=220.#Pulse width(in micro sec)\n",
      "fh=0.35*10.**(3.)/tr\n",
      "fl=t*10.**6./(2.*math.pi*Pw)\n",
      "print '%s %.2f' %('Upper frequency(in kHz)=',fh)\n",
      "print '%s %.1f' %('lower frequency(in Hz)=',fl)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Upper frequency(in kHz)= 11.67\n",
        "lower frequency(in Hz)= 59.3\n"
       ]
      }
     ],
     "prompt_number": 21
    }
   ],
   "metadata": {}
  }
 ]
}