stm8s105c4 956362
stm8s105c4 956362
stm8s105c4 956362
STM8S105S4/6
Access line, 16 MHz STM8S 8-bit MCU, up to 32 Kbyte Flash,
integrated EEPROM, 10-bit ADC, timers, UART, SPI, IC
Datasheet - production data
Features
Core
16 MHz advanced STM8 core with Harvard
architecture and 3-stage pipeline
LQFP48 (7x7 mm) LQFP44 (10x10 mm) LQFP32 (7x7 mm)
Extended instruction set
Memories
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 (ADC1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.14 Communication interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.14.1 UART2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.14.2 SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.14.3 I2C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
8 Option byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
8.1 Alternate function remapping bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
9 Unique ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
10 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
10.1 Parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
10.1.1 Minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
10.1.2 Typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
10.1.3 Typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
10.1.4 Typical current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
10.1.5 Loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
10.1.6 Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
10.2 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
10.3 Operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
10.3.1 VCAP external capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
10.3.2 Supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
10.3.3 External clock sources and timing characteristics . . . . . . . . . . . . . . . . . 66
10.3.4 Internal clock sources and timing characteristics . . . . . . . . . . . . . . . . . 69
10.3.5 Memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
10.3.6 I/O port pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
10.3.7 Typical output level curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
10.3.8 Reset pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
10.3.9 SPI serial peripheral interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
10.3.10 I2C interface characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
10.3.11 10-bit ADC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
10.3.12 EMC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
11 Package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
11.1 LQFP48 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
11.2 LQFP44 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
11.3 LQFP32 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
11.4 UFQFPN32 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
List of tables
List of figures
recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Figure 49. LQFP48 marking example (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Figure 50. LQFP44 - 44-pin, 10 x 10 mm low-profile quad flat package outline . . . . . . . . . . . . . . . . . 94
Figure 51. LQFP44 - 44-pin, 10 x 10 mm low-profile quad flat package
recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Figure 52. LQFP44 marking example (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Figure 53. LQFP32 - 32-pin, 7 x 7 mm low-profile quad flat package outline . . . . . . . . . . . . . . . . . . . 98
Figure 54. LQFP32 - 32-pin, 7 x 7 mm low-profile quad flat package
recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Figure 55. LQFP32 marking example (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Figure 56. UFQFPN32 - 32-pin, 5x5 mm, 0.5 mm pitch ultra thin fine pitch quad flat
package outline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Figure 57. UFQFPN32 - 32-pin, 5 x5 mm, 0.5 mm pitch ultra thin fine pitch quad flat
package recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Figure 58. UFQFPN32 marking example (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Figure 59. SDIP32 package outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Figure 60. SDIP32 marking example (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Figure 61. STM8S105x4/6 access line ordering information scheme(1) . . . . . . . . . . . . . . . . . . . . . . 108
1 Introduction
This datasheet contains the description of the device features, pinout, electrical
characteristics, mechanical data and ordering information.
For complete information on the STM8S microcontroller memory, registers and
peripherals, please refer to the STM8S microcontroller family reference manual
(RM0016).
For information on programming, erasing and protection of the internal Flash memory
please refer to the STM8S Flash programming manual (PM0051).
For information on the debug and SWIM (single wire interface module) refer to the
STM8 SWIM communication protocol and debug module user manual (UM0470).
For information on the STM8 core, please refer to the STM8 CPU programming manual
(PM0044).
2 Description
The STM8S105x4/6 access line 8-bit microcontrollers offer from 16 to 32 Kbyte Flash
program memory, plus integrated true data EEPROM. The STM8S microcontroller family
reference manual (RM0016) refers to devices in this family as medium-density. All devices
of the STM8S105x4/6 access line provide the following benefits: reduced system cost,
performance and robustness, short development cycles, and product longevity.
The system cost is reduced thanks to an integrated true data EEPROM for up to 300 k
write/erase cycles and a high system integration level with internal clock oscillators,
watchdog and brown-out reset.
Device performance is ensured by a 16 MHz CPU clock frequency and enhanced
characteristics which include robust I/O, independent watchdogs (with a separate clock
source), and a clock security system.
Short development cycles are guaranteed due to application scalability across common
family product architecture with compatible pinout, memory map and modular peripherals.
Product longevity is ensured in the STM8S family thanks to their advanced core which is
made in a state-of-the-art technology for applications with 2.95 V to 5.5 V operating supply.
Full documentation is offered as well as a wide choice of development tools.
Pin count 48 48 44 44 32 32
Maximum
number of 38 38 34 34 25 25
GPIOs
Ext. Interrupt
35 35 31 31 23 23
pins
Timer
CAPCOM 9 9 8 8 8 8
channels
Timer
complementar 3 3 3 3 3 3
y outputs
A/D Converter
10 10 9 9 7 7
channels
High sink I/Os 16 16 15 15 12 12
Medium
density Flash
32K 16K 32K 16K 32K 16K
Program
memory (byte)
Data
EEPROM 1024 1024 1024 1024 1024 1024
(bytes)
RAM (bytes) 2K 2K 2K 2K 2K 2K
Advanced control timer (TIM1), General-purpose timers (TIM2 and TIM3), Basic timer (TIM4) SPI,
Peripheral set
I2C, UART, Window WDG, Independent WDG, ADC
3 Block diagram
5HVHWEORFN ;7$/0+]
&ORFNFRQWUROOHU
5HVHW
5HVHW
5&LQW0+]
'HWHFWRU
325 %25
5&LQWN+]
&ORFNWRSHULSKHUDOVDQGFRUH
:LQGRZ
670 :'*
FRUH
,QGHSHQGHQW:'*
6LQJOHZLUH 8SWR.E\WH
'HEXJ6:,0
GHEXJLQWHUI 3URJUDP
)ODVK
.E\WH
GDWD((3520
$GGUHVVDQGGDWDEXV
8SWR&$3&20
0DVWHUVODYH ELWDGYDQFHG FKDQQHOV
DXWRV\QFKUR 8$57 FRQWUROWLPHU70 FRPSOHPHQWDU\
/,1PDVWHU RXWSXWV
63,HPXO
ELWJHQHUDOSXUSRVH 8SWR&$3&20
WLPHU7,07,0 FKDQQHOV
ELWEDVLFWLPHU
8SWR 7,0
FKDQQHOV $'&
N+] $:8WLPHU
%HHSHU
EHHS
06Y9
4 Product overview
The following section provides an overview of the basic features of the device functional
modules and peripherals.
For more detailed information please refer to the corresponding family reference manual
(RM0016).
Addressing
20 addressing modes,
Indexed indirect addressing mode for look-up tables located anywhere in the address
space,
Stack pointer relative addressing mode for local variables and parameter passing.
Instruction set
80 instructions with 2-byte average instruction size,
Standard data movement and logic/arithmetic functions,
8-bit by 8-bit multiplication,
16-bit by 8-bit and 16-bit by 16-bit division,
Bit manipulation,
Data transfer between stack and accumulator (push/pop) with direct stack access,
Data transfer using the X and Y registers or direct memory-to-memory transfers.
4.2 Single wire interface module (SWIM) and debug module (DM)
The single wire interface module and debug module permits non-intrusive, real-time in-
circuit debugging and fast memory programming.
SWIM
Single wire interface module for direct access to the debug module and memory
programming. The interface can be activated in all device operation modes. The maximum
data transmission speed is 145 bytes/ms.
Debug module
The non-intrusive debugging module features a performance close to a full-featured
emulator. Beside memory and peripherals, also CPU operation can be monitored in real-
time by means of shadow registers.
R/W to RAM and peripheral registers in real-time
R/W access to all resources by stalling the CPU
Breakpoints on all program-memory instructions (software breakpoints)
Two advanced breakpoints, 23 predefined configurations
The size of the UBC is programmable through the UBC option byte, in increments of 1 page
(512 byte) by programming the UBC option byte in ICP mode.
This divides the program memory into two areas:
Main program memory: up to 32 Kbyte minus UBC
User-specific boot code (UBC): Configurable up to 32 Kbyte
The UBC area remains write-protected during in-application programming. This means that
the MASS keys do not unlock the UBC area. It protects the memory used to store the boot
program, specific code libraries, reset and interrupt vectors, the reset routine and usually
the IAP and communication routines.
3URJUDPPDEOHDUHD
8%&DUHD IURP.E\WH
5HPDLQVZULWHSURWHFWHGGXULQJ,$3 ILUVWSDJHVXSWR
.E\WHSDJHVWHS
0HGLXPGHQVLW\
)ODVKSURJUDP
PHPRU\
XSWR.E\WH 3URJUDPPHPRU\DUHD
:ULWHDFFHVVSRVVLEOHIRU,$3
06Y9
Features
Clock prescaler: to get the best compromise between speed and current consumption
the clock frequency to the CPU and peripherals can be adjusted by a programmable
prescaler.
Safe clock switching: clock sources can be changed safely on the fly in run mode
through a configuration register. The clock signal is not switched until the new clock
source is ready. The design guarantees glitch-free switching.
Clock management: to reduce power consumption, the clock controller can stop the
clock to the core, individual peripherals or memory.
Master clock sources: four different clock sources can be used to drive the master
clock:
1-16 MHz high-speed external crystal (HSE)
Up to 16 MHz high-speed user-external clock (HSE user-ext)
16 MHz high-speed internal RC oscillator (HSI)
128 kHz low-speed internal RC (LSI)
Startup clock: After reset, the microcontroller restarts by default with an internal 2 MHz
clock (HSI/8). The prescaler ratio and clock source can be changed by the application
program as soon as the code execution starts.
Clock security system (CSS): This feature can be enabled by software. If an HSE
clock failure occurs, the internal RC (16 MHz/8) is automatically selected by the CSS
and an interrupt can optionally be generated.
Configurable main clock output (CCO): This outputs an external clock for use by the
application.
4.9 Beeper
The beeper function outputs a signal on the BEEP pin for sound generation. The signal is in
the range of 1, 2 or 4 kHz.
The beeper output port is only available through the alternate function remap option bit
AFR7.
Any integer
TIM1 16 from 1 to Up/down 4 3 Yes
65536
Any power
TIM2 16 of 2 from 1 Up 3 0 No
to 32768
No
Any power
TIM3 16 of 2 from 1 Up 2 0 No
to 32768
Any power
TIM4 8 of 2 from 1 Up 0 0 No
to 128
4.14.1 UART2
Main features
1 Mbit/s full duplex SCI
SPI emulation
High precision baud rate generator
Smartcard emulation
IrDA SIR encoder decoder
LIN master mode
LIN slave mode
Synchronous communication
Full duplex synchronous transfers
SPI master operation
8-bit data communication
Maximum speed: 1 Mbit/s at 16 MHz (fCPU/16)
4.14.2 SPI
Maximum speed: 8 Mbit/s (fMASTER/2) both for master and slave
Full duplex synchronous transfers
Simplex synchronous transfers on two lines with a possible bidirectional data line
Master or slave operation - selectable by hardware or software
CRC calculation
1 byte Tx and Rx buffer
Slave/master selection input pin
4.14.3 I2C
IC master features:
Clock generation
Start and stop generation
IC slave features:
Programmable I2C address detection
Stop bit detection
Generation and detection of 7-bit/10-bit addressing and general call
Supports different communication speeds:
Standard speed (up to 100 kHz)
Fast speed (up to 400 kHz)
Input CM = CMOS
Level
Output HS = High sink
O1 = Slow (up to 2 MHz)
O2 = Fast (up to 10 MHz)
Output speed
O3 = Fast/slow programmability with slow as default state after reset
O4 = Fast/slow programmability with fast as default state after reset
float = floating,
Input
wpu = weak pull-up
Port and control
configuration T = True open drain,
Output OD = Open drain,
PP = Push pull
Bold X (pin state after internal reset release).
Reset state Unless otherwise specified, the pin state is the same during the reset
phase and after the internal reset release.
3'+67,0B&+>7,0B%.,1@>&/.B&&2@
3'+67,0B&+>7,0B&+@
3'+67,0B&+>$'&B(75@
3'+67,0B&+>%((3@
3'7/,>7,0B&+@
3(+6&/.B&&2
3(7,&B6'$$
3(7,&B6&/
3'+66:,0
3'8$57B5;
3(7,0B%.,1
3'8$57B7;
1567 3*
26&,13$ 3*
26&2873$ 3&+663,B0,62
966,2B 3&+663,B026,
966 9'',2B
9&$3 966,2B
9'' 3&+663,B6&.
9'',2B 3&+67,0B&+
>7,0B&+@7,0B&+3$ 3&+67,0B&+
+63$ 3&+67,0B&+
+63$ 3&+67,0B&+8$57B&.
+63$ 3(63,B166
9''$
966$
$,13%
$,13%
$,13(
$,13(
>,&B6'$@$,13%
>,&B6&/@$,13%
>7,0B(75@$,13%
>7,0B&+1@$,13%
>7,0B&+1@$,13%
>7,0B&+1@$,13%
069
3'+67,0B&+>7,0B%.,1@>&/.B&&2@
3'+67,0B&+>$'&B(75@
3'+67,0B&+>7,0B&+@
3'+67,0B&+>%((3@
3'7/,>7,0B&+@
3(+6&/.B&&2
3(7,&B6'$
3(7,&B6&/
3'+66:,0
3'8$57B5;
3'8$57B7;
1567 3*
26&,13$ 3*
26&2873$ 3&+663,B0,62
966,2B 3&+663,B026,
966 9'',2B
9&$3 966,2B
9'' 3&+663,B6&.
9'',2B 3&+67,0B&+
+63$ 3&+67,0B&+
+63$ 3&+67,0B&+8$57B&.
+63$ 3(63,B166
9''$
966$
$,13%
$,13%
$,13(
>,&B6'$@$,13%
>,&B6&/@$,13%
>7,0B(75@$,13%
>7,0B&+1@$,13%
>7,0B&+1@$,13%
>7,0B&+1@$,13%
069
3'+67,0B&+>7,0B%.,1@>&/.B&&2@
3'+67,0B&+>7,0B&+@
3'+67,0B&+>$'&B(75@
3'+67,0B&+>%((3@
3'7/,>7,0B&+@
3'8$57B5;
3'8$57B7;
3'+66:,0
1567 3&+663,B0,62
26&,13$ 3&+663,B026,
26&2873$ 3&+663,B6&.
966 3&+67,0B&+
9&$3 3&+67,0B&+
9'' 3&+67,0B&+
9'',2 3&+67,0B&+8$57B&.
$,13) 3(63,B166
9''$
966$
>,&B6'$@$,13%
>,&B6&/@$,13%
>7,0B(75@$,13%
>7,0B&+1@$,13%
>7,0B&+1@$,13%
>7,0B&+1@$,13%
069
9''$ 3%$,1>7,0B&+1@
966$ 3%$,1>7,0B(75@
>,&B6'$@$,13% 3%$,1>,&B6&/@
069
Alternate
LQFP32/UFQFPN32
Main function
Ext. interrupt
Default
High sink
function after
Floating
LQFP48
LQFP44
SDIP32
(after remap
OD
PP
function
reset) [option
bit]
Alternate
LQFP32/UFQFPN32
Main function
Ext. interrupt
Default
High sink
function after
Floating
LQFP48
LQFP44
SDIP32
Speed
wpu
(after remap
OD
PP
function
reset) [option
bit]
Alternate
LQFP32/UFQFPN32
Main function
Ext. interrupt
Default
High sink
function after
Floating
LQFP48
LQFP44
SDIP32
Speed
wpu
(after remap
OD
PP
function
reset) [option
bit]
Analog
24 22 - - PE6/ AIN9 I/O X X X - O1 X X Port E6 -
input 9(3)
SPI
master/
25 23 17 22 PE5/ SPI_NSS I/O X X X - O1 X X Port E5 -
slave
select
Timer 1 -
PC1/ channel
26 24 18 23 TIM1_CH1/ I/O X X X HS O3 X X Port C1 1/ UART2 -
UART2_CK synchron
ous clock
PC2/ Timer 1-
27 25 19 24 I/O X X X HS O3 X X Port C2 -
TIM1_CH2 channel 2
PC3/ Timer 1 -
28 26 20 25 I/O X X X HS O3 X X Port C3 -
TIM1_CH3 channel 3
PC4/ Timer 1 -
29 - 21 26 I/O X X X HS O3 X X Port C4 -
TIM1_CH4 channel 4
30 27 22 27 PC5/ SPI_SCK I/O X X HS O3 X X Port C5 SPI clock -
31 28 - - VSSIO_2 S - - - - - - - I/O ground -
32 29 - - VDDIO_2 S - - - - - - - I/O power supply -
SPI
master
33 30 23 28 PC6/ SPI_MOSI I/O X X X HS O3 X X Port C6 -
out/slave
in
SPI
PC7/ SPI_
34 31 24 29 I/O X X X HS O3 X X Port C7 master in/ -
MISO
slave out
35 32 - - PG0 I/O X X - - O1 X X Port G0 - -
36 33 - - PG1 I/O X X - - O1 X X Port G1 - -
Timer 1 -
PE3/
37 - - - I/O X X X - O1 X X Port E3 break -
TIM1_BKIN
input
T
38 34 - - PE2/ I 2C_ SDA I/O X - X - O1 (4) - Port E2 I 2C data -
T
39 35 - - PE1/ I2C_ SCL I/O X - X - O1 (4) - Port E1 I 2C clock -
Alternate
LQFP32/UFQFPN32
Main function
Ext. interrupt
Default
High sink
function after
Floating
LQFP48
LQFP44
SDIP32
Speed
wpu
(after remap
OD
PP
function
reset) [option
bit]
Configura
40 36 - - PE0/ CLK_CCO I/O X X X HS O3 X X Port E0 ble clock -
output
TIM1_BK
PD0/
IN
TIM3_CH2 Timer 3 -
41 37 25 30 I/O X X X HS O3 X X Port D0 [AFR3]/
[TIM1_BKIN] channel 2
CLK_CC
[CLK_CCO]
O [AFR2]
SWIM
42 38 26 31 PD1/ SWIM(5) I/O X X X X HS O4 X Port D1 data -
interface
PD2/
Timer 3 - TIM2_CH
43 39 27 32 TIM3_CH1 I/O X X X HS O3 X X Port D2
channel 1 3 [AFR1]
[TIM2_CH3]
PD3/
Timer 2 - ADC_ET
44 40 28 1 TIM2_CH2 I/O X X X HS O3 X X Port D3
channel 2 R [AFR0]
[ADC_ETR]
PD4/ BEEP
Timer 2 -
45 41 29 2 TIM2_CH1 I/O X X X HS O3 X X Port D4 output
channel 1
[BEEP] [AFR7]
UART2
PD5/
46 42 30 3 I/O X X X - O1 X X Port D5 data -
UART2_TX
transmit
UART2
PD6/
47 43 31 4 I/O X X X - O1 X X Port D6 data -
UART2_RX
receive
PD7/ TLI Top level TIM1_CH
48 44 32 5 I/O X X X - O1 X X Port D7
[TIM1_CH4 interrupt 4 [AFR4]
1. A pull-up is applied to PF4 during the reset phase. This pin is input floating after reset release.
2. AIN12 is not selectable in ADC scan mode or with analog watchdog.
3. In 44-pin package, AIN9 cannot be used by ADC scan mode.
4. In the open-drain output column, T defines a true open-drain I/O (P-buffer, weak pull-up and protection diode to VDD are
not implemented).
5. The PD1 pin is in input pull-up during the reset phase and after internal reset release.
[)) E\WHVWDFN
5HVHUYHG
[
.E\WHGDWD((3520
[))
[
5HVHUYHG
[))
[
2SWLRQE\WHV
[)
[
5HVHUYHG
[)))
[
*3,2DQGSHULSKUHJ
[))
[
5HVHUYHG
[)))
[
.E\WHERRW520
[))
[
5HVHUYHG
[())
[)
&386:,0GHEXJ,7&
UHJLVWHUV
[)))
[
LQWHUUXSWYHFWRUV
[)
)ODVKSURJUDPPHPRU\
WR.E\WH
[))))
[
5HVHUYHG
[)))
06Y9
The following table lists the boundary addresses for each memory size. The top of the stack
is at the RAM end address in each case.
TIM1 capture/compare
0x00 526A TIM1_CCR3L 0x00
register 3 low
TIM1 capture/compare
0x00 526B TIM1_CCR4H 0x00
register 4 high
DM breakpoint 1 register
0x00 7F90 DM_BK1RE 0xFF
extended byte
DM breakpoint 1 register
0x00 7F91 DM_BK1RH 0xFF
high byte
DM breakpoint 1 register
0x00 7F92 DM_BK1RL 0xFF
low byte
DM breakpoint 2 register
0x00 7F93 DM_BK2RE 0xFF
extended byte
DM breakpoint 2 register
0x00 7F94 DM_BK2RH 0xFF
high byte
DM DM breakpoint 2 register
0x00 7F95 DM_BK2RL 0xFF
low byte
DM debug module control
0x00 7F96 DM_CR1 0x00
register 1
DM debug module control
0x00 7F97 DM_CR2 0x00
register 2
DM debug module
0x00 7F98 DM_CSR1 0x10
control/status register 1
DM debug module
0x00 7F99 DM_CSR2 0x00
control/status register 2
0x00 7F9A DM_ENFCTR DM enable function register 0xFF
0x00 7F9B to 0x00 7F9F Reserved area (5 byte)
1. Accessible by debug module only.
8 Option byte
Option byte contain configurations for device hardware features as well as the memory
protection of the device. They are stored in a dedicated block of the memory. Except for the
ROP (read-out protection) byte, each option byte has to be stored twice, in a regular form
(OPTx) and a complemented one (NOPTx) for redundancy.
Option byte can be modified in ICP mode (via SWIM) by accessing the EEPROM address
shown in the table below.
Option byte can also be modified on the fly by the application in IAP mode, except the ROP
option that can only be modified in ICP mode (via SWIM).
Refer to the STM8S Flash programming manual (PM0051) and STM8 SWIM
communication protocol and debug module user manual (UM0470) for information on SWIM
programming procedures.
Read-out
0x4800 protection OPT0 ROP [7:0] 0x00
(ROP)
0x4803 Alternate OPT2 AFR7 AFR6 AFR5 AFR4 AFR3 AFR2 AFR1 AFR0 0x00
function
0x4804 remapping NOPT2 NAFR7 NAFR6 NAFR5 NAFR4 NAFR3 NAFR2 NAFR1 NAFR0 0xFF
(AFR)
CKAWU
0x4807 OPT4 Reserved EXT CLK PRS C1 PRS C0 0x00
SEL
Clock option
NEXT NCKA
0x4808 NOPT4 Reserved NPRSC1 NPR SC0 0xFF
CLK WUSEL
0x480F - Reserved -
Reserved
0x48FD - Reserved -
9 Unique ID
The devices feature a 96-bit unique device identifier which provides a reference number that
is unique for any device and in any context. The 96 bits of the identifier can never be altered
by the user.
The unique device identifier can be read in single byte and may then be concatenated using
a custom algorithm.
The unique device identifier is ideally suited:
For use as serial numbers
For use as security keys to increase the code security in the program memory while
using and combining this unique ID with software cryptographic primitives and
protocols before programming the internal memory.
To activate secure boot processes
7 6 5 4 3 2 1 0
10 Electrical characteristics
9RU9
$ 9''
9''$
9'',2
966
966$
966,2
06Y9
67063,1
S)
06Y9
67063,1
9,1
06Y9
VDDx - VSS Supply voltage (including VDDA and VDDIO)(1) -0.3 6.5 V
Input voltage on true open drain pins (PE1, PE2)(2) VSS - 0.3 6.5
VIN V
Input voltage on any other pin(2) VSS - 0.3 VDD + 0.3
3. I/O pins used simultaneously for high current source/sink must be uniformly spaced around the package
between the VDDIO/VSSIO pins.
4. IINJ(PIN) must never be exceeded. This condition is implicitly insured if VIN maximum is respected. If VIN
maximum cannot be respected, the injection current must be limited externally to the IINJ(PIN) value. A
positive injection is induced by VIN > VDD while a negative injection is induced by VIN < VSS. For true open-
drain pads, there is no positive injection current allowed and the corresponding VIN maximum must always
be respected.
5. Negative injection disturbs the analog performance of the device. See note in Section: TIM2, TIM3 - 16-bit
general purpose timers.
6. When several inputs are submitted to a current injection, the maximum IINJ(PIN) is the absolute sum of the
positive and negative injected currents (instantaneous values). These results are based on characterization
with IINJ(PIN) maximum current injection on four I/O port pins of the device.
I&380+]
)XQFWLRQDOLW\
QRW
JXDUDQWHHGLQ
WKLVDUHD
)XQFWLRQDOLW\JXDUDQWHHG
#7$WR&
6XSSO\YROWDJH
06Y9
Power-on reset
VIT+ - 2.65 2.8 2.95
threshold
V
Brown-out reset
VIT- - 2.58 2.65 2.88
threshold
Brown-out reset
VHYS(BOR) - - 70 - mV
hysteresis
1. Guaranteed by design, not tested in production.
(65
5/HDN
06Y9
1. ESR is the equivalent series resistance and ESL is the equivalent inductance.
Table 20. Total current consumption with code execution in run mode at VDD = 5 V
Symbol Parameter Conditions Typ Max(1) Unit
Table 21. Total current consumption with code execution in run mode at VDD = 3.3 V
Symbol Parameter Conditions Typ Max(1) Unit
Table 25. Total current consumption in active halt mode at VDD = 3.3 V
Conditions
Table 29. Total current consumption and timing in forced reset state
Symbol Parameter Conditions Typ Max(1) Unit
Figure 13. Typ IDD(RUN) vs. VDD HSE user external clock, fCPU = 16 MHz
Figure 14. Typ IDD(RUN) vs. fCPU HSE user external clock, VDD = 5 V
Figure 15. Typ IDD(RUN) vs. VDD HSI RC osc, fCPU = 16 MHz
Figure 16. Typ IDD(WFI) vs. VDD HSE external clock, fCPU = 16 MHz
Figure 17. Typ IDD(WFI) vs. fCPU HSE external clock, VDD = 5 V
Figure 18. Typ IDD(WFI) vs. VDD HSI RC osc., fCPU = 16 MHz
+6(+
+6(/
I+6(
([WHUQDOFORFN
VRXUFH
26&,1
670
069
5P
I+6(WRFRUH
&2 5)
/P
&/
&P 26&,1 JP
5HVRQDWRU
&RQVXPSWLRQ
FRQWURO
5HVRQDWRU
26&287
&/
670
069
Operating voltage
VDD fCPU 16 MHz 2.95 - 5.5 V
(all modes, execution/write/erase)
Standard programming time (including
erase) for byte/word/block - - 6 6.6
tprog (1 byte/4 byte/128 byte)
ms
Fast programming time for 1 block
- - 3 3.33
(128 byte)
terase Erase time for 1 block (128 byte) - - 3 3.33
Erase/write cycles
TA = +85 C 10k - -
NRW (program memory)(2) cycle
Erase/write cycles (data memory)(2) TA = +125 C 300k 1M -
Data retention (program and data
memory) after 10k erase/write cycles TRET = 55 C 20 - -
at TA= +55 C
tRET year
Data retention (data memory) after
300k erase/write cycles at TRET = 85 C 1 - -
TA= +125C
Supply current (Flash programming or
IDD - - 2 - mA
erasing for 1 to 128 byte)
1. Data based on characterization results, not tested in production.
2. The physical granularity of the memory is 4 byte, so cycling is performed on 4 byte even when a
write/erase operation addresses a single byte.
Figure 24. Typical VIL and VIH vs VDD @ 4 Figure 25. Typical pull-up current vs VDD @ 4
temperatures temperatures
&
&
&
&
3XOOXSUHVLVWDQFH > :@
9''>9@ 069
Figure 27. Typ. VOL @ VDD = 3.3 V (standard Figure 28. Typ. VOL @ VDD = 5.0 V (standard
ports) ports)
Figure 29. Typ. VOL @ VDD = 3.3 V (true open Figure 30. Typ. VOL @ VDD = 5.0 V (true open
drain ports) drain ports)
Figure 31. Typ. VOL @ VDD = 3.3 V (high sink Figure 32. Typ. VOL @ VDD = 5.0 V (high sink
ports) ports)
Figure 33. Typ. VDD - VOH @ VDD = 3.3 V Figure 34. Typ. VDD - VOH @ VDD = 5.0 V
(standard ports) (standard ports)
Figure 35. Typ. VDD - VOH @ VDD = 3.3 V (high Figure 36. Typ. VDD - VOH @ VDD = 5.0 V (high
sink ports) sink ports)
VIH(NRST) NRST input high level voltage(1) IOL= 2 mA 0.7 x VDD - VDD+ 0.3 V
The reset network shown in Figure 40 protects the device against parasitic resets. The user
must ensure that the level on the NRST pin can go below VIL(NRST) max (see Table 41:
NRST pin characteristics), otherwise the reset is not taken into account internally.
For power consumption sensitive applications, the external reset capacitor value can be
reduced to limit the charge/discharge current. If NRST signal is used to reset external
circuitry, attention must be taken to the charge/discharge time of the external capacitor to
fulfill the external devices reset timing conditions. Minimum recommended capacity is
100 nF.
9'' 670
538
([WHUQDO
UHVHW 1567 )LOWHU
FLUFXLW
)
2SWLRQDO
06Y9
Figure 41. SPI timing diagram where slave mode and CPHA = 0
166LQSXW
W68166 WF6&. WK166
&3+$
6&.,QSXW
&32/
WZ6&.+
&3+$ WZ6&./
&32/
W962 WK62 WU6&. WGLV62
WD62 WI6&.
WK6,
DLF
1. Measurement points are at CMOS levels: 0.3 VDD and 0.7 VDD.
Figure 42. SPI timing diagram where slave mode and CPHA = 1
166LQSXW
&3+$
&32/ WZ6&.+
&3+$ WZ6&./
&32/
WU6&.
WY62 WK62 WGLV62
WD62 WI6&.
0,62 06%287 %,7287 /6%287
287387
WVX6, WK6,
026,
,1387 06%,1 %,7,1 /6%,1
DLE
1. Measurement points are at CMOS levels: 0.3 VDD and 0.7 VDD.
166LQSXW
WF6&.
6&.2XWSXW
&3+$
&32/
&3+$
&32/
6&.2XWSXW
&3+$
&32/
&3+$
&32/
WZ6&.+ WU6&.
WVX0, WZ6&./ WI6&.
0,62
,13 87 06%,1 %,7,1 /6%,1
WK0,
026,
06%287 % , 7287 /6%287
287387
WY02 WK02
DLF
1. Measurement points are at CMOS levels: 0.3 VDD and 0.7 VDD.
Figure 44. Typical application with I2C bus and timing diagram
9'' 9''
670
N N
6'$
,&EXV 6&/
5HSHDWHG
VWDUW
67$57
WVX67$ WZ67267$
67$57
6'$
6&/
- VSSA - VDDA
2. ADC accuracy vs. negative injection current: Injecting negative current on any of the analog input pins
should be avoided as this significantly reduces the accuracy of the conversion being performed on another
analog input. It is recommended to add a Schottky diode (pin to ground) to standard analog pins which may
potentially inject negative current. Any positive injection current within the limits specified for IINJ(PIN) and
IINJ(PIN) in Section 10.3.6 does not affect the ADC accuracy.
0 1 2 3 4 5 6 7 1021102210231024
VSSA VDDA
s ^dD
97
9$,1 5$,1 9
/E ELW$'
FRQYHUVLRQ
97
&$,1 ,/ &$'&
9
06Y9
1. Legend: RAIN = external resistance, CAIN = capacitors, Csamp = internal sample and hold capacitor.
VDD 5 V, TA25 C,
Voltage limits to be applied on any I/O pin
VFESD fMASTER 16 MHz (HSI clock), 2/B(1)
to induce a functional disturbance
Conforms to IEC 1000-4-2
1. Data obtained with HSI clock configuration, after applying the hardware recommendations described in
AN2860 (EMC guidelines for STM8S microcontrollers).
Max fHSE/fCPU(1)
Symbol Parameter Unit
Monitored
General conditions
frequency band 8 MHz/ 8 MHz/
8 MHz 16 MHz
Static latch-up
Two complementary static tests are required on 10 parts to assess the latch-up
performance.
A supply overvoltage (applied to each power supply pin), and
A current injection (applied to each input, output and configurable I/O pin) are
performed on each sample.
This test conforms to the EIA/JESD 78 IC latch-up standard. For more details, refer to the
application note AN1181.
TA 25 C
LU Static latch-up class TA 85 C A
TA 125 C
1. Class description: A Class is an STMicroelectronics internal specification. All its limits are higher than the
JEDEC specifications, that means when a device belongs to class A it exceeds the JEDEC standard. B
class strictly covers all the JEDEC criteria (international standard).
11 Package information
3%!4).'
0,!.%
#
!
!
!
C
MM
'!5'% 0,!.%
CCC #
$
! +
,
$ ,
$
B
%
%
0).
)$%.4)&)#!4)/.
E "?-%?6
A - - 1.600 - - 0.0630
A1 0.050 - 0.150 0.0020 - 0.0059
A2 1.350 1.400 1.450 0.0531 0.0551 0.0571
b 0.170 0.220 0.270 0.0067 0.0087 0.0106
c 0.090 - 0.200 0.0035 - 0.0079
D 8.800 9.000 9.200 0.3465 0.3543 0.3622
D1 6.800 7.000 7.200 0.2677 0.2756 0.2835
D3 - 5.500 - - 0.2165 -
E 8.800 9.000 9.200 0.3465 0.3543 0.3622
E1 6.800 7.000 7.200 0.2677 0.2756 0.2835
E3 - 5.500 - - 0.2165 -
e - 0.500 - - 0.0197 -
L 0.450 0.600 0.750 0.0177 0.0236 0.0295
L1 - 1.000 - - 0.0394 -
k 0 3.5 7 0 3.5 7
ccc - - 0.080 - - 0.0031
1. Values in inches are converted from mm and rounded to 4 decimal digits.
AID
Device marking
The following figure gives an example of topside marking orientation versus pin 1 identifier
location.
3URGXFW
LGHQWLILFDWLRQ 45.4
$5
'DWHFRGH
6WDQGDUG67ORJR
: 88
5HYLVLRQFRGH
3LQLGHQWLILHU
069
1. Parts marked as "ES", "E" or accompanied by an Engineering Sample notification letter, are not yet
qualified and therefore not yet ready to be used in production and any consequences deriving from such
usage will not be at ST charge. In no event, ST will be liable for any customer usage of these engineering
samples in production. ST Quality has to be contacted prior to any decision to use these Engineering
Samples to run qualification activity.
!
MM
'!5'% 0,!.%
CCC #
!
+
$ ,
$ ,
$
B
%
%
0).
)$%.4)&)#!4)/. E
:@.&
A - - 1.600 - - 0.0630
A1 0.050 - 0.150 0.0020 - 0.0059
A2 1.350 1.400 1.450 0.0531 0.0551 0.0571
b 0.300 0.370 0.450 0.0118 0.0146 0.0177
c 0.090 - 0.200 0.0035 - 0.0079
D 11.800 12.000 12.200 0.4646 0.4724 0.4803
D1 9.800 10.000 10.200 0.3858 0.3937 0.4016
D3 - 8.000 - - 0.3150 -
E 11.800 12.000 12.200 0.4646 0.4724 0.4803
E1 9.800 10.000 10.200 0.3858 0.3937 0.4016
E3 - 8.000 - - 0.3150 -
e - 0.800 - - 0.0315 -
L 0.450 0.600 0.750 0.0177 0.0236 0.0295
L1 - 1.000 - - 0.0394 -
k 0 3.5 7 0 3.5 7
ccc - - 0.100 - - 0.0039
1. Values in inches are converted from mm and rounded to 4 decimal digits.
<B)3
Device marking
The following figure gives an example of topside marking orientation versus pin 1 identifier
location.
3URGXFW
LGHQWLILFDWLRQ 45.4
45$
'DWHFRGH
6WDQGDUG67ORJR
: 88
5HYLVLRQFRGH
3LQLGHQWLILHU
069
1. Parts marked as "ES", "E" or accompanied by an Engineering Sample notification letter, are not yet
qualified and therefore not yet ready to be used in production and any consequences deriving from such
usage will not be at ST charge. In no event, ST will be liable for any customer usage of these engineering
samples in production. ST Quality has to be contacted prior to any decision to use these Engineering
Samples to run qualification activity.
3%!4).'
0,!.%
#
!
!
C
!
MM
'!5'% 0,!.%
CCC #
+
$
,
!
$
,
$
B
%
%
0).
)$%.4)&)#!4)/.
E 7@.&@7
A - - 1.600 - - 0.0630
A1 0.050 - 0.150 0.0020 - 0.0059
A2 1.350 1.400 1.450 0.0531 0.0551 0.0571
b 0.300 0.370 0.450 0.0118 0.0146 0.0177
c 0.090 - 0.200 0.0035 - 0.0079
D 8.800 9.000 9.200 0.3465 0.3543 0.3622
D1 6.800 7.000 7.200 0.2677 0.2756 0.2835
D3 - 5.600 - - 0.2205 -
E 8.800 9.000 9.200 0.3465 0.3543 0.3622
E1 6.800 7.000 7.200 0.2677 0.2756 0.2835
E3 - 5.600 - - 0.2205 -
e - 0.800 - - 0.0315 -
L 0.450 0.600 0.750 0.0177 0.0236 0.0295
L1 - 1.000 - - 0.0394 -
k 0 3.5 7 0 3.5 7
ccc - - 0.100 - - 0.0039
1. Values in inches are converted from mm and rounded to 4 decimal digits.
6?&0?6
Device marking
The following figure gives an example of topside marking orientation versus pin 1 identifier
location.
3URGXFW
LGHQWLILFDWLRQ 45.4
,5$
'DWHFRGH
6WDQGDUG67ORJR
: 88
5HYLVLRQFRGH
3LQLGHQWLILHU
069
1. Parts marked as ES,E or accompanied by an Engineering Sample notification letter, are not yet
qualified and therefore not yet ready to be used in production and any consequences deriving from such
usage will not be at ST charge. In no event, ST will be liable for any customer usage of these engineering
samples in production. ST Quality has to be contacted prior to any decision to use these Engineering
samples to run qualification activity.
'
GGG &
H $
&
$
6($7,1*
3/$1(
'
E
( E
( (
/
' /
3,1,GHQWLILHU
!"?-%?6
Table 54. UFQFPN32 - 32-pin, 5x5 mm, 0.5 mm pitch ultra thin fine pitch quad flat
package mechanical data
millimeters inches(1)
Symbol
Min Typ Max Min Typ Max
Figure 57. UFQFPN32 - 32-pin, 5 x5 mm, 0.5 mm pitch ultra thin fine pitch quad flat
package recommended footprint
$%B)3B9
Device marking
The following figure gives an example of topside marking orientation versus pin 1 identifier
location.
3URGXFW
LGHQWLILFDWLRQ 4,
'DWHFRGH
: 88 5HYLVLRQFRGH
6WDQGDUG67ORJR
3LQLGHQWLILHU
069
1. Parts marked as ES,E or accompanied by an Engineering Sample notification letter, are not yet
qualified and therefore not yet ready to be used in production and any consequences deriving from such
usage will not be at ST charge. In no event, ST will be liable for any customer usage of these engineering
samples in production. ST Quality has to be contacted prior to any decision to use these Engineering
samples to run qualification activity.
%
! !
! ,
" " E
# E!
E"
?-%
eB - - 12.700 - - 0.5000
L 2.540 3.048 3.810 0.1000 0.1200 0.1500
1. Values in inches are converted from mm and rounded to 4 decimal digits
Device marking
The following figure gives an example of topside marking orientation versus pin 1 identifier
location.
3URGXFW
LGHQWLILFDWLRQ
5HYLVLRQFRGH 45.4,#
3LQLGHQWLILHU
6WDQGDUG67ORJR 3 'DWHFRGH
:88
069
1. Parts marked as ES,E or accompanied by an Engineering Sample notification letter, are not yet
qualified and therefore not yet ready to be used in production and any consequences deriving from such
usage will not be at ST charge. In no event, ST will be liable for any customer usage of these engineering
samples in production. ST Quality has to be contacted prior to any decision to use these Engineering
samples to run qualification activity.
12 Thermal characteristics
The maximum junction temperature (TJmax) of the device must never exceed the values
specified in Table 18: General operating conditions, otherwise the functionality of the device
cannot be guaranteed.
The maximum junction temperature TJmax, in degrees Celsius, may be calculated using the
following equation:
TJmax = TAmax + (PDmax x JA)
Where:
TAmax is the maximum ambient temperature in C
JA is the package junction-to-ambient thermal resistance in C/W
PDmax is the sum of PINTmax and PI/Omax (PDmax = PINTmax + PI/Omax)
PINTmax is the product of IDD and VDD, expressed in Watts. This is the maximum chip
internal power.
PI/Omax represents the maximum power dissipation on output pins
Where:
PI/Omax = (VOL*IOL) + ((VDD-VOH)*IOH),
taking into account the actual VOL/IOL and VOH/IOH of the I/Os at low and high level in
the application.
13 Ordering information
Family type
S = Standard
Sub-family type
10x = Access line
105 sub-family
Pin count
K = 32 pins
S = 44 pins
C = 48 pins
Package type
B = SDIP
T = LQFP
U = UFQFPN
Temperature range
3 = -40 to 125 C
6 = -40 to 85 C
Package pitch/thickness
Blank = 0.5 mm
C = 0.8 mm
A = 0.55 mm thickness for UFQFPN32
Packing
No character = Tray or tube
TR = Tape and reel
1. A dedicated ordering information scheme will be released if, in the future, memory programming service
(FastROM) is required The letter P will be added after STM8S. Three unique letters identifying the
customer application code will also be visible in the codification. Example: STM8SP103K3MACTR.
For a list of available options (for example memory size, package) and orderable part
numbers or for further information on any aspect of this device, please go to www.st.com or
contact the nearest ST Sales Office.
Temperature range
[ ] -40C to +85C or [ ] -40C to +125C
Padding value for unused program memory (check only one option)
[ ] 0xFF Fixed value
[ ] 0x83 TRAP instruction code
[ ] 0x75 Illegal opcode (causes a reset when executed)
[ ] 0: Reset
UBC, bit0
[ ] 1: Set
[ ] 0: Reset
UBC, bit1
[ ] 1: Set
[ ] 0: Reset
UBC, bit2
[ ] 1: Set
[ ] 0: Reset
UBC, bit3
[ ] 1: Set
[ ] 0: Reset
UBC, bit4
[ ] 1: Set
[ ] 0: Reset
UBC, bit5
[ ] 1: Set
OPT3 watchdog
WWDG_HALT [ ] 0: No reset generated on halt if WWDG active[
(check only one option) [ ] 1: Reset generated on halt if WWDG active
WWDG_HW [ ] 0: WWDG activated by software
(check only one option) [ ] 1: WWDG activated by hardware
IWDG_HW [ ] 0: IWDG activated by software
(check only one option) [ ] 1: IWDG activated by hardware
LSI_EN [ ] 0: LSI clock is not available as CPU clock source
(check only one option) [ ] 1: LSI clock is available as CPU clock source
HSITRIM [ ] 0: 3-bit trimming supported in CLK_HSITRIMR register
(check only one option) [ ] 1: 4-bit trimming supported in CLK_HSITRIMR register
OPT4 watchdog
[ ] for 16 MHz to 128 kHz prescaler
PRSC
[ ] for 8 MHz to 128 kHz prescaler
(check only one option)
[ ] for 4 MHz to 128 kHz prescaler
CKAWUSEL [ ] LSI clock source selected for AWU
(check only one option) [ ] HSE clock with prescaler selected as clock source for AWU
EXTCLK [ ] External crystal connected to OSCIN/OSCOUT
(check only one option) [ ] External signal on OSCIN
OTP6 is reserved
OTP7 is reserved
Comments: .........................................................................................
Supply operating range in the application: .........................................................................................
Notes: .........................................................................................
Date: .........................................................................................
Signature: .........................................................................................
Development tools for the STM8 microcontrollers include the full-featured STice emulation
system supported by a complete software tool package including C compiler, assembler and
integrated development environment with high-level language debugger. In addition, the
STM8 is to be supported by a complete range of tools including starter kits, evaluation
boards and a low-cost in-circuit debugger/programmer.
ST visual develop
Full-featured integrated development environment from STMicroelectronics, featuring:
Seamless integration of C and ASM toolsets
Full-featured debugger
Project management
Syntax highlighting editor
Integrated programming interface
Support of advanced emulation features for STice such as code profiling and coverage
15 Revision history
STMicroelectronics NV and its subsidiaries (ST) reserve the right to make changes, corrections, enhancements, modifications, and
improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on
ST products before placing orders. ST products are sold pursuant to STs terms and conditions of sale in place at the time of order
acknowledgement.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or
the design of Purchasers products.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.
Authorized Distributor
STMicroelectronics:
STM8S105C4T6TR STM8S105C4T3 STM8S105C6T6TR STM8S105S6T3C STM8S105K4U6 STM8S105K6U6
STM8S105C6T6 STM8S105K6T6C STM8S105S6T6C STM8S105C4T6 STM8S105K6T3CTR STM8S105K4B6
STM8S105K4T3CTR STM8S105K6U6ATR STM8S105C6T3TR STM8S105K4U6ATR STM8S105K4U3A
STM8S105K6U3A