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.

PCM4204, McASP interface with C6743

Other Parts Discussed in Thread: PCM4204

Hello,

 

I use PCM4204 with 4 channel analog input, and C6743 DSP.

4 Channels are AR[0] R/L, AR[1] R/L.

I could see the data at AR[0] R/L, but I could not see the AR[1] R/L, I olny could see all zeros.

 

Could you please send sample program for me.

I don't use TI BIOS, but I use TI Start Ware, modified 1 Rx, 1 Tx to 4 Rxs.

 

Actually, my modification is only 2 point for this purpose,

Please advice me.

 

McASPSerializerRxSet(SOC_MCASP_1_CTRL_REGS, MCASP_XSER_RX);

McASPSerializerRxSet(SOC_MCASP_1_CTRL_REGS, MCASP_XSER_RX2);  <--- HERE!

McASPPinDirInputSet(SOC_MCASP_1_CTRL_REGS, MCASP_PIN_AFSX

                                             | MCASP_PIN_ACLKX

                                             | MCASP_PIN_AFSR

                                             | MCASP_PIN_ACLKR

                                             | MCASP_PIN_AXR(MCASP_XSER_RX) //);  

                                           | MCASP_PIN_AXR(MCASP_XSER_RX2));    <----- HERER!

 

 

Thank You.

Suno.

  • Hi, Suno,

    Unfortunately, none of us are familiar with this here in the Audio Converter forum. I'm going to move your post to the C6x forum where I am hoping they can help you.

    -d2

  • Hi Suno,

    Thanks for your post.

    Please find the sample code for C674x starter ware McAsp as specified in the below path:

    ~\Texas Instruments\pdk_C6748_2_0_0_0\C6748_StarterWare_1_20_03_03\drivers\mcasp.c

    Thanks & regards,

    Sivaraj K

    -----------------------------------------------------------------------------------------------
    Please click the
    Verify Answer button on this post if it answers your question.
    ------------------------------------------------------------------------------------------------
  • Hello Sivaraj K,

    Thanks for your Reply.

    About mcasp.c I had read carefully more than 10 times, but I couldn't find solution.

    I'm struggle with the problem that I can't get data from AR[1] of McASP.

    Of course, these two port AR[0] and AR[1] has I2S signal from PCM4204.

    Eventhough PCM4204 send 64 pulse clock and 24 bit data, I can get proper data from AR[0] port.

    But I can only see all zeros after AR[0] , like as belows,

    0027 c89c 001d 6076 0000 0000 0000 0000

    I use DMA transfer into SDRAM,  so what I saw is written memory by McASP + EDMA operation.

    PCM4204 is in master mode, and I use I2S mode, total 4 channels AR[0] 2 channels, AR[1] 2 channels.

    Thanks again for your reply, but I still need more adivice.

    Regards.

    Suno.

  • Hi Suno,

    Thanks for your post.

    Could you please probe at signals SDOUT1 (pin 31) & SDOUT2 (pin 32) and check for any serial audio data output.

    As per datasheet of PCM4204,

    If I2S is the audio data format,

    SDOUT1 carries data for Channels 1 and 2 & SDOUT2 carries data for Channels 3 and 4 when using Left-Justified, Right-Justified, or I2S data formats

    when using TDM  data format,

    SDOUT1 carries data for all four channels & SDOUT2 is forced low signal.

    Kindly probe for the output signals at appropriate pins in CRO and please make sure, do you have any serial audio data for SDOUT2 (pin 32) signal? (In our case, it is I2S data format).

    Thanks & regards,

    Sivaraj K

    ------------------------------------------------------------------------------------------------
    Please click the
    Verify Answer button on this post if it answers your question.
    ------------------------------------------------------------------------------------------------

     

     

     

  • Hello Sivaraj K,

    Thanks for your reply.

    I had mis-expression in my previous post.

    I can see the signals on the pin AXR1[0] and AXR1[1] of the C6743 DSP. (my application is for SDIN)

    these signals are made by PCM4204.

    But I can olny see AXR1[0] data in the memory, a DMA buffer. two 24 bit data and all zero remain.

    What I want to konw is, "Is there any more initialization, except

      - McASPSerializerRxSet(SOC_MCASP_1_CTRL_REGS, MCASP_XSER_RX2); // MCASP_XSER_RX2=2

     - McASPPinDirInputSet(SOC_MCASP_1_CTRL_REGS, MCASP_PIN_AFSR | MCASP_PIN_ACLKR | MCASP_PIN_AXR(0) | MCASP_PIN_AXR(1));

    Those are I inserted in Start Ware.

    This is not the problem of  I2S and TDM but the problem of 4 chnnel interface. (most of McASP examples have 2 channel maximum)

    Please help me. Give me a working 4 channel interface example. Thank You.

    Regards

    Suno.

  • Are there nobody who can help me?

    I use PCM4204, master mode, 4 ch signal is sent to C6743 DSP.

    I can see all of the 4 ch send signal properly to the pins of C6743.

    But the value in Memory has zeros, such as "00123456 00345679 00000000 00000000 00123678 003458FF 00000000 00000000 ..."

    What could make this problem, what should I check?

    How can I know C6743 get the data properly?

    How can I know EDMA send the data properly?

    Could you please advice me.

    Thank you.

    Suno.

  • Hi Suno,

    Thanks for your post.

    I think, the problem should be in writing AXR1[1] data in the memory of the C6743 DSP and DMA buffer is not sending data for AXR1[1] signal. As you said, you have serial audio data for both the signals AXR1[0] & AXr1[1], then there is corruption in sending data through DMA buffer.

    Please configure the following functions by activating for Receive Serializer:

    1. Activate Receive Serializer by McASPRxSerActivate

    2. Enables the McASP Reception by McASPRxEnable

    3. Get the status of McASP reception by McASPRxStatusGet

    4. Starts the McASP Receiver Clock by McASPRxClkStart

    5. Configures the clock for the Receive Section for receiving bits by McASPRxClkCfg

    6. Sets the I2S format in the Receive Format unit by McASPRxFmtI2SSet

    7. Sets the format for Receive section of McASP with the format value input by McASPRxFmtSet

    8. Sets the Format Mask for McASP Receive section by McASPRxFmtMaskSet

    9. Resets the Receive section of the McASP by McASPRxReset

    10. Enables the Read FIFO for McASP by McASPReadFifoEnable

    Thanks & regards,

    Sivaraj K

    ------------------------------------------------------------------------------------------------
    Please click the
    Verify Answer button on this post if it answers your question.
    ------------------------------------------------------------------------------------------------