Unit III
Unit III
Unit III
(104010)
Unit III : Number System and Logic Gates
(07Hrs)
Number System:-
◦ Binary, BCD, Octal, Decimal, Hexadecimal their
conversion and arithmetic
◦ De-Morgan’s theorem.
Basic Gates:-
◦ AND, OR, NOT
Universal Gate-
◦ NAND, NOR
Exclusive Gates
◦ XOR, XNOR
Combinational Design
◦ Half adder, Full adder
Flip Flop’s
◦ SR, JK, T and D
Introduction to Microprocessor and Microcontroller
◦ Block diagram and explanation
Number System
Decimal
The number system we are familiar with, used every day,
is the decimal number system.
Referred to as the base-10 system.
The base-10 system is a positional system
The base-10 number system has 10 distinct symbols, or
digits (0, 1, 2, 3,…8, 9).
Binary
The point: All data in a computer is represented in
binary. A base-2 system, or binary number system.
The term ‘bit’ is a contraction of the words ‘binary’ and
‘digit’, and when talking about binary numbers.
The base-2 system has exactly two symbols: 0 and 1.
0 and 1 are logical values, not the values of a physical
quantity.
A string of eight bits (such as 11000110) is termed a
byte. A collection of four bits (such as 1011) is smaller
than a byte, and is hence termed a nibble.
BCD Binary-Coded Decimal
We close with a brief overview of a different manner of converting between
binary and decimal.
In some practical applications we will use a digital logic circuit to drive a
numeric display, where each
individual display unit displays a single digit. So, for example, we might
have the number 472 in our
logic circuit, and we would like to display this on three separate display
units (one for the 4, one for the 7
and one for the 2).
Working with this sort of display hardware is facilitated through the use of
binary-coded decimal (BCD),
where each individual digit is represented by a 4-bit number. For example,
to represent the decimal
number 472 in binary-coded decimal (BCD), we convert each digit to a four
bit binary number,
independent of the other decimal digits. Thus, 472 equal 0100 0111 0010
in BCD.
Octal
◦ An OR gate with inverted output behaves the same as an AND gate with
inverted inputs.
◦ An AND gate with inverted output is also called a NAND gate, of course,
and an OR gate with inverted output is also called a NOR gate.
Thus, De Morgan’s laws can also be stated like this:
◦ A NAND gate behaves the same as an OR gate with inverted inputs.
◦ A NOR gate behaves the same as an AND gate with inverted inputs.
simplification techniques used to simplify Boolean expressions.
the simpler the resulting the Boolean expression, the simpler the
resulting logic.
DeMorgan’s First Theorem
DeMorgan’s Second Theorem
Example using DeMorgan’s Theorem
Logic Gates
There are seven logic gates:
◦ AND, OR, XOR, NOT, NAND, NOR, and XNOR.
There are three basic types of digital logic gates
◦ AND Gate
◦ OR Gate and
◦ NOT Gate (NOT gates and Buffers are single input devices that can
also have a Tri-state High-impedance output which can be used
to control the flow of data onto a common data bus wire)
Universal gates
◦ The NAND gate and the NOR gate both are classed as “Universal”
gates as they can be used to construct any other gate type.
◦ Any combinational circuit can be constructed using only two or
three input NAND or NOR gates.
Exclusive Gates
◦ EX-OR
◦ EX-NOR
AND GATE
The AND gate has two or more inputs and one output
signal.
This is a gate which performs a logical operation
multiplication, which is commonly known as AND
function.
This gate is called an AND gate because the gate gives
output will be high when all input values are high the
output is low or 0 when any of the inputs are low or 0.
The symbol of AND Gate & Truth Table is shown below.
OR Gate
The OR gate has two or more inputs and one output
signal.
A logical operation or addition, which is commonly known
as OR function.
This gate is called an OR gate because the gate gives
output high only if any or all input values are high The
output is low or 0 when both the inputs are low or 0.
The symbol of OR Gate & Truth Table is shown below.
NOT GATE
Single input and a single output
Known as an inverter, because it does the
shown below.
NAND GATE
Has two or more input terminals and one output
terminals.
Cascade combination of AND – NOT gates.
The output of NAND gate is high or 1 when any one input
is low or 0 and the output is low or 0 when all inputs are
high or 1.
The symbol of NAND Gate & Truth Table is shown below.
NOR GATE
Has two or more input terminals and one output
terminal.
Cascade combination of OR – NOT gates.
The output of NOR gate is high or 1 when all the inputs
are low or 0 and the output is low or 0 when one or all
inputs are high or 1.
The symbol of NOR Gate & Truth Table is shown below.
Exclusive- OR (EX-OR) GATE:
This gate has two or more input terminals and one
output terminal.
The EX-OR Gate has the output only high when an odd
number of inputs are high and the output is low when
both the inputs are low and both the inputs are high.
The symbol of EX-OR Gate & Truth Table is shown
below.
Exclusive- NOR (EX-NOR) GATE
The EX-NOR gate has terminals like OR gate i.e, two or
more input terminals and one output terminal.
The EX-NOR Gate has the output only high when both
the inputs have the same values either high or low and
the output is low when an odd number inputs are high.
The symbol of EX-NOR Gate & Truth Table is shown
below.
Binary Subtraction
1's And 2's Complement of Binary
Number
The 1's complement and the 2's complement of binary number are
important because they permit the representation of negative
numbers.
Binary Subtraction using Two’s
Complement Method
Calculation of 2's Complement
Adding/Subtracting using 2’s
Complement
Adders