summaryrefslogtreecommitdiff
path: root/Operational_Amplifiers_and_Linear_Integrated_Circuit/C4_1.ipynb
blob: 7fb262ec069b4bef61f9c97e2f1a61c833b20ce1 (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
{
 "metadata": {
  "name": ""
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 4: Comparators and Controls"
     ]
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 4.1 Page No 88"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given\n",
      "Vsat = 14.0         #Saturation Voltage\n",
      "R1 = 1000.0 \n",
      "R2 = 100.0            #Load resistances\n",
      "\n",
      "#Calculation\n",
      "Vut = (R2/(R1*R2))*Vsat\n",
      "\n",
      "#Result\n",
      "print\" Value of Upper Threshold Voltage =  \",Vut*1000,\"mV\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " Value of Upper Threshold Voltage =   14.0 mV\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 4.2 Page No 88"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given\n",
      "Vsat = -13.0        #Saturation Voltage\n",
      "R1 = 1000.0\n",
      "R2 = 100.0          #Load resistances\n",
      "\n",
      "#Calculation\n",
      "Vlt = (R2/(R1*R2))*Vsat\n",
      "\n",
      "#Result\n",
      "print\" Value of Lower Threshold Voltage = \",Vlt*1000,\"mV\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " Value of Lower Threshold Voltage =  -13.0 mV\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 4.4 Page No 94"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given\n",
      "Vut = 12.0\n",
      "Vlt = 8.0            #Upper and Lower Threshold Voltages \n",
      "Vsatp = 15.0\n",
      "Vsatm = -15.0        # Saturation Voltages\n",
      "R = 10*10**3         #Choosing R\n",
      "\n",
      "#Calculation\n",
      "Vh = Vut - Vlt          # Hysteresis Voltage \n",
      "Vctr = (Vut + Vlt)/2.0  #Center Voltage\n",
      "n = (Vsatp - Vsatm)/Vh  # Resistor Factor\n",
      "Vref = Vctr / (1 + (1/n)) #Reference Voltage\n",
      "Resistance = n * R\n",
      "\n",
      "#Result\n",
      "print\" Center Voltage = \", Vctr ,\"V\"\n",
      "print\" Resistor Factor =  \" , n \n",
      "print\" Reference Voltage =  \", round(Vref,2)\n",
      "print\" Feedback resistor is \", Resistance"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " Center Voltage =  10.0 V\n",
        " Resistor Factor =   7.5\n",
        " Reference Voltage =   8.82\n",
        " Feedback resistor is  75000.0\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 4.5 Page No 95"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given\n",
      "Vsatp = 15.0\n",
      "Vsatm = -15.0     # Saturation Voltages\n",
      "Vh = 4.0          #Hysteresis Voltage\n",
      "Vctr = 10.0       #Center voltage\n",
      "\n",
      "#Calculation\n",
      "n = ((Vsatp - Vsatm)/Vh)-1 \n",
      "R = 10*10**3    #Input Resistance\n",
      "Vref = ((n + 1)*(Vctr))/n  # Reference Voltage\n",
      "Resistance = n * R # Feedback Resistance\n",
      "\n",
      "#Result\n",
      "print\"  Resistance Factor = \", n\n",
      "print\"  Reference Voltage = \", round(Vref,2),\"V\"\n",
      "print\"  Feedback Resistance = \", Resistance/1000,\"kohm\"\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "  Resistance Factor =  6.5\n",
        "  Reference Voltage =  11.54 V\n",
        "  Feedback Resistance =  65.0 kohm\n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 4.6 Page No 98"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given\n",
      "Vut = 13.5\n",
      "Vlt = 10.5      #Upper and Lower Threshold Voltages\n",
      "Vref = -15      # Reference Voltage\n",
      "Vsatp = 13.0\n",
      "Vsatm = -13.0   #Saturation Voltages \n",
      "R = 10*10**3    # Input Resistance\n",
      "\n",
      "#Calculation\n",
      "Vctr = (Vut + Vlt)/2.0\n",
      "Vh = Vut - Vlt \n",
      "m = -(Vref / Vctr)\n",
      "Resistance = m * R \n",
      "n = (Vsatp-Vsatm)/Vh \n",
      "Resistance1 = n * R \n",
      "\n",
      "#Result\n",
      "print\"  Hysteresis Voltage = \", Vh \n",
      "print\"  Center Voltage =  \", Vctr \n",
      "print\"  Resistor mR = \", Resistance/1000,\"kohm\"\n",
      "print\"  Resistor nR = \", round(Resistance1/1000,2),\"kohm\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "  Hysteresis Voltage =  3.0\n",
        "  Center Voltage =   12.0\n",
        "  Resistor mR =  12.5 kohm\n",
        "  Resistor nR =  86.67 kohm\n"
       ]
      }
     ],
     "prompt_number": 6
    }
   ],
   "metadata": {}
  }
 ]
}