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.

AM3358: AM3358BZ0Z100

Part Number: AM3358
Other Parts Discussed in Thread: TLV320DAC3100,

Dear Sir,

I am sending the audio data from ATSAMD21J18A to TLV320DAC3100. This communication is working perfectly fine.

Now I have to integrate the ATSAMD21J18A with the TI processor AM3358. AM3358 will send the audio data over SPI to

the ATSAMD21J18A microcontroller.

I2S clocks are running at

MCLK 11.2896MHz

SCLK 2.8224MHz

WCLK 44.1KHz

Please recommend suitable baud rate for this SPI transmission.

I am attaching here the waveform I have captured using oscilloscope for the SPI and I2S clocks as well as the block diagram for the audio section that I am trying to implement.

Let me know your feedback and recommendations.

Looking forward!

Best Regards,

Upendra Kumar

tlv_i2s.zip

  • Hello Upendra,

    Could you please share more information about which OS (PSDK Linux or PSDK RTOS) you are running?

    Regards,
    Krunal

  • Hi Krunal,

     I'm using PSDK Linux.

    Our requirement are sending audio data from AM3358 beagle-bone green over SPI, that data receiving in ATSAMD21J18A then sending this data over I2S protocols.

    NOTE: I2S clocks are running at MCLK 11.2896MHz ,SCLK 2.8224MHz and WCLK 44.1KHz

    I can not able to decide SPI clock frequency.

    Now SPI Master mode side clock are running at 2.8 MHz. may you share the SPI clock frequency Because some were have losses the audio data.

    Thanks & Regards 

    Upendra Kumar

  • Hi Krunal,

    I'm using  AM3358 beagle-bone green wireless (ubuntu), our requirement are sending audio data from  AM3358 to TLV320DAC3100, but I2S Lines busy with Bluetooth Module.

    So my question is can we emulate i2s(software-i2s) over SPI lines?

    if possible then could you share the example code for reference.

    I'm sharing the attachment  for your reference.

    Thanks & Regards 

    Upendra Kumar

  • Hi Updendra,

    When you send data from AM335x to the MCU, are you observing packet loss or is the transfer rate not fast enough? 

    Regards,
    Krunal

  • Hi Krunal,

    I'm sending two bytes of data (0x55,0xAA), then receiving that data in slave side, there are not loosing any data but we are sending more than 300kByte of data, that time I can not able to observed the data loosed  are not, but the SPI clock speed should be at 2.8 MHz. In MCU side receiving the data then immediately sending that data over I2S.

    It's more challenging to handle the audio data from SPI to I2S, So may be our data have loosed.

    I have some doubt.

    1. Is any tools are available to configured SPI in user space like TI System Configuration Tool for PIN Mux.

    2. Is it possible to send audio data over SPI to TLV320DAC3100.

    3. there are two MCASP are available. one MCASP line busy with Bluetooth Line. Is possible to use another MCASP to transmit audio data.

    according to AM3358 beagle-bone green wireless Schematic they are not providing that line to outside. my hardware team have to identify this issue.

    may be we are wrong.

    there are any possibility to used Both MCASP Protocols, if possible Please share the example code.

    Thanks and Regards 

    Upendra Kumar

     

      

  • Hi Upendra,

    1. We will get back to you on the SPI configuration.
    2. We do not have any out of box examples or documents that demonstrates how to send I2S data over SPI.
    3. It is possible to configure the McASP to transfer audio audio data to TLV320. I would recommend you to please review the following threads.
     a. https://e2e.ti.com/support/processors/f/791/p/921547/3410050#3410050
     b. https://e2e.ti.com/support/processors/f/791/p/936823/3463007#3463007

    Regards,
    Krunal