Over the past few weeks I have been working on some SPI code for the STM8S. This code implements the original communication protocol used for modules such as the Potentiometer and the RGB LED using an interrupt mechanism. I have just completed writing this up as part of The Way of the Register series of articles and made the sources available to anyone who is interested.
You can find the posting on my blog in the article STM8S SPI Slave (Part 3) Making a Go Module.
The code as posted should allow potential module makers to create a new module by adding functions to the function table in the code without having to worry too much about the communications protocol.
There were some niggles along the way but these have been listed at the end of the post.
This code is provided as is.
Hope you find this useful,
Mark
Source Code for a Basic Netduino Go Module using the STM8S
Started by Nevyn, Nov 26 2012 09:11 PM
No replies to this topic
#1
Posted 26 November 2012 - 09:11 PM
- Chris Walker, Arron Chapman, Gutworks and 1 other like this
To be or not to be = 0xFF
Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life
Follow @nevynuk on Twitter
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users