Product overview
Description
The STM8AF6213, STM8AF6213A, STM8AF6223, STM8AF6223A and STM8AF6226 automotive 8-bit microcontrollers offer 4 to 8 Kbytes of Flash program memory, plus integrated true data EEPROM. The STM8S series and STM8AF series 8-bit microcontrollers reference manual (RM0016) refers to devices in this family as low-density. They provide the following benefits: performance, robustness and reduced system cost.
Device performance and robustness are ensured by advanced core and peripherals made in a state-of-the-art technology, a 16 MHz clock frequency, robust I/Os, independent watchdogs with separate clock source, and a clock security system.
The system cost is reduced thanks to an integrated true data EEPROM for up to 300 k write/erase cycles and a high system integration level with internal clock oscillators, watchdog, and brown-out reset.
Full documentation is offered as well as a wide choice of development tools.
-
All features
- AEC-Q100 qualified
- Core
- Max fCPU: 16 MHz
- Advanced STM8A core with Harvard architecture and 3-stage pipeline
- Extended instruction set
- Memories
- Program memory: 4 to 8 Kbyte Flash program; data retention 20 years at 55 °C after 1 kcycle
- Data memory: 640 byte true data EEPROM; endurance 300 kcycle
- RAM: 1 Kbyte
- Clock management
- Low-power crystal resonator oscillator with external clock input
- Internal, user-trimmable 16 MHz RC and low-power 128 kHz RC oscillators
- Clock security system with clock monitor
- Reset and supply management
- Wait/auto-wakeup/Halt low-power modes with user definable clock gating
- Low-consumption power-on and power-down reset
- Interrupt management
- Nested interrupt controller with 32 interrupts
- Up to 28 external interrupts on 7 vectors
- Timers
- Advanced control timer: 16-bit, 4 CAPCOM channels, 3 complementary outputs, dead-time insertion and flexible synchronization
- 16-bit general purpose timer with 3 CAPCOM channels each (IC, OC, PWM)
- 8-bit AR basic timer with 8-bit prescaler
- Auto-wakeup timer
- Window and independent watchdog timers
- I/Os
- Up to 28 I/Os on a 32-pin package including 21 high sink outputs
- Highly robust I/O design, immune against current injection
- Communication interfaces
- LINUART LIN 2.2 compliant, master/slave modes with automatic resynchronization
- SPI interface up to 8 Mbit/s or fMASTER/2
- I2C interface up to 400 Kbit/s
- Analog to digital converter (ADC)
- 10-bit, ± 1 LSB ADC with up to 7 muxed channels + 1 internal channel, scan mode and analog watchdog
- Internal reference voltage measurement
- Operating temperature up to 150 °C
Circuit Diagram
More from the product line

Recommended Tools & Software
All resources
Resource title | Version | Latest update |
---|
Product Specifications (1)
Resource title | Version | Latest update | ||
---|---|---|---|---|
9.0 | 02 Apr 2020 | 02 Apr 2020 |
Application Notes (5 of 11)
Resource title | Version | Latest update | ||
---|---|---|---|---|
6.0 | 05 Apr 2018 | 05 Apr 2018 | ||
23.0 | 27 Feb 2025 | 27 Feb 2025 | ||
2.7 | 13 Feb 2023 | 13 Feb 2023 | ||
1.5 | 31 Oct 2024 | 31 Oct 2024 | ||
3.1 | 15 May 2017 | 15 May 2017 | ||
1.5 | 13 Jul 2022 | 13 Jul 2022 | ||
2.0 | 18 Dec 2024 | 18 Dec 2024 | ||
3.4 | 13 Feb 2023 | 13 Feb 2023 | ||
2.4 | 13 Feb 2023 | 13 Feb 2023 | ||
9.0 | 04 Apr 2025 | 04 Apr 2025 | ||
1.5 | 13 Feb 2023 | 13 Feb 2023 |
Technical Notes & Articles (5 of 6)
Resource title | Version | Latest update | ||
---|---|---|---|---|
4.0 | 11 Jul 2017 | 11 Jul 2017 | ||
2.7 | 18 Mar 2024 | 18 Mar 2024 | ||
3.0 | 11 Jul 2017 | 11 Jul 2017 | ||
3.0 | 11 Jul 2017 | 11 Jul 2017 | ||
1.0 | 11 Jul 2017 | 11 Jul 2017 | ||
1.0 | 11 Jul 2017 | 11 Jul 2017 |
Reference Manuals (1)
Resource title | Version | Latest update | ||
---|---|---|---|---|
14.0 | 05 Oct 2017 | 05 Oct 2017 |
Programming Manuals (2)
Resource title | Version | Latest update | ||
---|---|---|---|---|
3.6 | 02 Nov 2023 | 02 Nov 2023 | ||
3.7 | 18 Mar 2024 | 18 Mar 2024 |
Errata Sheets (1)
Resource title | Version | Latest update | ||
---|---|---|---|---|
3.0 | 27 Feb 2023 | 27 Feb 2023 |
Application Notes for related Tools & Software (5 of 14)
Resource title | Version | Latest update | ||
---|---|---|---|---|
2.0 | 06 Dec 2019 | 06 Dec 2019 | ||
3.4 | 22 Aug 2024 | 22 Aug 2024 | ||
1.5 | 02 Jun 2020 | 02 Jun 2020 | ||
3.6 | 13 Sep 2018 | 13 Sep 2018 | ||
2.3 | 29 Jun 2023 | 29 Jun 2023 | ||
4.0 | 26 Feb 2018 | 26 Feb 2018 | ||
1.2 | 18 Dec 2024 | 18 Dec 2024 | ||
1.3 | 21 Dec 2018 | 21 Dec 2018 | ||
1.3 | 18 Dec 2024 | 18 Dec 2024 | ||
2.7 | 17 May 2016 | 17 May 2016 | ||
2.5 | 13 Feb 2023 | 13 Feb 2023 | ||
3.0 | 24 Jan 2017 | 24 Jan 2017 | ||
4.4 | 28 Jul 2022 | 28 Jul 2022 | ||
2.5 | 13 Feb 2023 | 13 Feb 2023 |
Presentations (3)
Resource title | Version | Latest update | ||
---|---|---|---|---|
1.0 | 16 Sep 2024 | 16 Sep 2024 | ||
1.0 | 21 Mar 2024 | 21 Mar 2024 | ||
1.1 | 02 Dec 2024 | 02 Dec 2024 |
Flyers (2)
Resource title | Version | Latest update | ||
---|---|---|---|---|
20.0 | 21 Dec 2020 | 21 Dec 2020 | ||
19.01 | 31 Oct 2022 | 31 Oct 2022 |
Brochures (1)
Resource title | Version | Latest update | ||
---|---|---|---|---|
18.10 | 13 Jan 2016 | 13 Jan 2016 |
Product Certifications (5)
Resource title | Version | Latest update | ||
---|---|---|---|---|
1.0 | 01 Aug 2015 | 01 Aug 2015 | ||
1.0 | 01 Aug 2015 | 01 Aug 2015 | ||
1.0 | 01 Aug 2015 | 01 Aug 2015 | ||
1.0 | 01 Aug 2015 | 01 Aug 2015 | ||
1.0 | 01 Aug 2015 | 01 Aug 2015 |
EDA Symbols, Footprints and 3D Models
Quality and Reliability
Part Number | Marketing Status | Package | Grade | RoHS Compliance Grade | Material Declaration** |
---|---|---|---|---|---|
STM8AF6223IPCU | Active | TSSOP-20 | Automotive | Ecopack2 | |
STM8AF6223IPCX | Active | TSSOP-20 | Automotive | Ecopack2 | |
STM8AF6223PAU | Active | TSSOP-20 | Automotive | Ecopack2 | |
STM8AF6223PAX | Active | TSSOP-20 | Automotive | Ecopack2 | |
STM8AF6223PCU | Active | TSSOP-20 | Automotive | Ecopack2 | |
STM8AF6223PCX | Active | TSSOP-20 | Automotive | Ecopack2 | |
STM8AF6223PDU | Active | TSSOP-20 | Automotive | Ecopack2 | |
STM8AF6223PDX | Active | TSSOP-20 | Automotive | Ecopack2 |
(**) The Material Declaration forms available on st.com may be generic documents based on the most commonly used package within a package family. For this reason, they may not be 100% accurate for a specific device. Please contact our sales support for information on specific devices.
Sample & Buy
Part Number | Marketing Status | Budgetary Price (US$)*/Qty | Order from ST | Order from distributors | Package | Packing Type | RoHS | Country of Origin | ECCN (US) | ECCN (EU) | Operating temperature (°C) | Operating Temperature (°C) (max) | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
min | max | |||||||||||||
STM8AF6223PDU | Active | 1.0708 / 10k | 2 distributors | TSSOP-20 | Tube | PHILIPPINES | EAR99 | NEC | -40 | 150 | ||||
STM8AF6223IPCX | Active | 1.0026 / 10k | distributors No availability of distributors reported, please contact our sales office | TSSOP-20 | Tape and Reel | PHILIPPINES | EAR99 | NEC | -40 | |||||
STM8AF6223PCU | Active | 0.9166 / 10k | 2 distributors | TSSOP-20 | Tube | PHILIPPINES | EAR99 | NEC | -40 | 125 | ||||
STM8AF6223IPCU | Active | 1.0026 / 10k | distributors No availability of distributors reported, please contact our sales office | TSSOP-20 | Tube | PHILIPPINES | EAR99 | NEC | -40 | |||||
STM8AF6223PDX | Active | 1.0708 / 10k | distributors No availability of distributors reported, please contact our sales office | TSSOP-20 | Tape and Reel | PHILIPPINES | EAR99 | NEC | -40 | 150 | ||||
STM8AF6223PAX | Active | 0.8567 / 10k | 1 distributors | TSSOP-20 | Tape and Reel | PHILIPPINES | EAR99 | NEC | -40 | 85 | ||||
STM8AF6223PCX | Active | 0.9166 / 10k | 1 distributors | TSSOP-20 | Tape and Reel | PHILIPPINES | EAR99 | NEC | -40 | 125 | ||||
STM8AF6223PAU | Active | 0.8567 / 10k | 2 distributors | TSSOP-20 | Tube | PHILIPPINES | EAR99 | NEC | -40 | 85 |
STM8AF6223PDU Active
STM8AF6223IPCX Active
STM8AF6223PCU Active
STM8AF6223IPCU Active
STM8AF6223PDX Active
STM8AF6223PAX Active
STM8AF6223PCX Active
STM8AF6223PAU Active
(*) Suggested Resale Price (USD) per defined quantity for BUDGETARY USE ONLY. For quotes, prices in local currency, please contact your local ST Sales Office or our Distributors