summaryrefslogtreecommitdiff
path: root/Microelectronic_Circuits_by_A.S._Sedra_and_K.C._Smith/Chapter12.ipynb
blob: 530e0f534147f1b784ef9094bc5a1ce0f2d00ddb (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
{

 "metadata": {

  "name": "",

  "signature": "sha256:0d870b040ee224c1f9fb208e7b24af7cd3362e9d307710cf1a001e89fa523e12"

 },

 "nbformat": 3,

 "nbformat_minor": 0,

 "worksheets": [

  {

   "cells": [

    {

     "cell_type": "heading",

     "level": 1,

     "metadata": {},

     "source": [

      "Chapter12:Filters and Tuned Amplifiers"

     ]

    },

    {

     "cell_type": "heading",

     "level": 2,

     "metadata": {},

     "source": [

      "Ex12.4:pg-1143"

     ]

    },

    {

     "cell_type": "code",

     "collapsed": false,

     "input": [

      "# Example 12.4 To design tuned amplifier\n",

      "\n",

      "cfg=-10; # Center frequency gain (V/V)\n",

      "g_m=0.005; # (A/V)\n",

      "r_o=10000; # (ohm)\n",

      "f_o=1*10**6; # (Hz)\n",

      "B=2*math.pi*10**4; # Bandwidth\n",

      "R=-cfg/g_m;\n",

      "R_L=R*r_o/(r_o-R);\n",

      "print R_L/1000,\"= R_L (kohm)\"\n",

      "C=1/(R*B)\n",

      "print round(C*1e12),\"= C (picoF)\"\n",

      "w_o=2*math.pi*f_o;\n",

      "L=1/(w_o**2*C);\n",

      "print round(L*1e6,2),\"= L (microH)\""

     ],

     "language": "python",

     "metadata": {},

     "outputs": [

      {

       "output_type": "stream",

       "stream": "stdout",

       "text": [

        "2.5 = R_L (kohm)\n",

        "7958.0 = C (picoF)\n",

        "3.18 = L (microH)\n"

       ]

      }

     ],

     "prompt_number": 8

    }

   ],

   "metadata": {}

  }

 ]

}