Hello,
i want to put a sinus signal to the audio in port of the OMAP-L138 and show the wave in CCS. If anyone has got any tips i would appreciate it when anyone tells me.
Thank you.
Christian
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am trying the example McASP Echo example from http://processors.wiki.ti.com/index.php/QuickStartOMAPL1x_rCSL but i cannot figure out what this example exactly does.. There is a while loop in the main.c, should there be code added?
Christian,
Although the best forum to ask device-related questions would be the OMAPL1, I strongly suggest you to take a look at the excellent hands-on workshops available at the link below:
http://processors.wiki.ti.com/index.php/Hands-On_Training_for_TI_Embedded_Processors
These workshops contain all necessary material that guides you through the creation of a project, the use of our RTOS (SYSBIOS) and the interaction with hardware.
Please explore the modules under C6000™ High Performance DSP and SYS/BIOS™ Training as they use OMAPL138 boards as their hardware platform.
Hope this helps,
Rafael
Hi Christian,
There's a teaching ROM for the OMAP-L138/C6748 here
http://e2e.ti.com/group/universityprogram/educators/w/wiki/2041.c6000-teaching-rom.aspx
that might help you.
Or have a look here
http://e2e.ti.com/group/universityprogram/educators/w/wiki/2035.textbooks.aspx
Example 2.7 on page 62 of "Digital Signal Processing and Applications with the OMAP - L138 eXperimenter" does precisely what you are asking for. You don't say exactly what hardware you're using but this book is accompanied by program files for the OMAP-L138 eXperimenter, the OMAP-L138 LCDK, and the C6748 LCDK
Regards,
Donald
thank you rafael and donald.
@donald: the book you describe would possibly be exactly what i am looking for, but i am a student and i cant really afford it.. maybe i can find solution other way
Hello
I have now tried the example 2.7 from your book and everything works fine but i have one question. Which amplitude did you choose for audio in?
In the datasheet from the AIC3106 codec is a value of typical 0.7 Vrms. For security reasons i have tried 0.035 Vrms and the wave does not look like a sinus.
Hi Christian,
You say that everything is working fine but then contradict this by saying that the wave (the data stored in inbuffer, I presume) does not look like a sinus.
I have just reproduced the result shown on page 62 of the book and to get sample values in the range +/-9000 the input signal is 1V peak to peak.
The 35mV rms you say you are using is quite small. However, I just tried the program with a smaller input amplitude and got the results attached .
Channel 1 on the 'scope is the output (filtered using a first order CR filter to get rid of out-of-band noise, as per page 68 of the book) and channel 2 is the input.
As you can see the samples processed by the program are in the range +/-500.
Regards,
Donald
Sorry for my misleading problem description. Now i get the same results as you, even with smaller amplitude. I added the following lines to your code:
...
interrupt void interrupt4(void) {
.. your code...
if (buf_ptr == 511) {
while(1);
}
return;
}
main() {
...
}
When i press the Halt button the program stops at the while(1) loop in the interrupt routine. Then i can do the single time graph with inbuffer.
Later i have to FFT (fast fourier transform) this signal, so maybe i do not need this code snippet, cause the data will be in inbuffer anyway.
Hi Christian,
Glad to hear you've got the program working. You shouldn't need to add anything to the code in order to view the contents of inbuffer. If you halt the program that is listed in the book, inbuffer should contain the BUFSIZE most recent input samples read from the ADC.
Regards,
Donald