Beruflich Dokumente
Kultur Dokumente
whose valuable
CERTIFICATE
This is to certify that
completed the research on the below mentioned project under the guidance of
( Subject Teacher ) during the year 2013-14 in partial fulfillment of physics practical
examination..
INDEX
1.CERTIFICATE OF EXCELLENCE
2. ACKNOWLEDGEMENT
3. AIM OF PROJECT
4. INTRODUCTION
5. THEORY
6. PRACTICAL LOGIC GATES.
7. CONCLUSION
Learning Objectives:
At the end of this topic you will be able to;
Identify and use NOT, AND, NAND, OR, NOR EXOR, and XNOR
gates;
Construct and recognise truth tables for these gates and simple
combinations of them, with up to four inputs.
Introduction.
This course in electronics has been designed to provide you, the student with
a broad introduction to many applications of electronics. The focus of the
course is to provide students with the basic understanding of many aspects
of electronics from, microcomputers to communication systems, hardware
systems to writing software control programs. This will provide the essential
foundation for anyone to continue with their studies in university later.
The emphasis is where-ever possible practical in nature, even though
computer simulations may be used alongside traditional practical systems, as
these often provide the possibility to make rapid changes to a particular
circuit to illustrate a particular effect.
In this module we will be concentrating on the fundamentals of digital and
analogue circuits. We should start by ensuring that you understand the
difference between a digital signal and an analogue signal.
An analogue signal.
This is a signal that can have any value between the minimum and maximum of
the power supply. Changes between values can occur slowly or rapidly
depending on the system involved. Graphically this is represented by a graph
similar to that shown below.
Voltage (V)
Max
Min
time (s)
A digital signal.
This is a signal that can only have two finite values, usually at the minimum
and maximum of the power supply. Changes between these two values occur
instantaneously. Graphically this is represented by a graph similar to that
shown below.
Voltage (V)
Max
Min
time (s)
Logic Gates.
The term logic gate actually gives a clue as to the function of these devices in
an electronic circuit. Logic implies some sort of rational thought process
taking place and a gate in everyday language allows something through when
it is opened.
A Logic Gate in an electronic sense makes a logical decision based upon a set
of rules, and if the appropriate conditions are met then the gate is opened
and an output signal is produced.
Logic gates are therefore the decision making units in electronic systems and
there are many different types for different applications. We will now spend
some time looking at the different type of gates and the rules each one uses
to decide an appropriate output.
1.
This is the simplest form of logic gate and has only 1 input and 1 output. So
how can it make a decision if it only has 1 input ? Simply the purpose of this
gate is to invert the input signal so if a Logic 0 is at the input, the output will
be at Logic 1 and vice versa. The symbol for a NOT gate is as follows.
A
You will notice that the input has been given the letter A and the output the
letter Q. Traditionally inputs are given letters from the start of the
alphabet A, B, C etc. but this is more a rule of thumb and is not written in
stone. Do not be put off if an input is labelled something different, e.g.
J it is only a letter after all.
The output is traditionally labelled Q for logic systems, but again under
different circumstances it may be appropriate to change this to something
more meaningful like Red if the output is a red light.
7
The output of a logic gate can also be summarised in the form of a table,
called a Truth Table. The truth table for a NOT gate is the simplest of all
Truth Tables and is shown below.
Input Output
A
Q
0
1
1
0
There is also a shorthand way of writing down the function of this logic gate,
using a special type of algebra called Boolean Algebra. This will seem very
strange at first, but you will learn later how to use it to simplify logic
systems, for now please just learn the format for each gate as it is
introduced. You will soon learn the patterns and look back on this without any
concern. The Boolean expression for a NOT gate is
QA
The bar over the A indicates that the output Q is the opposite of A.
We will now consider four of the most common logic gates in use in electronic
circuits. These are the :
AND gate
OR gate
NAND gate
NOR gate
Note : These logic gates have a minimum of 2 inputs but can have up to
8 inputs, however for this course the maximum number of inputs
we will deal with is 4 although it is possible for you to use larger
gates in your project work later on in the course.
2.
We will start with a 2 input AND gate. The symbol for a 2 input AND gate is
as follows.
A
The truth table for the 2 input AND gate is shown below.
Inputs
B
0
0
1
1
A
0
1
0
1
Output
Q
0
0
0
1
We can see that the output is only at a Logic 1 when Input A AND Input B
are at a Logic 1.
The Boolean expression for a 2 input AND gate is
Q A.B
The truth table for the 3 input AND gate is shown below.
Inputs
B
Output
Q
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
0
0
0
0
0
0
1
We can see that the output is only at a Logic 1 when Input A AND Input B
AND Input C are at a Logic 1.
The Boolean expression for a 3 input AND gate is
Q A.B.C
Boolean Expression:
10
Inputs
D
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Output
Q
Pin 1
There are two common types available, TTL or 74xx series and CMOS or
4xxx series. It is likely that you will come across both types in your practical
work, so whats the difference between them ?
The key differences are outlined in the table below:
Parameter
Supply Voltage
Logic 0 range
0 to 0.8V
Logic 1 range
2.0 to 5.0V
Frequency of operation
Power consumption
50 MHz
10mW / gate
This information will be needed when you carry out your practical work, as you
will need to know which type of logic gate you are using.
11
You will also need to be careful how you connect each logic gate into your
circuit as each package can contain up to six individual gates. To be able to
identify which leads are connected to which gate you need to look at a data
sheet for the actual logic gate you are using. A couple of these have been
reproduced below.
It is important that you check the connections every time you use a logic gate
as connecting these incorrectly can result in the whole logic chip being
destroyed.
From an examination situation you will not be required to know the difference
between TTL and CMOS devices, this is required for any practical tests that
you carry out, and will be particularly important for your project work.
12
Study the following logic system carefully and then complete the truth
table that follows:
Inputs
B
0
0
1
1
0
1
0
1
Outputs
C
Q
In this problem, the output of the NOT gate has been labeled C. The first
stage is to complete the output column for C which is the NOT of A as
shown below.
Inputs
B
Outputs
C
Q
0
0
1
1
0
1
0
1
1
0
1
0
13
Now we need to complete the final column Q which is the output of the AND
gate with B and C as the inputs.
Inputs
2.
Outputs
C
Q
0
0
1
1
0
1
0
1
1
0
1
0
0
0
1
0
Study the following logic system carefully and then complete the truth
table that follows:
Inputs
B
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
Outputs
G
First complete the output column for the NOT gate (Column F)
{Remember the input is B.}
Then complete the output column for the AND gate (Column G)
{Remember the inputs are F and C.}
Finally complete the final output from the NOR gate (Column Q)
{Remember the inputs are A and G}
14
Solution:
Inputs
B
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
Outputs
G
1
1
0
0
1
1
0
0
0
0
0
0
1
1
0
0
1
0
1
0
0
0
1
0
Study the following logic system carefully and then complete the truth
table that follows:
Inputs
B
0
0
1
1
0
1
0
1
Outputs
K
Q
15
2.
Study the following logic system carefully and then complete the truth
table that follows:
Inputs
B
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
Outputs
G
16