summaryrefslogtreecommitdiff
path: root/Digital_Fundamentals/chapterno1.ipynb
blob: 5ff2285e3dd378cbbd1153b7271f8631b2cbfec2 (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
{

 "metadata": {

  "name": "",

  "signature": "sha256:a1ed470be69235951f179c73fc3f7daca02bf5e071f528ddce3fb4f1444cb8ef"

 },

 "nbformat": 3,

 "nbformat_minor": 0,

 "worksheets": [

  {

   "cells": [

    {

     "cell_type": "heading",

     "level": 1,

     "metadata": {},

     "source": [

      "Chapter 1: INTRODUCTORY DIGITAL CONCEPTS"

     ]

    },

    {

     "cell_type": "heading",

     "level": 2,

     "metadata": {},

     "source": [

      "Example 1-1,Page No-6"

     ]

    },

    {

     "cell_type": "code",

     "collapsed": false,

     "input": [

      "#Variable Declaration\n",

      "T=10*10**-3\n",

      "tw=1*10**-3\n",

      "\n",

      "#Calculations\n",

      "#Part A\n",

      "f=1/T\n",

      "\n",

      "#Part C\n",

      "Duty_Cycle=(tw/T)*100\n",

      "\n",

      "\n",

      "#Results\n",

      "print\"The Period is measured from the edge of the next pulse. In this case T is measured from leading edge to leading edge,as indicated.T equals 10*10^-3\"\n",

      "print\"f=\",f,\"Hz\"\n",

      "print\"Duty Cycle=\",Duty_Cycle,\"%\""

     ],

     "language": "python",

     "metadata": {},

     "outputs": [

      {

       "output_type": "stream",

       "stream": "stdout",

       "text": [

        "The Period is measured from the edge of the next pulse. In this case T is measured from leading edge to leading edge,as indicated.T equals 10*10^-3\n",

        "f= 100.0 Hz\n",

        "Duty Cycle= 10.0 %\n"

       ]

      }

     ],

     "prompt_number": 5

    },

    {

     "cell_type": "heading",

     "level": 2,

     "metadata": {},

     "source": [

      "Example 1-2, Page No-8"

     ]

    },

    {

     "cell_type": "code",

     "collapsed": false,

     "input": [

      "#Variable Declaration\n",

      "f=100*10**-3\n",

      "time=8\n",

      "T=1/f\n",

      "print\"Since the frequency of the clock is 100kHz,the period is\",T,\"usec\"\n",

      "print\"It takes 10*10**-6to transfer each bit in the waveform.The total transfer time for 8 bits is time\"\n",

      "print\"Time is\",time,\"usec\"\n",

      "\n",

      "print\"To detrmine the sequence of bits,examine the waveform during each bit time.If waveform A is HIGH during the bit time, a 1 is transferred. If waveform A is LOW during the bit time,a0 is transferred. The bit sequence is illustrated .The left mosst bit is the first to be transferred.\"\n",

      "\n",

      "print\"A parallel transfer would take 10*10**-6 for all eight bits.\"\n",

      "    \n"

     ],

     "language": "python",

     "metadata": {},

     "outputs": [

      {

       "output_type": "stream",

       "stream": "stdout",

       "text": [

        "Since the frequency of the clock is 100kHz,the period is 10.0 usec\n",

        "It takes 10*10**-6to transfer each bit in the waveform.The total transfer time for 8 bits is time\n",

        "Time is 8 usec\n",

        "To detrmine the sequence of bits,examine the waveform during each bit time.If waveform A is HIGH during the bit time, a 1 is transferred. If waveform A is LOW during the bit time,a0 is transferred. The bit sequence is illustrated .The left mosst bit is the first to be transferred.\n",

        "A parallel transfer would take 10*10**-6 for all eight bits.\n"

       ]

      }

     ],

     "prompt_number": 14

    },

    {

     "cell_type": "code",

     "collapsed": false,

     "input": [],

     "language": "python",

     "metadata": {},

     "outputs": [],

     "prompt_number": 8

    },

    {

     "cell_type": "code",

     "collapsed": false,

     "input": [],

     "language": "python",

     "metadata": {},

     "outputs": []

    }

   ],

   "metadata": {}

  }

 ]

}