summaryrefslogtreecommitdiff
path: root/Grob's_Basic_Electronics_by_M._E._Schultz/Chapter28.ipynb
blob: 67d92401630ea50bc756e5d72a5f877cf1e72de2 (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
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Chapter 28 : Bipolar Junction Transistors"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example No. 28_1 Page No.  910"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The Emitter Current Ie = 5.00 Amps\n"
     ]
    }
   ],
   "source": [
    "# A transistor has the following currents: Ib is\u0002 20 mA and Ic is 4.98 A. Calculate Ie.\n",
    "\n",
    "# Given data\n",
    "\n",
    "Ib = 20*10**-3#      # Base current=20 mAmps\n",
    "Ic = 4.98#          # Collector current=4.98 Amps\n",
    "\n",
    "Ie = Ic+Ib#\n",
    "print 'The Emitter Current Ie = %0.2f Amps'%Ie"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example No. 28_2 Page No.  912"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The Collector Current Ic = 0.09804 Amps\n",
      "i.e 98.04 mAmps\n"
     ]
    }
   ],
   "source": [
    "# A transistor has the following currents: Ie is\u0002 100 mA, Ib is\u0002 1.96 mA. Calculate Ic.\n",
    "\n",
    "# Given data\n",
    "\n",
    "Ie = 100.0*10**-3#      # Emitter current=100 mAmps\n",
    "Ib = 1.96*10**-3#     # Base current=4.98 Amps\n",
    "\n",
    "Ic = Ie-Ib#\n",
    "print 'The Collector Current Ic = %0.5f Amps'%Ic\n",
    "print 'i.e 98.04 mAmps'"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example No. 28_3 Page No.  913"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The Base Current Ib = 0.0010 Amps\n",
      "i.e 1 mAmps\n"
     ]
    }
   ],
   "source": [
    "# A transistor has the following currents: Ie is\u0002 50 mA, Ic is\u0002 49 mA. Calculate Ib.\n",
    "\n",
    "# Given data\n",
    "\n",
    "Ie = 50.0*10**-3#      # Emitter current=50 mAmps\n",
    "Ic = 49.0*10**-3#      # Collector current=20 mAmps\n",
    "\n",
    "Ib = Ie-Ic#\n",
    "print 'The Base Current Ib = %0.4f Amps'%Ib\n",
    "print 'i.e 1 mAmps'"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example No. 28_4 Page No.  914"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The Value of Alpha(dc) = 0.9960\n"
     ]
    }
   ],
   "source": [
    "# A transistor has the following currents: Ie is\u0002 15 mA, Ib is\u0002 60 u\u0004A. Calculate \u0002Alpha(dc).\n",
    "\n",
    "# Given data\n",
    "\n",
    "Ie = 15.*10**-3#      # Emitter current=15 mAmps\n",
    "Ib = 60.*10**-6#      # Base current=60 uAmps\n",
    "\n",
    "Ic = Ie-Ib#\n",
    "\n",
    "Adc = Ic/Ie#\n",
    "print 'The Value of Alpha(dc) = %0.4f'%Adc"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example No. 28_5 Page No.  916"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The Value of Beta(dc) = 200\n"
     ]
    }
   ],
   "source": [
    "# A transistor has the following currents: Ic is\u0002 10 mA and Ib is 50 uA. Calculate Beta(dc).\n",
    "\n",
    "# Given data\n",
    "\n",
    "Ic = 10.*10**-3#      # Collector current=10 mAmps\n",
    "Ib = 50.*10**-6#      # Base current=50 uAmps\n",
    "\n",
    "Bdc = Ic/Ib#\n",
    "print 'The Value of Beta(dc) = %0.f'%Bdc"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example No. 28_6 Page No.  918"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The Collector Current Ic = 0.01125 Amps\n",
      "i.e 11.25 mAmps\n"
     ]
    }
   ],
   "source": [
    "# A transistor has Beta(dc) of 150 and Ib of 75 uAmps. Calculate Ic.\n",
    "\n",
    "# Given data\n",
    "\n",
    "Bdc = 150.#          # Beta(dc)=150\n",
    "Ib = 75.*10**-6#      # Base current=75 uAmps\n",
    "\n",
    "Ic = Bdc*Ib#\n",
    "print 'The Collector Current Ic = %0.5f Amps'%Ic\n",
    "print 'i.e 11.25 mAmps'"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example No. 28_7 Page No.  920"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The Value of Alpha(dc) = 0.9901\n"
     ]
    }
   ],
   "source": [
    "# A transistor has Beta(dc) of 100. Calculate Alpha(dc).\n",
    "\n",
    "# Given data\n",
    "\n",
    "Bdc = 100.0#  # Beta(dc)=100\n",
    "\n",
    "Adc = Bdc/(1+Bdc)#\n",
    "print 'The Value of Alpha(dc) = %0.4f'%Adc"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example No. 28_8 Page No.  922"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The Value of Beta(dc) =199.00\n"
     ]
    }
   ],
   "source": [
    "# A transistor has Alpha(dc) of 0.995. Calculate Beta(dc).\n",
    "\n",
    "# Given data\n",
    "\n",
    "Adc = 0.995#  # Alpha(dc)=100\n",
    "\n",
    "Bdc = Adc/(1-Adc)#\n",
    "print 'The Value of Beta(dc) =%0.2f'%Bdc"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example No. 28_9 Page No.  922"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The Power Dissipation = 0.05 Watts\n",
      "i.e 50 mWatts\n"
     ]
    }
   ],
   "source": [
    "# Calculate Pd if Vcc is 10 V and Ib is 50 uAmps. Assume Beta(dc) is 100.\n",
    "\n",
    "# Given data\n",
    "\n",
    "Bdc = 100.#          # Beta(dc)=100\n",
    "Ib = 50.*10**-6#      # Base current=50 uAmps\n",
    "Vcc = 10.#           # Supply voltage=10 Volts\n",
    "\n",
    "Vce = Vcc\n",
    "\n",
    "Ic = Bdc*Ib#\n",
    "\n",
    "Pd = Vce*Ic#\n",
    "print 'The Power Dissipation = %0.2f Watts'%Pd\n",
    "print 'i.e 50 mWatts'"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example No. 28_10 Page No.  922"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The Maximum Allowable Collector Current Ic(max) = 0.025 Amps\n",
      "i.e 25 mAmps\n"
     ]
    }
   ],
   "source": [
    "# The transistor has a power rating of 0.5 W. If Vce is\u0002 20 V, calculate the maximum allowable collector current, Ic, that can exist without exceeding the transistor’s power rating.\n",
    "\n",
    "# Given data\n",
    "\n",
    "Pdmax = 0.5#        # Power dissipation(max)=0.5 Watts\n",
    "Vce = 20.#           # Voltage (collector to emitter)=20 Volts\n",
    "\n",
    "Ic = Pdmax/Vce#\n",
    "print 'The Maximum Allowable Collector Current Ic(max) = %0.3f Amps'%Ic\n",
    "print 'i.e 25 mAmps'"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example No. 28_11 Page No.  923"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The Power Rating at 50°C = 0.28 Watts\n",
      "i.e 280 mWatts\n"
     ]
    }
   ],
   "source": [
    "# Assume that a transistor has a power rating Pd(max) of 350 mW at an ambient temperature Ta of 25°C. The derating factor is 2.8 mW/°C. Calculate the power rating at 50°C.\n",
    "\n",
    "# Given data\n",
    "\n",
    "f = 2.8*10**-3#      # Derating factor=2.8 mW/°C\n",
    "Pd = 350.*10**-3#     # Power dissipation(max)=350 mWatts\n",
    "Ta = 25.#            # Ambient Temperature=25°C\n",
    "Tp = 50.#            # Power rating at 50°C\n",
    "\n",
    "delT = Tp-Ta#       # Difference between max and min temp\n",
    "\n",
    "delPd = delT*f#\n",
    "\n",
    "Prat = Pd-delPd#\n",
    "print 'The Power Rating at 50°C = %0.2f Watts'%Prat\n",
    "print 'i.e 280 mWatts'"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example No. 28_12 Page No.  923"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The Base Current = 0.0000 Amps.\n",
      "Approx 28.97 mAmps\n",
      "The Collector Current = 0.0043 Amps\n",
      "Approx 4.35 mAmps\n",
      "The Voltage Collector-Emitter = 5.48 Volts\n",
      "Q(5.480769,0.004346)\n",
      "\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZEAAAEZCAYAAABWwhjiAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xu8XFV99/HP14SoyCXgLYRbEKIFVBpaQ4wXjkjtIWpS\nrQopPpSLclpEaxsjYtpyHi8gWhWQl0BaUFAhKF4anwaREkahaCAh3EICRAgkQUMLBCjXhPyeP/aa\nMBnOmbPPnNlnbt/36zWvM3vPWnvWnjOz13z32nuPIgIzM7N6vKTZDTAzs/blTsTMzOrmTsTMzOrm\nTsTMzOrmTsTMzOrmTsTMzOrmTsSQtEXS6wZ5rEfS2orpOyS9s4A2vFzSzyVtlHR5o5ffqiSdKulf\nR/k5vyvpi6P5nHlJeoekVc1ux0CKbJukJyRNKmLZRXMn0iCS1kh6StLjkh6V9F+S+iSpqtxUSYtS\nmYclLZF07CDLPFbSdaOyAjlFxBsj4tcFLPpDwGuAXSPiyJEuLHV+W9KH8wlJ6yT1j7iVw29HSdLT\nqQ0bJf1K0hvLj0fEGRHx8VFuVqTbNiR9vuL1elrS5orp20elYRHXRcQfDVVOUr+k7zX6+Wt9PvO2\nrR4RsWNErEltaNlOfiDuRBongPdFxE7AXsBXgFOAC8sFJL0VuAa4Ftg3Il4J/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HSyS9GngncGNVvceBHet4PrO6uBMxe7HLgDelvwBExFVkKWWppOXAnPTQ\n0cAJkm4B7iAbN6lW/Qt4g91/YWbEnWSX5F5X/jnWiPgp2WXWbwWuAeZGxENVy7kWOMAD6zZafCl4\nMzOrm5OImZnVzZ2ImZnVzZ2ImZnVzZ2ImZnVzZ2ImZnVzZ2ImZnVzZ2ImZnVzZ2ImZnV7f8DMUGG\nzx/dnGUAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7fbd5f1197d0>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "%matplotlib inline\n",
    "from matplotlib.pyplot import plot,xlabel,ylabel,show,title\n",
    "# Solve for Ib, Ic, Vce. Also, Construct a dc load line showing the valuse of Ic(sat), Vce(off), Icq, Vceq.\n",
    "\n",
    "# Given data\n",
    "Vcc = 12.#               # Supply voltage=12 Volts\n",
    "Vbe = 0.7#              # Base-Emitter Voltage=0.7 Volts\n",
    "Rb = 390.*10**3#          # Base Resistor=390K Ohms\n",
    "Rc = 1.5*10**3#          # Collector Resistor=1.5K Ohms\n",
    "B = 150.#                # Beta(dc)=150\n",
    "\n",
    "Ib = (Vcc-Vbe)/Rb#\n",
    "print 'The Base Current = %0.4f Amps.'%Ib\n",
    "print 'Approx 28.97 mAmps'\n",
    "\n",
    "Icq = B*Ib#\n",
    "print 'The Collector Current = %0.4f Amps'%Icq\n",
    "print 'Approx 4.35 mAmps'\n",
    "\n",
    "Vceq = Vcc-(Icq*Rc)#\n",
    "print  'The Voltage Collector-Emitter = %0.2f Volts'%Vceq\n",
    "\n",
    "# For DC load line\n",
    "\n",
    "Icsat = (Vcc/Rc)#\n",
    "Vceoff = Vcc#\n",
    "\n",
    "Vce1=[Vceoff, Vceq ,0]\n",
    "Ic1=[0 ,Icq ,Icsat]\n",
    "\n",
    "#To plot DC load line\n",
    "\n",
    "print \"Q(%f,%f)\\n\"%(Vceq,Icq)\n",
    "plot(Vce1, Ic1)\n",
    "plot(Vceq,Icq)\n",
    "plot(0,Icq)\n",
    "plot(Vceq,0)\n",
    "plot(0,Icsat)\n",
    "plot(Vceoff,0)\n",
    "xlabel(\"Vce in volt\")\n",
    "ylabel(\"Ic in Ampere\")\n",
    "title(\"DC Load-line for Base-Biased Transistor Circuit\")\n",
    "show()      "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example No. 28_13 Page No.  924"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The Base Voltage = 2.61 Volts\n",
      "The Emmiter Voltage = 1.91 Volts\n",
      "The Collector Voltage = 10.65 Volts\n",
      "Approx 10.65 Volts\n",
      "The Collector-Emitter Voltage = 8.74 Volts\n",
      "Approx 8.74 Volts\n",
      "The Current Ic(sat) = 0.01 Amps\n",
      "i.e 9.52 mAmps\n",
      "The Voltage Vce(off) = 18.00 Volts\n",
      "Q(8.737067,0.004901)\n",
      "\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZEAAAEZCAYAAABWwhjiAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XecVOXd9/HPj2aJgIDEAhjE4I00WcUFjOKqkAeIgua2\nYTQxmmBDjXpb7+c2xESxxIaKYi+JYCWB+4EolhUCEYVQBQxoiIDG3kFpv+eP61oYhi2zszt7Zme/\n79drXrtnTvudmTPnOlc95u6IiIhko1HSAYiISP2lRERERLKmRERERLKmRERERLKmRERERLKmRERE\nRLKmRCRPmNlmM+tUwbwSM1uVMr3YzPrnIIadzGyymX1mZk/U9varGcvDZvbbJGOojky/EzP7iZk9\nV8n8UjM7s3ajq3BfV5rZfXWxr5R95u33amaHmdmypOMoTy5jM7MvzaxjtusXVCJiZivNbK2ZfWFm\nn5rZTDM7y8wsbbliM5sSl/nYzGab2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ERERyZoSERERyZoSERERyZoSERERyZoSEZHIzF4ysx+m\nvfcrMxtbw+0eU53HEmQTh5mtjEPDtzSzc2oSr0h1KBER2Wo82w/zfhJQo7Gf3H2yu1fnWRHZxFHW\n4asVcG419iVSI0pERLZ6BvhRHPK9bMTlvdz9r3H6cjNbaGbzzWx0fG9fM5tqZnPMbLqZ/Uf6Rs3s\ndDO7I/7/sJndbmYzzewtM/vP6sRhZsNjDIvM7Pr0XREeH71vfKhQnT7kSBqmnD1jXaS+cfdPzOw1\nwsCBkwi5gScAzGww4fkdxe7+TcpTBO8FznL3FWbWBxgLHJW+6bTpPdz9B/HBZJMIiUaVcZjZXoRE\n4kDgM+B5Mxvm7n9O2c/lhAdCFdXowxDJkHIiIttKLUo6KU5DSBge9DigoLt/Fof27wc8ZWbzgHuA\nParYvhMHSnT3pVT8DJDy4jgYKPUwovAm4I9A/7T18mGIc2lAlBMR2dYk4FYzKwJ29vDMlTLpF+hG\nhIdUVfeuf30l26wwjvh411RGnj1DRBoe5UREUnh4WNjLhOdPp1ZkTwN+bmY7AZhZK3f/AvinmR0f\n3zMz61nOZqudO6ggjteBw82sjZmVPev9lbRVvwSaV3d/ItlSIiKyvfFAD7YWZeHuzxFyB3Ni0dUl\ncdZPgDPNbD6wmFBvki79qYMV/V9pHO7+HuFJjy8Thuqe4+6TU7fj4XkUM2PFuyrWJec0FLyIiGRN\nOREREcmaEhEREcmaEhEREcmaEhEREcmaEhEREcmaEhEREcmaEhEREcmaEhEREcna/wfism0Qo6RR\nxAAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7fbd5f078490>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "%matplotlib inline\n",
    "from matplotlib.pyplot import plot,xlabel,ylabel,show,title\n",
    "\n",
    "# Solve for Vb, Ve, Ic, Vc, and Vce. Also, calculate Ic(sat) and Vce(off). Finally, construct a dc load line showing the values of Ic(sat), Vce(off), Icq, and Vceq.\n",
    "\n",
    "# Given data\n",
    "\n",
    "R1 = 33.*10**3#       # Resistor 1=33 kOhms\n",
    "R2 = 5.6*10**3#      # Resistor 2=5.6 kOhms\n",
    "Rc = 1.5*10**3#      # Collector resistance=1.5 kOhms\n",
    "Re = 390.#           # Emitter resistance=390 Ohms\n",
    "Bdc = 200.#          # Beta(dc)= 200\n",
    "Vcc = 18.#           # Supply voltage = 18 Volts\n",
    "Vbe = 0.7#          # Base-Emmiter Voltage=0.7 Volts\n",
    "\n",
    "Vb = Vcc*(R2/(R1+R2))#\n",
    "print 'The Base Voltage = %0.2f Volts'%Vb\n",
    "\n",
    "Ve = Vb-Vbe#\n",
    "print 'The Emmiter Voltage = %0.2f Volts'%Ve\n",
    "\n",
    "Ie = Ve/Re#         # Emitter current\n",
    "\n",
    "Ic = Ie#\n",
    "\n",
    "Vc = Vcc-(Ic*Rc)#\n",
    "print 'The Collector Voltage = %0.2f Volts'%Vc\n",
    "print 'Approx 10.65 Volts'\n",
    "\n",
    "Vce = Vcc-(Ic*(Rc+Re))#\n",
    "print 'The Collector-Emitter Voltage = %0.2f Volts'%Vce\n",
    "print 'Approx 8.74 Volts'\n",
    "\n",
    "Icsat = Vcc/(Rc+Re)#\n",
    "print 'The Current Ic(sat) = %0.2f Amps'%Icsat\n",
    "print 'i.e 9.52 mAmps'\n",
    "\n",
    "Vceoff = Vcc#\n",
    "print 'The Voltage Vce(off) = %0.2f Volts'%Vceoff\n",
    "\n",
    "Icq = Ic\n",
    "Vceq = Vce\n",
    "\n",
    "Vce1=[Vcc, Vceq, 0]\n",
    "Ic1=[0, Icq, Icsat]\n",
    "\n",
    "#To plot DC load line\n",
    "\n",
    "print \"Q(%f,%f)\\n\"%(Vceq,Icq)\n",
    "plot(Vce1, Ic1)\n",
    "plot(Vceq,Icq)\n",
    "plot(0,Icq)\n",
    "plot(Vceq,0)\n",
    "plot(0,Icsat)\n",
    "plot(Vceoff,0)\n",
    "xlabel(\"Vce in Volt\")\n",
    "ylabel(\"Ic in mAmps\")\n",
    "title(\"DC Load-line for Voltage Divider-Biased Transistor Circuit\")\n",
    "show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example No. 28_14 Page No.  925"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The Base Voltage = -1.90 Volts\n",
      "Approx -1.9 Volts\n",
      "The Emitter Voltage = -1.20 Volts\n",
      "Approx -1.2 Volts\n",
      "The Collector Current = 0.00 Amps\n",
      "Approx 2.4 mAmps\n",
      "The Collector Voltage = -7.21 Volts\n",
      "The Collector-Emitter Voltage = -6.01 Volts\n"
     ]
    }
   ],
   "source": [
    "# For the pnp transistor, solve for Vb, Ve, Ic, Vc, and Vce.\n",
    "\n",
    "# Given data\n",
    "\n",
    "R1 = 33.*10**3#     # Resistor1=33 kOhms\n",
    "R2 = 6.2*10**3#    # Resistor2=6.2 kOhms\n",
    "Rc = 2.*10**3#      # Collector resistance=2 kOhms\n",
    "Re = 500.#         # Emitter resistance=500 Ohms\n",
    "Vcc = 12.#         # Supply voltage=12 Volts\n",
    "Vbe = 0.7#        # Base-Emmiter Voltage=0.7 Volts\n",
    "\n",
    "\n",
    "Vb = -Vcc*(R2/(R1+R2))#\n",
    "print 'The Base Voltage = %0.2f Volts'%Vb\n",
    "print 'Approx -1.9 Volts'\n",
    "\n",
    "Ve = Vb-(-Vbe)#\n",
    "print 'The Emitter Voltage = %0.2f Volts'%Ve\n",
    "print 'Approx -1.2 Volts'\n",
    "\n",
    "Ic = -(Ve/Re)#     # Ic =~ Ie\n",
    "print 'The Collector Current = %0.2f Amps'%Ic\n",
    "print 'Approx 2.4 mAmps'\n",
    "\n",
    "Vc = -Vcc+(Ic*Rc)\n",
    "print 'The Collector Voltage = %0.2f Volts'%Vc\n",
    "\n",
    "Vce = -Vcc+(Ic*(Rc+Re))#\n",
    "print 'The Collector-Emitter Voltage = %0.2f Volts'%Vce"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example No. 28_15 Page No. 926"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The Emitter current = 0.0053 Amps\n",
      "i.e 5.3 mAmps\n",
      "The Collector voltage = 7.05 Volts\n"
     ]
    }
   ],
   "source": [
    "# Calculate Ie and Vc\n",
    "\n",
    "# Given data\n",
    "\n",
    "Vee = 6.#        # Supply voltage at emitter=6 Volts\n",
    "Vcc = 15.#       # Supply voltage at collector=15 Volts\n",
    "Vbe = 0.7#      # Base-Emmiter Voltage=0.7 Volts\n",
    "Rc = 1.5*10**3#  # Collector resistance=1.5 kOhms\n",
    "Re = 1.*10**3#    # Emitter resistance=1 kOhms\n",
    "\n",
    "Ie = (Vee-Vbe)/Re#\n",
    "print 'The Emitter current = %0.4f Amps'%Ie\n",
    "print 'i.e 5.3 mAmps'\n",
    "\n",
    "Ic = Ie#        # Ic =~ Ie\n",
    "\n",
    "Vc = Vcc-Ic*Rc#\n",
    "print 'The Collector voltage = %0.2f Volts'%Vc"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}