Rei Vilo 695 Posted May 5, 2014 Share Posted May 5, 2014 Well, everything is on the title.I2C slave runs fine on the Stellaris now Tiva C Series LaunchPad but I can't find how to implement SPI slave.Thank you for your help! Quote Link to post Share on other sites
bluehash 1,581 Posted May 7, 2014 Share Posted May 7, 2014 Is there an arduino port for this? or are you having trouble with hardware? Quote Link to post Share on other sites
Rei Vilo 695 Posted May 7, 2014 Author Share Posted May 7, 2014 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 ) 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! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.