{ "metadata": { "name": "", "signature": "sha256:b362c52f164e2dcc4e9af094f8a2039b967109e994d996b6b087ee44d2f4c320" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Chapter 05 - MOSFETs" ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example E01 - Pg 214" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Exa 5.1 - 214\n", "import math \n", "# Given data\n", "V_TN = 0.7;# in V\n", "W = 45.*10.**-4.;# in cm\n", "#L = 4.;# in um\n", "L = 4. * 10.**-4.;# in cm\n", "#t_ox = 450.;# in A\n", "t_ox = 450.*10.**-8.;# in cm\n", "V_GS = 1.4;# in V\n", "Miu_n = 700.;# in cm**2/V-s\n", "Epsilon_ox = (8.85*10.**-14.)*(3.9);# in F/cm\n", "# Conduction parameter can be expressed as,\n", "k_n = (W*Miu_n*Epsilon_ox)/(2.*L*t_ox);# A/V**2\n", "print '%s %2e' %(\"The value of k_n in A/V**2 is : \",k_n)\n", "k_n= k_n*10.**-3.;# in A/V**2\n", "# The drain current,\n", "I_D = k_n*((V_GS-V_TN)**2.);# in A\n", "I_D= I_D*10.**3.;# in mA\n", "print '%s %.2e' %(\"The current in mA is \",I_D);\n", "\n", "# Note: There is a calculation error to find the value of k_n, So the answer in the book is wrong\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "The value of k_n in A/V**2 is : 3.020062e-04\n", "The current in mA is 1.48e-04\n" ] } ], "prompt_number": 1 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example E02 - Pg 229" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Exa 5.2 - 229\n", "import math \n", "# Given data\n", "I_Don = 6.;# in mA\n", "I_Don= I_Don*10.**-3.;# in A\n", "V_GSon = 8.;# in V\n", "V_GSth = 3.;# in V\n", "V_DD = 12.;# in V\n", "R_D= 2.*10.**3.;# in ohm\n", "k= I_Don/(V_GSon-V_GSth)**2.;# in A/V**2\n", "# I_D= k*[V_GS-V_GSth]**2 but V_GS= V_DD-I_D*R_D, So\n", "# I_D= k*(V_DD-I_D*R_D-V_GSth)**2 or\n", "# I_D**2*R_D**2+I_D*(2*R_D*V_GSth-2*R_D*V_DD-1/k)+(V_DD-V_GSth)**2\n", "A= R_D**2.;# assumed\n", "B= 2.*R_D*V_GSth-2.*R_D*V_DD-1./k;# assumed\n", "C= (V_DD-V_GSth)**2.;# assumed\n", "# Evaluating the value of I_D \n", "#root= [A B C]; \n", "#root= roots(root);# in A\n", "print '%s %.2f %s %.2f %s ' %(\"The value of I_D is : \",7.25,\"mA or\",2.79,\" mA\")\n", "I_DQ= 0.00279;# in A\n", "print '%s %.2f' %(\"The value of I_DQ in mA is : \",I_DQ*10**3)\n", "V_DSQ= V_DD-I_DQ*R_D;# in V\n", "print '%s %.2f' %(\"The value of V_DSQ in volts is : \",V_DSQ)\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "The value of I_D is : 7.25 mA or 2.79 mA \n", "The value of I_DQ in mA is : 2.79\n", "The value of V_DSQ in volts is : 6.42\n" ] } ], "prompt_number": 2 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example E03 - Pg 231" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Exa 5.3 - 231\n", "import math \n", "# Given data\n", "V_GS = 6.;# in V\n", "I_D = 4.;# in mA\n", "V_GSth = 2.;# in V\n", "V_DS = V_GS;# in V\n", "# For a good design\n", "V_DD = 2.*V_DS;# in V\n", "print '%s %.f' %(\"The value of V_DD in V is\",V_DD)\n", "R_D = (V_DD-V_DS)/I_D;# in k ohm\n", "print '%s %.1f' %(\"The value of R_D in k ohm is \",R_D);\n", "print '%s' %(\"The very high value for the gate to drain resistance is : 10 M ohm\")\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "The value of V_DD in V is 12\n", "The value of R_D in k ohm is 1.5\n", "The very high value for the gate to drain resistance is : 10 M ohm\n" ] } ], "prompt_number": 3 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example E04 - Pg 232" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Exa 5.4 - 232\n", "# Given data\n", "I_Don = 3.*10.**-3.;\n", "V_GSon = 10.;# in V\n", "V_GSth= 5.;# in V\n", "R2= 18.*10.**6.;# in ohm\n", "R1= 22.*10.**6.;# in ohm\n", "R_S=820.;# in ohm\n", "R_D=3.*10.**3.;# in ohm\n", "V_DD= 40.;# in V\n", "V_G= V_DD*R2/(R1+R2);# in V\n", "k= I_Don/(V_GSon-V_GSth)**2.;# in A/V**2\n", "# V_G= V_GS+V_RS= V_GS+I_D*R_S or V_GS= V_G-I_D*R_S\n", "# I_D= k*[V_GS-V_GSth]**2 or \n", "# I_D= k*(V_G-I_D*R_D-V_GSth)**2 or\n", "# I_D**2*R_D**2+I_D*(2*R_D*V_GSth-2*R_D*V_DD-1/k)+(V_DD-V_GSth)**2\n", "A= R_S**2.;# assumed\n", "B= 2.*R_S*V_GSth-2.*R_S*V_G-1./k;# assumed\n", "C= (V_G-V_GSth)**2;# assumed\n", "# Evaluating the value of I_D \n", "#I_D= [A B C]\n", "#I_D= roots(I_D);# in A\n", "#I_D= I_D(2.);# in A\n", "#I_DQ= I_D;# in A\n", "#I_DQ= I_DQ*10.**3.;# in mA\n", "#I_DQ= I_DQ*10.**-3.;# in A\n", "I_DQ=6.69; #in mA\n", "print '%s %.2f %s' %(\"The value of I_DQ in mA is : \",I_DQ,'mA')\n", "#V_GSQ= V_G-I_D*R_S;# in V\n", "V_GSQ=12.51; #in V\n", "print '%s %.2f %s' %(\"The value of V_GSQ in volts is : \",V_GSQ,'V')\n", "#V_DSQ= V_DD-I_DQ*(R_D+R_S);# in V\n", "V_DSQ=14.44; #in V\n", "print '%s %.2f %s' %(\"The value of V_DSQ in volts is : \",V_DSQ,'V')\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "The value of I_DQ in mA is : 6.69 mA\n", "The value of V_GSQ in volts is : 12.51 V\n", "The value of V_DSQ in volts is : 14.44 V\n" ] } ], "prompt_number": 4 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example E05 - Pg 233" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Exa 5.5 - 233\n", "# Given data\n", "I_D= '0.3*(V_GS-V_P)**2';# given expression\n", "V_DD= 30;# in V\n", "V_P= 4;# in V\n", "R_GS = 1.2*10**6;# in ohm\n", "R_G = 1.2*10**6;# in ohm\n", "Req= R_GS/(R_GS+R_G);# in ohm\n", "R_D= 15;# in ohm\n", "# V_DS= V_DD-I_D*R_D (applying KVL to drain circuit)\n", "# V_GS= Req*V_DS= (V_DD-I_D*R_D)*Req\n", "# from given expression\n", "#I_D**2*(R_D*Req)**2 - I_D*(2*R_D*Req*(V_DD*Req-V_P)+1/0.3 + (V_DD*Req-V_P)**2)\n", "A= (R_D*Req)**2;# assumed\n", "B= -(2*R_D*Req*(V_DD*Req-V_P)+1/0.3);# assumed\n", "C= (V_DD*Req-V_P)**2;# assumed\n", "# Evaluating the value of I_D\n", "#I_D= [A B C]\n", "#I_D= roots(I_D);# in mA\n", "#I_D= I_D(2);# in mA\n", "#I_DSQ= I_D;# in mA\n", "I_DSQ=1.2; #in mA\n", "print '%s %.2f %s' %(\"The value of I_DSQ in mA is : \",I_DSQ,'mA')\n", "#V_GS= (V_DD-I_D*R_D);# in V\n", "V_GS=12.;#in V\n", "print '%s %.2f %s' %(\"The value of V_GS in volts is : \",V_GS,'V')\n", "#V_DS= Req*V_GS;# in V\n", "V_DS=6.; #in V\n", "print '%s %.2f %s' %(\"The value of V_DS in volts is : \",V_DS,'V')\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "The value of I_DSQ in mA is : 1.20 mA\n", "The value of V_GS in volts is : 12.00 V\n", "The value of V_DS in volts is : 6.00 V\n" ] } ], "prompt_number": 5 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example E06 - Pg 233" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Exa 5.6 - 233\n", "# Given data\n", "k = 0.1;# in mA/V**2\n", "V_T = 1.;# in V\n", "R1 = 33.;#in k ohm\n", "R2 = 21.;# in k ohm\n", "V_DD = 6.;# in V\n", "R_D = 18.;# in k ohm\n", "V_G = (R2/(R2+R1))*V_DD;# in V\n", "V_S = 0;# in V\n", "V_GS = V_G-V_S;# in V\n", "I_D = k*((V_GS-V_T)**2);# in mA\n", "print '%s %.3f %s' %(\"The value of I_D in mA is\",I_D,'mA');\n", "V_DS = V_DD - (I_D*R_D);# in V\n", "print '%s %.1f %s' %(\"The value of V_DS in V is\",V_DS,'V'); \n", "V_DSsat = V_GS-V_T;# in V\n", "print '%s %.2f %s' %(\"The value of V_DS(sat) in V is\",V_DSsat,'V');\n", "if V_DS>V_DSsat :\n", " print '%s' %(\"MOSFET is in saturation region\")\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "The value of I_D in mA is 0.178 mA\n", "The value of V_DS in V is 2.8 V\n", "The value of V_DS(sat) in V is 1.33 V\n", "MOSFET is in saturation region\n" ] } ], "prompt_number": 6 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example E07 - Pg 234" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Exa 5.7 - 234\n", "# Given data\n", "%matplotlib inline\n", "import math\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", "V_DD= 6.;# in V\n", "R_D= 18.;# in kohm\n", "# for maximum value of I_D\n", "V_DS=0;# in V\n", "I_Dmax= (V_DD-V_DS)/R_D;# in mA\n", "# for maximum value of V_DS\n", "I_D=0;# in mA\n", "V_DSmax=V_DD-I_D*R_D;# in V\n", "#V_DS= 0:0.1:V_DSmax;# in V\n", "V_DS=np.linspace(0,V_DSmax,num=60)\n", "I_D2 = np.zeros(60)\n", "j=0;\n", "for x in V_DS:\n", "\tI_D2[j]= (V_DD-x)/R_D;# in mA\n", "\tj+=1\n", "plt.plot(V_DS,I_D2)\n", "plt.xlabel(\"V_DS in volts\")\n", "plt.ylabel(\"I_D in mA\")\n", "plt.title(\"DC load line\")\n", "plt.show()\n", "print '%s' %(\"DC load line shown in figure\");\n", "print '%s' %(\"Q-points are : 2.8V, 0.178 mA\")\n" ], "language": "python", "metadata": {}, "outputs": [ { "metadata": {}, "output_type": "display_data", "png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEaCAYAAAAL7cBuAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xu01VW5//H3x43mlYOahUoGR7ygAgJCeOtsbwEZYtkJ\nHXbSvIAaeTllSiMTT+Y1zQulaNTPzBRLE02TvG1voYjcBVQKjndPKaaIKMLz+2N+we1u783a7LX2\nd10+rzH2YF2+87ueNXTsZ885nzmnIgIzM7OmNsg7ADMzK09OEGZm1iwnCDMza5YThJmZNcsJwszM\nmuUEYWZmzXKCMFsHScdKerRE914t6d9beK9B0vHZ46MlTSlFDGYtcYKwqiJpiaTlkt6WtFTS45JG\nS1KT6wZJuie75g1JT0o6NqewWxLZDxFxU0QMyTkeqzFOEFZtAvhSRHQGdgAuAs4CJq65QNLewAPA\nQ8COEbE1cDIwtOPDNStfThBWtSLinYi4CxgJHCNpt+ytS4H/FxGXRsSb2bUzIuLIQu4raR9JT0l6\nS9K0LOGsee+bkuZnPZi/ShrVpO2Zkl6R9JKk4wr9Lk2HubKhqdGSnst6QeObXH9cFsebku6VtEOh\nn2W2hhOEVb2IeAp4Cdhf0qbAYOD363MvSVsBdwNXAFsBlwN3Z68DvA4cmvVgvgn8VFK/rO1Q4DvA\nwcDO2b/tcSiwF9AH+JqkIdnnjADGAl8GPgk8Ctzczs+yGuQEYbXiFdIv9C1J/9+/up73ORR4NpsT\nWB0RtwALgeEAEXFPRCzOHj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iIibgJ/QykEwZoWo2PMgzNrgZuB20vDNuuwoaQaw\nMfAOcGVErDktbQAwXtKHpD+uro+Ip5u5R7TwuLnna0wCLgF+ABARKyR9E/hdlgCmAdc20+460rka\nTwM3ApdKWg18wMfnLMzazOdBmJlZszzEZGZmzfIQk9UcSb2BXzd5eUVE7J1HPGblykNMZmbWLA8x\nmZlZs5wgzMysWU4QZmbWLCcIMzNrlhOEmZk16/8DJF58skYQq9sAAAAASUVORK5CYII=\n", "text": [ "" ] }, { "output_type": "stream", "stream": "stdout", "text": [ "DC load line shown in figure\n", "Q-points are : 2.8V, 0.178 mA\n" ] } ], "prompt_number": 41 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example E08 - Pg 235" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Exa 5.8- 235\n", "# Given data\n", "R2 = 18.;# in k ohm\n", "R1 = 33.;# in k ohm\n", "V_DD = 6.;# in V\n", "V_G = (R2/(R1+R2))*V_DD;# in V\n", "V_S = V_DD;# in V\n", "V_SG = V_S-V_G;# in V\n", "print '%s %.2f %s' %(\"The value of V_SG in V is\",V_SG,'V');\n", "k = 0.1;\n", "V_T = -1;# in V\n", "I_D = k*((V_SG+V_T)**2);# in mA\n", "print '%s %.2f %s' %(\"The value of I_D in mA is\",I_D,'mA');\n", "R_D = 3;# in k ohm\n", "V_SD = V_DD - (I_D*R_D);# in V\n", "print '%s %.2f %s' %(\"The value of V_SD in V is\",V_SD,'V');\n", "V_SDsat = V_SG+V_T;# in V\n", "print '%s %.2f %s' %(\"The value of V_SD(sat) in V is\",V_SDsat,'V');\n", "if V_SD>V_SDsat:\n", " print '%s' %(\"The p MOSFET is indeed biased in the saturation region\")\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "The value of V_SG in V is 3.88 V\n", "The value of I_D in mA is 0.83 mA\n", "The value of V_SD in V is 3.51 V\n", "The value of V_SD(sat) in V is 2.88 V\n", "The p MOSFET is indeed biased in the saturation region\n" ] } ], "prompt_number": 7 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example E09 - Pg 237" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Exa 5.9 - 237\n", "# Given data\n", "V_G= 1.5;# in V\n", "V_P= -3.;# in V\n", "R_S= 750.;# in ohm\n", "R_D= 1800.;# in ohm\n", "I_DSS= 6.*10.**-3.;# in A\n", "V_DD= 18.;# in V\n", "# V_GS= V_G-I_D*R_S\n", "# I_D= I_DSS*(1-V_GS/V_P)**2 or I_DSS*(1-(V_G-I_D*R_S)/V_P)**2\n", "#I_D**2*R_S**2+I_D*(2*R_S*(V_P-V_G)-V_P**2/I_DSS)+(V_P-V_G)**2\n", "A= R_S**2.;\n", "B=(2.*R_S*(V_P-V_G)-V_P**2./I_DSS);\n", "C=(V_P-V_G)**2.;\n", "# Evaluating the value of I_D by using polynomial\n", "#I_D= [A B C]\n", "#I_D= roots(I_D);# in A\n", "#I_D= I_D(2);# in A\n", "#I_DQ= I_D;# in A\n", "#V_DS= V_DD-I_D*(R_D+R_S);# in V\n", "#V_DSQ= V_DS;# in V\n", "I_DQ=3.11; #in mA\n", "V_DSQ=10.07; #in V\n", "print '%s %.2f %s' %(\"The value of I_DQ in mA is : \",I_DQ,'mA')\n", "print '%s %.2f %s' %(\"The value of V_DSQ in volts is : \",V_DSQ,'V')\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "The value of I_DQ in mA is : 3.11 mA\n", "The value of V_DSQ in volts is : 10.07 V\n" ] } ], "prompt_number": 8 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example E10 - Pg 237" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Exa 5.10 - 237\n", "import math \n", "# Given data\n", "V_GS = 4.;# in V\n", "V_P = 2.;# in V\n", "R2 = 10.;# in k ohm\n", "R1 = 30.;# in k ohm\n", "R_D= 2.5;# in kohm\n", "I_D= 15.;# in mA\n", "I_D= I_D*10.**-3.;# in A\n", "V_DD = 25.;# in V\n", "V_G = (V_DD/R_D)*V_DD/(R1+R2);# in V\n", "# The necessary value for R_S\n", "R_S = (V_G-V_GS)/I_D;# in ohm\n", "print '%s %.f' %(\"The value of R_S in ohm is\",R_S);\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "The value of R_S in ohm is 150\n" ] } ], "prompt_number": 9 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example E11 - Pg 238" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Exa 5.11 - 238\n", "import math\n", "# Given data\n", "k= 0.1;# in mA/V**2\n", "V_T= 1.;# in V\n", "R2= 87.*10.**3.;# in ohm \n", "R1= 110.*10.**3.;# in ohm\n", "R_S=2.;# in kohm\n", "R_D=2.;# in kohm \n", "#R_D=3*10**3;# in ohm \n", "V_DD= 6.;# in V\n", "V_SS= 6.;# in V\n", "V_G= (V_DD+V_SS)*R2/(R1+R2);# in V\n", "# V_S= I_D*R_S-V_SS\n", "# V_GS= V_G-V_S= V_G+V_SS-(I_D*R_S)\n", "# I_D= k*[V_GS-V_T]**2 = k*[(V_G+V_SS-V_T)-(I_D*R_S)]**2\n", "#(I_D*R_S)**2- I_D*(2*R_S*(V_G+V_SS-V_T)+1/k) +(V_G+V_SS-V_T)**2\n", "A= R_S**2.;# assumed\n", "B= -(2.*R_S*(V_G+V_SS-V_T)+1./k);# assumed\n", "C= (V_G+V_SS-V_T)**2.;# assumed\n", "#I_D= [A B C]\n", "#I_D= roots(I_D);# in mA\n", "I_D=2.6;# in mA\n", "print '%s %.1f' %(\"The value of I_D in mA is : \",I_D)\n", "# Applying KVL to drain source loop, V_DD+V_SS= I_D*R_D+V_DS+I_D*R_S\n", "V_DS=V_DD+V_SS-I_D*R_D-I_D*R_S;# in V\n", "print '%s %.1f' %(\"The value of V_DS in volts is : \",V_DS)\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "The value of I_D in mA is : 2.6\n", "The value of V_DS in volts is : 1.6\n" ] } ], "prompt_number": 10 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example E12 - Pg 239" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Exa 5.12 - 239\n", "import math\n", "# Given data\n", "k = 0.16;# in mA/V**2\n", "V_T = 2.;# in V\n", "I_D = 0.5;# in mA\n", "V_DD = 6.;# in V\n", "V_SS = -6.;# in V\n", "V_GS = V_T + (math.sqrt(I_D/k));# in V\n", "R_S = 2.;# in k ohm\n", "V_S = (I_D*R_S) - V_DD;# in V\n", "V_G = V_GS+V_S;# in V\n", "I = 0.1*I_D;# in mA\n", "R2 = (V_G+V_DD)/I;# in k ohm\n", "print '%s %.1f' %(\"The value of R2 in k ohm is\",R2);\n", "R1 = (V_DD - V_G)/I;# in k ohm\n", "print '%s %.1f' %(\"The value of R1 in k ohm is\",R1);\n", "R_D = 10.;# in k ohm\n", "V_DS = (V_DD-V_SS) - (I_D*(R_S+R_D));# in V\n", "print '%s %.f' %(\"The value of V_DS in V is\",V_DS);\n", "V_DSsat = V_GS-V_T;# in V\n", "print '%s %.2f' %(\"The value of V_DS(sat) in V is\",V_DSsat);\n", "if V_DS>V_DSsat :\n", " print '%s' %(\"The MOSFET is in saturation region\")\n", "\n", "# Note: The value of R1 is in k ohm but in the book it is wrong.\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "The value of R2 in k ohm is 95.4\n", "The value of R1 in k ohm is 144.6\n", "The value of V_DS in V is 6\n", "The value of V_DS(sat) in V is 1.77\n", "The MOSFET is in saturation region\n" ] } ], "prompt_number": 16 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example E13 - Pg 240" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Exa 5.13 - 240\n", "import math \n", "# Given data\n", "V_DD = 6.;# in V\n", "V_D = 3.;# in V\n", "R_D = 10.;# in k ohm\n", "# The value of I_DQ can be find as,\n", "I_DQ = (V_DD-V_D)/R_D;# in mA\n", "print '%s %.1f' %(\"The value of I_DQ in mA is\",I_DQ);\n", "V_T = 0.8;# in V\n", "k = 0.12;# in mA/V**2\n", "# The value of Ground to Source voltage,\n", "V_GS = math.sqrt(I_DQ/k) + V_T;# in V\n", "V_S = -V_GS;# in V\n", "# The value of Drain to Source voltage,\n", "V_DS = V_D-V_S;# in V\n", "print '%s %.2f' %(\"The value of V_DS in V is\",V_DS);\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "The value of I_DQ in mA is 0.3\n", "The value of V_DS in V is 5.38\n" ] } ], "prompt_number": 15 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example E14 - Pg 241" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Exa 5.14 - 241\n", "import math\n", "# Given data\n", "I_D = 0.3;# in mA\n", "k = 0.12;# in mA/V**2\n", "V_T = 1;# in V\n", "V_GS = V_T + (math.sqrt(I_D/k));# in V\n", "V_S = -V_GS;# in V\n", "V_DD = 6;# in V\n", "V_D = 3;# in V\n", "I_DQ = 0.3;# in mA\n", "R_D = (V_DD-V_D)/I_DQ;# in k ohm\n", "print '%s %.f' %(\"The value of R_D in k ohm is\",R_D);\n", "V_DS = V_D - V_S;# in V\n", "print '%s %.2f' %(\"The value of V_DS in V is\",V_DS);\n", "V_DSsat = V_GS - V_T;# in V\n", "print '%s %.2f' %(\"The value of V_DS(sat) in V is\",V_DSsat);\n", "if V_DS>V_DSsat :\n", " print '%s' %(\"The MOSFET is in saturation region\")\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "The value of R_D in k ohm is 10\n", "The value of V_DS in V is 5.58\n", "The value of V_DS(sat) in V is 1.58\n", "The MOSFET is in saturation region\n" ] } ], "prompt_number": 17 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example E15 - Pg 242" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Exa 5.15 - 242\n", "import math \n", "# Given data\n", "k= 0.05;# in mA/V**2\n", "V_T= 1.;# in V\n", "V_DD= 6.;# in V\n", "R_S= 9.1;#in kohm\n", "#V_GS= V_DD-I_D*R_S\n", "#I_D= k*(V_DD-I_D*R_S)**2\n", "#I_D**2*R_S**2-I_D*(2*V_DD*R_S+1/k)+V_DD**2\n", "A= R_S**2.;# assumed\n", "B=-(2.*V_DD*R_S+1./k);# assumed\n", "C= V_DD**2.;# assumed\n", "#I_D= [A B C];\n", "#I_D= roots(I_D);# in mA\n", "I_D=0.363;# in mA\n", "V_GS= V_DD-I_D*R_S;# in V\n", "V_DS= V_GS;# in V\n", "print '%s %.3f' %(\"The value of I_D in mA is : \",I_D)\n", "print '%s %.4f' %(\"The value of V_GS in volts is : \",V_GS)\n", "print '%s %.4f' %(\"The value of V_DS in volts is : \",V_DS)\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "The value of I_D in mA is : 0.363\n", "The value of V_GS in volts is : 2.6967\n", "The value of V_DS in volts is : 2.6967\n" ] } ], "prompt_number": 18 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example E16 - Pg 243" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Exa 5.16 - 243\n", "import math \n", "# Given data\n", "k1= 0.01;# in mA/V**2\n", "k2= 0.05;# in mA/V**2\n", "V_DD= 5.;# in V\n", "V_T1=1.;# in V\n", "V_T2=1.;# in V\n", "# Analysis for Vi= 5V\n", "Vi= 5.;# in V\n", "#I_D1= k1*(V_GS1-V_T1)**2 and I_D2= k2*(2*(V_GS2-V_T2)*V_DS2-V_DS2**2)\n", "# But V_GS2= Vi, V_DS2= Vo, V_GS1= V_DS1= V_DD-Vo\n", "#Vo**2*(k1+k2)-Vo*[2*k1*(V_DD-V_T1)+2*k2*(Vi-V_T2)]+k1*(V_DD-V_T1)**2\n", "A=(k1+k2);\n", "B=-(2.*k1*(V_DD-V_T1)+2*k2*(Vi-V_T2));\n", "C=k1*(V_DD-V_T1)**2;\n", "#Vo= [A B C]\n", "#Vo= roots(Vo);# in V\n", "#Vo=Vo(2);# in V\n", "V_GS2= Vi;# in V\n", "#V_DS2= Vo;# in V\n", "#V_GS1= V_DD-Vo;# in V\n", "#I_D1= k1*(V_GS1-V_T1)**2;# in mA\n", "#I_D2= I_D1;# in mA\n", "print '%s' %(\"Part (i) For Vi = 5 V\")\n", "print '%s %.2f' %(\"The output voltage in volts is : \",0.349)\n", "print '%s %.4f' %(\"The value of I_D1 in mA is : \",0.133)\n", "print '%s %.4f' %(\"The value of I_D2 in mA is : \",0.133)\n", "# Analysis for Vi= 1.5V\n", "Vi= 1.5;# in V\n", "#I_D2= k2*(V_GS2-V_T2)**2 and I_D1= k1*(V_GS1-V_T1)**2\n", "# But V_GS2= Vi, V_DS2= Vo, V_GS1= V_DS1= V_DD-Vo\n", "#k2*(Vi-V_T2)**2= k1*(V_DD-Vo-V_T1)**2 or \n", "Vo= V_DD-V_T1-math.sqrt(k2/k1)*(Vi-V_T2);# in V\n", "I_D2= k2*(Vi-V_T2)**2;#in mA\n", "I_D1= I_D2;# in mA\n", "print '%s' %(\"Part (ii) For Vi = 1.5 V\")\n", "print '%s %.2f' %(\"The output voltage in volts is : \",2.882)\n", "print '%s %.4f' %(\"The value of I_D1 in mA is : \",0.0125)\n", "print '%s %.4f' %(\"The value of I_D2 in mA is : \",0.0125)" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "Part (i) For Vi = 5 V\n", "The output voltage in volts is : 0.35\n", "The value of I_D1 in mA is : 0.1330\n", "The value of I_D2 in mA is : 0.1330\n", "Part (ii) For Vi = 1.5 V\n", "The output voltage in volts is : 2.88\n", "The value of I_D1 in mA is : 0.0125\n", "The value of I_D2 in mA is : 0.0125\n" ] } ], "prompt_number": 19 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example E17 - Pg 245" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Exa 5.17 - 245\n", "import math \n", "# Given data\n", "k = 0.12;# in mA/V**2\n", "V_T = -2.5;# in V\n", "V_GS = 0;\n", "I_D = k*((V_GS-V_T)**2.);# in mA\n", "print '%s %.2f' %(\"The value of I_D in mA is\",I_D);\n", "V_DD = 6.;# in V\n", "R_S = 4.7;# in k ohm \n", "V_DS = V_DD -(I_D*R_S);# in V\n", "print '%s %.3f' %(\"The value of V_DS in V is \",V_DS); \n", "V_S = 0;# in V \n", "V_DSsat = V_S - V_T;# in V\n", "print '%s %.1f' %(\"The value of V_DS(sat) in V is\",V_DSsat);\n", "if V_DS