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
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 8: Operational Amplifier"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 8.3, Page 148"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Gain = 50\n"
]
}
],
"source": [
"#Initialisation\n",
"f=20*10**3 #bandwidth frequency in KHz\n",
"\n",
"#Calculation\n",
"gain=(10**6)/(f) #gain\n",
"\n",
"#Result\n",
"print'Gain = %d'%gain"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 8.4, Page 150"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false,
"scrolled": true
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Output Resistance = 7.5 mOhm\n",
"\n",
"Input Resistance = 20 GOhm\n"
]
}
],
"source": [
"#Initialisation\n",
"og=2*10**5 #Open Loop Gain\n",
"cg=20 #Closed Loop Gain\n",
"or1=75 #Output Resistance\n",
"ir1=2*10**6 #Input Resistance\n",
"\n",
"#Calculation\n",
"ab=og*cg**-1 #factor (1+AB)\n",
"or2=or1/ab #Output Resistance\n",
"ir2=ir1*ab #Input Resistance\n",
"\n",
"#Result\n",
"print'Output Resistance = %.1f mOhm\\n'%(or2*1000)\n",
"print'Input Resistance = %d GOhm'%(ir2*10**-9)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 8.5, Page 150"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Output Resistance = 7.5 mOhm\n",
"\n",
"Input Resistance = 1 KOhm\n"
]
}
],
"source": [
"#Initialisation\n",
"og=2*10**5 #Open Loop Gain\n",
"cg=20 #Closed Loop Gain\n",
"or1=75 #Output Resistance\n",
"ir1=2*10**6 #Input Resistance\n",
"r1=20*10**3 #Resistnce in Ohm\n",
"r2=10**3 #Resistnce in Ohm\n",
"\n",
"#Calculation\n",
"ab=og*cg**-1 #factor (1+AB)\n",
"or2=or1*ab**-1 #Output Resistance\n",
"#the input is connected to a virtual earth point by the resistance R2, \n",
"#so the input resistance is equal to R 2 ,\n",
"ir2=r2 #Input Resistance\n",
"\n",
"#Result\n",
"print'Output Resistance = %.1f mOhm\\n'%(or2*1000)\n",
"print'Input Resistance = %d KOhm'%(ir2*10**-3)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 8.6, Page 151"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Output Resistance = 375 uOhm\n",
"\n",
"Input Resistance = 400 GOhm\n"
]
}
],
"source": [
"#Initialisation\n",
"og=2*10**5 #Open Loop Gain\n",
"cg=1 #Closed Loop Gain\n",
"or1=75 #Output Resistance\n",
"ir1=2*10**6 #Input Resistance\n",
"\n",
"#Calculation\n",
"ab=og*cg**-1 #factor (1+AB)\n",
"or2=or1*ab**-1 #Output Resistance\n",
"ir2=ir1*ab #Input Resistance\n",
"\n",
"#Result\n",
"print'Output Resistance = %d uOhm\\n'%(or2*10**6) #wrong answer in the textbook\n",
"print'Input Resistance = %d GOhm'%(ir2*10**-9)"
]
}
],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 0
}
|