summaryrefslogtreecommitdiff
path: root/Fiber_Optics_Communication_by_H._Kolimbiris/chapter13.ipynb
blob: db346d8476120f25a806b8d7557dc1155e91cc48 (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
{
 "metadata": {
  "celltoolbar": "Raw Cell Format",
  "name": "",
  "signature": "sha256:ed1a25d96a9de635d5aa1c88be7d5d2e542d32bc8dd1dcaa2a4c1e4169428cb8"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 13: Networks"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.1,Page number 568"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#given\n",
      "\n",
      "Vcc=5;              #in V\n",
      "Vf=1.5;             #in V\n",
      "If=60;              #in mA\n",
      "B=3.97;\n",
      "N=3;\n",
      "R9=(Vcc-Vf)*(B+1)/If/10**-3;\n",
      "print\"R9 =\",round(R9,4),\"ohm\";\n",
      "R7=R9/2/B-3/N;\n",
      "print\"R7 =\",round(R7,4),\"ohm\";\n",
      "R8=R9/2/B;\n",
      "print\"R8 =\",round(R8,4),\"ohm\";\n",
      "C4=2*10**-9/R8;\n",
      "print\"C4 =\",round(C4*10**12,4),\"pF\";\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "R9 = 289.9167 ohm\n",
        "R7 = 35.5134 ohm\n",
        "R8 = 36.5134 ohm\n",
        "C4 = 54.7744 pF\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.2,Page number 569"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#given\n",
      "\n",
      "Vu3=1.24;           #in V\n",
      "Vbeq3=0.7;          #in V\n",
      "Vbeq4=0.7;          #in V\n",
      "R5=17.5;            #in Ohm\n",
      "R6=17.5;            #in Ohm\n",
      "Voh=5;              #in V\n",
      "Vol=0;              #in V\n",
      "\n",
      "If=(Vu3-Vbeq3)/R5+(Vu3-Vbeq4)/R6;\n",
      "print\"If=\",round(If*1000,4),\"mA\";\n",
      "\n",
      "R3=(Voh-Vol)/If;\n",
      "print\"R3=\",round(R3,4),\"ohm\";\n",
      "\n",
      "C4=2*10**-9/R3;\n",
      "print\"C4=\",round(C4*10**12,4),\"pF\";\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "If= 61.7143 mA\n",
        "R3= 81.0185 ohm\n",
        "C4= 24.6857 pF\n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.2,Page number 581"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "##\"Page number 581 again  Example 13-2 (numbering mistake)\";\n",
      "import math\n",
      "\n",
      "#given\n",
      "\n",
      "Er=4.9;\n",
      "h=5;                 #in mils\n",
      "w=10;                #in mils\n",
      "t=0.5;               #in mils\n",
      "\n",
      "Z=60.0/math.sqrt(0.475*Er+0.67)*log(4*h/0.67/(0.8*w+t));\n",
      "print\"Z =\",round(Z,4),\"ohm\";\n",
      "\n",
      "tpd=1.017*sqrt(0.475*Er+0.67);\n",
      "print\"tpd =\",round(tpd,4),\"ns/ft\";\n",
      "\n",
      "Tpd=tpd*1000/12;           #converted into ps/in\n",
      "print\"tpd =\",round(Tpd,4),\"ps/in\";\n",
      "\n",
      "Co=Tpd/Z;\n",
      "print\"Co =\",round(Co,4),\"pF/in\";\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Page number 581 again  Example 13-2 (numbering mistake)\n",
        "Z = 43.5322 ohm\n",
        "tpd = 1.7608 ns/ft\n",
        "tpd = 146.7301 ps/in\n",
        "Co = 3.3706 pF/in\n"
       ]
      }
     ],
     "prompt_number": 7
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.3,Page number 583"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#given\n",
      "\n",
      "Er=4.7;\n",
      "b=10;                #in mils\n",
      "w=4;                 #in mils\n",
      "t=0.5;               #in mils\n",
      "\n",
      "Z=60/math.sqrt(Er)*log(4*b/0.67/math.pi/(0.8*w+t));\n",
      "print\" Z =\",round(Z,4),\"ohm\";\n",
      "\n",
      "tpd=1.017*sqrt(Er);\n",
      "print\" tpd =\",round(tpd,4),\"ns/ft\";\n",
      "\n",
      "Tpd=tpd*1000/12;           #converted into ps/in\n",
      "print\" Also,tpd =\",round(Tpd,4),\"ps/in\";\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " Z = 45.286 ohm\n",
        " tpd = 2.2048 ns/ft\n",
        " Also,tpd = 183.7336 ps/in\n"
       ]
      }
     ],
     "prompt_number": 10
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    }
   ],
   "metadata": {}
  }
 ]
}