STM8S903K3 STM8S903F3 16 MHz STM8S 8-bit MCU, up to 8 Kbytes Flash, 1 Kbyte RAM, 640 bytes EEPROM,10-bit ADC, 2 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 62 76623 8)4)31 retention 20 years at 55 C after 10 kcycle PLOV PP ERG PP 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 7 multiplexed Permanently active, low-consumption power- channels + 1 internal channel, scan mode and on and power-down reset analog watchdog Internal reference voltage measurement Interrupt management Nested interrupt controller with 32 interrupts I/Os Up to 28 external interrupts on 7 vectors Up to 28 I/Os on a 32-pin package including 21 high sink outputs Timers Highly robust I/O design, immune against Advanced control timer: 16-bit, 4 CAPCOM current injection channels, 3 complementary outputs, dead-time insertion and flexible synchronization Unique ID 96-bit unique key for each device May 2017 DocID15590 Rev 12 1/124 This is information on a product in full production. www.st.comContents STM8S903K3 STM8S903F3 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 TIM5 - 16-bit general purpose timer . 18 4.12 TIM6 - 8-bit basic timer . 18 4.13 Analog-to-digital converter (ADC1) . 19 4.14 Communication interfaces 19 4.14.1 UART1 19 4.14.2 SPI . 20 2 4.14.3 I C . 20 5 Pinouts and pin descriptions . 21 5.1 STM8S903F3 TSSOP20/SO20 pinout . 21 5.2 STM8S903F3 UFQFPN20 pinout . 22 5.3 TSSOP20, SO20 and UFQFPN20 pin descriptions . 23 5.4 STM8S903K3 UFQFPN32/LQFP32 and SDIP32 pinouts 25 5.5 STM8S903K3 UFQFPN32/LQFP32/SDIP32 pin descriptions . 26 5.6 Alternate function remapping 30 2/124 DocID15590 Rev 12