STM8AF52A8:Automotive 8-bit MCU with 128 Kbytes Flash, LIN, CAN, 24 MHz CPU, integrated EEPROM

The STM8AF526x/8x/Ax and STM8AF6269/8x/Ax automotive 8-bit microcontrollers described in this datasheet offer from 32 Kbyte to 128 Kbyte of non volatile memory and integrated true data EEPROM. They are referred to as high density STM8A devices in STM8S series and STM8AF series 8-bit microcontrollers reference manual (RM0016).

The STM8AF52 series features a CAN interface.

All devices of the STM8A product line provide the following benefits: reduced system cost, performance and robustness, short development cycles, and product longevity.

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, wtachdog, and brown-out reset.

Device performance is ensured by 20 MIPS at 24 MHz CPU clock frequency and enhanced characteristics which include robust I/O, independent watchdogs (with a separate clock source), and a clock security system.

Short development cycles are guaranteed due to application scalability across a common family product architecture with compatible pinout, memory map, and modular peripherals. Full documentation is offered with a wide choice of development tools.

Product longevity is ensured in the STM8A family thanks to their advanced core which is made in a state-of-the art technology for automotive applications with 3.3 V to 5.5 V operating supply.

All STM8A and ST7 microcontrollers are supported by the same tools including STVD/STVP development environment, the STice emulator and a low-cost, third party in-circuit debugging tool.

Key Features

  • AEC-Q10x qualified
  • Core
    • Max fCPU : 24 MHz
    • Advanced STM8A core with Harvard architecture and 3-stage pipeline
    • Average 1.6 cycles/instruction resulting in 10 MIPS at 16 MHz fCPU for industry standard benchmark
  • Memories
    • Program memory: 32 to 128 Kbyte Flash program; data retention 20 years at 55 °C
    • Data memory: up to 2 Kbyte true data EEPROM; endurance 300 kcycle
    • RAM: 6 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 vectors
    • Up to 37 external interrupts on 5 vectors
  • Timers
    • 2 general purpose 16-bit timers with up to 3 CAPCOM channels each (IC, OC, PWM)
    • Advanced control timer: 16-bit, 4 CAPCOM channels, 3 complementary outputs, dead-time insertion and flexible synchronization
    • 8-bit AR basic timer with 8-bit prescaler
    • Auto-wakeup timer
    • Window and independent watchdog timers
  • I/Os
    • Up to 68 user pins (11 high sink I/Os)
    • Highly robust I/O design, immune against current injection
  • Communication interfaces
    • High speed 1 Mbit/s CAN 2.0B interface
    • USART with clock output for synchronous operation - LIN master mode
    • LINUART LIN 2.2 compliant, master/slave modes with automatic resynchronization
    • SPI interface up to 10 Mbit/s or fMASTER /2
    • I2 C interface up to 400 Kbit/s
  • Analog to digital converter (ADC)
    • 10-bit resolution, 2 LSB TUE, 1 LSB linearity and up to 16 multiplexed channels
  • Operating temperature up to 150 °C
    • Qualification conforms to AEC-Q100 grade 0
Product Specifications
DescriptionVersionSize
DS5697: Automotive 8-bit MCU, with up to 128 Kbyte Flash, data EEPROM, 10-bit ADC, timers, LIN, CAN, USART, SPI, I2C, 3 to 5.5 V15.01 MB
Application Notes
DescriptionVersionSize
AN1709: EMC design guide for ST microcontrollers2.0843 KB
AN2860: EMC guidelines for STM8 microcontrollers5.1262 KB
AN1181: Electrostatic discharge sensitivity measurement1.649 KB
AN2752: Getting started with the STM8S and STM8A5.22 MB
AN3236: Guidelines to increase the number of touch sensing touchkeys4.0300 KB
AN2669: How to configure the STM8A microcontroller clocks2.597 KB
AN4101: LIN communication with STM8A-DISCOVERY1.1182 KB
AN3208: Microstepping motor drive with STM8A and STM8S microcontrollers1.3284 KB
AN2867: Oscillator design guide for STM8S, STM8A and STM32 microcontrollers10.02 MB
AN2792: STM8A easy programmer1.4129 KB
AN3258: STM8AF and STM8S series HSI oscillator calibration using LIN automatic resynchronization2.0247 KB
AN2857: STM8S and STM8A family power management3.2268 KB
AN2822: STM8S and STM8A high speed internal oscillator calibration2.2195 KB
AN3023: Using the analog-to-digital converter of the STM8A microcontroller1.3283 KB
Technical Notes & Articles
DescriptionVersionSize
TN1163: Description of WLCSP for microcontrollers and recommendations for its use4.01 MB
TN0189: STM8 bootloader frequently asked questions2.4320 KB
TN1205: Tape and reel shipping media for STM8 and STM32 microcontrollers in FPN packages3.0753 KB
TN1206: Tape and reel shipping media for STM8 and STM32 microcontrollers in QFP packages3.0830 KB
TN1207: Tape and reel shipping media for STM8 and STM32 microcontrollers in SO packages1.0755 KB
TN1208: Tape and reel shipping media for STM8 and STM32 microcontrollers in TSSOP and SSOP packages1.0743 KB
Reference Manuals
DescriptionVersionSize
RM0016: STM8S series and STM8AF series 8-bit microcontrollers12.14 MB
Programming Manuals
DescriptionVersionSize
PM0051: How to program STM8S and STM8A Flash program memory and data EEPROM3.3192 KB
PM0044: STM8 CPU programming manual3.4899 KB
Errata Sheets
DescriptionVersionSize
ES0144: Device limitations for STM8AFx2xx automotive MCUs featuring up to 128 Kbytes of Flash program memory6.0393 KB
Device Option Lists
DescriptionVersionSize
STM8AF5xxx_6x69/7x/8x/9x/Ax option list (32- to 128-Kbyte)1.01 KB
Presentations
DescriptionVersionSize
STM32 and STM8 Functional Safety Packages21 MB
STM32 and STM8 embedded software solutions2.02 MB
Flyers
DescriptionVersionSize
Get ready for the largest IoT development ecosystem16.08721 KB
Brochures
DescriptionVersionSize
STM8 8-bit MCU family15.101 MB
Product Certifications
DescriptionVersionSize
CAN conformance test certificate from C&S group Gmbh for STM8AF microcontrollers1.0199 KB
LIN 2.1 master conformance test certificate from IHR Gmbh for STM8AF microcontrollers1.0216 KB
LIN 2.1 slave conformance test certificate from IHR Gmbh for STM8AF microcontrollers1.0216 KB
SAE J2602 master conformance test certificate from IHR Gmbh for STM8AF microcontrollers1.0117 KB
SAE J2602 slave conformance test certificate from IHR Gmbh for STM8AF microcontrollers1.0114 KB
Hardware Development Tools
Part NumberManufacturerDescription
AD/Stice_ConnectSTConnection Adapter to use with STICE-SYS00x emulation systems
AS/Stice_ConnectSTAdapter Socket for application board - to use with STICE-SYS00x emulation systems
CF/Stice_ConnectSTConnexion flex to use with STICE-SYS00x emulation systems
ST-LINKSTIn-circuit debugger and programmer for STM8 and STM32 MCUs; with IAR EWARM and Keil RVMDK and ST toolset
ST-LINK/V2STST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32
STICESTFull-featured emulator offers flexible, modular debugging and programming solution
STX-RLINKRaisonanceIn-circuit debugger/programmer for STM8, ST7, STM32, STR7 and STR9 microcontrollers
Software Development Tools
Part NumberManufacturerDescription
FLASHER-STM8STSTM8 Flash loader demonstrator (UM0462)
IAR-EWSTM8IARIAR Integrated development environment and optimizing C compiler for STM8
IDEACosmicCosmic's toolchain for the STM8 family is part of a complete and uniform product line incorporating over 20 years of innovative design and development. Cosmic tools for STM8, 32K Special Edition limited to 32K bytes of code, one year free license available at Cosmic.
RIDE-STM8RaisonanceRaisonance branded integrated development environment for STM8 MCUs
STM-STUDIO-STM8STSTM Studio run-time variables monitoring and visualization tool for STM8 microcontrollers
STVD-STM8STST Visual develop IDE for developing ST7 and STM8 applications
STVP-LIB-STM8STSTVP programming toolkit: C++ source files for creating PC programming interface
STVP-STM8STST Visual Programmer STM8
winIDEA-STM8iSYSTEMiSYSTEM's complete software development and test solution for the STM8 MCUs
MCUs Embedded Software
Part NumberManufacturerDescription
STM8-SafeCLASSBSTFunctional safety package to achieve IEC 60730 Class B certification with the STM8
STM8A-SafeASILYogitechFunctional safety package to achieve ISO 26262 Automotive Safety Integrity Level (ASIL A or B) certification with STM8AF
STM8S-TOUCH-LIBSTM8S touch-sensing library
STSW-STM8004STSTM8 optimized I2C examples (AN3281)
STSW-STM8006STExample of implementation of user bootloader (AN2659)
STSW-STM8020STSTM8S and STM8A BLDC and ACIM motor control firmware library V1.0 (UM0708)
STSW-STM8045STAudio software codec for the STM8S
STSW-STM8048STPrecision improvement techniques for the A/D converter of the STM8 microcontroller (AN2719)
STSW-STM8049STBasic in-application programming example using the STM8 I2C and SPI peripherals (AN2737)
STSW-STM8050STReal-time keeping on STM8S devices and usage of auto-wakeup unit (AWU) and beeper (AN2780)
STSW-STM8051STUART emulation software in STM8S and STM8A microcontrollers (AN2781)
STSW-STM8062STSTM8 in-application programming (IAP) using a customized bootloader (AN2659)
STSW-STM8064STSetup screensaver STM8 1024x768
STSW-STM8065STSetup screensaver STM8 1280x1024
STSW-STM8068STErase/write routines for STM8 ROM bootloader (UM0560)
STSW-STM8069STSTM8S/A Standard peripheral library
STSW-STM8074STLIN communication with two STM8AF boards of STM8A-DISCOVERY (AN4178)
STSW-STM8075STGuidelines for obtaining IEC 60335 Class B certification in an STM8 application (AN3181)
STSW-STM8076STAnalog-to-digital converter on STM8L and STM8AL devices: description and precision improvement techniques
STSW-STM8077STSTM8AF and STM8S HSI oscillator calibration using LIN automatic resynchronization (AN3258)
STSW-STM8A-J2602STSTM8A J2602 software package
STSW-STM8A-LINSTSTM8A LIN 2.1 software package
TAP-KNX-KAIStackTapkoKNX home automation for STM8 and STM32, from Tapko Technologies GMBH
Product Evaluation Tools
Part NumberManufacturerDescription
STM8A-DISCOVERYSTDiscovery kit with STM8AF5288 and STM8AL3L68 MCUs
STM8A/128-EVALSTEvaluation board for STM8AF series - with STM8AF51AA/STM8AF52AA MCU
Sample & Buy
Part NumberPackagePacking TypeOperating Temperature (°C) (min)Operating Temperature (°C) (max)Unit Price (US$) *QuantityECCN (EU)ECCN (US)Country of Origin
STM8AF52A8TAYLQFP 48 7x7x1.4Tray-40851.73210000NECEAR99MALAYSIA
STM8AF52A8TDXLQFP 48 7x7x1.4Tape And Reel-401502.16410000NECEAR99MALAYSIA
STM8AF52A8TCYLQFP 48 7x7x1.4Tray-401251.85310000NECEAR99MALAYSIA
STM8AF52A8TCXLQFP 48 7x7x1.4Tape And Reel-401251.85310000NECEAR99MALAYSIA
STM8AF52A8TAXLQFP 48 7x7x1.4Tape And Reel-40851.73210000NECEAR99MALAYSIA
STM8AF52A8TDYLQFP 48 7x7x1.4Tray-401502.16410000NECEAR99MALAYSIA
Quality & Reliability
Part NumberPackageGradeRoHS Compliance GradeMaterial Declaration**
STM8AF52A8TAYLQFP 48 7x7x1.4AutomotiveEcopack29c5b_79ax25t_signed.pdf
9c5b_79ax25t.xml
STM8AF52A8TDXLQFP 48 7x7x1.4AutomotiveEcopack29i5b_79ax25t_signed.pdf
9i5b_79ax25t.xml
STM8AF52A8TCYLQFP 48 7x7x1.4AutomotiveEcopack29m5b_79ax25t_signed.pdf
9m5b_79ax25t.xml
STM8AF52A8TCXLQFP 48 7x7x1.4AutomotiveEcopack29m5b_79ax25t_signed.pdf
9m5b_79ax25t.xml
STM8AF52A8TAXLQFP 48 7x7x1.4AutomotiveEcopack29c5b_79ax25t_signed.pdf
9c5b_79ax25t.xml
STM8AF52A8TDYLQFP 48 7x7x1.4AutomotiveEcopack29i5b_79ax25t_signed.pdf
9i5b_79ax25t.xml
Automotive 8-bit MCU, with up to 128 Kbyte Flash, data EEPROM, 10-bit ADC, timers, LIN, CAN, USART, SPI, I2C, 3 to 5.5 V STM8AF5269
circuit_diagram_14395_thumbnail.png STM8AF5269
EMC design guide for ST microcontrollers STM8L101G3
EMC guidelines for STM8 microcontrollers STM8L101G3
Electrostatic discharge sensitivity measurement STM8L101G3
STM8S 和 STM8A 入门 STM8S903K3
Guidelines to increase the number of touch sensing touchkeys STM8L101G3
How to configure the STM8A microcontroller clocks STM8AF5269
LIN communication with STM8A-DISCOVERY STM8A-DISCOVERY
Microstepping motor drive with STM8A and STM8S microcontrollers STM8S903K3
Oscillator design guide for STM8S, STM8A and STM32 microcontrollers STM32L471ZE
STM8A easy programmer STM8AF5269
STM8AF and STM8S series HSI oscillator calibration using LIN automatic resynchronization STM8S903K3
STM8S and STM8A family power management STM8S903K3
STM8S and STM8A high speed internal oscillator calibration STM8S903K3
Using the analog-to-digital converter of the STM8A microcontroller STM8AF5269
Description of WLCSP for microcontrollers and recommendations for its use STM8L101G3
STM8 bootloader frequently asked questions STM8L101G3
Tape and reel shipping media for STM8 and STM32 microcontrollers in FPN packages STM8L101G3
Tape and reel shipping media for STM8 and STM32 microcontrollers in QFP packages STM8L101G3
Tape and reel shipping media for STM8 and STM32 microcontrollers in SO packages STM8L101G3
Tape and reel shipping media for STM8 and STM32 microcontrollers in TSSOP and SSOP packages STM8L101G3
STM8S series and STM8AF series 8-bit microcontrollers STM8S903K3
How to program STM8S and STM8A Flash program memory and data EEPROM STM8S903K3
STM8 CPU programming manual STM8L101G3
Device limitations for STM8AFx2xx automotive MCUs featuring up to 128 Kbytes of Flash program memory STM8AF5269
Device limitations for STM8AFx2xx automotive MCUs featuring up to 128 Kbytes of Flash program memory STM8AF5269
STM8L101xx device limitations STM8L101G3
STM8L101xx device limitations STM8L101G3
STM32 LoRa® software expansion for STM32Cube I-CUBE-LRWAN
STM8L101xx device limitations STM8L101G3
Device limitations for STM8AFx2xx automotive MCUs featuring up to 128 Kbytes of Flash program memory STM8AF5269
Device limitations for STM8AFx2xx automotive MCUs featuring up to 128 Kbytes of Flash program memory STM8AF5269
Device limitations for STM8AFx2xx automotive MCUs featuring up to 128 Kbytes of Flash program memory STM8AF5269
Device limitations for STM8AFx2xx automotive MCUs featuring up to 128 Kbytes of Flash program memory STM8AF5269
Device limitations for STM8AFx2xx automotive MCUs featuring up to 128 Kbytes of Flash program memory STM8AF5269
9m5b_79ax25t_signed.pdf STM8AF52A8
9m5b_79ax25t.xml STM8AF52A8
9c5b_79ax25t_signed.pdf STM8AF52A8
9c5b_79ax25t.xml STM8AF52A8
9i5b_79ax25t_signed.pdf STM8AF52A8
9i5b_79ax25t.xml STM8AF52A8