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.

AM5728: McASP2 Multi serializer Audio issue

Part Number: AM5728
Other Parts Discussed in Thread: PCM1864,

Hi ,


I am working on Sitara AM5728 processor and interfaced PCM1864 based custom circular microphone board through McASP2 interface.

I enabled 1 serializer, in this case data received is played out and audio is clean. I tried to enable 3 serializers then the audio data do not have the background noise but the audio appears to be modulated.


In both the cases the audio data is passing through beam forming ,ASNR and MSS algorithms.

In case of one serializer the buffer format is "Mcasp_BufferFormat_1SER_MULTISLOT_INTERLEAVED"

In case of 3 serializers the buffer format is "Mcasp_BufferFormat_MULTISER_MULTISLOT_SEMI_INTERLEAVED_2"

Buffer sizes and buffer handling appears to be fine, I am not able to understand what is causing the audio to be modulated.

I have attched the raw data captured in both cases and it can be played on audacity with following settings,

Encoding : Signed 32bit PCM

Byte-order: Little-Endian

Channels: 2 Channels (Stereo)

Sampling Rate: 16000Hz

Please help me resolving the issue.

Thanks

Janardan MRaw_Audio_Data.zip

  • Please post what software you are using, and which version.
  • HI,

    I am using "processor_sdk_rtos_am57xx_4_03_00_05" .

    Thanks,
    Janardan
  • Hello,
    I have the most recent SDK version installed here (processor_sdk_rtos_am57xx_5_02_00_10) but I can't see definitions of these buffer formats in any demo. Do not know if I am supposed to find them in this version, so can you point me which example you're using as base?
    Thanks,
    Michail
  • HI Michel,

    As far I know there is no such demo wherein PCM1864 based circular microphone board is interfaced with DSP core of Sitara processor in processor SDK RTOS release for sitara AM5728. I have K2G based demo as my reference, ported the K2G based demo onto Sitara AM5728 processor. 

    If the same demo is available with AM5728 as well please let know the path where it is available .

    Thanks,

    Janardan

  • Hi,

    I found that the issue what I am observing is because of improper pitch settings, I changed the pitch in audacity and tried playing it out, it works good in this scenario.

    Is there any option from Sitara processor's McASP configuration end or from PCM1864 configuration to adjust the pitch?

    Thanks,

    Janardan

  • HI,

    I am using K2G based demo (PCM1864 based circular microphone board interface with K2G ) as base code for my project, in K2G demo for configuring PCM1864 based Circular Microphone board (CMB) there is a library provided by TI. In my case I am doing I2C writes to configure CMB.

    Can you please provide the details of what are the exact configurations(register address and values ) written to CMB from K2G board. I can not find it from demo code as there are APIs which does those configurations.

    Thanks,
    Janardan
  • Hello,
    you can retrieve info about PCM186x low level functions from PDK_K2G_1_0_12. PCM186x related code can be found in pdk_k2g_1_0_12/packages/ti/addon/cmb/src and pdk_k2g_1_0_12/packages/ti/addon/aud/src.
    Actual initialization probably uses only library functions (can be found in header evmK2G/include/evmc66x_audio_adc file).
    Unfortunately I did not find configuration and settings about the pitch in there.

    BR
    Michail
  • Hi Michail,

    Thanks for the paths.

    I tried one experiment, I played a sine wave of frequency 200Hz through an android application and captured audio through 1 serializer, in this case I can see sine wave clearly on audacity.

    I played sine wave of frequency 200Hz through an android application and captured audio through 3 serializers, in this case I see sine wave with some periodic interferences., what I expect to see is the clear sine wave in this case as well.


    I have attached the images and raw data with the post. Please suggest me for the workaround.

    Thanks,

    Janardan

    Audio_Data.zip

  • Hi Michail,

    Thanks for the paths.

    I tried one experiment, I played a sine wave of frequency 200Hz through an android application and captured audio through 1 serializer, in this case I can see sine wave clearly on audacity.

    I played sine wave of frequency 200Hz through an android application and captured audio through 3 serializers, in this case I see sine wave with some periodic interferences., what I expect to see is the clear sine wave in this case as well.


    I have attached the images and raw data with the post. Please suggest me for the workaround.

    Thanks,

    Janardan

    0574.Audio_Data.zip

  • Hi Michail,

    Is there any findings or clue to resolve the issue? Please provide me some inputs what can be tried to resolve this since I am feeling as if I am running out of options.

    Thanks,

    Janardan

  • Hello,
    here I found a rather old thread which contains information about similar case
    e2e.ti.com/.../569402
    Please check if it can be of any help in your situation.
    Now I am trying to check for possible issues which can prevent the K2G based demo to run properly on your Sitara board.

    Michail
  • Hi Michail,

    Thanks for the support, I could resolve the issue.

    Thanks,

    Janardan

  • Hi,
    can you share some details about solving your issue? just for future reference.
    Thanks,
    Michail