Presesntation 5 Digital Logic
Presesntation 5 Digital Logic
Digital logic
Introduction
BINARY SYSTEMS ;
Analog Vs Digital
Digital System
Binary numbers
Number base conversions
Cont.
ANALOG Vs DIGITAL: It is necessary to differentiate between analog and digital. The
following are fews that differentiate between analog and digital.
Analog information is made up of a continuum of values within a given range
At its most basic, digital information can assume only one of two possible values:
one/zero, on/off, high/low, true/false, etc.
Digital Information is less susceptible to noise than analog information
Digital
Digital ; means electronic technology that generates, stores, and processes data in terms of
two states: positive and non-positive. Positive is expressed or represented by the number 1
and non-positive by the number 0.
Binary ; describes a numbering scheme in which there are only two possible values for
each digit: 0 and 1. The term also refers to any digital encoding / decoding system in which
there are exactly two possible states. In digital data memory, storage, processing, and
communications, the 0 and 1 values are sometimes called "low" and "high," respectively.
Cont.
BINARY NUMBER/BINARY NUMBER SYSTEM
The binary number system is a numbering system that represents numeric values using
two unique digits (0 and 1). Most of the computing devices use binary numbering to
represent electronic circuit voltage state, (i.e., on/off switch), which considers 0 voltage
input as off and 1 input as on.
This is also known as the base-2 number system (The base-2 system is a positional
notation with a radix of 2), or the binary numbering system.
Such control involves digital signals where there are only two possible signal levels.
Digital circuitry is the basis of digital computers and microprocessor controlled systems.
With digital control we might, for example, have the water input to the domestic
washing machine switched on if we have both the door to the machine closed and
a particular time in the operating cycle has been reached.
Cont.
• The controller is here programmed to only give a yes output if both the input signals are
yes, i.e. if input A and input B are both 1 then there is an output of 1. Such an operation
is said to be controlled by a logic gate, in this example an AND gate.
Logic gates
AND OR
gate gate
NOT NAND
gate gate
NOR XOR
gate gate
AND gate
Suppose we have a gate giving a high output only when both input A and input B are
high; for all other conditions it gives a low output. This is an AND logic gate. We can
visualize the AND gate as an electric circuit involving two switches in series as showed in
the figure below.
The NAND gate is just the AND gate truth table with the outputs inverted. An alternative
way of considering the gate is as an AND gate with a NOT gate applied to invert both the
inputs before they reach the AND gate.
An alternative way of considering the gate is as an OR gate with a NOT gate applied to
invert both the inputs before they reach the OR gate.
Alternatively it can be considered as an AND gate with a NOT gate applied to one of the
inputs to invert it before the inputs reach the AND gate.
Combining gates
It might seem that to make logic systems we require a range of gates. However, as the
following shows, we can make up all the gates from just one. Consider the combination of
three NOR gates shown in Figure.
Cont.
The truth table
Three NAND gates
There are two families of digital integrated circuits: TTL (transistor-transistor logic) and
CMOS (complementary metal-oxide semiconductors). Specific voltage ranges define
logic low (0) and logic high (1) at the inputs and outputs.
This example illustrates how to determine signal expressions and values in a logic
diagram. Here is an example logic circuit:
Cont.
Signals A, B, and C are inputs and signals D, E, and F are outputs. Each of the signals
can be high (1) or low (0).
Cont.
Boolean Algebra Laws and Identities
Fundamental Laws
Commutative Laws
Cont.
Associative Laws
Distributive Laws
The timing diagram can be used to illustrate every possible combination of input values
and corresponding outputs, providing a graphical summary of the input/output
relationships.
Multiple-input digital oscilloscopes and logic analyzers have the capability to display
timing diagrams for digital circuits.
The timing diagram for the logic gates are demonstrated below for each types of
fundamental gates.
Exercise
Quiz 1
1. Determine a simplified Boolean expression for the following circuit
and develop the truth table for the logic circuit below:
Quiz 1