STM8S103F2 STM8S103F3 STM8S103K3 Access line, 16 MHz STM8S 8-bit MCU, up to 8 Kbytes Flash, data EEPROM,10-bit ADC, 3 timers, UART, SPI, IC Datasheet - production data Features Core /4)3 8)4)31 6 ,3 16 MHz advanced STM8 core with Harvard PP PP PLOV architecture and 3-stage pipeline Extended instruction set Memories Program memory: 8 Kbyte Flash data retention 20 years at 55 C after 10 kcycle 62 76623 8)4)31 PLOV PP PP ERG 06Y 9 Data memory: 640 byte true data EEPROM endurance 300 kcycle 16-bit general purpose timer, with 3 CAPCOM channels (IC, OC or PWM) RAM: 1 Kbyte 8-bit basic timer with 8-bit prescaler Clock, reset and supply management Auto wake-up timer 2.95 to 5.5 V operating voltage Window watchdog and independent watchdog timers Flexible clock control, 4 master clock sources Low power crystal resonator oscillator Communication interfaces External clock input UART with clock output for synchronous Internal, user-trimmable 16 MHz RC operation, SmartCard, IrDA, LIN master mode Internal low-power 128 kHz RC SPI interface up to 8 Mbit/s Clock security system with clock monitor I2C interface up to 400 kbit/s Power management: Low-power modes (wait, active-halt, halt) Analog to digital converter (ADC) Switch-off peripheral clocks individually 10-bit, 1 LSB ADC with up to 5 multiplexed Permanently active, low-consumption power- channels, scan mode and analog watchdog on and power-down reset I/Os Interrupt management Up to 28 I/Os on a 32-pin package including Nested interrupt controller with 32 interrupts 21 high sink outputs Up to 27 external interrupts on 6 vectors Highly robust I/O design, immune against current injection Timers Advanced control timer: 16-bit, 4 CAPCOM Unique ID channels, 3 complementary outputs, dead-time 96-bit unique key for each device insertion and flexible synchronization February 2017 DocID15441 Rev 14 1/121 This is information on a product in full production. www.st.comContents STM8S103F2 STM8S103F3 STM8S103K3 Contents 1 Introduction 9 2 Description 10 3 Block diagram . 11 4 Product overview 12 4.1 Central processing unit STM8 . 12 4.2 Single wire interface module (SWIM) and debug module (DM) 13 4.3 Interrupt controller 13 4.4 Flash program and data EEPROM memory . 13 4.5 Clock controller . 15 4.6 Power management . 16 4.7 Watchdog timers . 16 4.8 Auto wakeup counter 17 4.9 Beeper . 17 4.10 TIM1 - 16-bit advanced control timer 17 4.11 TIM2 - 16-bit general purpose timer . 17 4.12 TIM4 - 8-bit basic timer . 18 4.13 Analog-to-digital converter (ADC1) . 18 4.14 Communication interfaces 18 4.14.1 UART1 19 4.14.2 SPI . 19 2 4.14.3 I C . 20 5 Pinout and pin description . 21 5.1 STM8S103K3 UFQFPN32/LQFP32/SDIP32 pinout and pin description 22 5.2 STM8S103F2/F3 TSSOP20/SO20/UFQFPN20 pinout and pin description 26 5.2.1 STM8S103F2/F3 TSSOP20/SO20 pinout . 26 5.2.2 STM8S103F2/F3 UFQFPN20 pinout . 27 5.3 Alternate function remapping 30 2/121 DocID15441 Rev 14