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.

Two inputs to TMS320C6713 DSK

hi

 

is it possible that i input two different signal in tms320c6713 DSK thorugh audio ports?

is it possible that i use "line in" and use "left" and "right channel" of stereo connector to route two different signals of different frequecies to DSP kit.

I am attempting to do so but i am getting noise after passing thorugh DSP kit. Its freq changes.

Can you help ?

 

Regards

Amir

 

 

  •  

    It should be possible.

    Please check at the beginning your ground connection.

    Did you try to connect this same signal to both inputs?
    This can check how both channels are working

     

  • Thanks for replying

    Ground should not be an issue. I am genrating signals from quad channel signal generator. It has common ground.

     

    Have you tried to input two signals via left and right channel ?

     

     

  • Theoratically it should not be an issue.

    I can see both signals on oscilloscope.

    but when i pass those signal through kit i cant get output. 

    I have also double verified my programs. They are correct and working perfectly for single input

     

  • Amir,

    Leaving aside any processing of the signals involved, you're saying that you want a stereo talkthru program. That is indeed possible. If I understand your last two sentences correctly, you say that when you input a stereo signal you get no output but that when you apply an input to one channel only you get the output expected. Sorry to give just a list of questions rather than a definitive answer but I would test

    When you say one channel input works, does this apply to both channels, i.e. do left and right channels work for single inputs?

    When you apply a single input and get a correct output, is there any output on the other channel?

    When you apply a stereo input, inside your program do you see the two signals, i.e. are they getting in okay but then not output correctly?

    My suspicion is that you are not reading/unpacking the two 16-bit signal samples received from the codec ADC/MCBSP correctly and/or not packing the two 16-bit signal samples written to the MCBSP/codec DAC correctly, e.g. you're reading just 16 bits from the 32-bit data received and or you're not concatenating two 16-bit output samples correctly before sending a 32-bit word to the DAC. There are a number of things that must be set up/programmed right for stereo talkthru - codec, MCBSP and if you're using it, EDMA. The key thing I would look out for in each case is that you're transferring 32-bit data.

     

    Donald

  • @ Donald

    Thanks for reply

     

    sorry for not clearing out on my statement. my bad. by single input i meant mono signal. i get no output for stereo signal. its noise. eg if i sampled at 96khz. i get output of 48khz.and output is varying in magnitude continuously. it goes high and then becomes low. if i sampled at 44khz. i get output at 22khz. i am not using any program. i am just inputting data. demux it into left and right channels and output any one of the channel through dac.

    Infact i am using simulink Real time workshop for this purpose. when i use mono signal i get correct output. but not for stereo.

     

    Regards

    Amir

     

  • Amir,

    A mono signal is a stereo signal where on channel is silent. Can you get mono signals to pass correctly, at different times, on either channel?

    How about passing a mono signal through (correctly) and then gradually introducing a signal to the other channel?

    I'm not familiar with the simulink/DSK tools so may not be able to help any further.

     

    Donald

  • Donald

    yes mono signal pass correctly at different times correctly. but it distorts when i pass two channel simultaneously. 

     

    Regards

    Amir