Datasheet
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 ..........................................................................................................15
4.8 Auto wakeup counter ...................................................................................................15
4.9 Beeper ........................................................................................................................15
4.10 TIM1 - 16-bit advanced control timer .........................................................................16
4.11 TIM2, TIM3 - 16-bit general purpose timers ..............................................................16
4.12 TIM4 - 8-bit basic timer ..............................................................................................16
4.13 Analog-to-digital converter (ADC1) ............................................................................17
4.14 Communication interfaces .........................................................................................17
4.14.1 UART2 ...............................................................................................17
4.14.2 SPI .....................................................................................................18
4.14.3 I²C ......................................................................................................19
5 Pinout and pin description ...................................................................................20
5.1 STM8S105 pinouts and pin description .......................................................................21
5.1.1 Alternate function remapping ...............................................................27
6 Memory and register map .....................................................................................29
6.1 Memory map ................................................................................................................29
6.2 Register map ...............................................................................................................30
6.2.1 I/O port hardware register map ............................................................30
6.2.2 General hardware register map ...........................................................33
6.2.3 CPU/SWIM/debug module/interrupt controller registers ......................44
7 Interrupt vector mapping ......................................................................................47
8 Option bytes ...........................................................................................................49
9 Unique ID ................................................................................................................54
10 Electrical characteristics ....................................................................................55
10.1 Parameter conditions .................................................................................................55
10.1.1 Minimum and maximum values .........................................................55
10.1.2 Typical values .....................................................................................55
DocID14771 Rev 122/124
STM8S105xxContents