0% found this document useful (0 votes)
26 views6 pages

Signal Generation Using TMS320C6713 Processor

This document describes a system for generating signals using a TMS320C6713 digital signal processor. A signal processing description is first implemented in MATLAB or Simulink. The Simulink model is converted to C code using Real-Time Workshop and compiled on the DSP board using Code Composer Studio. The running program on the DSP board outputs real-time processed signals to an oscilloscope. Examples demonstrated include transferring data from MATLAB to Simulink, designing a low-pass filter, and simulating the model to generate output signals on the DSP board.

Uploaded by

RAMESH BABU EEE
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)
26 views6 pages

Signal Generation Using TMS320C6713 Processor

This document describes a system for generating signals using a TMS320C6713 digital signal processor. A signal processing description is first implemented in MATLAB or Simulink. The Simulink model is converted to C code using Real-Time Workshop and compiled on the DSP board using Code Composer Studio. The running program on the DSP board outputs real-time processed signals to an oscilloscope. Examples demonstrated include transferring data from MATLAB to Simulink, designing a low-pass filter, and simulating the model to generate output signals on the DSP board.

Uploaded by

RAMESH BABU EEE
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/ 6

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/365790193

Signal Generation Using TMS320C6713 Processor Space vector PWM inverter


View project Signal Generation Using TMS320C6713 Processor

Article · November 2022

CITATIONS READS
0 53

2 authors, including:

Dr Dolly Thankachan
Oriental University
38 PUBLICATIONS 53 CITATIONS

SEE PROFILE

All content following this page was uploaded by Dr Dolly Thankachan on 28 November 2022.

The user has requested enhancement of the downloaded file.


See discussions, stats, and author profiles for this publication at: https://www.researchgate.net/publication/266463722

Signal Generation Using TMS320C6713 Processor

Article · December 2011

CITATIONS READS

2 1,761

2 authors, including:

Dr Dolly Reney
Oriental University
10 PUBLICATIONS 32 CITATIONS

SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Biometrics View project

Space vector PWM inverter View project

All content following this page was uploaded by Dr Dolly Reney on 06 April 2016.

The user has requested enhancement of the downloaded file.


Dolly Reney et al IJCSET |December 2011 | Vol 1, Issue 11, 753-756

Signal Generation Using TMS320C6713 Processor


Dolly Reney 1 and Dr.Neeta Tripathi 2
1
Assist. Prof.E &TC Deptt.C.CE&T, Bhilai, INDIA
2
Principal SSITM Bhilai, INDIA

Abstract: - This project focuses on developing a software A.1.Signal Processing Description


user interface using Matlab tools that will allow a user to This is a given problem to be implemented on the D.S.P
easily execute C, C++ and assembly language code on a board. It can involve implementing a control feedback
Texas Instrument DSP board (TMS320C6713). A signal system on the D.S.P board or analyzing a complex data
processing description to be executed on this DSP board will
first be implemented using either a Matlab M-file or
acquisition scheme on a D.S.P board. Any problem whose
Simulink block diagrams. The block diagram in Simulink is output is in the form of signals or data that can adequately
first converted to C code using the Real-Time Workshop be processed in real time on the TMS3206713 is our Signal
feature in Simulink. The Code Composer Studio software Processing Description.
package converts the C code into an executable file, which is A.2. Host PC with MATLAB Development Tools
downloaded onto the board and displayed on the The signal processing description is implemented by first
oscilloscope. writing code using Matlab development tools. If the signal
Keywords: - MATLAB, Simulink, TMS320C6713, DSP, processing description is in C++, C or assembly language
RTW code, it has to be converted to a MEX file, which is
interfaced with Matlab. The Matlab code generated is saved
I. INTRODUCTION into an input file or a workspace to be used in Simulink.
A different approach of understanding Digital Signal A.3. Simulink
Processing [5] which uses design of DSP Simulink blocks Simulink, an extension of Matlab will be used also to solve
concepts is presented in this paper. This different approach our Signal Processing Description by first obtaining from
focuses on DSP problems and concepts using TIC6000 and Matlab an input file and displaying our graphical results
DSP Simulink block sets, in fact avoiding the use of numerically. A number of design blocks which may be
algorithm such as assembly and C. One of the major unavailable in Simulink need to be developed in Matlab by
attributes of the proposed applications is its flexibility to writing C code. Only a constructed block diagram
conduct hands-on experiments with real signals using Texas representation of the Signal Processing Description in
instruments TMS320C6713 evaluation boards in Digital Simulink is sent to the Code Composer Studio (CCS).
Signal Processing educational lab. The applications A.4.Code Composer Studio (CCS)
developed are based on Simulink models which are built up The CCS integrated development software converts the
with the help of TIC6000 and DSP Simulink block set. Simulink block diagram into C and assembly language,
Once any of the models is complete and built, it which downloaded as an output file onto the TMS3206713.
automatically opens Code Composer Studio and compiles The running process can be accessed only from the CCS
the Simulink block sets model. When no compilation error debugging tools or across a link for CCS or Real-time data
is detected, TMS320C6713 automatically interfaces with Exchange. Otherwise the running process is not accessed.
the real world and is ready for testing. A.5.D.S.P Board (TMS3206713)
The TMS3206713 replaces the work of Simulink. The
II. FUNCTIONAL DESCRIPTION TMS3206713 outputs real time processed data or signals to
A. System Block Diagram the oscilloscope. The output on the scope represents our
The software interface to be developed for the code signal processing result.
integration will operate according to the block diagram
shown below in Figure 1.

Figure 1 is a High-level system block diagram

753
Dolly Reney et al IJCSET |December 2011 | Vol 1, Issue 11, 753-756

Figure 2 is a system flow chart

III. SYSTEM FLOW CHART 2. Having done this a new model was created to transfer
A system flow chart explaining the interconnection between data from Matlab to Simulink as:
Matlab Simulink and the DSP board is shown in above In the Simulink browser select and drag to the Simulink
Figure 2. model,
Simulink>>Sources>>From Workspace block>>
IV.RESULT AND SIMULATION. Click on the From Workspace block and specify under data
simin and 1/8000 as sampling time
Creating models using input workspaces/files
1. A simple sine wave was created and stored in a 3. A simple low-pass filter whose cut-off frequency was
workspace variable called simin as in an M-file: 714 Hz was designed with the following Transfer Function:
PROGRAM:- H(s) = 714/(s+714)
npts=2000; % these are the total number of pts per cycle in In the Simulink browser select and drag to the Simulink
our simulation model,
n=0:1:npts-1;% number of pts n are in the increments of Sources>>Continuous>> Transfer Fuc block
n=0,1,2,3...1999 Click on the Transfer Fuc block and specify the filter in
fss=8000; % this is the sampling frequency for the input the form of a matrix:
delta=1/fss; % this will be used in simulation purposes Num= [714]
t=n*delt; % Total time t=1999/8000=0.249 figure(1), Den= [1 714]
Vin=sin(2*pi*2000*t); % this is the analog signal And the absolute tolerance in this same window is specified
plot(t,Vin),grid on % this plots Vin for the specified t as auto.
range
4. Having completed the filter specifications a workspace
xlabel('time(seconds)'); % add axis labels and plot title
variable will be selected to store the output from the filter.
ylabel('magnitude of sine wave');
Simulink>>Sources>>To Workspace block>>
title('A simple sine wave of freq=2000Hz');
Click on the To Workspace block and specify under data
whos; %display the contents of all variables used in
simout and 1/8000 as sampling time.
matlab workspace
simin=[t' Vin'] % the transpose of t and Vin is saved in 5. This model is simulated for 0.25 sec, which is specified
thevariable simin in the simulation parameter stop time window.
save myinput.mat % the values of t and Vin saved in the The model can now be simulated and analyzed using the
variable in an input file. scope block found at:
Simulink>>Sinks>>Scope

754
Dolly Reney et al IJCSET |December 2011 | Vol 1, Issue 11, 753-756

6. The c6713DSK was dragged to this model and the A much better approach would have been to design a model
Realtime Workshop was used start the implementation of that runs for an infinite amount of time using the block in
our model on the DSP board. the Simulink Browser window as follows:
The build up process was interrupted by an error message >> Fixed-Point Blockset>>Sources>>Repeating
that only asked for discrete (no continuous-state) blocks to sequence Stair
be in the model. The filter whose transfer function was Upon clicking on the Repeating sequence stair block, the
specified as an H(s) had to be converted to an H(z) vector or output variables must be specified as [Vin’] and
using bilinear Transformation. sampling time must be -1 to inherit the sampling frequency
H(z)=H(s)|s=2*fss*(z-1/z+1), of fss=1/8000. Specifying the output variable as Vin’ will
Hence H(z) = (714z+714) store the values of our sine wave in a loop in this block,
-------------- which can be effectively simulated for an infinite amount of
(16714z-15286) time on the DSP board.
This discrete transfer function replaces the previous
transfer function by choosing:
>>Simulink>>Discrete>>Transfer Func Block
and specifying these parameters:
Num= [714 714]
Den= [16714 -15286]
Sampling time can be specified as -1 to inherit the
sampling frequency used in the M-file code or that
specified in simin block.
Having completed this, a Simulink model was created as
shown below:

Fig. Model to generate output for infinite amount of time.

This model is compiled and built using the Real-Time


Workshop and the output of the scope is observed for an
infinite amount of time shown below in the scope plot
below

Fig. Model for generating Sine wave


This model is compiled and built using the Real-Time
Workshop and the output of the scope is observed for the
time duration of the simulation as:

Conclusion

V. CONCLUSION
There are many applications for which the Digital Signal
Processor becomes an ideal choice as they provide the best
possible combination of performance, power and cost. By
using digital signal processing flexible signal generator that
are often used in measuring and testing of communication
Fig.Output as in Oscilloscoe systems is implemented. The output frequency range can be
increased by using an external high-speed digital-to-

755
Dolly Reney et al IJCSET |December 2011 | Vol 1, Issue 11, 753-756

analogue converter. The DSP processor Research and Development (SCOReD 2006), Shah Alam, Selangor,
MALAYSIA, 27-28 June, 2006, IEEE 2006
TMS320C6713DSK with Code Composer Studio and C [5] TMS320C6000 Optimizing Compiler – User’s Guide, Texas
programming language has been used to generate the Instruments Literature Number SPRU187L,May 2004.
desired waveforms. Two different types of waveforms can [6] TMS320C6713, TMS320C6713B Floating-Point Digital Signal
be generated simultaneously using the stereo codec of Processors, Texas Instruments Manual SPRS186I, December 2001,
Revised May 2004.
TMS320C6713DSK. Because of the high performance of
[7] http://www.electronicsprojectdesign.com/SignalGenerator
DSP processor and the efficiency of the C language, signal [8] H. Sia, S.S. Jamuar, Roslina Mohd Sidek and Mohd Hamiruce
generation has become user-friendly and more Marhaban ‘Digital-signal-processor-based waveform generator’ IOP
programmable. PUBLISHING, Meas. Sci.Technol. 18 (2007) N35–N40
[9] E.A. Lee, Programmable DSP Architectures: Part I, IEEE ASSP Mag.,
October 1988.
REFERENCE [10] TMS320C621x/C671x DSP Two-Level Internal Memory Reference
[1] TMS320C6713 DSK Technical Reference, Spectrum Digital, Inc., May Guide, Texas Instruments Literature Number SPRU609A, November
2003. 2003.
[2] Code Composer Studio Help, Texas Instrument, 2003 [11] D. Talla, L.K. John, V. Lapinskii and B.L. Evans, Evaluating Signal
[3] Rajean Arseneau, Michelle E. Sutherland, and J.J. Zelle,‘A Test System Processing and Multimedia Applications on SIMD, VLIW and
for Calibrating Flicker meters’, IEEE Transactions Instrumentation Superscalar Architectures, Proceedings of the International
and Measurement, Vol. 51, No. 4, August 2002. Conference on Computer Design, September 2000.
[4] Sia Lih Huoy, S.S. Jamuar, Roslina Mohd. Sidek, and Mohd.Hamiruce
Marhaban, ‘Digital Signal Processing Based Waveform Generator for
Flicker meter Calibration Test System’4th Student Conference on

756

View publication stats

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy