cancel
Showing results for 
Search instead for 
Did you mean: 

Using the SPI bus

melle_dirk
Associate
Posted on May 17, 2010 at 15:35

Hello,

Right now im playing around with the ST8M8 Discovery board, i have followed some tutorials and have build a few projects that fade the LED using the PWM signal. I would like to use the SPI bus in the future to read and process data from a mem sensor. Could someone please point me in the right direction to a tutorial to using the SPI bus, or maybe provide me with an example project?

Any help would be appreciated

#spi-example
6 REPLIES 6
brazov22
Associate II
Posted on May 17, 2010 at 18:59

You can use example in the FWLib

http://www.st.com/stonline/products/support/micro/files/stm8s_optimized_examples.zip

brazov

melle_dirk
Associate
Posted on May 18, 2010 at 10:00

Thanks for the fast reply, I have looked at the example, but i can find UART, LIN and CAN examples but no SPI. Am I overlooking something? Thanks.

dplewka946
Associate
Posted on August 01, 2010 at 21:04

I have an example project where I use the 23K256 SRAM with the STM8S Discovery. It took 1 month to work, and the code is partly C, partly Assembly. I got no help from ST support, so I needed to find out myself...

napoleoni.jacques
ST Employee
Posted on August 24, 2010 at 15:14

Hello,

Please have a look at documents and files for family STM8 8-bits Microcontrollers where you can find STM8S firmware library

http://www.st.com/products/support/micro/files/stm8sfwlib.zip

 

including SPI peripheral software examples for STM8S.

Regards.

liortole
Associate
Posted on May 03, 2011 at 17:17

this link is not availble online ,

can someone send the correct link on the site ?

in need a spi example ...

Lior

singamicro
Associate II
Posted on October 17, 2011 at 07:32

The FWLib had apparently been made UNavailable.

Only a smaller Std Peripheral Library is available.

The spi.c is in the library.

There is a simple example in this blog:

http://singamicro-30-stm8s105.blogspot.com/p/new-page-1-microcontroller-stm8s105.html

But it used only the output.