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.

AMIC110: Using MCASP be used for SPI

Part Number: AMIC110
Other Parts Discussed in Thread: ADS131E04, TMDXICE110

Hi.

I am using the AMIC110 ICE board to prototype an application.  I was wondering if I can use the McASP pinned out to the launchpad connectors for an SPI device.  If so, can you provide some example code?

It seems the nearly infinite flexibility of the mcasp would allow it if I could only figure out what to do!

I'm connecting to an ADS131E04 ADC.  I also need to connect to an accelerometer, so I was hoping to use both the SPI port and the MCASP port that are on the launchpad connectors.

Thanks!

John

  • Hi John,

    MCASP is generally used on AMIC110/AM335x as the I2S or audio peripheral. All the examples that we provide in the Processor SDK for this device, leverage this peripheral for audio function only. 

    TO use MCASP as SPI, you can refer to the TRM and setup the transmit clock as SPI clock, Frame sync as the CS and RX and TX serializer as MOSI and SOMI signals on SPI. While we don`t have an app note for this configuration, I beleive the app note below showcasing use of MCBSP as SPI comes close to what would be required with the MCASP setup as well.

    https://www.ti.com/lit/an/spra487c/spra487c.pdf 

    AMIC110 has two instance of MCSPI so even if one is being used for SPI flash for booting, you have the other instance available for interface with ADS131E. Can you indicate why your application would benefit from using MCASP as SPI even when second instance is available to you.

    Regards,

    Rahul 

  • Hi Rahul.  Thanks for the information.  I will have a look at the MCBSP app note. 

    The reason that I thought it would be useful to use the MCASP port is that the BoosterPack interface on the AMIC110-ICE has only one chip strobe  for SPI-1, and then I2S port.  I need 2 SPI on that BoosterPack interface.  If I had 2 CS pins, I could share the SPI between my peripherals (An ADC and an accelerometer), but as it is, I can't. 

    I guess I could redefine the MCASP port pins as GPIO and manage the CS pins manually and use multiple SPI peripherals that way.

    I'm actually designing an EtherCAT slave board using the AMIC110 ICE as a model and adding in my specialized I/O.  So I can in the end use the SPI-1 port with my devices.  Just for now I am building a boosterPack with my peripherals on it for testing and software development. My TMDXICE110 and JTAG probe just came in the mail today so I will be exploring the possibilities for a bit.