0% found this document useful (0 votes)
70 views

DSP Lab Record Exp-1

Uploaded by

Prabhu Ch
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views

DSP Lab Record Exp-1

Uploaded by

Prabhu Ch
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

Academic Year 2019-20

20

Name :

Roll No :

Branch : Section:

Department of Electronics and Communications Engineering


B. V. Raju Institute of Technology (Autonomous)
Vishnupur, Narsapur, Medak(dt).
Department of ECE Digital Signal Processing Lab

DIGITAL SIGNAL PROCESSING LAB

III B.Tech ECE II Semester L T P C


3 2
PREREQUISITES: Fundamentals of MATLAB

List of experiments:
The programs shall be implemented in software (Using MATLAB / Lab view / C
programming/ Equivalent) and hardware (Using TI / Analog devices / Motorola / Equivalent
DSP processors).

OBJECTIVES:
1. To verify properties of a discrete system
2. To learn various transforms on digital signals
3. To understand the design of digital filters
4. To verify basic properties of multi rate systems

Lab Experiments:
1. Generation of Sinusoidal waveform / signal based on recursive difference equations
2. To find DFT / IDFT of given DT signal
3. To find frequency response of a given system given in (Transfer Function/ Differential
equation form).
4. Implementation of FFT of given sequence
5. Determination of Power Spectrum of a given signal(s).
6. Implementation of LP FIR filter for a given sequence
7. Implementation of HP FIR filter for a given sequence
8. Implementation of LP IIR filter for a given sequence
9. Implementation of HP IIR filter for a given sequence
10. Generation of Sinusoidal signal through filtering
11. Generation of DTMF signals
12. Implementation of Decimation Process
13. Implementation of Interpolation Process
14. Implementation of I/D sampling rate converters
15. Audio application such as to plot a time and frequency display of microphone plus a
cosine using DSP. Read a .wav file and match with their respective spectrograms.
16. Noise removal: Add noise above 3 KHz and then remove, interference suppression using
400 Hz tone.
17. Impulse response of first order and second order systems.

Note: - Minimum of 12 experiments has to be conducted.

COURSE OUTCOMES: After the completion of the course the students are able to,

1. Analyze the signals using the discrete Fourier transform (DFT).


2. Simulate analysis of Decimation in time and frequency FFT algorithms for efficient
computation of the DFT.
3. Design digital FIR and IIR filters.
4. Program digital signal processing algorithms in MATLAB.
5. Alter the sampling rate of a signal using decimation and interpolation
6. Illustrate frequency response of given system in Transfer function
2
BVRIT, Narsapur
Department of ECE Digital Signal Processing Lab

B.V.Raju Institute of Technology


Vishnupur, Narsapur, Medak.(Dt) Pin:502313
(Affiliated to JNTU, Hyderabad)
Ph: 08458-222000, 222001 Fax: 08458-222002
_____________________________________________
Department of Electronics & Communication Engineering

CERTIFICATE

It is Certified that this is the bonafide record of the work done by Mr./Ms

………………………………… Registration Number……………….Of ………………….. Class…………….. Year

…………….. Semester …………. In ……………………………………………….. laboratory.

INTERNAL GUIDE Dr.I.A.Pasha


M.E, PhD, Post Doc., MISTE, MIEEE.
Professor & HOD, Dept. of ECE

EXTERNAL EXAMINER

3
Department of ECE Digital Signal Processing Lab

INDEX

Page
S.No Name of the Experiment Date Signature
no.

4
BVRIT, Narsapur
Department of ECE Digital Signal Processing Lab

Review Experiment
Aim: Generation of different signals and sequemces
Apparatus Required: PC with MATLAB

5
BVRIT, Narsapur
Department of ECE Digital Signal Processing Lab

6
BVRIT, Narsapur
Department of ECE Digital Signal Processing Lab

7
BVRIT, Narsapur
Department of ECE Digital Signal Processing Lab

Experiment No: 1 Date:

Generation of sinusoidal waveform/signal based on recursive difference


equation
Course Outcome: Program digital signal process
processing algorithms in MATLAB.
Aim: To generate a sinusoidal waveform/signal using a recursive difference equation.
Apparatus Required: PC with MATLAB software

FLOWCHART:

START

Assign the co-efficients of the


difference equation (a1, a2, b1)

Initialize output y

Generate impulse sequence as


input

n=3

N==200
NO Y(n)=a1*y(n--1)+a2*y(n-2)+b1*x(n-1)
YES
Plot the Wave form n=n+1

STOP

Procedure:
1. Find the difference equation for the system w which produce sinusoidal signal.
2. Assign the co-efficients
efficients of difference equation.
3. Initialize output y.
4. Generate impulse signal as input.
5. Generate the sinusoidal signal based on recursive method using difference equation.
6. Display Resultant Signal

8
Department of ECE Digital Signal Processing Lab

Program:

Result:

9
BVRIT, Narsapur
Department of ECE Digital Signal Processing Lab

Sample Questions:

1. What is the difference between analog, discrete and digital signals?

2. What are the advantages and applications of DSP?

3. Mention the various methods of classifying a system.

4. Define an LTI system.

5. What are the advantages and disadvantages of Z transforms?

10
BVRIT, Narsapur
Department of ECE Digital Signal Processing Lab

Learning Outcome:

11
BVRIT, Narsapur
Department of ECE Digital Signal Processing Lab

IMPLEMENTATION
USING DSP
PROCESSOR KIT

12
BVRIT, Narsapur
Department of ECE Digital Signal Processing Lab

TMS320C6748 Block diagram

C6748 Functional Diagram

13
Department of ECE Digital Signal Processing Lab

Analog Interface Circuit

The C6748 DSP kit includes a stereo codec. This analog interface circuit (AIC) has the
following characteristics:

High-Performance Stereo Codec


Interfaces directly to digital or analog microphones
Supports 8-96 ksps sampling rates
High SNR (100-102dB DAC, 92dB ADC)
Integrated PLL supporting a wide range of audio clocks
Low-power headphone, speaker and playback modes for portable systems

Programmable digital audio effects include 3D sound, bass, treble, EQ and de-emphasis
Software Control via TI McASP-Compatible Multiprotocol Serial Port. Glueless Interface to
TI McASPs.
Audio-Data Input/Output Via TI McASP-Compatible Programmable Audio Interface
16/20/24/32-Bit Word Lengths.

TMS320C6748 DSP Features


 Highest-Performance Floating-Point Digital Signal Processor(DSP):
 Eight 32-Bit Instructions/Cycle
 32/64-Bit Data Word
 375/456-MHz C674x Fixed/Floating-Point
 Up to 3648/2746 C674x MIPS/MFLOPS
 Rich Peripheral Set, Optimized for Audio
 Highly Optimized C/C++ Compiler
 Extended Temperature Devices Available
 Advanced Very Long Instruction Word (VLIW) TMS320C67x™ DSP Core
 Eight Independent Functional Units:
 Two ALUs (Fixed-Point)
 Four ALUs (Floating- and Fixed-Point)
 Two Multipliers (Floating- and Fixed-Point)
 Load-Store Architecture With 64 32-Bit General-PurposeRegisters
 Instruction Packing Reduces Code Size
 All Instructions Conditional
 Instruction Set Features
 Native Instructions for IEEE 754
 Single- and Double-Precision
 Byte-Addressable (8-, 16-, 32-Bit Data)
 8-Bit Overflow Protection
 Saturation; Bit-Field Extract, Set, Clear; Bit-Counting; Normalization
 67x cache memory.
 32K-Byte L1P Program Cache (Direct-Mapped)
 32K-Byte L1D Data Cache (2-Way)
 256K-Byte L2 unified MemoryRAM\Cache.
 Real-Time Clock with 32 KHz Oscillator and Separate Power Rail.
 Three 64-Bit General-Purpose Timers
 Integrated Digital Audio Interface Transmitter (DIT) Supports:
 S/PDIF, IEC60958-1, AES-3, CP-430 Formats
 Up to 16 transmit pins
 Enhanced Channel Status/User Data
 Extensive Error Checking and Recovery

14
BVRIT, Narsapur
Department of ECE Digital Signal Processing Lab

 Two Inter-Integrated Circuit Bus (I 2 C Bus™) .


 3 64-Bit General-Purpose Timers (each configurable as 2 32-bit timers)
 Flexible Phase-Locked-Loop (PLL) Based Clock Generator Module

15
BVRIT, Narsapur
Department of ECE Digital Signal Processing Lab

PROCEDURE TO WORK ON CODE COMPOSER STUDIO

1. Open CCS7.4

2. Open new CCS project.


Path: File –> New –> CCS Project

3. In the project specify the target, Connection, project name, compiler version and then
select empty project with main.c and click finish.

Target: C674X Floating point DSP – TMS320C6748


Connection: TEXAS INSTRUMENTS XDS110 USB DEBUG PROBE (referencet o
your debugger in the DSP trainer Kit)
Project name: any name as per your choice
Compiler version: TI v8.2.2

16
Department of ECE Digital Signal Processing Lab

4. Once you click on finish an editor window with basic C programming format will be
opened

5. Write your C - code in the edit window and save it. ( Default it will be saved as main.c)

6. Then Build the project:


Path: Project: Build Project (Do not select build all as it builds all other projects also)
 This gives the errors in your code if any under the console window at the bottom

17
Department of ECE Digital Signal Processing Lab

7. Then connect your target (KIT) and debug the program.


Path: Run -> Debug
Once your program is successfully debugged a .OUT file will be created

8. Load the created .OUT file in to the hardware


Path: Run: Load -> load program

9. The output values will be displayed in the console window which is executed with the
help of connected hardware.
10. To plot the graph:
Path: Tools-> graph..

18
Department of ECE Digital Signal Processing Lab

Experiment No: 2 Date:

Generation of sinusoidal waveform/signal

Course Outcome: Program digital signal processing algorithms using DSPP hardware.
Aim: To generate a sinusoidal waveform/signal.
Apparatus Required: 1. TMS320C6748 DSP trainer Kit
2. CCS Studio software

19
BVRIT, Narsapur

You might also like