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

The STM8AF6213, STM8AF6223, STM8AF6223A and STM8AF6226 automotive 8-bit microcontrollers offer 4 to 8 Kbyte 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 kwrite/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.

Key Features

  • 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
    • I2 C 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
  • Qualification conforms to AEC-Q100 rev G

Circuit Diagram

0 Download

circuit_diagram_14952_thumbnail.png

Design

Technical Documentation

Product Specifications
Description Version Size
DS9884 DS9884: Automotive 8-bit MCU, with up to 8 Kbyte Flash, data EEPROM, 10-bit ADC, timers, LIN, SPI, I²C, 3 to 5.5 V 5.0 1 MB
Application Notes
Description Version Size
AN1709 AN1709: EMC design guide for ST microcontrollers 2.0 843 KB
AN2860 AN2860: EMC guidelines for STM8 microcontrollers 5.1 262 KB
AN1181 AN1181: Electrostatic discharge sensitivity measurement 1.6 49 KB
AN2752 AN2752: Getting started with the STM8S and STM8A 5.2 2 MB
AN3236 AN3236: Guidelines to increase the number of touch sensing touchkeys 4.0 300 KB
AN2669 AN2669: How to configure the STM8A microcontroller clocks 2.5 97 KB
AN4101 AN4101: LIN communication with STM8A-DISCOVERY 1.1 182 KB
AN3208 AN3208: Microstepping motor drive with STM8A and STM8S microcontrollers 1.3 284 KB
AN2867 AN2867: Oscillator design guide for STM8S, STM8A and STM32 microcontrollers 10.0 2 MB
AN2792 AN2792: STM8A easy programmer 1.4 129 KB
AN3258 AN3258: STM8AF and STM8S series HSI oscillator calibration using LIN automatic resynchronization 2.0 247 KB
AN2857 AN2857: STM8S and STM8A family power management 3.2 268 KB
AN2822 AN2822: STM8S and STM8A high speed internal oscillator calibration 2.2 195 KB
AN3023 AN3023: Using the analog-to-digital converter of the STM8A microcontroller 1.3 283 KB
Technical Notes & Articles
Description Version Size
TN1163 TN1163: Description of WLCSP for microcontrollers and recommendations for its use 3.0 1 MB
TN0189 TN0189: STM8 bootloader frequently asked questions 2.4 320 KB
TN1205 TN1205: Tape and reel shipping media for STM8 and STM32 microcontrollers in FPN packages 3.0 753 KB
TN1206 TN1206: Tape and reel shipping media for STM8 and STM32 microcontrollers in QFP packages 3.0 830 KB
TN1207 TN1207: Tape and reel shipping media for STM8 and STM32 microcontrollers in SO packages 1.0 755 KB
TN1208 TN1208: Tape and reel shipping media for STM8 and STM32 microcontrollers in TSSOP and SSOP packages 1.0 743 KB
User Manuals
Description Version Size
UM0470 UM0470: STM8 SWIM communication protocol and debug module 3.4 531 KB
Reference Manuals
Description Version Size
RM0016 RM0016: STM8S series and STM8AF series 8-bit microcontrollers 12.1 4 MB
Programming Manuals
Description Version Size
PM0051 PM0051: How to program STM8S and STM8A Flash program memory and data EEPROM 3.3 192 KB
PM0044 PM0044: STM8 CPU programming manual 3.4 899 KB
Errata Sheets
Description Version Size
ES0220 ES0220: Device limitations for STM8AF62xx automotive MCUs featuring up to 8 Kbytes of Flash program memory 2.0 326 KB
Device Option Lists
Description Version Size
STM8AF622x/4x STM8AF6266/68 option list (8- to 32-Kbyte) 1.0 1 KB

Presentations & Training Material

Presentations
Description Version Size
STM32 and STM8 Functional Safety Packages 2.0 1 MB
STM32 and STM8 embedded software solutions 2.0 2 MB

Publications and Collaterals

Brochures
Description Version Size
STM8 8-bit MCU family 15.10 1 MB

Quality & Reliability

Product Certifications
Description Version Size
CAN conformance test certificate from C&S group Gmbh for STM8AF microcontrollers 1.0 199 KB
LIN 2.1 master conformance test certificate from IHR Gmbh for STM8AF microcontrollers 1.0 216 KB
LIN 2.1 slave conformance test certificate from IHR Gmbh for STM8AF microcontrollers 1.0 216 KB
SAE J2602 master conformance test certificate from IHR Gmbh for STM8AF microcontrollers 1.0 117 KB
SAE J2602 slave conformance test certificate from IHR Gmbh for STM8AF microcontrollers 1.0 114 KB

Tools and Software

Development Tools
Embedded Software
Evaluation Tools
Hardware Development Tools
Software Development Tools
MCUs Embedded Software
Product Evaluation Tools

Sample & Buy

Part Number Package Packing Type Operating Temperature (°C) (min) Operating Temperature (°C) (max) Marketing Status Unit Price (US$) * Quantity ECCN (EU) ECCN (US) Country of Origin More info Order from ST Order from Distributors
STM8AF6226TDY LQFP 32 7x7x1.4 Tray -40 150 Active 0.991 10000 NEC EAR99 MALAYSIA MORE INFO Get Sample Add to cart DISTRIBUTOR AVAILABILITY
STM8AF6226TCY LQFP 32 7x7x1.4 Tray -40 125 Active 0.848 10000 NEC EAR99 MALAYSIA MORE INFO
STM8AF6226UCY VFQFPN 32 5x5x1.0 Tray -40 125 Preview 0.764 10000 NEC EAR99 - MORE INFO
STM8AF6226TAY LQFP 32 7x7x1.4 Tray -40 85 Active 0.793 10000 NEC EAR99 MALAYSIA MORE INFO
STM8AF6226UAY VFQFPN 32 5x5x1.0 Tray -40 85 Preview 0.714 10000 NEC EAR99 - MORE INFO
test

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

Quality & Reliability

Part Number Marketing Status Package Grade RoHS Compliance Grade Material Declaration**
STM8AF6226TDY ActiveLQFP 32 7x7x1.4AutomotiveEcopack2 0 0
STM8AF6226TCY ActiveLQFP 32 7x7x1.4AutomotiveEcopack2 0 0
STM8AF6226UCY PreviewVFQFPN 32 5x5x1.0AutomotiveEcopack2
STM8AF6226TAY ActiveLQFP 32 7x7x1.4AutomotiveEcopack2
STM8AF6226UAY PreviewVFQFPN 32 5x5x1.0AutomotiveEcopack2
test

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

×