Forgot to mention that recorded output now looks like a large harmonic
independent of what is recorded.
Is there any user doc for PCM3002 other than PCM3002.pdf (found not
easy to use in conjunction with DSK 5416 kit)
An extract of the code used to record is the following,
...
while(1)
{
y=0;
j=0;
while(y
{
while (!DSK5416_PCM3002_read16(hCodec, &(tmpadd[j])));
while (!DSK5416_PCM3002_read16(hCodec, &(tmpadd[j])));
t=tmpadd[j];
tt=(t>0)?t:-t;
y=(31*y+tt);
y=(y>>5);
j++;
if(j==0x2000)
j=0;
}
...
}
...
(tmpadd is an array Int16 of length 0x2000
SigThr is an empirical Int16 constant threshold for audio detection)
--- In c..., "kabdeslam" wrote:
Hi all,
I am working on simple speech recogn. algorithm using dsk5416 kit.
Was able to record audio thru pcm3002 codec interface but for some
reason recording does not work anymore.
Tried resetting SW, reinstalled CCS DSK v2 IDE, changed microphone
(labtec plugging into microphone connector J1 of DSK), ...
Nothing seems to work, tried reading PCM3002.pdf codec doc, not easy
to find easy fix for my problem. Running out of ideas, any help
appreciated
thank you,
Abdeslam
--- End forwarded message ---
Fwd: pcm3002 audio recording prob. in dsk5416
Started by ●December 30, 2007