LINEAR AND CIRCULAR CONVOLUTION ON DSP
AIM: To implement linear and circular convolution on DSP using Code Composer Studio.
THEORY:
Convolution is a mathematical operation used extensively in digital signal processing
(DSP) to combine two signals to produce a third signal that represents how the shape of
one signal is modified by the other. Convolution is fundamental in various applications,
such as filtering, system analysis, and feature extraction in communication systems,
image processing, and audio signal processing.
1. Linear Convolution
Linear convolution involves combining two discrete signals to produce a result that
reflects the cumulative effect of one signal passing through a system represented by
the other signal. For two discrete-time signals, x[n] and h[n], their linear convolution is
mathematically expressed as:
where:
• x[n] is the input signal.
• h[n] is the impulse response of the system.
• y[n] is the output signal resulting from the convolution.
Linear convolution is typically used in scenarios where the full extent of the signal
needs to be considered, such as finite impulse response (FIR) filtering, where the length
of the output is generally the sum of the lengths of the input signal and the impulse
response minus one.
2. Circular Convolution
Circular convolution, also known as cyclic convolution, is a type of convolution where
the signals are treated as if they are periodic. Mathematically, the circular convolution
of two discrete-time signals x[n] and h[n] each of length NNN, is given by:
In circular convolution, the signals are wrapped around when their indices exceed the
signal length, resulting in a periodic convolution. Circular convolution is primarily used
in applications that involve periodic signals, such as in the implementation of
algorithms using the Discrete Fourier Transform (DFT), where it is the natural form of
convolution due to the periodicity inherent in the DFT.
Codes and Outputs:
Linear Convolution:
Circular Convolution:––-
Result:
Thus the implementation of linear convolution and circular convolution is successful.
The results match with the expected results.