- Examples found on the Internet for using the resources of the STM8.
-
- Since the ST does not seem to support this line of low cost microcontrollers very well.
Start understanding STM8 with this tutorial:
- Embedded Lab: Starting STM8 Microcontrollers
- Embedded Lab: Continuing the STM8 Expedition
- Embedded Lab: STM8 Microcontrollers – the Final Chapters
-
-
- All tutorial codes and PDF document of these tutorials are available: here.
-
Tutorial to make better use of memory:
- lujji: Serial bootloader for STM8
-
- This article will cover developing a serial bootloader for STM8S microcontrollers.
- lujji: Mixing C and assembly on STM8
-
- This guide discusses how we should (and should not) speed up our code with inline assembly and explains how to write separate assembly routines that can be used within C.
- lujji: Executing code from RAM on STM8
-
- A short article where we investigate how executing code from RAM can be achieved on STM8 with SDCC toolchain.
- lujji: Bare metal programming: STM8
-
- This article will cover developing for STM8 series of microcontrolles completely from scratch, without using any vendor-supplied libraries.
- Klaasdc: STM8S Projects
-
- 16bit to BCD Conversion
-
- A/D tacho conversion
-
- Elevator codelock
-
- RPM Counter
- YouTube: How to use STM8S Controller with Arduino IDE | SDUINO
- YouTube Playlist (42 videos): STM8 Microcontroller Tutorials
Arduino Core:
- https://tenbaht.github.io/sduino/
- https://github.com/tenbaht/sduino
- https://github.com/stm32duino/Arduino_Core_STM8
The STM8S003 is almost identical to the STM8S103, the only difference is a smaller EEPROM area:
STM8S003F3: https://www.st.com/en/microcontrollers-microprocessors/stm8s003f3.html
- Data memory: 128 bytes true data EEPROM; endurance up to 100 k write/erase cycles
STM8S103F3: https://www.st.com/en/microcontrollers-microprocessors/stm8s103f3.html
- Data memory: 640 byte true data EEPROM; endurance 300 kcycle
- Library provided by ST:
https://www.st.com/en/embedded-software/stsw-stm8069.html
- ST documments:
-
- DS7147 Value line, 16-MHz STM8S 8-bit MCU, 8-Kbyte Flash memory, 128-byte data EEPROM, 10-bit ADC, 3 timers, UART, SPI, I²C
-
- AN3280 Displaying variable voltage on a bar of LEDs using STM8S-DISCOVERY
-
- AN2860 EMC guidelines for STM8 microcontrollers
-
- AN1181 Electrostatic discharge sensitivity measurement
-
- AN2752 Getting started with STM8S and STM8AF microcontrollers
-
- AN3208 Microstepping motor drive with STM8A and STM8S microcontrollers
-
- TN1163 Description of WLCSP for microcontrollers and recommendations for its use
-
- TN0189 STM8 bootloader frequently asked questions
-
- UM1542 Cold thermostat kit based on AC switches and the STM8S003F3
-
- UM1546 STEVAL-IHM037V1 remote fan speed controller
-
- RM0016 STM8S Series and STM8AF Series 8-bit microcontrollers
-
- PM0051 How to program STM8S and STM8A Flash program memory and data EEPROM
-
- PM0044 STM8 CPU programming manual
-
- ES0102 STM8S001J3, STM8S003xx, STM8S103xx and STM8S903xx device limitations
-
- DN0005 A three phase induction motor drive using a V/F control
-
- AN5183 Adjustable LED blinking speed using STM8 Nucleo-64 boards and STM8 Nucleo-32 boards
-
- AN3143 Audio software codec for the STM8S
-
- AN2737 Basic in-application programming example using the STM8 I²C and SPI peripherals
-
- AN5181 Building a thermometer using the STM8 Nucleo-64 boards
-
- AN5176 Displaying variable voltage on a bar of LEDs using STM8 Nucleo-64 boards
-
- Other docs
https://www.st.com/en/microcontrollers-microprocessors/stm8s003f3.html#documentation
- This project uses STM8S003F3P6, on board W1209 - Thermostat (or timer):
https://github.com/rtek1000/W1209-firmware-modified
- This project (maybe) uses STM8S003F3P6, in a programmable LED controller:
(RF magic Controller 6803 IC 133 Modes for Dream Color Chasing 5050 RGB LED Strip)
https://github.com/rtek1000/RF_Magic_Controller_6803_IC
- STM8 eForth is an interactive Forth system for the STM8 family of highly reliable 8-bit MCUs with 16bit extensions and modern peripherals that are easier to master than those in 32bit µCs.
-
- The STM8 eForth core is written in STM8 assembly using the SDCC tool chain. Combining Forth with C is supported.
https://github.com/TG9541/stm8ef
Note: This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE