Chapter 02
Chapter 02
Principles
Chapter 2
Digital Representation
TMH Chapter - 2 1
Digital Representation
Analog
An analog quatity can vary continuously over space and/or time.
It is represented as f(x,y,z,t).
Value of the analog signal can be determined for any possible value of
space or time variable (space or time continuous).
TMH Chapter - 2 2
Digital Representation
Analog
TMH Chapter - 2 3
Digital Representation
Waves
Waves can be conceived as energy propagating from one place
to another either through a material medium or through vacuum.
TMH Chapter - 2 4
Digital Representation
Waves
It is customary however to to explain the concepts of a wave by
considering a sinusoidal function i.e. y = Asin(x) or y = Bcos(x).
This is because sinusoids are easier to deal with as they are periodic
functions and can be represented by simple equations.
TMH Chapter - 2 6
Digital Representation
Waves
The peak amplitude of a wave is the maximum displacement of
the oscillating particle from its mean position.
The frequency refers to how fast the particle is oscillating and is defined
as the number of oscillations completed by the particle in unit time.
TMH Chapter - 2 8
Digital Representation
Waves
The waveform essentially represents the shape of the wave and
signifies the change of the amplitude and frequency over time.
The sinusoidal shape represents the elementary wave but waves can
have any shape like triangular, square, half-sinusoidal etc. A wave can
also have an irregular shape without any apparent periodicity.
TMH Chapter - 2 9
Digital Representation
Waves
TMH Chapter - 2 10
Digital Representation
Waves
Two or more sinusoidal waves can combined together to
generate a composite wave which may have a non-sinusoidal
shape
TMH Chapter - 2 11
Digital Representation
Waves
TMH Chapter - 2 12
Digital Representation
Waves
Sinusoidal waves are not mathematical abstractions, they can be
produced in the real world by a phenomenon called simple harmonic
motion (SHM)
TMH Chapter - 2 13
Digital Representation
Waves
Temporal waves depict the state of a single particle in the path of
a wave over a period of time. It is pictorially depicted as a graph
plotted with time as the horizontal axis and amplitude as the
vertical axis.
Different points on the wave depict the state of the particle i.e. its
displacement from the mean position, at different instants of time.
A spatial wave on the other hand depict the states of several particles in
the path of a wave at a single instant of time.
Different points on the graph depict the states of different particles at the
particular instant at which the snapshot was taken.
TMH Chapter - 2 14
Digital Representation
Waves
TMH Chapter - 2 15
Digital Representation
Waves
The speed of transmission of a wave is the distance traveled by
it in unit time, as the wave is propagated from the source to the
destination.
TMH Chapter - 2 16
Digital Representation
Waves
TMH Chapter - 2 17
Digital Representation
Digital
In contrast to analog quantities, digital quantities are not
continuous over space or time, and as such they cannot be
represented by smooth waves.
They are discrete in nature which means that they exist or have values
only at certain points in space or instants in time, but not at other points
or instants
A digital computer can only recognize digital values. The reason for this
is due to the internal architecture of the computer.
TMH Chapter - 2 18
Digital Representation
Digital
TMH Chapter - 2 19
Digital Representation
Digital
Each alphanumeric character is represented by a combination of
1s and 0s known as its ASCII code (American Standard Code for
Information Interchange) using which they are represented
internally within a computer
Since the numbers comprise of only 1s and 0s, the code is known as
binary code.
Each of these digits is known as a bit, short for binary digit, while a
collection of 8 bits is called a byte.
TMH Chapter - 2 20
Digital Representation
A to D Conversion
The first step in converting an analog quantity to a digital form is
called sampling.
TMH Chapter - 2 21
Digital Representation
A to D Conversion
TMH Chapter - 2 22
Digital Representation
A to D Conversion
The input analog value must be held constant during the
conversion process to avoid inconsistencies due to changing
values. This operation is called sample-and-hold
Higher the sampling rate more is the number of samples of the original
wave that are obtained and better is its representation after digitization.
TMH Chapter - 2 23
Digital Representation
A to D Conversion
TMH Chapter - 2 24
Digital Representation
A to D Conversion
Another important point to be noted is that a digitized version will
always be a degraded version of the original analog wave,
because no matter how large the sampling rate is, we are bound
to discard and lose some data in between two sample values.
TMH Chapter - 2 26
Digital Representation
A to D Conversion
Code-word generation involves expressing these amplitude
levels in terms of binary codes or numbers, because that is
finally how the data would be represented within a computer.
TMH Chapter - 2 27
Digital Representation
A to D Conversion
TMH Chapter - 2 28
Digital Representation
A to D Conversion
Nyquist’s theorem states:
TMH Chapter - 2 29
Digital Representation
A to D Conversion
The higher frequencies lead naturally to a good approximation of
the wave.
TMH Chapter - 2 30
Digital Representation
A to D Conversion
The low frequency distortion produced due to the lowest
sampling rate, known as under-sampling, is referred to an
aliasing, because the input wave is not truly represented at the
output.
TMH Chapter - 2 32
Digital Representation
A to D Conversion
To prevent this an analog to digital converter contains a band-limiting
filter preceeding the sampling circuit so that all high frequency
components can be removed from the signal before it is sampled. This
filter is called an anti-aliasing filter
TMH Chapter - 2 33
Digital Representation
A to D Conversion
TMH Chapter - 2 34
Digital Representation
D to A Conversion
A picture or an audio clip would be stored on a hard disk as bit
patterns, but when the picture is to be displayed on the screen or
the audio clip needs to be played on a speaker, a digital to
analog conversion is required.
TMH Chapter - 2 36
Digital Representation
D to A Conversion
After the DAC the generated analog waveform is passed through
a low-pass filter which filters out any high-frequency
components.
TMH Chapter - 2 38
Digital Representation
Quantization Error
During the quantization stage, we consider only a limited number
of samples while discarding the rest.
TMH Chapter - 2 39
Digital Representation
Quantization Error
TMH Chapter - 2 40
Digital Representation
Quantization Error
To eliminate noise fully during digitization we must sample at an
infinite rate which is impossible in practice.
TMH Chapter - 2 41
Digital Representation
Fourier Representation
Fourier representation, is a mathematical technique which shows that
any periodic signal i.e. a signal which repeats itself in equal time
intervals, is made up of an infinite series of sinusoidal frequency
components.
TMH Chapter - 2 42
Digital Representation
Fourier Representation
Each of the four Fourier representations can be of two versions :
real and complex. The real version uses real numbers for
decomposition and synthesis while the complex version uses
complex numbers.
TMH Chapter - 2 44
Digital Representation
Fourier Representation
TMH Chapter - 2 45
Digital Representation
Fourier Representation
The frequency domain contains exactly the same information as
the original wave in the time domain, just expressed in a different
form e.g. analogous to 6 being expressed as 3+3.
TMH Chapter - 2 47
Digital Representation
Fourier Representation
TMH Chapter - 2 48
Digital Representation
Fourier Representation
TMH Chapter - 2 49
Digital Representation
PCM
This process of encoding digital information in terms of voltage
signals is called modulation and is done using a device called a
modulator.
TMH Chapter - 2 50
Digital Representation
PCM
Although the basic technique involves sampling and quantization
according to the ITU-T recommendations G.711 a PCM circuit
should include additional components called a compressor and
an expander
TMH Chapter - 2 52
Digital Representation
Merits and Demerits
The key advantage of the digital representation lies in the universality of
representation.
The same digital storage device, like memory chips, hard disks, floppies
and CD-ROMs, can be used for all media type like text, images,
graphics, audio, video and animation.
TMH Chapter - 2 53
Digital Representation
Merits and Demerits
Powerful software programs can be used to analyze, modify,
alter and manipulate multimedia data in a variety of ways. This is
probably where the potential is the highest.
TMH Chapter - 2 54