STM8
Low-cost 8-bit microcontroller family by STMicroelectronics
The STM8 is an 8-bit microcontroller series developed by STMicroelectronics. It extends the earlier ST7 architecture with 16-bit registers and a unified memory space, offering a cost-effective solution for embedded control tasks.
- Uses an extended variant of the ST7 architecture
- Features a unified 24-bit address space via memory bridge
- Supports four interrupt priority levels
- Fetches 32 bits from ROM per cycle
- Includes subfamilies for automotive and low-power use
What it is
The STM8 is a family of 8-bit microcontrollers produced by STMicroelectronics. It serves as a low-cost option for full-featured embedded control applications. The design builds upon the older ST7 architecture but introduces significant improvements for modern development, particularly better support for the C programming language. These chips are widely used in automotive systems, lighting control, and general-purpose embedded devices due to their efficiency and affordability.
How it came about
STMicroelectronics developed the STM8 as an evolution of its earlier ST7 microcontroller line. The goal was to create a device that retained the simplicity of 8-bit processing while addressing limitations in compiler support and memory access. By expanding key registers and modifying the instruction set, the company created a chip that is more suitable for high-level language programming than its predecessor, though it remains distinct in its binary encoding.
Inside the chip
Internally, the STM8 uses a Harvard architecture with a memory bridge that creates a unified 24-bit address space. This allows code to run from RAM and data to be read from ROM, facilitating in-system programming. The core features six registers, including 16-bit index registers X and Y, and a 24-bit program counter. It supports four interrupt priority levels and fetches 32 bits from ROM per cycle, enabling many instructions to execute in a single clock tick.
How it was made
Specific manufacturing details such as the process node or transistor count are not provided in the available records. The family includes variants with different memory densities, ranging from low-density devices with 4 to 8 KiB of ROM to high-density versions with up to 96 KiB. RAM sizes vary between 1 and 6 KiB depending on the specific model selected for the application.
Where it went
These microcontrollers appear in various sectors, including automotive electronics via the STM8AF and STM8AL subfamilies. The STM8L variant targets low-power applications, while the STM8S serves general-purpose needs. Other specialized versions handle touch sensing, lighting control, and pulse-width modulation. They are suitable for embedded systems where cost and power efficiency are critical factors.
Versions and family
The family splits into several subfamilies tailored for specific tasks. STM8AF and STM8AL are designed for automotive use, with the latter focusing on low power. STM8L is another low-power option, while STM8S is for general purposes. STM8T handles touch sensing, STLUX manages lighting, and STNRG controls pulse-width modulation. Each variant shares the core architecture but differs in peripheral sets and memory capacity.
Why it matters
The STM8 provided a bridge between legacy 8-bit designs and more complex modern requirements. By improving C compiler compatibility through wider registers and stack-relative addressing, it extended the viability of 8-bit microcontrollers in professional embedded development. Its open-source tool support, including the Small Device C Compiler, has also fostered a community of developers using the platform for diverse projects.

Questions people ask about STM8
Is the STM8 compatible with the older ST7 microcontroller?
No, the STM8 is not binary compatible with the ST7. While its instruction set is mostly a superset, changes in opcode encoding, register usage, and interrupt handling mean that code compiled for one will not run directly on the other without modification.
What makes the STM8 better for C programming than the ST7?
The STM8 includes 16-bit index registers and a stack pointer-relative addressing mode. These features allow compilers to generate more efficient code for local variables and array access, making it a much better target for the C language compared to the limited ST7 architecture.
Can the STM8 execute code from its RAM?
Yes, the memory bridge in the STM8 architecture allows code to execute out of RAM. This feature is particularly useful for in-system programming of the flash ROM, although execution from RAM is somewhat slower than from ROM due to access cycles.
Good reading and sources
The facts on this page come from the Wikipedia article "STM8", written by its contributors and used under the CC BY-SA 4.0 licence, and from its Wikidata record (CC0). EveryChip rewrote the text in its own words, with AI assistance, and compares every page with the article to make sure no passage is copied. It may be reused under the same CC BY-SA 4.0 licence with a link back.
It may contain mistakes, and figures change over time. Nothing here is investment or buying advice. If something is wrong, tell us. Last refreshed 2026-11-14.