files/journal/2022-09-02_12-20-40-000000_622.png

International Journal of Soft Computing

ISSN: Online
ISSN: Print 1816-9503
126
Views
1
Downloads

Algorithm for Applying Decimator Structures in Digital Signal Processing Systems for Energy Conservation

G.A. Chukwudebe, N. Onwuchekwa and M.C. Ndinechi
Page: 236-242 | Received 21 Sep 2022, Published online: 21 Sep 2022

Full Text Reference XML File PDF File

Abstract

Digital Signal Processing (DSP) has become one of the most powerful technologies in reshaping science and engineering especially in the areas of communication and medicine. In this research, DSP applications, where the signal at a given sampling rate needs to be converted into another signal with a different sampling rate known as multirate systems are investigated. This multirate DSP has been found useful in such application like digital audio, video and even GSM technology. The design of digital filters and multirate system using decimator structures is presented. The research is implemented using MATLABTM software. Several plots obtained showed that decimator structures reduce the number of operations required for a particular application. With the sampling rate reduced, the processor runs at a lower clock rate thereby producing less heat. This will eventually lead to lower power/battery consumption.


INTRODUCTION

Digital Signal Processing (DSP) has become one of the most powerful tools in reshaping science and engineering. Revolutionary changes have already been made in a broad range of fields in communications, medicine, radar and sonar, hi-fi music reproduction and oil prospecting using DSP systems. So, it appeals to the engineer, the medical doctor as well as the musician. Under suitable software environment, DSP allows experimentation with sounds, images and video which contain a number of well defined mathematical problems, from filtering to multirate to sigma delta modulation and to error correction, using Fast Fourier Transforms (FFT), digital filters and multirate filters as building blocks (Cristi, 2004).

A signal can be generated synthetically or by computer simulation to carry information. The objective of signal processing is to extract useful information carried by the signal. The method of information extraction depends on the type of signal and the nature of the information being carried by the signal. Thus signal processing is concerned with the mathematical representation of signal and the algorithmic operation carried out on signals to extract the information present. The representation of the signal can be expressed in terms of basis functions in the domain of the original independent variables or it can be in terms of basis functions in a transformed domain. Likewise, the information extraction process may be carried out in the original domain of the signal or in a transformed domain.

A digital signal processor is an integrated circuit designed for high-speed data manipulations (Peterson et al., 2000). The DSP performs multiplication in a single cycle by implementing all shifts and add operations in parallel. When general purpose DSPs are not fast enough, the signal is either processed using analogue circuits which may have some drawbacks, or application specific DSP hardware. Digital signal processing by its nature requires many manipulations of the form A = BxC + D. This may appear to be simple but when speed is also required, only dedicated hardware can perform this task. Digital signal processors have specialized instruction that allows them to multiply, add and save the result in a single instruction cycle. This instruction is usually called MAC (Multiply and Accumulate) (Peterson et al., 2000).

Typical DSP systems consist of a DSP chip, memory, possibly an Analogue-to-Digital Converter (ADC), a Digital-to-Analogue Converter (DAC), arithmetic unit and communication channels (Eyre, 2001) as shown in Fig. 1. In this research, we are concerned with discrete time representation of signals and their time processing.

Situations, where there is need to change the sampling frequency of a digitized signal often arises such as transferring music from Digital Audio Tape (DAT) to Compact Disc (CD) or when mixing signals with different standards.

 

Fig. 1:

Typical contents of a DSP hardware

 

Some other reasons for resampling may be when there is need to pass data between two systems that use incompatible sampling rates. In the bid to solve this problem, multirate digital signal processing was developed (Crochiere and Rabiner, 1983). Therefore, the objective of this research is to investigate the problems associated with changing of sampling frequency of a discrete signal since it can lead to loss of valuable information or distortion. With this, the number of operations is highly reduced as well as heat dissipation thereby conserving energy.

Advantages and disadvantages of DSP: Analogue signal processing involves linear operations such as amplification, filtering, integration and differentiation and non-linear operations such as squaring, rectification etc. Some of the limitations of analogue signal processing are restricted accuracy and dynamic range, limited speed of operation, component drift and sensitivity to noise. On the other hand, digital signal processing involves numerical operations such as addition, multiplication, data transfer and logical operations. Consequently, digital signal processing offers some clear advantages over analogue signal processing. These include:

Programmability: A single piece of digital DSP hardware can perform many functions.

Upgradeability: Once a design have been implemented, one may want to upgrade or add new functions or adapt to a new environment altogether.

Flexibility: A single DSP board can be made to perform many functions by simply loading new programs into it. This flexibility reduces design time and complexity.

Stability: DSP gives stable performance over time.

Temperature effect: A temperature sensitive analogue circuit will definitely perform quite differently in different climatic regions of the world. Digital circuits do not change their characteristics with temperature. They either work or do not work.

 

Fig. 2:

Block diagram of discrete-time digital processing of a continuous time signal

 

Digital repeatability: A properly designed digital circuit will reproduce the same result every time in addition to being identical from unit to unit.

Digital signal processing equally have some disadvantages. One of such disadvantages is increased system complexity in the digital processing of analogue signals (Mitra, 2006). Another disadvantage is the limited range of frequencies available for processing.

Fundamental of Digital Signal Processing (DSP): DSP is achieved by sampling the analogue signal at regular intervals and converting each of these samples, with a binary number quantization. Several operations such as filtering, resampling etc can then be performed on the sequence of numbers (signal). The basic building block of the discrete-time digital processing of a continuous time signal is as shown in Fig. 2 where, x (t) and y (t) are analogue signals, while x(n) and y(n) are discrete time signals. The DSP processor implements the desired algorithm.

MATERIALS AND METHODS

Multirate signal processing: The process of converting the given rate of a signal into a different rate is called sampling rate conversion. Systems that employ multiple sampling rates in the processing of digital signals are called multirate digital processing systems (http://www.dspguru.org/Info/faqs/multirate/decim.htm; http://www.idealgroup.com/downloads/excerpts/190307 08300Book.Ex.Pdf:). The reduction of a sampling rate is called decimation because the original sample set is reduced or decimated (http://www.dspguru.org/Info/faqs/ multirate/basics.htm).

Decimation consists of two stages; filtering and downsampling as shown in Fig. 3. Downsampling reduces the input sampling rate f1 by an integer factor M. The output signal y(m) is called a downsampled signal and is obtained by taking only every Mth sample of the input signal and discarding all others:

(1)


 

Fig. 3:

Decimator stages

 

To model the downsampling process, it is convenient to divide it into two steps. The output of the first step is the signal x(n), which is obtained by setting all samples whose indices are not integer multiples of M to zero. In the second step, all zeroes that were introduced in the first step are discarded. This result is the downsampled signal. The downsampling operation is not invertible because it requires setting some of the samples to zero i.e., x(n) cannot be recovered from y(m) exactly but can only compute an approximate value.

The sampling rate is not altered during the first step so that the signals x(n) and x(n) have the same sampling rate. The signal x (n) can be considered as a multiplication of x(n) with the discrete sampling function CM (n) where, M denotes the downsampling factor.

(2)

Where:

and

The sampling function CM (n) is periodic with period M and as such can be represented by the Fourier series expansion:

(3)

where, C (k) are complex value Fourier series coefficients defined by:

(4)

Substituting Eq. 4 into 3, it follows that C (k) = 1 for all K. Hence,

(5)

to analyze the frequency representation of first step of down sampling, Fourier Transform (FT) of the sequence x(n) is computed using Eq. 2.

(6)

Using the relationship established in Eq. 5 and 6 becomes:

(7)

By interchanging the sums in Eq. 7, x(e) becomes:

(8)

Computing the FT of x(n)

(9)

Applying the frequency shift property of FT gives:

(10)

The expression on the right hand side of Eq. 10 resembles the one in Eq. 8. Then, it can be concluded that:

(11)

From Eq. 11, it will be observed that the amplitude is scaled by 1/M and that the replicas of the input spectrum are introduced at multiples of 2π/M. The zeros previously introduced have to be eliminated. This operation does not change the content of the signal x'(n), rather it just introduces time scaling by a factor of 1/M. Because the operations in time and frequency are inverse to each other, the frequency scale will be multiplied by M i.e., x'(ejω/M) becomes y(e).

Again, using the definition of FT for x'(n)

(12)

Because x'(n) is non zero for only n = mM, then

(13)

Substituting Eq. 1 into 13 and using the definition of F.T. for y(m).

(14)

Using Eq. 11 and 14 can be rewritten as:

(15)

Equation 15 gives the expression for the downsampled signal. Sometimes, it is more convenient to express the downsampled signal in terms of its z-transform. For a sequence x(n), its z-transform is defined as:

(16)

where, z is a complex variable given by z = re. It is well known that when it exists, the F.T. is simply x(z) with z =e.

(17)

Consequently, the expression in Eq. 15 can be expressed in terms of z-transform as:

(18)

RESULTS AND DISCUSSION

To illustrate downsampling in the time domain, consider the input signal shown in the Fig. 4a with the down sampling factor of M = 2. The corresponding sampling function for n = 0, 2…, 16 is given in Fig. 4b. Figure 4c demonstrates the first step of down sampling, where every second sample is set to zero. In the second step, Fig. 4d, the zeros introduced in the previous step are eliminated to finally obtain the down sampled signal. It can be observed that the downsampled signal is a compressed in time version of the input signal.

The frequency domain representation of the downsampling is as shown in Fig. 5a during the first step, Fig. 5b, one image (M-1 = 1) is introduced in the interval (0, 2π) and the amplitude of the spectrum is scaled by ½. In the second step, Fig. 5c, the frequency is scaled by m = 2, as proved in Eq. 15.

 

Fig. 4:

Downsampling in time domain

 

Fig. 5:

Downsampling in frequency domain

It can be observed that the spectrum of the downsampled signal is the input spectrum stretched by 2, while in the time domain, the opposite was true (compressed by a factor of 2) because the time and frequency representations are inverse to each other.

Aliasing effect: The individual spectra obtained during the first step of downsampling are the repeated replicas of the original spectrum. If the original signal is not band limited to π/M, the replicas will overlap. This overlapping effect is called aliasing. In order to avoid aliasing, it is necessary to limit the spectrum of the signal before downsampling to below π/M by allowing low pass filtering to precede the downsampler (Lyons) as shown in Fig. 3.

This filter is called a decimation or anti-aliasing filter. The exact filter specifications depend on how much aliasing (if any) is permitted. The specifications for the low pass decimation filter are given by as (http://www.ifn. et-tudresden.de/MNS/veroeffertlichugen/2000/Hentsche. com):

(19)

Downsampling operation in the time and frequency domain using MATLABTM: We investigated the downsampling of a sinusoidal input sequence using MATLAB (Chapman, 2002).

The codes for the program are listed in Appendix 1. Its input data are the length of the input sequence, the downsampling factor and the frequency of the sinusoid in Hz. It then plots the input and its downsampled version. The result obtained for a length of 50 sinusoidal sequences with a frequency of 0.042 HZ and with a downsampling factor of 3 is as shown in Fig. 6. From these plots, it can be verified that the relation between the output and the input sequences satisfied Eq. 1.

We further investigated the frequency domain properties of the downsampling using MATLABTM. The input is a causal finite length sequence with a band limited frequency response generated using M file FIR 2 with a triangular magnitude response as in Mitra (2006) with the frequency vector selected to ensure that there are no appreciable signal components above the normalized frequency of 0.5. The MATLAB codes are listed in Appendix 2 and the plots are in Fig. 7.

 

Fig. 6:

Input and output plots generated by running appendix 1


 

 

Fig. 7:

Input and output plots generated by running appendix 2


 

 

Fig. 8:

Input and output plots generated by running appendix 3

 

Decimation operation using MATLAB: We further carried out the decimation of a sum of two sinusoidal sequences of normalized frequencies f1 and f2 by an arbitrary down sampling factor M using the MATLABTM codes listed in Appendix 3. The input data to the program are the length (N) of the input x(n), the downsampling factor M and the two normalized frequencies in Hz. The program uses a Finite Impulse Response (FIR) low-pass decimation filter with stop band edge at π/M so as to satisfy Eq. 19. The input and output sequences are as indicated in Fig. 8. For N = 100, M = 2, F1 = 0.043 and F2 = 0.031.

CONCLUSION

The sampling rate conversion (Mutirate) can be viewed as another way of filter design. It must satisfy all the specification necessary to avoid signal degradation such as aliasing and imaging while keeping the number of coefficients at minimum to further reduce computational cost. Multirate Digital Signal Processing (MDSP) has proved to be a powerful method of significantly reducing the number of computation in the sampling rate conversion processes. This is certainly an important issue, especially in telecommunications. Of particular importance is in GSM (Global System for Mobile) applications. With the sampling rate reduced, the processor runs at a lower clock rate thereby producing less heat. This will eventually lead to lower power/battery consumption. Users will have to use their devices longer without the need to recharge more regularly.

APPENDIX 1

APPENDIX 2

APPENDIX 3

How to cite this article:

G.A. Chukwudebe, N. Onwuchekwa and M.C. Ndinechi. Algorithm for Applying Decimator Structures in Digital Signal Processing Systems for Energy Conservation.
DOI: https://doi.org/10.36478/ijscomp.2009.236.242
URL: https://www.makhillpublications.co/view-article/1816-9503/ijscomp.2009.236.242