Signal Conversion: Continuous to Discrete
The conversion from a continuous signal to a discrete signal is fundamental in digital signal
processing and image processing. This conversion involves three primary steps:
1 Sampling – This is the conversion of a continuous-time signal into a discrete time
signal obtained by taking "samples" of the continuous-time signal at discrete-time
instants. Thus, if 𝑥 𝑡 is the input to the sampler, the output is 𝑥 𝑛𝑇 ≡ 𝑥 𝑛 , where
𝑇 is called the sampling interval.
2 Quantization – This is the conversion of a discrete-time continuous-valued signal into
a discrete-time, discrete-valued (digital) signal. The value of each signal sample is
represented by a value selected from a finite set of possible values. The difference
between the unquantized sample 𝑥 𝑛 and the quantized output 𝑥 𝑛 is called the
quantization error.
3 Coding – In the coding process, each discrete value 𝑥 𝑛 is represented by a 𝑏-bit
binary sequence.
Sampling process
Choose a sampling period 𝑇 (or sampling frequency/rate, 𝐹 ).
Evaluate the continuous signal 𝑥 𝑡 at instants 𝑡 𝑛𝑇 (where 𝑛 is an integer).
The resulting discrete signal is given by:
𝑥𝑛 𝑥 𝑛𝑇
The frequency of this discrete signal is given by,
F
𝑓
𝐹
Nyquist Sampling Theorem: To accurately represent a continuous signal in
discrete form without losing information, the sampling frequency 𝑓 , must be at
least twice the maximum frequency 𝑓mar present in the signal:
𝑓 2𝑓
Aliasing: If the sampling rate is below this threshold, aliasing occurs, causing
different frequency components to become indistinguishable. This leads to
distortion in the reconstructed signal.
Fig Aliasing due to under sampling
Digital-to-Continuous Signal Conversion Techniques
Converting a digital (discrete) signal to a continuous signal is known as reconstruction or
digital to analog conversion (DAC). The process involves two main stages:
A. Reconstruction (Interpolation): After obtaining the discrete samples of a continuous
signal, the original continuous waveform can be approximated through interpolation methods.
Common techniques include:
Zero-Order Hald (ZOH):
o Method: Each sample value is held constant over the sampling interval until
the next sample is encountered.
o Characteristics:
Simple to implement.
Produces a step-like waveform.
May introduce distortion known as "staircase" effects.
First-Order Hold (FOH) or Linear Interpolation:
o Method: Connects consecutive sample points with straight lines, creating a
piecewise linear approximation of the continuous signal.
o Characteristics:
Provides smoother transitions compared to ZOH
Still may not capture high-frequency components accurately.
Sinc Interpolation (Ideal Reconstruction):
o Method: Uses the mathematical sinc function sin 𝜋𝑡 // 𝜋𝑡 to interpolate
between samples. The ideal continuous-time signal is reconstructed using the
farmula:
𝑡 𝑛𝑇
𝑥 𝑡 𝑥 𝑛 sinc
𝑇
where 𝑇 is the sampling periad.
o Characteristics:
It is an even function with Unity area.
Sincx(x) = 1 at x = 0
Provides the best theoretical reconstruction if the signal is band-
limited and the sampling theorem conditions are met.
It is used where Fourier analysis is required.
It keeps the original signal intact.
B. Smoothing and Filtering: After interpolation, a reconstruction (or anti-imaging) filter is
often applied:
Reconstruction Filter:
o A low-pass filter that removes high-frequency artifacts and smooths the output
waveform.
o Ensures that the resulting continuous signal is free of aliasing artifacts introduced
during the hold or interpolation process.
Together, these techniques allow a digital signal to be converted back into a continuous form
that approximates the original analog signal.
Some Signals in Discrete and Time Domain
1 Unit Step Sequence
Definition (Discrete-Time): The unit step sequence, usually denoted as 𝑢 𝑛 , is defined
as:
1, 𝑛 0
𝑢𝑛
0, 𝑛 0
2 Unit Impulse Sequence
Definition (Discrete-Time): The unit impulse (or Kronecker delta) sequence, denoted
as 𝛿 𝑛 , is defined as:
1, 𝑛 0
𝛿𝑛
0, 𝑛 0
It is nonzero only at 𝑛 0.
3 Shifted Step Sequence
Definition: A shifted (delayed) unit step sequence is given by:
1, 𝑛 𝑛
𝑢𝑛 𝑛
0, 𝑛 𝑛
where 𝑛 is an integer shift.
If 𝑛 0, the , the step “turns on" at 𝑛 𝑛 .
If 𝑛 0 , it turns on earlier than 0.
4 Shifted Impulse Sequence
Definition: A shifted unit impulse sequence is:
1, 𝑛 𝑛
𝛿𝑛 𝑛
0, otherwise
This means the impulse is located at time (or index) 𝑛 𝑛 .