Giter Club home page Giter Club logo

stm8's Introduction

#STM8S Example Projects With [SDCC](http://sdcc.sourceforge.net/) This repository is a collection of simple projects for STM8S003F3 to help you get started with this series of small, cheap but capable MCU's.

#Hardware The examples in this repository are tested with a generic STM8S003F3P6 in TSSOP20 package. There is no reason they do not work on other packages.

For compatibility with other STM8X (e.g. L) series of MCU's make sure the registers in the "include/stm8s.h" are compatible with your own MCU. Just make a copy of this file and apply changes according to the datasheet of the chip you have at hand.

For tutorial on programming these examples on your MCU, please check the guide to flashing stm8 on linux.


#Folders Structure -examples Contains examples
--blink Blinks an LED
--inputpooling Reads a pin configured as input and reacts by turning a LED on/off
--leddance Uses the implemented dance routins to make appealing LED dancing ;)
--uart A simple UART communication example that prints characters to serial
-include Header files which contain constants, types and function declarations
-include Used for store git repository, not important for users
-src Contains function definitions

#How to use? Just go inside the 'examples' folder and see the source code for each example. Use the Make file to compile and flash the example on your own chip.
#What's coming next? This is an ongoing project. I will try to add more examples, e.g. Timers, interruprs, SPI and I2C.
#What can you do? If you have nice examples and projects, please contribiute to this repository.
#Donations Your donations will make further development much faster! If you are interested to donate to EMBEDONIX (any amount even 1$ is welcome!) please visit [EMBEDONIX.COM](http://www.embedonix.com) and click on the paypal donate button!

stm8's People

Contributors

saeidyazdani avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.