STM8AF6213A

NRND
Design Win

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

Download datasheet
Overview
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

Circuit Diagram

More from the product line

All tools & software

    • Part number
      Status
      Description
      Type
      Supplier

      AP350/SG5000 Automatic System

      Active

      Automatic programmers for STM MCUs series & PMUs

      Hardware Development Tools from Partners System General
      AP350/SG5000 Automatic System

      Description:

      Automatic programmers for STM MCUs series & PMUs

      CXSTM8

      Active

      C Compiler and associated tools for the STM8 family

      Software Development Tools from Partners Cosmic Software
      CXSTM8

      Description:

      C Compiler and associated tools for the STM8 family

      IAR C-STAT

      Active

      Static analysis tool, add-on to IAR Embedded Workbench

      Software Development Tools from Partners IAR Systems
      IAR C-STAT

      Description:

      Static analysis tool, add-on to IAR Embedded Workbench

      IAR Embedded Workbench for STM8 - Functional Safety

      Active

      Functional safety edition of IAR Embedded Workbench for STM8

      Software Development Tools from Partners IAR Systems
      IAR Embedded Workbench for STM8 - Functional Safety

      Description:

      Functional safety edition of IAR Embedded Workbench for STM8

      IAR Visual State

      Active

      State-machine modelling tool

      Software Development Tools from Partners IAR Systems
      IAR Visual State

      Description:

      State-machine modelling tool

      J-Trace Pro for Cortex-M

      Active

      Segger J-Trace Pro debug and trace probe

      Hardware Development Tools from Partners SEGGER Microcontroller
      J-Trace Pro for Cortex-M

      Description:

      Segger J-Trace Pro debug and trace probe

      Lauterbach PowerDebug for STM8

      Active

      Debug Solution for STM8 series

      Hardware Development Tools from Partners 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

      Hardware Development Tools from Partners Elprotronic
      Production Flash Programmer

      Description:

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

      T9800/SG8000 Device Programmer

      Active

      Universal programmers for ST MCUs series & PMUs

      Hardware Development Tools from Partners System General
      T9800/SG8000 Device Programmer

      Description:

      Universal programmers for ST MCUs series & PMUs

      winIDEA-STM8

      Active

      Complete software development and test solution for STM8

      Software Development Tools from Partners iSYSTEM
      winIDEA-STM8

      Description:

      Complete software development and test solution for STM8
    • Part number
      Status
      Description
      Type
      Supplier

      Tuxera Bootloaders

      Active

      Optimized high quality solutions bootloaders

      Embedded Software from Partners Tuxera
      Tuxera Bootloaders

      Description:

      Optimized high quality solutions bootloaders

      Tuxera FAT File System

      Active

      FAT File systems for flash storage media

      Embedded Software from Partners Tuxera
      Tuxera FAT File System

      Description:

      FAT File systems for flash storage media

      Tuxera Fail-safe File System

      Active

      All Flash File Systems with fail-safe mechanisms for STM32

      Embedded Software from Partners Tuxera
      Tuxera Fail-safe File System

      Description:

      All Flash File Systems with fail-safe mechanisms for STM32
    • Part number
      Status
      Description
      Type
      Supplier

      ST-LINK/V2

      Active

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

      Hardware Debugger and Programmer 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 Debugger and Programmer Tools for STM32 ST
      STLINK-V3SET

      Description:

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

      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

      NRND

      Discovery kit with STM8AF5288 and STM8AL3L68 MCUs

      STM8 MCU Eval Boards ST
      STM8A-DISCOVERY

      Description:

      Discovery kit with STM8AF5288 and STM8AL3L68 MCUs
    • Part number
      Status
      Description
      Type
      Supplier

      IAR Academy

      Active

      IAR Academy

      Training from Partners IAR Systems
      IAR Academy

      Description:

      IAR Academy

      NewTec Functional Safety Training

      Active

      NewTec Functional Safety Training

      Training from Partners NewTec
      NewTec Functional Safety Training

      Description:

      NewTec Functional Safety Training

      ST Trainings

      Active

      ST Trainings

      Training from Partners MASTERS
      ST Trainings

      Description:

      ST Trainings
    • Part number
      Status
      Description
      Type
      Supplier

      FLASHER-STM8

      Active

      STM8 Flash loader demonstrator (UM0462)

      STM8 Programmers ST
      FLASHER-STM8

      Description:

      STM8 Flash loader demonstrator (UM0462)

      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

EDA Symbols, Footprints and 3D Models

STMicroelectronics - STM8AF6213A

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**
STM8AF6213PCAU
NRND
TSSOP-20 Automotive Ecopack2
STM8AF6213PCAX
NRND
TSSOP-20 Automotive Ecopack2

STM8AF6213PCAU

Package:

TSSOP-20

Material Declaration**:

Marketing Status

NRND

Package

TSSOP-20

Grade

Automotive

RoHS Compliance Grade

Ecopack2

STM8AF6213PCAX

Package:

TSSOP-20

Material Declaration**:

Marketing Status

NRND

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

Swipe or click the button to explore more details Don't show this again
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
STM8AF6213PCAX Available at distributors

Distributor availability of STM8AF6213PCAX

Distributor Name
Region Stock Min. Order Third party link

Distributor reported inventory date:

No availability of distributors reported, please contact our sales office
NRND
EAR99 NEC Tape and Reel TSSOP-20 -40 125 PHILIPPINES
STM8AF6213PCAU Available at distributors

Distributor availability of STM8AF6213PCAU

Distributor Name
Region Stock Min. Order Third party link

Distributor reported inventory date:

No availability of distributors reported, please contact our sales office
NRND
EAR99 NEC Tube TSSOP-20 -40 125 PHILIPPINES

STM8AF6213PCAX NRND

Package:
TSSOP-20
ECCN (US):
EAR99
Budgetary Price (US$)*/Qty:
-

Part Number:

STM8AF6213PCAX

ECCN (EU):

NEC

Packing Type:

Tape and Reel

Operating Temperature (°C)

Min:

-40

Max:

125

Country of Origin:

PHILIPPINES

STM8AF6213PCAU NRND

Package:
TSSOP-20
ECCN (US):
EAR99
Budgetary Price (US$)*/Qty:
-

Part Number:

STM8AF6213PCAU

ECCN (EU):

NEC

Packing Type:

Tube

Operating Temperature (°C)

Min:

-40

Max:

125

Country of Origin:

PHILIPPINES

Swipe or click the button to explore more details Don't show this again

(*) 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