Chapter 1 Introduction to Digital Logic
Chapter 1 Introduction to Digital Logic
1
Analog and Digital Signals
Analog Signals Digital Signals
• Continuous • Discrete
• Infinite range of values • Finite range of values
• More exact values, but • Not as exact as analog,
more difficult to work with but easier to work with
Example:
A digital thermostat in a room displays a temperature of 72°.
An analog thermometer measures the room temperature at
72.482°. The analog value is continuous and more accurate,
but the digital value is more than adequate for the
application and significantly easier to process electronically.
2
Example of Analog Signals
• An analog signal can be any time-varying signal.
• Minimum and maximum values can be either positive or negative.
• They can be periodic (repeating) or non-periodic.
• Sine waves and square waves are two common analog signals.
• Note that this square wave is not a digital signal because its minimum value
is negative.
0 volts
Period
(T)
Frequency:
Amplitude
(peak)
Amplitude
(peak-to-peak)
4
Logic Levels
Before examining digital signals, we must define logic levels. A
logic level is a voltage level that represents a defined digital state.
Logic HIGH: The higher of two voltages, typically 5 volts
Logic LOW: The lower of two voltages, typically 0 volts
5.0 v
Logic High
Logic Level Voltage True/False On/Off 0/1
6
Example of Digital Signals
• Digital signal are commonly referred to as square waves or clock signals.
• Their minimum value must be 0 volts, and their maximum value must be 5
volts.
• They can be periodic (repeating) or non-periodic.
• The time the signal is high (tH) can vary anywhere from 1% of the period to
99% of the period.
5 volts
0 volts
7
Parts of a Digital Signal
Amplitude:
For digital signals, this will ALWAYS be 5 Falling Edge
volts.
Period:
Amplitude
The time it takes for a periodic signal to
repeat. (seconds) Time Time
High Low
Frequency: (tH) (tL)
A measure of the number of occurrences of
the signal per second. (Hertz, Hz)
Time High (tH):
Rising Edge
The time the signal is at 5 v.
Period (T)
Time Low (tL):
The time the signal is at 0 v.
Duty Cycle: Frequency:
The ratio of tH to the total period (T).
Rising Edge:
A 0-to-1 transition of the signal.
Falling Edge:
A 1-to-0 transition of the signal.
8
Advantages of Digital Signals
• Digital data can be easily compressed.
• Any information in the digital form can be encrypted.
• Equipment that uses digital signals is more common and less
expensive.
• Digital signal makes running instruments free from observation errors
like parallax and approximation errors.
• A lot of editing tools are available
• You can edit the sound without altering the original copy
• Easy to transmit the data over networks
9
Difference Between Analog and Digital Signal
Analog Digital
An analog signal is a continuous signal that represents physical Digital signals are time separated signals which are generated
measurements. using digital modulation.
It is denoted by sine waves It is denoted by square waves
It uses a continuous range of values that help you to represent
Digital signal uses discrete 0 and 1 to represent information.
information.
Temperature sensors, FM radio signals, Photocells, Light
Computers, CDs, DVDs are some examples of Digital signal.
sensor, Resistive touch screen are examples of Analog signals.
The analog signal bandwidth is low The digital signal bandwidth is high.
Analog signals are deteriorated by noise throughout Relatively a noise-immune system without deterioration during
transmission as well as write/read cycle. the transmission process and write/read cycle.
Analog hardware never offers flexible implementation. Digital hardware offers flexibility in implementation.
It is suited for audio and video transmission. It is suited for Computing and digital electronics.
Processing can be done in real-time and consumes lesser It never gives a guarantee that digital signal processing can be
bandwidth compared to a digital signal. performed in real time.
Analog instruments usually have s scale which is cramped at
Digital instruments never cause any kind of observational errors.
lower end and gives considerable observational errors.
Analog signal doesn’t offer any fixed range. Digital signal has a finite number, i.e., 0 and 1. 10
The Pulse
• In digital logic, a pulse typically refers to a short-duration signal that
transitions from a low voltage level to a high voltage level and then back to
the low level. This transition represents a binary signal, where the rising
edge (low to high transition) or falling edge (high to low transition) can be
used to convey information.
• As indicated in Figure 1–7, a pulse has two edges: a leading edge that occurs
first at time t0 and a trailing edge that occurs last at time t1.
• For a positive-going pulse, the leading edge is a rising edge, and the trailing
edge is a falling edge.
• The pulses in Figure 1–7 are ideal because the rising and falling edges are
assumed to change in zero time (instantaneously).
• In practice, these transitions never occur instantaneously, although for most
digital work you can assume ideal pulses.
11
Ideal Pulses
12
Nonideal Pulse Characteristics
13
• Figure 1–8 shows a nonideal pulse. In reality, all pulses exhibit some
or all of these characteristics.
• The overshoot and ringing are sometimes produced by stray inductive
and capacitive effects.
• The droop can be caused by stray capacitive and circuit resistance,
forming an RC circuit with a low time constant.
• The time required for a pulse to go from its LOW level to its HIGH
level is called the rise time (tr), and the time required for the
transition from the HIGH level to the LOW level is called the fall time
(tf).
14
• In practice, it is common to measure rise time from 10% of the pulse
amplitude (height from baseline) to 90% of the pulse amplitude and to
measure the fall time from 90% to 10% of the pulse amplitude, as
indicated in Figure 1–8.
• The bottom 10% and the top 10% of the pulse are not included in the
rise and fall times because of the nonlinearities in the waveform in
these areas.
• The pulse width (tW) is a measure of the duration of the pulse and is
often defined as the time interval between the 50% points on the rising
and falling edges, as indicated in Figure 1–8.
15
Digital waveform
• Digital waveforms consist of voltage levels that are changing back and
forth between the HIGH and LOW levels or states.
• Figure 1–7(a) shows that a single positive-going pulse is generated
when the voltage (or current) goes from its normally LOW level to its
HIGH level and then back to its LOW level.
• The negative-going pulse in Figure 1–7(b) is generated when the
voltage goes from its normally HIGH level to its LOW level and back
to its HIGH level.
• A digital waveform is made up of a series of pulses.
16
Waveform Characteristics
• Most waveforms encountered in digital systems are composed of
series of pulses, sometimes called pulse trains, and can be classified as
either periodic or nonperiodic.
• A periodic pulse waveform is one that repeats itself at a fixed interval,
called a period (T).
• The frequency ( f ) is the rate at which it repeats itself and is
measured in hertz (Hz).
• A nonperiodic pulse waveform, of course, does not repeat itself at
fixed intervals and may be composed of pulses of randomly differing
pulse widths and/or randomly differing time intervals between the
pulses.
17
• An example of each type is shown in Figure 1–9.
18
• The frequency ( f ) of a pulse (digital) waveform is the reciprocal of
the period. The relationship between frequency and period is
expressed as follows:
19
The Clock
• In digital systems, all waveforms are synchronized with a basic timing
waveform called the clock.
• The clock is a periodic waveform in which each interval between
pulses (the period) equals the time for one bit.
• An example of a clock waveform is shown in Figure 1–11.
• Notice that, in this case, each change in level of waveform A occurs at
the leading edge of the clock waveform.
• In other cases, level changes occur at the trailing edge of the clock.
20
• During each bit time of the clock, waveform A is either HIGH or
LOW.
• These HIGHs and LOWs represent a sequence of bits as indicated.
• A group of several bits can contain binary information, such as a
number or a letter.
• The clock waveform itself does not carry information.
21
22
Logic Gate
• It is an elementary building block of modern digital electronics.
• Most logic gates have two inputs and one output.
• At any given moment, every terminal is in one of the two binary
conditions, LOW or HIGH represented by different voltage level.
• A switch with an output that will only turn ON when inputs are in
particular position.
• Digital Logic is a representation of signals and a sequence of a digital
circuit through the numbers.
23
• It is the basis for digital computing and provides a fundamental
understanding on how circuits and hardware communicate within the
computer.
• Digital logic is typically embedded into most electronic devices like
mobile, computer, etc.
• Main components of digital logic consists of five different logic gates
i.e. AND, OR, NOT, NAND and NOR.
24
Digital Operations
• Arithmetic and Logic Operations
• Counter
• Multiplexer and Demultiplexer
• Encoder and Decoder
• etc…
25
Integrated Circuit(IC)
• Over the years we have observed how technology has managed to
squeeze itself to a more compact and concise structure.
• For instance, the first computers that were made were the size of a
warehouse of 1000 laptops which we use today.
• How has this been made possible?
• The integrated circuit is the answer to it.
• Three American scientists invented transistors which simplified things
to quite an extent, but it was the development of integrated circuits
that actually changed the face of the electronics technology.
26
• An integrated circuit (IC) is a miniature ,low cost electronic circuit
consisting of active and passive components fabricated together on a
single crystal of silicon.
• The active components are transistors and diodes and passive
components are resistors and capacitors.
• Digital system uses IC’s for many years because of their small size,
high reliability, low cost and low power consumption.
27
Advantages of integrated circuits
• 1. Miniaturization and hence increased equipment density.
• 2. Cost reduction due to batch processing.
• 3. Increased system reliability due to the elimination of soldered joints.
• 4. Improved functional performance.
• 5. Increased operating speeds.
• 6. Reduction in power consumption
28
• IC generally come in 2 types of packages i.e. flat type package and
dual inline package(DIP).
• DIP is most widely used type because of low price and easy to install
on circuit boards.
• The envelope of IC package is made up of plastics or ceramics.
• Most of package have standard size and number of pins range from
8-64.
29
DIP
30
Flat Type
31
32
Types of Integration/Scale of Integration
• Integrated Circuits can be classified based on its integration scale. An
integration scale denotes the number of components fitted into a
standard Integrated Circuit.
• Small Scale Integration or (SSI) – Contain up to 10 transistors or a few
gates within a single package such as AND, OR, NOT gates.
• Medium Scale Integration or (MSI) – between 10 and 100 transistors
or tens of gates within a single package and perform digital operations
such as adders, decoders, counters, flip-flops and multiplexers.
33
• Large Scale Integration or (LSI) – between 100 and 1,000 transistors
or hundreds of gates and perform specific digital operations such as
I/O chips, memory, arithmetic and logic units.
• Very-Large Scale Integration or (VLSI) – between 1,000 and 10,000
transistors or thousands of gates and perform computational operations
such as processors, large memory arrays and programmable logic
devices
34
• Super-Large Scale Integration or (SLSI) – between 10,000 and
100,000 transistors within a single package and perform computational
operations such as microprocessor chips, micro-controllers, basic PICs
and calculators.
• Ultra-Large Scale Integration or (ULSI) – more than 1 million
transistors – the big boys that are used in computers CPUs, GPUs,
video processors, micro-controllers, FPGAs and complex PICs.
35
Assignment
• Study about Moore’s Law
• Study about IC Fabrication
• Write down the differences between Analog System & Digital System
36
End of Chapter One
Thank You
37