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.

C6748 - SPI

Other Parts Discussed in Thread: OMAP-L138, TMS320C6748

Hi,

In my desing i am using 2 codecs (tlv320aic3106). As a configuration port I'm using SPI instead of the I2C port (used on the C6748 SOM module).

unfortunately I didn't realise the amount of effort that I will need to bring SPI to work...

It will be very helpfull  if anybody  had a skeletton or code example for configuring an SPI port?

The configuration I need is something like :

-master mode

- no Dma 

-4-Pin Option with /SPIx_SCS[n]

- Clock : 400KHz or something like that

Thank's for your help

 

Bruno

 

  • Please look at the SDK for the C6748. Go to the TMS320C6748 Product Folder and click on Tools and Software. There you will find a link to the Software Development Kit for the OMAP-L138/C6748. Device drivers are included in the SDK.

  • I had created some test code some time back to familiarize myself with the delay feature of the SPI.  It is CSL based & written for CCS3.3.  Hopefully it can help you.  Note that I ran it on the DSP of the L137, but the C6748 DSP & it's SPI are basically the same, so it should run on the C6748 as well.

    spiDelayTest.zip
  • Also attaching some AIC3106 code I recently worked on for one of our internal projects.  I started with the AIC3106 code that comes with the OMAP-L138/C6748 board support package (BSL) from logic and modified it such that the AIC3106 became the master of the audio bus.  It looks like you want the AIC3106 to continue being a slave, but maybe this will help with the AIC3106 configuration if you have questions about that.

    aic3106.zip
  • Hi Gus

    Thank's very much for your answer which was very helpfull.

    I am sorry I took so much time for replying but I was  really busy these last days

    Anyway my stuff is running now !

     

    Next step will be : HPI... maybe I'll come to back to you again...

    Chears!

    Bruno