Jump to content
Sign in to follow this  
Rei Vilo

Help - How to Implement SPI Slave on the Stellaris LaunchPad?

Recommended Posts

The Arduino library doesn't implement slave SPI —see http://arduino.cc/en/Reference/SPI.

 

The recommended trick only works for AVR-based MCUs.

// turn on SPI in slave mode
  SPCR |= _BV(SPE);

Now, the Tiva LaunchPad features the TM4C123GH6PM with TivaWare in ROM.

 

Documentation is so huge (1,414 + 352 pages :huh: ) and I'm more fluent in I²C than in SPI.

 

Using the TivaWare in ROM really makes things easier, as I've experienced with the implementation of clock stretching for I²C.

 

Searching for slave SPI throws more than 100 answers at TI's E2E forum. There's one specific thread about SPI Slave Problem but the solution provided doesn't work for me.

 

Any help greatly appreciated! 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...