summaryrefslogtreecommitdiff
path: root/Fundamental_of_Electronics_Devices/Ch5.ipynb
blob: bcf84c6ba34665c8b5f5f3156b68a1f21371def2 (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
{
 "metadata": {
  "name": "El5"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 5: Junction Properties (Continued)"
     ]
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 5.1 Page No 191"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "import math\n",
      "ND=10**17           #in atoms/cm**3\n",
      "NA=0.5*10**16       #in atoms/cm**3\n",
      "Vo=0.7              #in Volts\n",
      "V=-10.0               #in Volts\n",
      "ND=ND*10**6         #in atoms/m**3\n",
      "NA=NA*10**6         #in atoms/m**3\n",
      "epsilon=8.85*10**-11  #in F/m\n",
      "e=1.6*10**-19         #coulamb\n",
      "\n",
      "VB=0.7               #in Volts\n",
      "W1=math.sqrt(2*epsilon*VB*(1/NA+1/ND)/e)         #in m\n",
      "\n",
      "VB=Vo-V              #in Volts\n",
      "W2=math.sqrt(2*epsilon*VB*(1/NA+1/ND)/e)    #in m\n",
      "\n",
      "print \"When no external voltage is applied, Junction width is \",round(W1,8),\"m\"\n",
      "print\"When external voltage of -10 Volt is applied, Junction width is \",round(W2,7),\"m\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "When no external voltage is applied, Junction width is  3.9e-07 m\n",
        "When external voltage of -10 Volt is applied, Junction width is  1.5e-06 m\n"
       ]
      }
     ],
     "prompt_number": 11
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 5.3 Page No 195"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "CTzero=50            #in pF\n",
      "VR=8                 #in Volt\n",
      "VK=0.7               #in Volt\n",
      "n=1/3.0                #for Si\n",
      "\n",
      "CT=CTzero/((1+VR/VK)**n)   #in pF\n",
      "\n",
      "print\"Junction capacitance is\",round(CT,2),\"pF\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Junction capacitance is 21.59 pF\n"
       ]
      }
     ],
     "prompt_number": 17
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 5.4 Page No.196"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "L=12.5*10**-3          #mH inductance\n",
      "C1=4.0                 #pF Capacitance\n",
      "C2=40.0                #pF Capacitance\n",
      "\n",
      "Ctmin=(C1*C1)/(C1+C1)     #Min value of total Capacitance\n",
      "Ctmax=(C2*C2)/(C2+C2)     #Max value of total Capacitance\n",
      "Fmax=1/(2*math.pi*math.sqrt(L*Ctmin*10**-12))\n",
      "Fmin=1/(2*math.pi*math.sqrt(L*Ctmax*10**-12))\n",
      "\n",
      "print\"The tuning range of circuit lies between\",round(Fmin/1000,2),\"khz and\",round(Fmax/1000,0),\"Mhz\"\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The tuning range of circuit lies between 318.31 khz and 1007.0 Mhz\n"
       ]
      }
     ],
     "prompt_number": 22
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    }
   ],
   "metadata": {}
  }
 ]
}