Question

In: Electrical Engineering

How to convolve x[n] and h[n] in code composer studio using c . Also tell the...

How to convolve x[n] and h[n] in code composer studio using c . Also tell the steps to see the graph of convolved signal in ccs without connecting any hardware DSPKit

Solutions

Expert Solution


procedure for the above problem

1. Open Code Composer Studio

2. In WorkSpace Launcher.

BROWSE → Select the project location and make one new folder, MAKE NEW FOLDER → Type the Workspace name, OK → OK.

3. FILE ⇒ NEW ⇒ CCS PROJECT

Project name: Type your project name.

Tick use default location. → NEXT

Project type C6000.

Tick Debug And Release. → NEXT → NEXT.

Output type: Executable.

Device Variant : generic - TMS320C6745.

Device Endianness : little

Code Generation Tools: TI v6.1.12.

Run time support library: automatic.

Target content: none. →FINISH

4.FILE ⇒ NEW ⇒ SOURCE FILE

Source file: Type your project name.c( .c extension is must ).

Type the program.

FILE → SAVE.

5. Paste the following board library files in workspace location.

Common folder (contains header files)

Gel folder (contains gel file)

Library folder(contains library files)

6. Paste the Linker file in the project location.(linker file is available in cd)

Note: Those folders and linker file are availble at cd.

7. PROJECT ⇒ PROPERTIES ⇒ C/C++ BUILD → BASIC OPTION

Target processor version(--silicon version, -mv)    :   6400+ OK.

IN C/C++ BUILD, INCLUDE OPTIONS (Add dir to #include search path(--include_path,-I)) select this add icon and add the following three path by indivdually    - "${Diag}../../common/header"    - "${XDAIS_CG_ROOT}/packages/ti/xdais"    - "${C6000_CSL_CG_ROOT}/include"

8. FILE ⇒ NEW ⇒ TARGET CONFIGURATION FILE

file name: projectname. ccxml (.ccxml extension is must)

Connection: Texas Instrument XDS100 v1 USB Emulator.

Device: TMS320C6745. (Tick the TMS320C6745)→ SAVE → TARTGET CONFIGURATION → C674X_0 → BROWSE, browse the workspace location, open the gel folder and select the GEL file. → OPEN → SAVE.

9. In C/C++ Project window, Right click the project ⇒ REBUILD PROJECT.

10. Connections

Connect the usb cable, PC to TMS320C6745 KIT.

Connect the 5v adapter.

Power on the kit.

11. TARGET ⇒ DEBUG ACTIVE PROJECT.

12. VIEW ⇒ MEMORY.

13. In right side, memory window will open. Type the address and give the input at particular location.

Give the input as follow:

 
X(n)                                   h(n)


0xC0001000 – 00000001         0xC0001030 – 00000001


0xC0001004 – 00000001         0xC0001034 – 00000001


0xC0001008 – 00000001         0xC0001038 – 00000001


0xC000100C – 00000001         0xC000103C – 00000001

14. TARGET ⇒ RUN.

15. TARGET ⇒ HALT.

See the Output at Particular location:

Example:

0xC0001050 – 00000001


0xC0001054 – 00000002


0xC0001058 - 00000003


0xC000105C - 00000004


0xC0001060 - 00000003


0xC0001064 - 00000002


0xC0001068 – 00000001

after this you need to write the code for the program i write in above papers please go through it


Related Solutions

write a program for the microcontroller-msp430fr6989 using code composer studio not assembly language. write a code...
write a program for the microcontroller-msp430fr6989 using code composer studio not assembly language. write a code that transmits a single character and lights the red LED upon receiving that character. The board will "talk" to itself. The green LED should turn on whenever a message is sent and the LCD will display the message being received.
using code composer studio 1. write a program for the msp430fr6989 that will light LED1, whenever...
using code composer studio 1. write a program for the msp430fr6989 that will light LED1, whenever S1 is pressed. It should turn off whenever S1 is released. 2. Write a program that will make LED1 blink 5 times when S1 is pressed, and then stop.
using matlab, compute and plot y [n] = x [n]* h [n], where a. x [n]...
using matlab, compute and plot y [n] = x [n]* h [n], where a. x [n] = h [n] = a^n (0 <=n <=40) & a = 0.5 b. x [n] = cos [n]; h [n] = u [n]; n = 0:4:360 c. x [n] = sin [n] ; h [n] = a^n; n:4:360; a = 0.9
C++ PROGRAM Using the attached C++ code (Visual Studio project), 1) implement a CoffeeMakerFactory class that...
C++ PROGRAM Using the attached C++ code (Visual Studio project), 1) implement a CoffeeMakerFactory class that prompts the user to select a type of coffee she likes and 2) returns the object of what she selected to the console. #include "stdafx.h" #include <iostream> using namespace std; // Product from which the concrete products will inherit from class Coffee { protected:    char _type[15]; public:    Coffee()    {    }    char *getType()    {        return _type;   ...
Make a code in matlab to know the determinant of a matrix n x n, using...
Make a code in matlab to know the determinant of a matrix n x n, using the sarrus rule.
how to implement h / k sqrt (n) in c programing
how to implement h / k sqrt (n) in c programing
1) Define a sequence of polynomials H n (x ) by H 0 (x )=1, H...
1) Define a sequence of polynomials H n (x ) by H 0 (x )=1, H 1 (x )=2 x , and for n>1 by H n+1 (x )=2 x H n (x )−2 n H n−1 (x ) . These polynomials are called Hermite polynomials of degree n. Calculate the first 7 Hermite polynomials of degree less than 7. You can check your results by comparing them to the list of Hermite polynomials on wikipedia (physicist's Hermite polynomials). 2)...
x[n] is the input of an LTI system with the impulse response of h[n]. x[n] =...
x[n] is the input of an LTI system with the impulse response of h[n]. x[n] = [1, 2, 3] and h[n] = [4, 6]. Use 4-point DFT and IDFT and zero padding of x[n] and h[n] to find the output y[n].
how to implement h / k sqrt(n) in c h being a constant k being the...
how to implement h / k sqrt(n) in c h being a constant k being the students k(k < 10^9) n is the two mid points in a ternary search in c programing
PROBLEM: c++ code You are to write a program to tell you how many months it...
PROBLEM: c++ code You are to write a program to tell you how many months it will take to pay off a loan, as well as the total amount of interest paid over the life of the loan. You have just purchased a stereo system that costs $1000 on the following credit plan: No down payment, an interest rate of 18% per year (and hence 1.5% per month), and monthly payments of $50. The monthly payment of $50 is used...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT