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
390
|
{
"metadata": {
"name": "",
"signature": "sha256:acad7f2b47ab46b39d2415015834778ee2ba72685572a085340155f27d29b782"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter03 : Op-amp with negative feedback"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Exa 3.1 : page 97"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# given data\n",
"R1=1.5 #in kohm\n",
"RF=15 #in kohm\n",
"A=2*10**5 #unitless\n",
"Ri=1 #in Mohm\n",
"Ro=75 #in ohm\n",
"fo=5 #in Hz\n",
"AF=1+RF/R1 #unitless\n",
"B=1/AF #unitless\n",
"RiF=(1+A*B)*Ri*10**6 #in ohm\n",
"RoF=Ro/(1+A*B) #in ohm\n",
"fF=fo*(1+A*B) #in ohm\n",
"print \"Close loop voltage gain AF = %0.2f \" %AF\n",
"print \"Value of RiF = %0.2e ohm\"%RiF\n",
"print \"Value of RoF = %0.2e ohm\"%RoF\n",
"print \"Value of fF = %0.f kHz\"%(fF/1000)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Close loop voltage gain AF = 11.00 \n",
"Value of RiF = 1.82e+10 ohm\n",
"Value of RoF = 4.12e-03 ohm\n",
"Value of fF = 91 kHz\n"
]
}
],
"prompt_number": 5
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Exa 3.2 : page 98"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"from __future__ import division\n",
"# given data\n",
"AF=100 #unitless\n",
"A=2*10**5 #unitless\n",
"Ri=1 #in Mohm\n",
"Ro=75 #in ohm\n",
"#let R1 =1 ohm\n",
"R1=1 #in ohm\n",
"#formula : AF=1+RF/R1\n",
"RF=(AF-1)*R1 #in kohm\n",
"B=1/AF #unitless\n",
"RiF=(1+A*B)*Ri*10**6 #in ohm\n",
"RoF=Ro/(1+A*B) #in ohm\n",
"print \"Value of RF = %0.2f kohm\"%RF\n",
"print \"Value of RiF = %0.2e ohm\"%RiF\n",
"print \"Value of RoF = %0.2e ohm\"%RoF"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Value of RiF = 99.00 kohm\n",
"Value of RiF = 2.00e+09 ohm\n",
"Value of RoF = 3.75e-02 ohm\n"
]
}
],
"prompt_number": 7
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Exa 3.3 : page 99"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# given data\n",
"AF=1 #unitless\n",
"B=1 #unitless\n",
"A=2*10**5 #unitless\n",
"fo=5 #in Hz\n",
"Ri=1 #in Mohm\n",
"Ro=75 #in ohm\n",
"#let 1+AB=A as A>>>1\n",
"RiF=A*Ri*10**6 #in ohm\n",
"RoF=Ro/A #in ohm\n",
"fF=fo*A #in ohm\n",
"print \"Value of RiF = %0.2e ohm\"%RiF\n",
"print \"Value of RoF = %0.2e ohm\"%RoF\n",
"print \"Value of fF = %0.2f MHz\"%(fF/10**6)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Value of RiF = 2.00e+11 ohm\n",
"Value of RoF = 3.75e-04 ohm\n",
"Value of fF = 1.00 MHz\n"
]
}
],
"prompt_number": 8
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Exa 3.4 : page 103"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
" # given data\n",
"R1=50 #in Kohm\n",
"AF=-6 #unitless\n",
"# here AF=-RF/R1\n",
"RF=-AF*R1 #in kohm\n",
"print \"Value of RF = %0.f kohm\" %RF"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Value of RF = 300 kohm\n"
]
}
],
"prompt_number": 13
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Exa 3.5 : page 104"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"from __future__ import division\n",
"# given data\n",
"A=2*10**5 #unitless\n",
"Ri=1 #in Mohm\n",
"Ro=75 #in ohm\n",
"fo=5 #in Hz\n",
"R1=50 #in kohm\n",
"RF=300 #in kohm\n",
"K=RF/(R1+RF) #unitless\n",
"B=R1/(R1+RF) #unitless\n",
"AF=-(A*K/(1+A*B)) #unitless\n",
"RiF=R1 #in kohm ideal\n",
"RoF=Ro/(1+A*B) #in ohm\n",
"fF=-(A*K*fo/AF) #in Hz\n",
"print \"Close loop voltage gain AF = %0.2f\"%AF\n",
"print \"Value of RiF = %0.2f kohm\"%RiF\n",
"print \"Value of RoF = %0.2e ohm\"%RoF\n",
"print \"Value of fF = %0.f kHz\"%(fF/1000)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Close loop voltage gain AF = -6.00\n",
"Value of RiF = 50.00 kohm\n",
"Value of RoF = 2.62e-03 ohm\n",
"Value of fF = 143 kHz\n"
]
}
],
"prompt_number": 18
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Exa 3.6 : page 107"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# given data\n",
"# let R1=R2=R3=R=10kohm\n",
"R=10 #in kohm\n",
"R1=R #in kohm\n",
"R2=R #in kohm\n",
"R3=R #in kohm\n",
"RF=3*R #in Kohm\n",
"print \"Value of RF = %0.0f kohm\"%RF"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Value of RF = 30 kohm\n"
]
}
],
"prompt_number": 19
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Exa 3.7 : page 108"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
" # given data\n",
"RF=1 #in Mohm\n",
"AV=-30 #unitless\n",
"#AV=-RF/R1=Vo/V1\n",
"R1=-RF*10**6/AV #in ohm\n",
"#for an inverting amplifier RiF=R1\n",
"RiF=R1 #in ohm\n",
"print \"Value of R1 = %0.2f kohm\"%(R1/1000)\n",
"print \"Value of RiF = %0.2f kohm\"%(RiF/1000)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Value of R1 = 33.33 kohm\n",
"Value of RiF = 33.33 kohm\n"
]
}
],
"prompt_number": 20
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Exa 3.8 : page 108"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
" # given data\n",
"AV=-8 #unitless\n",
"Vin=-1 #in Volts\n",
"Imax=15 #in uA\n",
"Vo=AV*Vin #in Volts\n",
"#Formula : Vo=Imax*R2min\n",
"R2min=Vo/(Imax*10**-6) #in kohm\n",
"R1min=-Vin/(Imax*10**-6) #in kohm\n",
"print \"Required value of R2 = %0.2f kohm\"%(R2min/1000)\n",
"print \"Required value of R1 = %0.2f kohm\"%(R1min/1000)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Required value of R2 = 533.33 kohm\n",
"Required value of R1 = 66.67 kohm\n"
]
}
],
"prompt_number": 21
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Exa 3.9 : page 110"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
" # given data\n",
"Vo=1.5 #in Volts\n",
"Vin=10 #in mVolts\n",
"RiF=500 #in kohm\n",
"R1=500 #in kohm\n",
"AF=Vo/(Vin*10**-3) #unitless\n",
"RF=AF*R1 #in Kohm\n",
"print \"The value of RF = %0.2f Mohm\"%(RF/1000)\n",
"#AF=-R2/R1*(1+R3/R2+R3/R4)\n",
"#Microphone resistance is Rm=1.2 Kohm\n",
"R1eff=100 #in Kohm\n",
"Rm=1.2 #in Kohm\n",
"R1=R1eff-Rm\n",
"R3=5*R1 \n",
"R2=R3 #in Kohm\n",
"R4=R3/28 #in Kohm\n",
"print \"Value of R1 = %0.2f kohm\" %R1\n",
"print \"Value of R2 = %0.2f kohm\" %R2\n",
"print \"Value of R3 = %0.2f kohm\" %R3\n",
"print \"Value of R4 = %0.2f kohm\" %R4"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The value of RF = 75.00 Mohm\n",
"Value of R1 = 98.80 kohm\n",
"Value of R2 = 494.00 kohm\n",
"Value of R3 = 494.00 kohm\n",
"Value of R4 = 17.64 kohm\n"
]
}
],
"prompt_number": 22
}
],
"metadata": {}
}
]
}
|