Technical discussions about the TI C55x DSPs (including the c5501, c5502, c5503, c5507, c5509, c5510 and OMAP5910).
Post a new Thread
problem - sunil.ch - Nov 10 7:09:00 2005
hai everybody...
i am new to this 5510 dsp processor and this group
also.now i am doing one project on this processor..
i have written a code on dsp processor..in which it
takes the input from signal generator to codec line
input,and those sample values i have stored in one
regester. here is the code...
#include "inputcfg.h"
#include "dsk5510.h"
#include "dsk5510_aic23.h"
#include "tms320.h"
/* Codec configuration settings */
DSK5510_AIC23_Config config = { \
0x0017, /* 0 DSK5510_AIC23_LEFTINVOL Left line
input channel
volume */ \
0x0017, /* 1 DSK5510_AIC23_RIGHTINVOL Right line
input channel
volume */\
0x01f9, /* 2 DSK5510_AIC23_LEFTHPVOL Left
channel headphone
volume */ \
0x01f9, /* 3 DSK5510_AIC23_RIGHTHPVOL Right
channel headphone
volume */ \
0x0011, /* 4 DSK5510_AIC23_ANAPATH Analog
audio path control */
\
0x0000, /* 5 DSK5510_AIC23_DIGPATH Digital
audio path control
*/ \
0x0000, /* 6 DSK5510_AIC23_POWERDOWN Power down
control */
\
0x0043, /* 7 DSK5510_AIC23_DIGIF Digital
audio interface
format */ \
0x0081, /* 8 DSK5510_AIC23_SAMPLERATE Sample rate
control */
\
0x0001 /* 9 DSK5510_AIC23_DIGACT Digital
interface activation
*/ \
};
Int16 input[20];
int i;
Int16 sample;
void main()
{
/*DSK Required commands*/
DSK5510_AIC23_CodecHandle hCodec;
/* Initialize the board support library, must be
called first */
DSK5510_init();
/* Start the codec */
hCodec = DSK5510_AIC23_openCodec(0, &config);
DSK5510_AIC23_setFreq(hCodec,DSK5510_AIC23_FREQ_24KHZ);
for(i=0;i<512;i++)
{
while (!DSK5510_AIC23_read16(hCodec, &sample));
input[i]=sample;
}
}
............
input is 100mv peak to peak signal with 2000hz
i got output like this
17 0 255 67 129 1 0 646 2860 -30231 7733 -18329 8963
2822 -4782 0 0 1202 0 1202
problems....
1. i do not know how to interpret these values to my
input
2.if is there is any mistake in my code..i do not
understand the mistake.
3.i do not know in which q format it is obtained and
where it is located.
4.can u plz tell me the aic23 input range also.
plz give reply to this mail...
thanq
sunil.

(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )