Question about SPI

All technical discussions and projects around startKIT
nickn
Junior Member
Posts: 6
Joined: Sun May 11, 2014 1:54 am

Question about SPI

Post by nickn »

I've recently got back into playing around with my startKIT again. I've been curious about how to use the SPI peripheral. Upon skimming though the XCORE architecture intro dochere it talks about "software defined peripherals" which at first sounded like bit-banging (which I have done in the past when I wanted to use an SPI device with my startKIT) but upon further reading it may be something in between bit-banging and dedicated peripherals. Does anyone have a link to a good tutorial of using the SPI xSOFTip peripheral?

As for a little background I'm most familiar with 8-bit and 16-bit uc's that often include a peripheral that can do SPI.


User avatar
larry
Respected Member
Posts: 275
Joined: Fri Mar 12, 2010 6:03 pm

Post by larry »

The xCORE SPI component (same as the one available in xTIMEcomposer as xSOFTip) is actually quite simple and easy to use. Application examples included in the source repository are great for introduction. Look in https://github.com/xcore/sc_spi and spi_master_demo.xc in the app_spi_master_demo directory in particular.