Sundance SMT6050 User Manual
Page 20
Version 1.0
Page 20 of 20
SMT6050 User Manual
7- Press calculate. The data related to the function that you entered is calculated and
sent to DSP, the DSP calculates the FFT and returns the result for displaying.
Something that you can do with this demo:
1- Change the function. The function is any valid Matlab function with t as the
variable. For example the followings are valid functions:
• t
• t+100
• Sin (t *100)
Some interesting functions are:
• 2^12 *sin ((t-500)/20)
• 2^12 *sin (t/5)*(1+0.8*sin (t/50))
• 2^12 *sin (t/5 + 2 * pi * sin (t /50))
Demo Hardware in the loop.
In this demo, some section of the demo is running in the PC and some other section is
running in the DSP.
This demo has 3 files:
1- Mic.mdl: The model for PC section that uses a microphone as input
2- File.mdl: The model for PC section that uses a file as input.
3- Reverb.mdlTthe model that should be run in the DSP.
Running the model:
If you have a full duplex sound card and a good microphone use mic.mdl otherwise use
file.mdl.
1- Open Matlab and change its directory to hardware_in_the_loop directory.
2- Open reverb.mdl and generate code for it.
3- Compile, load and run into the DSP with CCS.
4- Open Mic.mdl or file.mdl.
5- From its window select simulation->start and then speak into the mic (or listen to
the speaker if you are using file version).