From Wikipedia, the free encyclopedia
Jump to: navigation, search

The STM8 is an 8-bit microcontroller by STMicroelectronics.


The STM8 has some similarities to the earlier ST7, but is better suited as a target for C due to its stack pointer-relative addressing mode. There is an 8-bit accumulator A and 16-bit registers X and Y, which are mostly used as index registers. Few of the STM8 microcontrollers have more than 64K of memory. Access to data memory above 64K is rather complicated and requires the use of special instructions.


  • STM8AF automobile
  • STM8AL automobile low-power
  • STM8L low-power
  • STM8S
  • STM8T touch-sensing
  • STLUX lighting control
  • STNRG Pulse-width modulation-controllers

Compiler support[edit]

The STM8 is supported by the free Small Device C Compiler, the free of charge closed source Cosmic C compiler,[1] and the non-free IAR C and Raisonance compilers. Besides C there is STM8 eForth, an open source port of the Forth programming language.


  1. ^ "COS-C-COMPILER - Free C Compiler for all STM8, from Cosmic" (Press release). STMicroelectronics. Retrieved 24 March 2016. 

External links[edit]