Skip to main content
melle_dirk
Associate
May 17, 2010
Question

Using the SPI bus

  • May 17, 2010
  • 6 replies
  • 3198 views
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
This topic has been closed for replies.

6 replies

brazov22
Associate III
May 17, 2010
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
May 18, 2010
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
Visitor II
August 1, 2010
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
August 24, 2010
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
Visitor II
May 3, 2011
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
Visitor II
October 17, 2011
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.