2010-05-17 06:35 AM
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-example2010-05-17 09:59 AM
You can use example in the FWLib
http://www.st.com/stonline/products/support/micro/files/stm8s_optimized_examples.zip
brazov
2010-05-18 01:00 AM
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.
2010-08-01 12:04 PM
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...
2010-08-24 06:14 AM
Hello,
Please have a look at documents and files for family STM8 8-bits Microcontrollers where you can find STM8S firmware libraryhttp://www.st.com/products/support/micro/files/stm8sfwlib.zip
including SPI peripheral software examples for STM8S. Regards.2011-05-03 08:17 AM
this link is not availble online ,
can someone send the correct link on the site ? in need a spi example ... Lior2011-10-16 10:32 PM
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.