Digital Logic Design (ES216) Lec 1-3
Digital Logic Design (ES216) Lec 1-3
Department of Mechatronic
Engineering
Lec # 1-3
arsalan.abro@faculty.muet.edu.pk
Recommended Books
The focus of this subject will be digital quantities but we should know the
difference between both.
Both digital and analog electronics are used in the control of various mechanical
systems hence, a Mechatronic System
Analog quantity
• An analog quantity has continuous values.
Examples:
• Time
• Pressure
• Distance
• Sound
• Etc.
Example of analog System
• Telephone and cassette players are examples of analog systems.
• The waveforms are continuous in nature.
Digital quantity
• A digital quantity is one having a discrete set of values.
• The change recorded is in steps.
Example of digital system
A digital device for weather monitoring and temperature control
Hybrid System
Analog v/s digital
Comparison Quantity Analog Signal Digital Signal
Example Human voice in air, analog electronic devices. Computers, CDs, DVDs, and other digital electronic devices
Technology Analog technology records waveforms as they are. Samples analog waveforms into a limited set of numbers and records them.
Data transmissions Subjected to deterioration by noise during transmission Can be noise-immune without deterioration during transmission and write/read
and write/read cycle. cycle.
Response to Noise More likely to get affected reducing accuracy Less affected since noise response are analog in nature
Uses Can be used in analog devices only. Best suited for audio Best suited for Computing and digital electronics.
and video transmission.
Bandwidth Analog signal processing can be done in real time and There is no guarantee that digital signal processing can be done in real time
consumes less bandwidth. and consumes more bandwidth to carry out the same information.
Memory Stored in the form of wave signal Stored in the form of binary bit
Power Analog instrument draws large power Digital instrument draws only negligible power
Analog to digital convertors (ADC)
• In electronics, an analog-to-digital converter (ADC, A/D, or A-to-D) is a system that converts
an analog signal, such as a sound picked up by a microphone or light entering a digital camera,
into a digital signal.
How adc works
• They first sample the signal, then quantify it to determine the resolution of the signal, and
finally set binary values and send it to the system to read the digital signal.
• Two important aspects of the ADC are its sampling rate and resolution.
How adc works
• Sampling rate, also known as sampling frequency, can be tied to the ADC’s speed. The sampling
rate is measured by using “samples per second”
• “What happens when the sampling rate is considerably slower?” you might ask. It is important to
know the sampling rate of the ADC because you will need to know if it will cause aliasing.
• Aliasing means that when a digital image/signal is reconstructed, it differs greatly from the original
image/signal caused from sampling.
Negative Logic, is the opposite representation of the Positive Logic. Here, 1 is represented
by a LOW and a 0 is represented by a HIGH
• High Voltage = 0
• Low Voltage = 1
HIGH HIGH
Rising or Falling or Falling or Rising or
leading edge trailing edge leading edge trailing edge
Ideal pulses
LOW LOW The change occurs in zero
t0 t1 t0 t1
time i.e. instantaneously
Figure (a) shows that a 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.
Figure (b) shows that a negative-going pulse is generated when the voltage goes from its normally HIGH
level to its LOW level and back to its HIGH level.
Digital waveform (nonideal pulse)
In reality, all pulses do not change state instantaneously. This may be
due to the overshoot and ringing sometimes produced by stray
inductive and capacitive effects.
Rise Time (tr ): The time required for a pulse to go from its LOW
level to its HIGH level
Fall time (ft ): The time required for the transition from the HIGH
level to the LOW level
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
to avoid nonlinearities in the waveform.
Pulse width (two): The measure of the duration of the pulse. Often
defined as the time interval between the 50% points on the rising and
falling edges
Waveform Characteristics
Most waveforms encountered in digital systems are composed of series of pulses,
sometimes called pulse trains.
The pulse trains can be further classified as:
• Periodic pulse
• Non-periodic pulse
Waveform Characteristics (periodic pulse)
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).
Waveform Characteristics (periodic pulse)
The frequency ( f ) of a pulse (digital) waveform is the reciprocal of the period.
It takes 1 ms to transfer each bit in the waveform. The total transfer time for 8 bits is
To determine the sequence of bits, examine the waveform in the given figure 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, a 0
is transferred. The left-most bit is the first to be transferred.