STM8S207xx STM8S208xx Performance line, 24 MHz STM8S 8-bit MCU, up to 128 KB Flash, integrated EEPROM, 10-bit ADC, timers, 2 UARTs, SPI, IC, CAN Datasheet - production data Features Core Max f : up to 24 MHz, 0 wait states CPU f 16 MHz CPU LQFP64 LQFP64 LQFP80 14 x 14 mm 10 x 10 mm Advanced STM8 core with Harvard 14 x 14 mm architecture and 3-stage pipeline Extended instruction set Max 20 MIPS 24 MHz Memories LQFP48 LQFP44 LQFP32 Program: up to 128 Kbytes Flash data 7 x 7 mm 10 x 10mm 7 x 7 mm retention 20 years at 55 C after 10 kcycles Communications interfaces Data: up to 2 Kbytes true data EEPROM High speed 1 Mbit/s active beCAN 2.0B endurance 300 kcycles UART with clock output for synchronous RAM: up to 6 Kbytes operation - LIN master mode Clock, reset and supply management UART with LIN 2.1 compliant, master/slave 2.95 to 5.5 V operating voltage modes and automatic resynchronization Low power crystal resonator oscillator SPI interface up to 10 Mbit/s External clock input 2 I C interface up to 400 Kbit/s Internal, user-trimmable 16 MHz RC 10-bit ADC with up to 16 channels Internal low power 128 kHz RC I/Os Clock security system with clock monitor Up to 68 I/Os on an 80-pin package Wait, active-halt, & halt low power modes including 18 high sink outputs Peripheral clocks switched off individually Highly robust I/O design, immune against Permanently active, low consumption current injection power-on and power-down reset Development support Interrupt management Single wire interface module (SWIM) and Nested interrupt controller with 32 debug module (DM) interrupts 96-bit unique ID key for each device Up to 37 external interrupts on 6 vectors Timers Table 1. Device summary 2x 16-bit general purpose timers, with 2+3 Reference Part number CAPCOM channels (IC, OC or PWM) STM8S207MB, STM8S207M8, STM8S207RB, Advanced control timer: 16-bit, 4 CAPCOM STM8S207R8, STM8S207R6, STM8S207CB, channels, 3 complementary outputs, dead- STM8S207xx STM8S207C8, STM8S207C6, STM8S207SB, STM8S207S8, STM8S207S6, STM8S207K8, time insertion and flexible synchronization STM8S207K6 8-bit basic timer with 8-bit prescaler STM8S208MB, STM8S208RB, STM8S208R8, STM8S208R6, STM8S208CB, STM8S208C8, Auto wakeup timer STM8S208xx STM8S208C6, STM8S208SB, STM8S208S8, Window watchdog, independent watchdog STM8S208S6 February 2015 DocID14733 Rev 13 1/117 This is information on a product in full production. www.st.comContents STM8S207xx STM8S208xx Contents 1 Introduction 9 2 Description 10 3 Block diagram . 12 4 Product overview 13 4.1 Central processing unit STM8 . 13 4.2 Single wire interface module (SWIM) and debug module (DM) 14 4.3 Interrupt controller 14 4.4 Flash program and data EEPROM memory . 14 4.5 Clock controller . 16 4.6 Power management . 17 4.7 Watchdog timers . 17 4.8 Auto wakeup counter 18 4.9 Beeper . 18 4.10 TIM1 - 16-bit advanced control timer 18 4.11 TIM2, TIM3 - 16-bit general purpose timers . 18 4.12 TIM4 - 8-bit basic timer . 19 4.13 Analog-to-digital converter (ADC2) . 19 4.14 Communication interfaces 19 4.14.1 UART1 20 4.14.2 UART3 20 4.14.3 SPI . 21 2 4.14.4 I C . 22 4.14.5 beCAN 22 5 Pinouts and pin description 23 5.1 Package pinouts 23 5.2 Alternate function remapping 32 6 Memory and register map 34 6.1 Memory map 34 2/117 DocID14733 Rev 13