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 Features Core Max f : up to 24 MHz, 0 wait states CPU f 16 MHz CPU LQFP80 14x14 LQFP64 14x14 LQFP64 10x10 Advanced STM8 core with Harvard architecture and 3-stage pipeline Extended instruction set Max 20 MIPS 24 MHz LQFP48 7x7 LQFP44 10x10 LQFP32 7x7 Memories Communications interfaces Program: up to 128 Kbytes Flash data High speed 1 Mbit/s active beCAN 2.0B retention 20 years at 55 C after 10 kcycles UART with clock output for synchronous Data: up to 2 Kbytes true data EEPROM operation - LIN master mode endurance 300 kcycles UART with LIN 2.1 compliant, master/slave RAM: up to 6 Kbytes modes and automatic resynchronization Clock, reset and supply management SPI interface up to 10 Mbit/s 2.95 to 5.5 V operating voltage 2 I C interface up to 400 Kbit/s Low power crystal resonator oscillator 10-bit ADC with up to 16 channels External clock input I/Os Internal, user-trimmable 16 MHz RC Up to 68 I/Os on an 80-pin package Internal low power 128 kHz RC including 18 high sink outputs Clock security system with clock monitor Highly robust I/O design, immune against Wait, active-halt, & halt low power modes current injection Peripheral clocks switched off individually Development support Permanently active, low consumption Single wire interface module (SWIM) and power-on and power-down reset debug module (DM) Interrupt management 96-bit unique ID key for each device Nested interrupt controller with 32 interrupts Table 1. Device summary Up to 37 external interrupts on 6 vectors Part numbers: STM8S207xx Timers STM8S207MB, STM8S207M8, STM8S207RB, 2x 16-bit general purpose timers, with 2+3 STM8S207R8, STM8S207R6, STM8S207CB, CAPCOM channels (IC, OC or PWM) STM8S207C8, STM8S207C6, STM8S207SB, Advanced control timer: 16-bit, 4 CAPCOM STM8S207S8, STM8S207S6, STM8S207K8 channels, 3 complementary outputs, dead- STM8S207K6 time insertion and flexible synchronization Part numbers: STM8S208xx 8-bit basic timer with 8-bit prescaler STM8S208MB, STM8S208M8, STM8S208RB, Auto wakeup timer STM8S208R8, STM8S208R6, STM8S208CB, Window watchdog, independent watchdog STM8S208C8, STM8S208C6, STM8S208SB, STM8S208S8, STM8S208S6 February 2012 Doc ID 14733 Rev 12 1/103 www.st.com 1Contents 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 . 33 6.1 Memory map 33 2/103 Doc ID 14733 Rev 12