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.

how to take input from mic in channel in DSK6713?



hello everyone

i am trying to get input mic in channel which is connected with microphone...and trying to watch it on CRO...

i have successfully  done process of taking input from line in channel which is connected with function generator and output from line out channel which is connected with CRO.....

i am just taking input from ADC and giving it directly to DAC without any process on input signal...just to check that everything works fine or not....

my programme is given below which i am using for mic in input or to take input from microphone.....

#include "dsk6713_aic23.h"                                             //codec-DSK support file
Uint32 fs=DSK6713_AIC23_FREQ_8KHZ;                   //set sampling rate
#define DSK6713_AIC23_INPUT_MIC 0x0015
#define DSK6713_AIC23_INPUT_LINE 0x0011
Uint16 inputsource=DSK6713_AIC23_INPUT_MIC;

interrupt void c_int11()                                                      //interrupt service routine
{
short sample_data;
sample_data = input_left_sample(); //input data
output_sample(sample_data); //output data
return;
}
void main()
{
comm_intr();                                                                    //init DSK, codec, McBSP
while(1);                                                                           //infinite loop
}

i am following rulph chassaing's book for programming of TMS320C6713......

suggest me any changes that i should do to take i/p from mic in.....

regards 

jay sompura

 

  • Hi Jay,

    What is a CRO?

    Does Rulph Chassaing's book discuss getting input from the microphone input?

    Have you looked at the schematic to see how the microphone input is connected to be able to reach the DSP?

    Either the book or the DSK6713 vendor's BSL (Board Support Library) might have some information on how to make this connection.

    Does the same code work if you select INPUT_LINE?

    Regards,
    RandyP

  • CRO means cathode ray oscilloscope...on which we can see waveform...

    for line input code is different from mic input....

    for line input there is no issue.... but for mic input even i have built the programme sucessfully with necessary changes in c6713dskinit.h and c6713dskinit.c....

    it is not taking input from mic in channel....one thing i noticed that jack of my microphone is smaller than jack of input output wires that come along with dsp kit for line input and output.....could it be a problem?

    i am not able to understand the problem because there is no error in procedure  right from building of programme to the burning of programme in dsp kit....

    thnx 

    regards

    jay sompura

  • Jay,

    Have you moved this discussion to your other thread?

    Jay Sompura said:
    one thing i noticed that jack of my microphone is smaller than jack of input output wires that come along with dsp kit for line input and output.....could it be a problem?

    Yes, If you do not have a compatible connector, you cannot expect a reliable signal to be passed.

    Have you found a microphone connector adapter that will fit the DSK's input plug?

    Regards,
    RandyP

  • thnx randy

    i have found mike with jack specified in data sheet..

    i have made some changes in my programme and it is built successfully....

    but, when i tried to make a hex file using hex6x utility i got erro which is shown in  attached file.....

    my linker command file for hex6x utility....

    flash_sine.out
    -a
    -image
    -zero
    -memwidth 16
    ROMS
    {
    PMEM: org=0x00000000, len=0xFFFF, romwidth=16
    FLASH: org=0x90000000,len=0x00080000 files={flash_sine7.hex}

    }
    SECTIONS
    {
    .vecs: paddr=0x00004600
    .text: paddr=0x90000030

    .const: paddr=0x00004000
    .cint: paddr=0x00005050
    }

     

    what are the additional files required for flash burn ? 

    i have also made .lsb and .msb files of .out file...

    i have followed the procedure written in help of ccs studio for hexconversion utility......

    is there anything that needs to be specified in linker command file?

    how to define boot load in sections? and it will start from which memory location ?

    regards

    jay sompura

    6254.Doc1.docx  

  • Jay,

    If you are now talking about a new problem, using the hex6x utility, then you may want to post this question in the TI C/C++ Compiler Forum.

    Have you now solved your problem with getting input from a MIC IN channel on the DSK6713?

    Regards,
    RandyP

  • randy 

    i haven't taken input from microphone successfully...

    i have seen in one of the post that an adapter is required for microphone input.... i don't know whether it is right or wrong .....i haven't  in read any documentation..... 

    what do u say?

    i will repost my hex6x utility question to c/c++ forum...

    regards

    jay sompurs

  • Jay,

    I hope you have made some progress in this time. I do not know how to help you with this electrical signal problem. You could ask the support team at Spectrum Digital if they have any recommendations for microphones that are compatible or what impedance is required for the microphone. Or you can look at the signals with an oscilloscope and see what signal levels are getting to the ADC's input.

    That is all I know to say. Sorry.

    Regards,
    RandyP

  • hey thank you randy...

    i haven't solve that problem yet....my semester has come to end and i haven't completed my project due this problem...

    i have asked many people in my college but no one has right answer....even we are not able to figure out reason for not taking input from microphone.....

    i think texas instrument has done all kind of experiment and testing before putting DSP kits in market so i believe that kit is able to take input from microphone.......

    is there any source from texas instrument where we can learn how to  programme and to get work from kit as well as implement complex algorithm for application except rulp chassaiang's book....because it is very difficult to read all data sheet for CSL,BSL,CODEC,EMIF etc... and then synthesize all information and use it according to our requirement....it is almost impossible for a new person like me to work on because each and every step takes lot of time even building programmes in CCS is also not easy compare to other IDE for microcontroller or processor....

    i will surely post the solution if i get....

    regards

    jay sompura

  • Jay,

    It could also be helpful for you to go to the TI Wiki Pages and search for "C6713 training" (no quotes). You should find the TMS320C6x1x DSP Integration Workshop which includes a student guide and lab examples, with solutions that you can run or start from. Some of these examples use the DSK6713 for audio applications, although they probably go through the AUX in and AUX out instead of using the microphone.

    You may want to search TI.com for C6713 training opportunities, also. There may be tutorials and videos for all levels of DSP programming.

    You may want to ask instructors if they want to contact the TI University Program to get material for DSP classes.

    We apologize for the difficulty you and the others at your college are having with this. It is true that programming a simple MCU to toggle LEDs and read switches is an easy application, and you can write easy applications like those on the DSP, also. But when you add complex algorithms and multiple execution threads and even a small OS like DSP/BIOS, the whole task becomes larger. With a microphone plug that does not fit the microphone socket, it is understandable that you would become frustrated. I wish there was a way to reach out and solve your problems, but that is not possible here and it would not help you become the great engineer that you will be soon.

    Regards,
    RandyP

  • hey Randy your answers always encourage me but it is also true that none of my faculties helped me.

    one of my professor told me today during my submission of project that i knew that you were not able to complete this project and then i replied him that atleast we could try. i am a very optimist person and i am defenitely going to restart this project of speech recognization.

    thnx for giving me answers and provide me guidance..

    regards

    jay sompura

     

  • hi jay

    I have a program written in MATLAB language, voice modem.
    Now they wanna do implement the 6713 dsk

    Can you help me what should I do?

  • hello afshin....

    i think matlab has provided direct support to only one version and that is i think ccs3.1 or ccs3.3 for higher version there is no direct support from matlab to ccs.

    if u want to burn programme than u have to write it in c language in ccs and generate hex files with hex6x utility.....

    generated hex file is burnt in memory of kit using flashburn utility which is easily available on net and also come with ccs....

    regards...

    jay sompura

  • Hello Randy,

    My questions are regarding the following lines in the code above

    Uint16 inputsource=DSK6713_AIC23_INPUT_MIC; // select input
    #define DSK6713_AIC23_INPUT_MIC 0x0015
    #define DSK6713_AIC23_INPUT_LINE 0x0011

    these are surely from the examples codes with Prof. Chassaing's text. One need to include these lines in the code to compile them without errors. Now let me ask three rather very naive questions:

    1) what is the need to define the DSK board input lines when it is by default configured in C6713dskinit.h ?

    2) What is the need of defining the input, in a program which generates sine wave using a look up table ?

    3) From which connector do I take the output to view on a DSO?

    Thank you for the patience
    Joaquim
  • Joaquim,

    You are posting new questions onto a two-year-old thread, so things may be confusing. In the future, I would recommend you start a new thread unless it is exactly related to the old one.

    Where you pulled lines of code from the posted snippets, you presented them in a different order which makes them incorrect (#define's have to be before their use). Please be careful with your code presentation so we can understand what it should do and how to discover issues.

    Joaquim Monteiro said:
    1) what is the need to define the DSK board input lines when it is by default configured in C6713dskinit.h ?

    There is never a requirement for redundant configurations. Perhaps you are making assumptions that they did not make in their original code? I am not sure.

    Joaquim Monteiro said:
    2) What is the need of defining the input, in a program which generates sine wave using a look up table ?

    There is no need of defining an input if no input will be used. Did Chaissang's original example generate a sine wave using a look up table?

    Joaquim Monteiro said:
    3) From which connector do I take the output to view on a DSO?

    The code uses #defines to specify input sources, so I would assume there are also those to specify the output ports. Do you see where those are in the code?

    Regardless of the settings, you could easily test by touching your DSO probe to each of the four possible output signals, left/right speaker/headphone and left/right line out. Do you see an output signal on any of those?

    Regards,
    RandyP

  • Hi, I have been working with DSK6713. I have developed some codes for my project and they are working just fine when i give line input. I have tried testing them with mic input. I want to know the changes that have to be made to switch to mic input.
  • Tool/software: Code Composer Studio

    Hi, I have been working with DSK6713. I have developed some codes for my project and they are working just fine when i give line input. I have tried testing them with mic input. I want to know the changes that have to be made to switch to mic input.
  • the DSK6713 has an AIC23 codec to get in stereo audio input into the DSP. You will need to setup the AIC codec to configure the input data line to connect to a microphone.

    Please refer to the responses from Randy here to see if this helps you make progress:
    e2e.ti.com/.../256268

    Regards,
    Rahul
  • I have setup dsk6713_aic23 codec file. I have changed the value at address "Analog audio path control" from 0x0011 to 0x0015 as per my understanding. I have kept rest of the values as default. This did not work, Are there any other changes that have to be made?