hi everybody, we are working on our graduation project and we use the c6711 dsk kit and the audio daughter card to use them as transmitter once and then use it as a reciever . we built our system with matlab simulink blocks using the new version of matlab 6.5 which contains a blochset for embedded target of c6711 . but we are facing some problems : 1) our transmitter must be designed to be at rate 9600 bits per second . so the first block in simulink is a scrambler that randomizes the binary data input to it, and we use ( from rtdx) block in matlab to input binary data to the scrambler but the problen we face is that from rtdx block can only take sample time = 1 while we need to let it 1/9600 to match our design but this gives us an error so how can the input data be at the required rate? 2) when using filter in simulink , we use digital filter design bolck in matlab and when building this filter on the dsk we must first add a header file ( .h file) containing the coefficients of the filter, we must add it to the project in code composer studio. but the problem is that we can't add this header file to the current project using( add file to project) coz no header files can be added. so how can this file listed below can be added to my project in ccs? /* * Filter Design and Analysis Tool - Generated Filter Coefficients - C Source * Generated by MATLAB - Signal Processing Toolbox */ /* General type conversion for MATLAB generated C-code */ #include "tmwtypes.h" /* * Expected path to tmwtypes.h * C:\MATLAB6p5\extern\include\tmwtypes.h */ const int nl = 41; const real64_T num[41] = { -0.0008471083523155, 0.001323418354723, 0.00234681924933,0.0003324504876141, -0.002805744505131,-0.003028293240906,0.0006599186530259, 0.003891731649136, 0.001644460151675,-0.004445670897698,-0.005718286345022, 0.003646829747473, 0.01610483077273, 0.0138175810657, -0.01242555437618, - 0.0450951196401, -0.04441325433318, 0.0210307581547, 0.1409662316856, 0.2592765857698, 0.3086901521972, 0.2592765857698, 0.1409662316856, 0.0210307581547, -0.04441325433318, -0.0450951196401, -0.01242555437618, 0.0138175810657, 0.01610483077273, 0.003646829747473,-0.005718286345022,- 0.004445670897698, 0.001644460151675, 0.003891731649136,0.0006599186530259,- 0.003028293240906, -0.002805744505131,0.0003324504876141, 0.00234681924933, 0.001323418354723, -0.0008471083523155 }; 3) one last question, how can the audio daughter card be used or added to the project in ccs ? i mean is there a program or something to tell how i can take my output with sampling rate 48000 from this daughter card, please if there is a certain site talking about this in details , name it for us coz we could not find enough information about this at the TI site. sorry for hte long mail but we really need help urgently and if anybody can give us any help this will be appriciated.. thanx alot... |
|
simulink model built on c6711 dsk
Started by ●July 6, 2003
Reply by ●July 7, 20032003-07-07
--- omnia_mohsen <> wrote: > so how > can this file listed below can be added to my > project in ccs? in CCS you are not supposed to be adding header (*.h) files to the project manually... all you have to do is to include that file in your source code (by #include "file.h") and then it's being added to the project while building it or when you choose "scan for dependencies" - there is an explanation about it somewhere in the DSK doccumentation... > how can the audio daughter card be used or > added to the project in ccs ? i mean is there a > program or something > to tell how i can take my output with sampling rate > 48000 from this daughter card, well... I'm not aware of any programs or any other way of adding the audio card to the CCS project except the solution of setting the McBSP1 manually with appropriate values for the transmission... on the other hand - I've heard of some third party "builders" that simplify creating applications for C6711 - I've personally never used anything other than the CCS... > please if there is a certain site > talking about this > in details , name it for us coz we could not find > enough information about this at the TI site. well - I will probably dissapoint you here as well... I'm not aware of any helpful sites other than ti.com - I agree however that it's damn hard to get started with TI's DSPs - I think the problem is that there is no single manual to follow while learning - instead - there is a whole bunch of documents - for a beginner - it's really difficult to go through all that... > sorry for hte long mail but we really need help > urgently and if > anybody can give us any help this will be > appriciated.. well - if you're deadline is in a week or even in a month - then man - you're in trouble... from your questions I gathered you're just starting with the DSK - then there is a long learning curve ahead of you... well - best of luck to you! if you have any further specific questions - feel free to ask... __________________________________ |