Signal Generation Using TMS320C6713 Processor
Signal Generation Using TMS320C6713 Processor
net/publication/365790193
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.
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:
All content following this page was uploaded by Dr Dolly Reney on 06 April 2016.
753
Dolly Reney et al IJCSET |December 2011 | Vol 1, Issue 11, 753-756
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:
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