STM8AF6213

Active
Education

Automotive 8-bit MCU with 4 Kbytes Flash, LIN, 16 MHz CPU, integrated EEPROM

Download datasheet Order Direct
Overview
Online design
Sample & Buy
Solutions
Documentation
CAD Resources
Tools & Software
Quality & Reliability
Get Started
Partner products
Sales Briefcase

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

More from the product line

Recommended for you

All tools & software

    • Part number
      Status
      Description
      Type
      Supplier

      CYCLONE

      Active

      Automated, Stand-Alone Production Programmer, Debug & Test.

      Hardware Development Tools for STM32 P&E Microcomputer Systems
      CYCLONE

      Description:

      Automated, Stand-Alone Production Programmer, Debug & Test.

      CYCLONE FX

      Active

      Automated, Stand-Alone Production Programmer, Debug & Test.

      Hardware Development Tools for STM32 P&E Microcomputer Systems
      CYCLONE FX

      Description:

      Automated, Stand-Alone Production Programmer, Debug & Test.

      Lauterbach PowerDebug for STM8

      Active

      Debug Solution for STM8 series.

      Hardware Development Tools for STM8 MCUs Lauterbach
      Lauterbach PowerDebug for STM8

      Description:

      Debug Solution for STM8 series.

      Production Flash Programmer

      Active

      Flash and Gang Programmer for STM32, STM8, and BlueNRG MCUs.

      Development Tool Hardware from Partners Elprotronic
      Production Flash Programmer

      Description:

      Flash and Gang Programmer for STM32, STM8, and BlueNRG MCUs.

      ST-LINK/V2

      Active

      ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32

      Hardware Development Tools for STM32 ST
      ST-LINK/V2

      Description:

      ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32

      STLINK-V3SET

      Active

      STLINK-V3 modular in-circuit debugger and programmer for STM32/STM8

      Hardware Development Tools for STM32 ST
      STLINK-V3SET

      Description:

      STLINK-V3 modular in-circuit debugger and programmer for STM32/STM8
    • Part number
      Status
      Description
      Type
      Supplier

      HCC Bootloaders

      Active

      HCC has developed optimized bootloaders for many years and has a range of high quality solutions that will fit almost any scenario.

      STM32 3rd-party Embedded Software HCC Embedded
      HCC Bootloaders

      Description:

      HCC has developed optimized bootloaders for many years and has a range of high quality solutions that will fit almost any scenario.

      HCC FAT File System

      Active

      HCC is renowned for its deep knowledge of flash storage media. In embedded systems, it is not possible to achieve the required efficiency, performance or reliability with a single file system.

      STM32 3rd-party Embedded Software HCC Embedded
      HCC FAT File System

      Description:

      HCC is renowned for its deep knowledge of flash storage media. In embedded systems, it is not possible to achieve the required efficiency, performance or reliability with a single file system.

      HCC Fail-safe File System

      Active

      All Flash File Systems with fail-safe mechanisms for STM32, from HCC Embedded.

      STM32 3rd-party Embedded Software HCC Embedded
      HCC Fail-safe File System

      Description:

      All Flash File Systems with fail-safe mechanisms for STM32, from HCC Embedded.

      STM8-SafeCLASSB

      Active

      Functional safety package to achieve IEC 60730 Class B certification with the STM8

      STM8 Embedded Software ST
      STM8-SafeCLASSB

      Description:

      Functional safety package to achieve IEC 60730 Class B certification with the STM8

      STM8A-SafeASIL

      Active

      Automotive functional safety package for STM8AF and STM8AL Series MCUs in systems implementing safety functions up to ISO 26262 ASIL B

      STM8 Embedded Software ST
      STM8A-SafeASIL

      Description:

      Automotive functional safety package for STM8AF and STM8AL Series MCUs in systems implementing safety functions up to ISO 26262 ASIL B

      STM8S-TOUCH-LIB

      Active

      STM8S touch-sensing library

      STM8 Embedded Software --
      STM8S-TOUCH-LIB

      Description:

      STM8S touch-sensing library

      STSW-STM8004

      Active

      STM8 optimized I2C examples (AN3281)

      STM8 Embedded Software ST
      STSW-STM8004

      Description:

      STM8 optimized I2C examples (AN3281)

      STSW-STM8006

      Active

      Example of implementation of user bootloader (AN2659)

      STM8 Embedded Software ST
      STSW-STM8006

      Description:

      Example of implementation of user bootloader (AN2659)

      STSW-STM8020

      Active

      STM8S and STM8A BLDC and ACIM motor control firmware library V1.0 (UM0708)

      STM8 Embedded Software ST
      STSW-STM8020

      Description:

      STM8S and STM8A BLDC and ACIM motor control firmware library V1.0 (UM0708)

      STSW-STM8045

      Active

      Audio software codec for the STM8S

      STM8 Embedded Software ST
      STSW-STM8045

      Description:

      Audio software codec for the STM8S

      STSW-STM8048

      Active

      Precision improvement techniques for the A/D converter of the STM8 microcontroller (AN2719)

      STM8 Embedded Software ST
      STSW-STM8048

      Description:

      Precision improvement techniques for the A/D converter of the STM8 microcontroller (AN2719)

      STSW-STM8049

      Active

      Basic in-application programming example using the STM8 I2C and SPI peripherals (AN2737)

      STM8 Embedded Software ST
      STSW-STM8049

      Description:

      Basic in-application programming example using the STM8 I2C and SPI peripherals (AN2737)

      STSW-STM8050

      Active

      Real-time keeping on STM8S devices and usage of auto-wakeup unit (AWU) and beeper (AN2780)

      STM8 Embedded Software ST
      STSW-STM8050

      Description:

      Real-time keeping on STM8S devices and usage of auto-wakeup unit (AWU) and beeper (AN2780)

      STSW-STM8051

      Active

      UART emulation software in STM8S and STM8A microcontrollers (AN2781)

      STM8 Embedded Software ST
      STSW-STM8051

      Description:

      UART emulation software in STM8S and STM8A microcontrollers (AN2781)

      STSW-STM8062

      Active

      STM8 in-application programming (IAP) using a customized bootloader (AN2659)

      STM8 Embedded Software ST
      STSW-STM8062

      Description:

      STM8 in-application programming (IAP) using a customized bootloader (AN2659)

      STSW-STM8064

      Active

      Setup screensaver STM8 1024x768

      STM8 Embedded Software ST
      STSW-STM8064

      Description:

      Setup screensaver STM8 1024x768

      STSW-STM8065

      Active

      Setup screensaver STM8 1280x1024

      STM8 Embedded Software ST
      STSW-STM8065

      Description:

      Setup screensaver STM8 1280x1024

      STSW-STM8069

      Active

      STM8S/A Standard peripheral library

      STM8 Embedded Software ST
      STSW-STM8069

      Description:

      STM8S/A Standard peripheral library

      STSW-STM8074

      Active

      LIN communication with two STM8AF boards of STM8A-DISCOVERY (AN4178)

      STM8 Embedded Software ST
      STSW-STM8074

      Description:

      LIN communication with two STM8AF boards of STM8A-DISCOVERY (AN4178)

      STSW-STM8076

      Active

      Analog-to-digital converter on STM8L and STM8AL devices: description and precision improvement techniques

      STM8 Embedded Software ST
      STSW-STM8076

      Description:

      Analog-to-digital converter on STM8L and STM8AL devices: description and precision improvement techniques

      STSW-STM8077

      Active

      STM8AF and STM8S HSI oscillator calibration using LIN automatic resynchronization (AN3258)

      STM8 Embedded Software ST
      STSW-STM8077

      Description:

      STM8AF and STM8S HSI oscillator calibration using LIN automatic resynchronization (AN3258)

      STSW-STM8A-J2602

      Active

      STM8A J2602 software package

      STM8 Embedded Software ST
      STSW-STM8A-J2602

      Description:

      STM8A J2602 software package

      STSW-STM8A-LIN

      Active

      STM8A LIN 2.1 software package

      STM8 Embedded Software ST
      STSW-STM8A-LIN

      Description:

      STM8A LIN 2.1 software package
    • Part number
      Status
      Description
      Type
      Supplier

      NUCLEO-8S207K8

      Active

      STM8 Nucleo-32 development board with STM8S207K8 MCU, supports Arduino Nano connectivity

      STM8 Nucleo Boards ST
      NUCLEO-8S207K8

      Description:

      STM8 Nucleo-32 development board with STM8S207K8 MCU, supports Arduino Nano connectivity

      STM8A-DISCOVERY

      Active

      Discovery kit with STM8AF5288 and STM8AL3L68 MCUs

      STM8 MCU Eval Boards ST
      STM8A-DISCOVERY

      Description:

      Discovery kit with STM8AF5288 and STM8AL3L68 MCUs

      STM8A/128-EVAL

      Active

      Evaluation board for STM8AF series - with STM8AF51AA/STM8AF52AA MCU

      STM8 MCU Eval Boards ST
      STM8A/128-EVAL

      Description:

      Evaluation board for STM8AF series - with STM8AF51AA/STM8AF52AA MCU
    • Part number
      Status
      Description
      Type
      Supplier

      CXSTM8

      Active

      C Compiler and associated tools for the STM8 family

      STM8 IDEs Cosmic Software
      CXSTM8

      Description:

      C Compiler and associated tools for the STM8 family

      FLASHER-STM8

      Active

      STM8 Flash loader demonstrator (UM0462)

      STM8 Programmers ST
      FLASHER-STM8

      Description:

      STM8 Flash loader demonstrator (UM0462)

      IAR C-STAT

      Active

      Static analysis tool; add-on product to IAR Embedded Workbench

      STM32 Utilities IAR Systems
      IAR C-STAT

      Description:

      Static analysis tool; add-on product to IAR Embedded Workbench

      IAR Embedded Workbench for STM8 - Functional Safety

      Active

      Integrated Development Environment.

      STM8 IDEs IAR Systems
      IAR Embedded Workbench for STM8 - Functional Safety

      Description:

      Integrated Development Environment.

      IAR Visual State

      Active

      State-machine modelling tool

      STM32 Utilities IAR Systems
      IAR Visual State

      Description:

      State-machine modelling tool

      RIDE-STM8

      Active

      Raisonance branded integrated development environment for STM8 MCUs

      STM8 IDEs Raisonance
      RIDE-STM8

      Description:

      Raisonance branded integrated development environment for STM8 MCUs

      STM-STUDIO-STM8

      Active

      STM Studio run-time variables monitoring and visualization tool for STM8 microcontrollers

      STM8 Performance and Debuggers ST
      STM-STUDIO-STM8

      Description:

      STM Studio run-time variables monitoring and visualization tool for STM8 microcontrollers

      STM8CubeMX

      Active

      STM8Cube configuration and report tool

      STM8 Configurators and Code Generators ST
      STM8CubeMX

      Description:

      STM8Cube configuration and report tool

      STVD-STM8

      Active

      ST Visual develop IDE for developing ST7 and STM8 applications

      STM8 IDEs ST
      STVD-STM8

      Description:

      ST Visual develop IDE for developing ST7 and STM8 applications

      STVP-LIB-STM8

      Active

      STVP programming toolkit: C++ source files for creating PC programming interface

      STM8 Programmers ST
      STVP-LIB-STM8

      Description:

      STVP programming toolkit: C++ source files for creating PC programming interface

      STVP-STM8

      Active

      ST Visual Programmer STM8

      STM8 Programmers ST
      STVP-STM8

      Description:

      ST Visual Programmer STM8
    • Part number
      Status
      Description
      Type
      Supplier

      IAR Academy

      Active

      Technical training with embedded experts

      Trainings IAR Systems
      IAR Academy

      Description:

      Technical training with embedded experts

      NewTec Functional Safety Training

      Active

      Functional Safety Training, introduction and guidance to Safety and standards, esp IEC61508 and ISO13849.

      Trainings NewTec
      NewTec Functional Safety Training

      Description:

      Functional Safety Training, introduction and guidance to Safety and standards, esp IEC61508 and ISO13849.

      ST Trainings

      Active

      STM32, STM8 and ST Ecosystem trainings.

      Trainings MASTERS
      ST Trainings

      Description:

      STM32, STM8 and ST Ecosystem trainings.

EDA Symbols, Footprints and 3D Models

STMicroelectronics - STM8AF6213

Speed up your design by downloading all the EDA symbols, footprints and 3D models for your application. You have access to a large number of CAD formats to fit with your design toolchain.

Symbols

Symbols

Footprints

Footprints

3D model

3D models

Quality and Reliability

Part Number Marketing Status Package Grade RoHS Compliance Grade Material Declaration**
STM8AF6213PCU
Active
TSSOP-20 Automotive Ecopack2
STM8AF6213PCX
Active
TSSOP-20 Automotive Ecopack2
STM8AF6213PDU
Active
TSSOP-20 Automotive Ecopack2

STM8AF6213PCU

Package:

TSSOP-20

Material Declaration**:

PDF XML

Marketing Status

Active

Package

TSSOP-20

Grade

Automotive

RoHS Compliance Grade

Ecopack2

STM8AF6213PCX

Package:

TSSOP-20

Material Declaration**:

PDF XML

Marketing Status

Active

Package

TSSOP-20

Grade

Automotive

RoHS Compliance Grade

Ecopack2

STM8AF6213PDU

Package:

TSSOP-20

Material Declaration**:

PDF XML

Marketing Status

Active

Package

TSSOP-20

Grade

Automotive

RoHS Compliance Grade

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
Order from Distributors
Order from ST
Marketing Status
ECCN (US)
ECCN (EU)
Packing Type
Package
Temperature (°C) Country of Origin
Budgetary Price (US$)*/Qty
min
max
STM8AF6213PDU Available at 1 distributors

Distributor availability ofSTM8AF6213PDU

Distributor Name
Region Stock Min. Order Third party link
MOUSER WORLDWIDE 12 1 Order Now

Distributor reported inventory date: 2021-05-14

Distributor Name

MOUSER

Stock

12

Min.Order

1

Region

WORLDWIDE Order Now

Distributor reported inventory date: 2021-05-14

Buy Direct
Active
EAR99 NEC Tube TSSOP-20 -40 150 PHILIPPINES 0.611 / 10k
STM8AF6213PCU Available at 1 distributors

Distributor availability ofSTM8AF6213PCU

Distributor Name
Region Stock Min. Order Third party link
MOUSER WORLDWIDE 25 1 Order Now

Distributor reported inventory date: 2021-05-14

Distributor Name

MOUSER

Stock

25

Min.Order

1

Region

WORLDWIDE Order Now

Distributor reported inventory date: 2021-05-14

Buy Direct
Active
EAR99 NEC Tube TSSOP-20 -40 125 PHILIPPINES 0.523 / 10k
STM8AF6213PCX No availability of distributors reported, please contact our sales office
Active
EAR99 NEC Tape And Reel TSSOP-20 -40 125 PHILIPPINES 0.523 / 10k

STM8AF6213PDU

Marketing Status

Active

ECCN (US)

EAR99

Budgetary Price (US$)*/Qty

0.611 / 10k

Distributor availability ofSTM8AF6213PDU

Distributor Name
Region Stock Min. Order Third party link
MOUSER WORLDWIDE 12 1 Order Now

Distributor reported inventory date: 2021-05-14

Distributor Name

MOUSER

Stock

12

Min.Order

1

Region

WORLDWIDE Order Now

Distributor reported inventory date: 2021-05-14

ECCN (EU)

NEC

Packing Type

Tube

Package

TSSOP-20

Operating Temperature (°C)

(min)

-40

(max)

150

Budgetary Price (US$)* / Qty

0.611 / 10k

Country of Origin

PHILIPPINES

STM8AF6213PCU

Marketing Status

Active

ECCN (US)

EAR99

Budgetary Price (US$)*/Qty

0.523 / 10k

Distributor availability ofSTM8AF6213PCU

Distributor Name
Region Stock Min. Order Third party link
MOUSER WORLDWIDE 25 1 Order Now

Distributor reported inventory date: 2021-05-14

Distributor Name

MOUSER

Stock

25

Min.Order

1

Region

WORLDWIDE Order Now

Distributor reported inventory date: 2021-05-14

ECCN (EU)

NEC

Packing Type

Tube

Package

TSSOP-20

Operating Temperature (°C)

(min)

-40

(max)

125

Budgetary Price (US$)* / Qty

0.523 / 10k

Country of Origin

PHILIPPINES

STM8AF6213PCX

Marketing Status

Active

ECCN (US)

EAR99

Budgetary Price (US$)*/Qty

0.523 / 10k

ECCN (EU)

NEC

Packing Type

Tape And Reel

Package

TSSOP-20

Operating Temperature (°C)

(min)

-40

(max)

125

Budgetary Price (US$)* / Qty

0.523 / 10k

Country of Origin

PHILIPPINES

(*) Suggested Resale Price per unit (USD) for BUDGETARY USE ONLY. For quotes, prices in local currency, please contact your local ST Sales Office  or our Distributors