Contents
STM8S903K3 STM8S903F3
Contents
1 Introduction ..............................................................................................................8
2 Description ...............................................................................................................9
3 Block diagram ........................................................................................................10
4 Product overview ...................................................................................................11
4.1 Central processing unit STM8 .....................................................................................11
4.2 Single wire interface module (SWIM) and debug module (DM) ..................................11
4.3 Interrupt controller .......................................................................................................12
4.4 Flash program and data EEPROM memory ................................................................12
4.5 Clock controller ............................................................................................................13
4.6 Power management ....................................................................................................14
4.7 Watchdog timers ..........................................................................................................14
4.8 Auto wakeup counter ...................................................................................................15
4.9 Beeper ........................................................................................................................15
4.10 TIM1 - 16-bit advanced control timer .........................................................................15
4.11 TIM5 - 16-bit general purpose timer ..........................................................................16
4.12 TIM6 - 8-bit basic timer ..............................................................................................16
4.13 Analog-to-digital converter (ADC1) ............................................................................16
4.14 Communication interfaces .........................................................................................17
4.14.1 UART1 ...............................................................................................17
4.14.2 SPI .....................................................................................................18
4.14.3 I²C ......................................................................................................18
5 Pinout and pin description ...................................................................................19
5.1 STM8S903F3 TSSOP20/SO20 pinout ........................................................................20
5.2 STM8S903F3 UFQFPN20 pinout ................................................................................21
5.3 TSSOP/SO/UFQFPN20 pin description ......................................................................22
5.4 STM8S903K3 UFQFPN32/LQFP32/SDIP32 pinout ....................................................23
5.5 UFQFPN/LQFP/SDIP32 pin description ......................................................................24
5.6 Alternate function remapping .......................................................................................26
6 Memory and register map .....................................................................................27
6.1 Memory map ................................................................................................................27
6.2 Register map ...............................................................................................................28
6.2.1 I/O port hardware register map ............................................................28
6.2.2 General hardware register map ...........................................................29
6.2.3 CPU/SWIM/debug module/interrupt controller registers .....................38
7 Interrupt vector mapping ......................................................................................41
8 Option bytes ...........................................................................................................43
8.1 STM8S903K3/F3 alternate function remapping bits ....................................................45
2/116
DocID15590 Rev 8