8-bit ultralow power microcontroller with up to 8 Kbytes Flash,
UFQFPN28
UFQFPN32
LQFP32
TSSOP20
UFQFPN20
Features
■ Main microcontroller features
– Supply voltage range 1.65 V to 3.6 V
– Low power consumption (Halt: 0.3 µA,
Active-halt: 0.8 µA, Dynamic Run:
150 µA/MHz)
– STM8 Core with up to 16 CISC MIPS
throughput
– Temp. range: -40 to 85 °C and 125 °C
■ Memories
– Up to 8 Kbytes of Flash program including
up to 2 Kbytes of data EEPROM
– Error correction code (ECC)
– Flexible write and read protection modes
– In-application and in-circuit programming
– Data EEPROM capability
– 1.5 Kbytes of static RAM
■ Clock management
– Internal 16 MHz RC with fast wakeup time
(typ. 4 µs)
– Internal low consumption 38 kHz RC
driving both the IWDG and the AWU
■ Reset and supply management
– Ultralow power, ultrasafe power-on-reset
/power down reset
– Three low power modes: Wait, Active-halt,
Halt
■ Interrupt management
– Nested interrupt controller with software
priority control
– Up to 29 external interrupt sources
■ I/Os
– Up to 30 I/Os, all mappable on external
interrupt vectors
– I/Os with prog. input pull-ups, high
channels (used as IC, OC, PWM)
– One 8-bit timer (TIM4) with 7-bit prescaler
– Infrared remote control (IR)
– Independent watchdog
– Auto-wakeup unit
– Beeper timer with 1, 2 or 4 kHz frequencies
– SPI synchronous serial interface
– Fast I2C Multimaster/slave 400 kHz
– USART with fractional baud rate generator
– 2 comparators with 4 inputs each
■ Development support
– Hardware single wire interface module
(SWIM) for fast on-chip programming and
non intrusive debugging
– In-circuit emulation (ICE)
AWU: Auto-wakeup unit
Int. RC: internal RC oscillator
I²C: Inter-integrated circuit multimaster interface
POR/PDR: Power on reset / power down reset
SPI: Serial peripheral interface
SWIM: Single wire interface module
USART: Universal synchronous / asynchronous receiver / transmitter
IWDG: Independent watchdog
Doc ID 15275 Rev 119/81
Product overviewSTM8L101xx
3.1 Central processing unit STM8
The 8-bit STM8 core is designed for code efficiency and performance.
It features 21 internal registers, 20 addressing modes including indexed, indirect and relative
addressing, and 80 instructions.
3.2 Development tools
Development tools for the STM8 microcontrollers include:
●The STice emulation system offering tracing and code profiling
●The STVD high-level language debugger including C compiler, assembler and
integrated development environment
●The STVP Flash programming software
The STM8 also comes with starter kits, evaluation boards and low-cost in-circuit
debugging/programming tools.
3.3 Single wire data interface (SWIM) and debug module
The debug module with its single wire data interface (SWIM) permits non-intrusive real-time
in-circuit debugging and fast memory programming.
The Single wire interface is used for direct access to the debugging module and memory
programming. The interface can be activated in all device operation modes.
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 realtime by means of shadow registers.
3.4 Interrupt controller
The STM8L101xx features a nested vectored interrupt controller:
●Nested interrupts with 3 software priority levels
●26 interrupt vectors with hardware priority
●Up to 29 external interrupt sources on 10 vectors
●Trap and reset interrupts
10/81 Doc ID 15275 Rev 11
STM8L101xxProduct overview
3.5 Memory
The STM8L101xx devices have the following main features:
●1.5 Kbytes of RAM
●The EEPROM is divided into two memory arrays (see the STM8L reference manual for
details on the memory mapping):
–Up to 8 Kbytes of low-density embedded Flash program including up to 2 Kbytes
of data EEPROM. Data EEPROM and Flash program areas can be write protected
independently by using the memory access security mechanism (MASS).
–64 option bytes (one block) of which 5 bytes are already used for the device.
Error correction code is implemented on the EEPROM.
3.6 Low power modes
To minimize power consumption, the product features three low power modes:
●Wait mode: CPU clock stopped, selected peripherals at full clock speed.
●Active-halt mode: CPU and peripheral clocks are stopped. The programmable wakeup
time is controlled by the AWU unit.
●Halt mode: CPU and peripheral clocks are stopped, the device remains powered on.
Wakeup is triggered by an external interrupt.
3.7 Voltage regulators
The STM8L101xx embeds an internal voltage regulator for generating the 1.8 V power
supply for the core and peripherals.
This regulator has two different modes: main voltage regulator mode (MVR) and low power
voltage regulator mode (LPVR). When entering Halt or Active-halt modes, the system
automatically switches from the MVR to the LPVR in order to reduce current consumption.
3.8 Clock control
The STM8L101xx embeds a robust clock controller. It is used to distribute the system clock
to the core and the peripherals and to manage clock gating for low power modes. This
system clock is a 16-MHz High Speed Internal RC oscillator (HSI RC), followed by a
programmable prescaler.
In addition, a 38 kHz low speed internal RC oscillator is used by the independent watchdog
(IWDG) and Auto-wakeup unit (AWU).
3.9 Independent watchdog
The independent watchdog (IWDG) peripheral can be used to resolve processor
malfunctions due to hardware or software failures.
It is clocked by the 38 kHZ LSI internal RC clock source, and thus stays active even in case
of a CPU clock failure.
Doc ID 15275 Rev 1111/81
Product overviewSTM8L101xx
3.10 Auto-wakeup counter
The auto-wakeup (AWU) counter is used to wakeup the device from Active-halt mode.
3.11 General purpose and basic timers
STM8L101xx devices contain two 16-bit general purpose timers (TIM2 and TIM3) and one
8-bit basic timer (TIM4).
16-bit general purpose timers
The 16-bit timers consist of 16-bit up/down auto-reload counters driven by a programmable
prescaler. They perform a wide range of functions, including:
●Time base generation
●Measuring the pulse lengths of input signals (input capture)
●Generating output waveforms (output compare, PWM and One pulse mode)
●Interrupt capability on various events (capture, compare, overflow, break, trigger)
●Synchronization with other timers or external signals (external clock, reset, trigger and
enable)
8-bit basic timer
The 8-bit timer consists of an 8-bit up auto-reload counter driven by a programmable
prescaler. It can be used for timebase generation with interrupt generation on timer overflow.
3.12 Beeper
The STM8L101xx devices include a beeper function used to generate a beep signal in the
range of 1, 2 or 4 kHz when the LSI clock is operating at a frequency of 38 kHz.
3.13 Infrared (IR) interface
The STM8L101xx devices contain an infrared interface which can be used with an IR LED
for remote control functions. Two timer output compare channels are used to generate the
infrared remote control signals.
3.14 Comparators
The STM8L101xx features two zero-crossing comparators (COMP1 and COMP2) sharing
the same current bias and voltage reference. The voltage reference can be internal
(comparison with ground) or external (comparison to a reference pin voltage).
Each comparator is connected to 4 channels, which can be used to generate interrupt, timer
input capture or timer break. Their polarity can be inverted.
12/81 Doc ID 15275 Rev 11
STM8L101xxProduct overview
3.15 USART
The USART interface (USART) allows full duplex, asynchronous communications with
external devices requiring an industry standard NRZ asynchronous serial data format. It
offers a very wide range of baud rates.
3.16 SPI
The serial peripheral interface (SPI) provides half/ full duplex synchronous serial
communication with external devices. It can be configured as the master and in this case it
provides the communication clock (SCK) to the external slave device. The interface can also
operate in multi-master configuration.
3.17 I²C
The inter-integrated circuit (I2C) bus interface is designed to serve as an interface between
the microcontroller and the serial I
2
C bus. It provides multi-master capability, and controls all
I²C bus-specific sequencing, protocol, arbitration and timing. It manages standard and fast
speed modes.
Doc ID 15275 Rev 1113/81
Pin descriptionSTM8L101xx
2
1
3
4
5
67 8
9
11
12
13
14
15
16171819
PD0 (HS) / TIM3_CH2 / COMP1_CH3
V
DD
V
SS
PA3 (HS)
PA2 (HS)
PB0 (HS) / TIM2_CH1 / COMP1_CH1
NRST / PA1 (HS)
PC3 (HS) / USART_TX
PC4 (HS) / USART_CK / CCO
PC2 (HS) / USART_RX
PC1 / I²C_SCL
PB4 (HS) / SPI_NSS
PB5 (HS) / SPI_SCK
PB6 (HS) / SPI_MOSI
PB7 (HS) / SPI_MISO
PC0 / I²C_SDA
PB1 (HS) / TIM3_CH1 /COMP1_CH2
PB2 (HS) / TIM2_CH2 / COMP2_CH1
10
PB3 (HS) / TIM2_TRIG / COMP2_CH2
PA0 (HS) / SWIM / BEEP / IR_TIM
20
4 Pin description
Figure 2.Standard 20-pin UFQFPN package pinout
1. HS corresponds to 20 mA high sink/source capability.
2. High sink LED driver capability available on PA0. Refer to the description of the IR_CR register in the
STM8L reference manual (RM0013).
Note:The COMP_REF pin is not available in this standard 20-pin UFQFPN package. It is available
on Port A6 in the 20-pin UFQFPN package pinout for STM8L101F1U6ATR,
STM8L101F2U6ATR and STM8L101F3U6ATR part numbers (Figure 3 on page 15).
14/81 Doc ID 15275 Rev 11
STM8L101xxPin description
2
1
3
4
5
67 8
9
11
12
13
14
15
16171819
PD0 (HS) / TIM3_CH2 / COMP1_CH3
V
DD
V
SS
PA6 (HS) / COMP_REF
PA2 (HS)
PB0 (HS) / TIM2_CH1 / COMP1_CH1
NRST / PA1 (HS)
PC3 (HS) / USART_TX
PC4 (HS) / USART_CK / CCO
PC2 (HS) / USART_RX
PC1 / I²C_SCL
PB4 (HS) / SPI_NSS
PB5 (HS) / SPI_SCK
PB6 (HS) / SPI_MOSI
PB7 (HS) / SPI_MISO
PC0 / I²C_SDA
PB1 (HS) / TIM3_CH1 /COMP1_CH2
PB2 (HS) / TIM2_CH2 / COMP2_CH1
10
PB3 (HS) / TIM2_TRIG / COMP2_CH2
PA0 (HS) / SWIM / BEEP / IR_TIM
20
Figure 3.20-pin UFQFPN package pinout for STM8L101F1U6ATR,
STM8L101F2U6ATR and STM8L101F3U6ATR part numbers
1. Please refer to the warning below.
2. HS corresponds to 20 mA high sink/source capability.
3. High sink LED driver capability available on PA0. Refer to the description of the IR_CR register in the
STM8L reference manual (RM0013).
Warning:For the STM8L101F1U6ATR, STM8L101F2U6ATR and
STM8L101F3U6ATR part numbers (devices with COMP_REF
pin), all ports available on 32-pin packages must be
considered as active ports. To avoid spurious effects, you
have to configure them as input pull-up. A small increase in
consumption (typ. < 300 µA) may occur during the power up
and reset phase until these ports are properly configured.
Doc ID 15275 Rev 1115/81
Pin descriptionSTM8L101xx
PA 3 ( H S )
PA 2 ( HS )
NRST / PA1 (HS)
PA0 (HS) / SWIM / BEEP / IR_TIM
PC4 (HS) / USART_CK/ CCO
V
SS
PC3 (HS) / USART_TX
PC0 / I²C_SDA
PC1 / I²C_SCL
PB7 (HS) / SPI_MISO
PB6 (HS) / SPI_MOSI
PB1 (HS) / TIM3_CH1 / COMP1_CH2
PB2 (HS) / TIM2_CH2 / COMP2_CH1
PB3 (HS) /TIM2_TRIG /COMP2_CH2
PB4 (HS) / SPI_NSS
PB5 (HS) / SPI_SCK
V
DD
PD0 (HS) / TIM3_CH2 / COMP1_CH3
PB0 (HS) / TIM2_CH1 / COMP1_CH1
PC2 (HS) / USART_RX
1
2
3
4
5
6
7
10
9
8
20
19
18
17
16
15
14
11
12
13
Figure 4.20-pin TSSOP package pinout
1. HS corresponds to 20 mA high sink/source capability.
2. High sink LED driver capability available on PA0. Refer to the description of the IR_CR register in the
STM8L reference manual (RM0013).
16/81 Doc ID 15275 Rev 11
STM8L101xxPin description
PD3
(HS) / COMP2_CH4
PB0 (HS) / TIM2_CH1 / COMP1_CH1
PB1 (HS) / TIM3_CH1 / COMP1_CH2
PB2 (HS) / TIM2_CH2 / COMP2_CH1
PD0 (HS) / TIM3_CH2 / COMP1_CH3
PD1 (HS) / TIM3_TRIG / COMP1_CH4
PD2(HS) / COMP2_CH3
PA5 (HS) / TIM3_BKIN
V
SS
V
DD
NRST / PA1 (HS)
PA2 ( H S )
PA3 (HS)
PA4 (HS) / TIM2_BKIN
PB6 (HS) / SPI_MOSI
PB5 (HS) / SPI_SCK
PB4 (HS) / SPI_NSS
PB3 (HS) / TIM2_TRIG / COMP2_CH2
PC0 / I²C_SDA
PD4 (HS)
PB7 (HS) / SPI_MISO
PC4 (HS) / USART_CK / CCO
PC3 (HS) / USART_TX
PC2 (HS) / USART_RX
PC1 / I²C_SCL
PA0 (HS) / SWIM / BEEP / IR_TIM
PC6 (HS)
PC5 (HS)
2
1
3
4
5
6
7
9810 11 12 13 14
20
21
19
18
17
16
15
272826 25 24 23 22
Figure 5.Standard 28-pin UFQFPN package pinout
1. HS corresponds to 20 mA high sink/source capability.
2. High sink LED driver capability available on PA0. Refer to the description of the IR_CR register in the
STM8L reference manual (RM0013).
Note:The COMP_REF pin is not available in this standard 28-pin UFQFPN package. It is available
on Port A6 in the 28-pin UFQFPN package pinout for STM8L101G3U6ATR and
STM8L101G2U6ATR part numbers (Figure 6 on page 18).
Doc ID 15275 Rev 1117/81
Pin descriptionSTM8L101xx
PD3(HS) / COMP2_CH4
PB0 (HS) / TIM2_CH1 / COMP1_CH1
PB1 (HS) / TIM3_CH1 / COMP1_CH2
PB2 (HS) / TIM2_CH2 / COMP2_CH1
PD0 (HS) / TIM3_CH2 / COMP1_CH3
PD1 (HS) / TIM3_TRIG / COMP1_CH4
PD2(HS) / COMP2_CH3
PA6 (HS) / COMP_REF
V
SS
V
DD
NRST / PA1 (HS)
PA2 ( H S )
PA3 (HS)
PA4 (HS) / TIM2_BKIN
PB6 (HS) / SPI_MOSI
PB5 (HS) / SPI_SCK
PB4 (HS) / SPI_NSS
PB3 (HS) / TIM2_TRIG / COMP2_CH2
PC0 / I²C_SDA
PD4 (HS)
PB7 (HS) / SPI_MISO
PC4 (HS) / USART_CK / CCO
PC3 (HS) / USART_TX
PC2 (HS) / USART_RX
PC1 / I²C_SCL
PA0 (HS) / SWIM / BEEP / IR_TIM
PC6 (HS)
PC5 (HS)
2
1
3
4
5
6
7
9810 11 12 13 14
20
21
19
18
17
16
15
272826 25 24 23 22
Figure 6.28-pin UFQFPN package pinout for STM8L101G3U6ATR and
STM8L101G2U6ATR part numbers
1. HS corresponds to 20 mA high sink/source capability.
2. High sink LED driver capability available on PA0. Refer to the description of the IR_CR register in the
STM8L reference manual (RM0013).
Warning:For the STM8L101G3U6ATR and STM8L101G2U6ATR part
numbers (devices with COMP_REF pin), all ports available on
32-pin packages must be considered as active ports. To avoid
spurious effects, you have to configure them as input pull-up.
A small increase in consumption (typ. < 300 µA) may occur
during the power up and reset phase until these ports are
properly configured.
18/81 Doc ID 15275 Rev 11
STM8L101xxPin description
1
2
3
4
PA5 (HS) / TIM3_BKIN
PA6 (HS) / COMP_REF
V
SS
V
DD
NRST / PA1 (HS)
PA2 (HS)
PA3 (HS)
PA4 (HS) / TIM2_BKIN
PD1 (HS) / TIM3_TRIG / COMP1_CH4
PD2 (HS) / / COMP2_CH3
PD3 (HS) / COMP2_CH4
PB0 (HS) / TIM2_CH1 / COMP1_CH1
PB1 (HS) / TIM3_CH1 / COMP1_CH2
PB2 (HS) / TIM2_CH2 / COMP2_CH1
PB3 (HS) / TIM2_TRIG / COMP2_CH2
PD0 (HS) / TIM3_CH2 / COMP1_CH3
PD7 (HS)
PD6 (HS)
PB4 (HS) / SPI_NSS
PB5 (HS) / SPI_SCK
PB7 (HS) / SPI_MISO
PD5 (HS)
PD4 (HS)
PB6 (HS) / SPI_MOSI
PC3 (HS) / USART_TX
PC2 (HS) / USART_RX
PC1 / I²C_SCL
PC0 / I²C_SDA
PA0 (HS) / SWIM / BEEP / IR_TIM
PC6 (HS)
PC5 (HS)
PC4 (HS) / USART_CK / CCO
5
6
7
8
910111213 14 15 16
17
18
19
20
21
22
23
24
32 31 30 29
28 27 26 25
Figure 7.32-pin package pinout
1. Example given for the UFQFPN32 package. The pinout is the same for the LQFP32 package.
2. HS corresponds to 20 mA high sink/source capability.
3. High sink LED driver capability available on PA0. Refer to the description of the IR_CR register in the
STM8L reference manual (RM0013).
Doc ID 15275 Rev 1119/81
Pin descriptionSTM8L101xx
Table 3.Legend/abbreviation for table 4
Typ eI= input, O = output, S = power supply
Level
InputCM = CMOS
OutputHS = high sink/source (20 mA)
Port and control
configuration
Inputfloat = floating, wpu = weak pull-up
OutputT = true open drain, OD = open drain, PP = push pull
Bold X (pin state after reset release).
Reset state
Unless otherwise specified, the pin state is the same during the reset phase (i.e.
“under reset”) and after internal reset release (i.e. at reset state).
SWIM input and output /Beep output/Timer Infrared
20 20 328 28 32
(5)
/SWIM/
PA 0
BEEP/IR_TIM
(6)
I/O XX
(5)
XHS
(6)
XXPort A0
output
1. Please refer to the warning below.
2. At power-up, the PA1/NRST pin is a reset input pin with pull-up. To be used as a general purpose pin (PA1), it can be
configured only as output open-drain or push-pull, not as a general purpose input. Refer to Section Configuring NRST/PA1 pin as general purpose output in the STM8L101xx reference manual (RM0013).
3. A pull-up is applied to PB0 and PB4 during the reset phase. These two pins are input floating after reset release.
4. In the open-drain output column, ‘T’ defines a true open-drain I/O (P-buffer and protection diode to V
implemented).
5. The PA0 pin is in input pull-up during the reset phase and after reset release.
6. High sink LED driver capability available on PA0.
are not
DD
Warning:For the STM8L101F1U6ATR, STM8L101F2U6ATR,
STM8L101F3U6ATR, STM8L101G2U6ATR and
STM8L101G3U6ATR part numbers (devices with COMP_REF
pin), all ports available on 32-pin packages must be
considered as active ports. To avoid spurious effects, you
have to configure them as input pull-up. A small increase in
consumption (typ. < 300 µA) may occur during the power up
and reset phase until these ports are properly configured.
22/81 Doc ID 15275 Rev 11
STM8L101xxMemory and register map
GPIO and peripheral registers
(2)
0x00 0000
Reserved
Flash program memory
(up to 8 Kbytes)
(1)
Interrupt vectors
0x00 4800
0x00 48FF
RAM
0x00 05FF
(1.5 Kbytes)
(1)
(up to 513 bytes)
(1)
0x 004900
Option bytes
0x00 5000
0x00 57FF
0x00 5800
0x00 7FFF
0x00 8000
0x00 9FFF
0x00 0600
0x00 47FF
0x00 49FF
0x00 7EFF
0x00 8080
0x00 807F
CPU/SWIM/Debug/ITC
Registers
0x00 7F00
Reserved
Reserved
including
Stack
including
Data EEPROM
(up to 2 Kbytes)
0x 004925
0x 004931
0x 004924
0x 004930
Unique ID
Reserved
Low-density
5 Memory and register map
Figure 8.Memory map
1. Table 5 lists the boundary addresses for each memory size. The top of the stack is at the RAM end
address.
2. Refer to Table 7 for an overview of hardware register mapping, to Table 6 for details on I/O port hardware
registers, and to Ta b le 8 for information on CPU/SWIM/debug module controller registers.
Doc ID 15275 Rev 1123/81
Memory and register mapSTM8L101xx
Table 5.Flash and RAM boundary addresses
Memory areaSizeStart addressEnd address
RAM1.5 Kbytes0x00 00000x00 05FF
2 Kbytes0x00 80000x00 87FF
Flash program memory
Table 6.I/O Port hardware register map
4 Kbytes0x00 80000x00 8FFF
8 Kbytes0x00 80000x00 9FFF
AddressBlockRegister labelRegister name
0x00 5000
PA_ODRPort A data output latch register 0x00
Reset
status
0x00 5001PA_IDRPort A input pin value register 0xxx
0x00 5002PA_DDRPort A data direction register 0x00
Por t A
0x00 5003PA_CR1Port A control register 1 0x00
0x00 5004PA_CR2Port A control register 2 0x00
0x00 5005
PB_ODRPort B data output latch register 0x00
0x00 5006PB_IDRPort B input pin value register 0xxx
0x00 5007PB_DDRPort B data direction register 0x00
Por t B
0x00 5008PB_CR1Port B control register 1 0x00
0x00 5009PB_CR2Port B control register 2 0x00
0x00 500A
PC_ODRPort C data output latch register 0x00
0x00 500BPC_IDRPort C input pin value register 0xxx
0x00 500CPC_DDRPort C data direction register 0x00
Por t C
0x00 500DPC_CR1Port C control register 1 0x00
0x00 500EPC_CR2Port C control register 2 0x00
0x00 500F
PD_ODRPort D data output latch register 0x00
0x00 5010PD_IDRPort D input pin value register 0xxx
0x00 5011PD_DDRPort D data direction register 0x00
1. Refer to Table 7: General hardware register map on page 25 (addresses 0x00 50A0 to 0x00 50A5) for a
list of external interrupt registers.
Doc ID 15275 Rev 1131/81
Interrupt vector mappingSTM8L101xx
6 Interrupt vector mapping
Source
block
Description
Wakeup
from Halt
mode
Wakeup
from
Active-halt
mode
Wakeup
from Wait
(WFI
mode)
Wakeup
from Wait
(WFE
mode)
Vector
address
Table 9.Interrupt mapping
IRQ
No.
RESETResetYesYesYesYes0x00 8000
TRAPSoftware interrupt----0x00 8004
0Reserved0x00 8008
1FLASH EOP/WR_PG_DIS--YesYes
2-3Reserved----
4AWUAuto wakeup from Halt-YesYesYes
(1)
(1)
0x00 800C
0x00 8010
-0x00 8017
0x00 8018
5Reserved----0x00 801C
6EXTIBExternal interrupt port BYesYesYesYes0x00 8020
7EXTIDExternal interrupt port DYesYesYesYes0x00 8024
8EXTI0External interrupt 0YesYesYesYes0x00 8028
9EXTI1External interrupt 1YesYesYesYes0x00 802C
10EXTI2External interrupt 2YesYesYesYes0x00 8030
11EXTI3External interrupt 3YesYesYesYes0x00 8034
12EXTI4External interrupt 4YesYesYesYes0x00 8038
13EXTI5External interrupt 5YesYesYesYes0x00 803C
14EXTI6External interrupt 6YesYesYesYes0x00 8040
15EXTI7External interrupt 7YesYesYesYes0x00 8044
16Reserved0x00 8048
17Reserved----
18COMPComparators--YesYes
19TIM2
Update
/Overflow/Trigger/Break
--YesYes0x00 8054
(1)
0x00 804C
-0x00 804F
0x00 8050
20TIM2Capture/Compare--YesYes0x00 8058
21TIM3Update /Overflow/Break--YesYes
22TIM3Capture/Compare--YesYes
23-
24
Reserved----
25TIM4Update /Trigger--YesYes
26SPIEnd of TransferYesYesYesYes
(1)
(1)
(1)
(1)
0x00 805C
0x00 8060
0x00 8064-
0x00 806B
0x00 806C
0x00 8070
32/81 Doc ID 15275 Rev 11
STM8L101xxInterrupt vector mapping
Table 9.Interrupt mapping (continued)
IRQ
Source
No.
block
27USART
Description
Transmission
complete/transmit data
Wakeup
from Halt
mode
Wakeup
from
Active-halt
mode
--YesYes
Wakeup
from Wait
(WFI
mode)
Wakeup
from Wait
(WFE
mode)
(1)
Vector
address
0x00 8074
register empty
28USART
Receive Register DATA
FULL/overrun/idle line
--YesYes
(1)
0x00 8078
detected/parity error
29I2CI2C interrupt
1. In WFE mode, this interrupt is served if it has been previously enabled. After processing the interrupt, the processor goes
back to WFE mode. Refer to SectionWait for event (WFE) mode in the RM0013 reference manual.
(2)
Ye sYe sYe sYe s
2. The device is woken up from Halt or Active-halt mode only when the address received matches the interface address.
(1)
0x00 807C
Doc ID 15275 Rev 1133/81
Option bytesSTM8L101xx
7 Option bytes
Option bytes contain configurations for device hardware features as well as the memory
protection of the device. They are stored in a dedicated row of the memory.
All option bytes can be modified only in ICP mode (with SWIM) by accessing the EEPROM
address. See Tab le 1 0 for details on option byte addresses.
Refer to the STM8L Flash programming manual (PM0054) and STM8 SWIM and Debug
Manual (UM0320) for information on SWIM programming procedures.
Table 10.Option bytes
Addr.Option name
Option
byte
No.
7654 3 2 1 0
Option bitsFactory
default
setting
Read-out
0x4800
protection
OPT1ROP[7:0]0x00
(ROP)
0x4807--Must be programmed to 0x000x00
0x4802
UBC (User
Boot code size)
OPT2UBC[7:0]0x00
0x4803DATASIZEOPT3DATASIZE[7:0]0x00
0x4808
Independent
watchdog
option
Table 11.Option byte description
OPT4
[1:0]
Reserved
IWDG
_HALT
IWDG
_HW
0x00
ROP[7:0] Memoryreadout protection (ROP)
OPT1
0xAA: Enable readout protection (write access via SWIM protocol)
Refer to Read-out protection section in the STM8L reference manual
(RM0013) for details.
UBC[7:0] Size of the user boot code area
0x00: no UBC
0x01-0x02: UBC contains only the interrupt vectors.
0x03: Page 0 and 1 reserved for the interrupt vectors. Page 2 is available to
OPT2
store user boot code. Memory is write protected
...
0x7F - Page 0 to 126 reserved for UBC, memory is write protected
Refer to User boot area (UBC) section in the STM8L reference manual
(RM0013) for more details.
34/81 Doc ID 15275 Rev 11
STM8L101xxOption bytes
Table 11.Option byte description (continued)
DATASIZE[7:0] Size of the data EEPROM area
0x00: no data EEPROM area
0x01: 1 page reserved for data storage from 0x9FC0 to 0x9FFF
OPT3
0x02: 2 pages reserved for data storage from 0x9F80 to 0x9FFF
(1)
...
0x20: 32 pages reserved for data storage from 0x9800 to 0x9FFF
Refer to Data EEPROM (DATA) section in the STM8L reference manual
(RM0013) for more details.
IWDG_HW: Independentwatchdog
0: Independent watchdog activated by software
1: Independent watchdog activated by hardware
OPT4
IWDG_HALT: Independent windowwatchdog reset on Halt/Active-halt
0: Independent watchdog continues running in Halt/Active-halt mode
1: Independent watchdog stopped in Halt/Active-halt mode
1. 0x00 is the only allowed value for 4 Kbyte STM8L101xx devices.
(1)
(1)
(1)
(1)
Caution:After a device reset, read access to the program memory is not guaranteed if address
0x4807 is not programmed to 0x00.
Doc ID 15275 Rev 1135/81
Unique IDSTM8L101xx
8 Unique ID
STM8L101xx 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 bytes 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 cryptograhic primitives and protocols
before programming the internal memory
●To activate secure boot processes.
Table 12.Unique ID registers (96 bits)
Address
0x4925
0x4926U_ID[15:8]
0x4927
0x4928U_ID[31:24]
Content
description
X co-ordinate on
the wafer
Y co-ordinate on
the wafer
76543 2 1 0
Unique ID bits
U_ID[7:0]
U_ID[23:16]
0x4929Wafer numberU_ID[39:32]
0x492A
U_ID[47:40]
0x492BU_ID[55:48]
0x492CU_ID[63:56]
0x492DU_ID[71:64]
Lot number
0x492EU_ID[79:72]
0x492FU_ID[87:80]
0x4930U_ID[95:88]
36/81 Doc ID 15275 Rev 11
STM8L101xxElectrical parameters
50 pF
STM8L PIN
9 Electrical parameters
9.1 Parameter conditions
Unless otherwise specified, all voltages are referred to VSS.
9.1.1 Minimum and maximum values
Unless otherwise specified the minimum and maximum values are guaranteed in the worst
conditions of ambient temperature, supply voltage and frequencies by tests in production on
100% of the devices with an ambient temperature at T
the selected temperature range).
= 25 °C and TA = TA max (given by
A
Note:The values given at 85
Data based on characterization results, design simulation and/or technology characteristics
are indicated in the table footnotes and are not tested in production. Based on
characterization, the minimum and maximum values refer to sample tests and represent the
mean value plus or minus three times the standard deviation (mean±3Σ).
9.1.2 Typical values
Unless otherwise specified, typical data are based on TA = 25 °C, V
only as design guidelines and are not tested.
9.1.3 Typical curves
Unless otherwise specified, all typical curves are given only as design guidelines and are
not tested.
9.1.4 Loading capacitor
The loading conditions used for pin parameter measurement are shown in Figure 9.
Figure 9.Pin loading conditions
°C<TA ≤ 125 °C are only valid for suffix 3 versions.
= 3 V. They are given
DD
Doc ID 15275 Rev 1137/81
Electrical parametersSTM8L101xx
V
IN
STM8L PIN
9.1.5 Pin input voltage
The input voltage measurement on a pin of the device is described in Figure 10.
Figure 10. Pin input voltage
9.2 Absolute maximum ratings
Stresses above those listed as “absolute maximum ratings” may cause permanent damage
to the device. This is a stress rating only and functional operation of the device under these
conditions is not implied. Exposure to maximum rating conditions for extended periods may
affect device reliability.
Table 13.Voltage characteristics
SymbolRatingsMinMaxUnit
V
DD
- V
SS
V
IN
External supply voltage -0.34.0
Input voltage on true open drain pins
(PC0 and PC1)
Input voltage on any other pin
(1)
(2)
VSS-0.3VDD + 4.0
VSS-0.34.0
see Absolute maximum
V
ESD
Electrostatic discharge voltage
ratings (electrical sensitivity)
on page 63
1. Positive injection is not possible on these I/Os. VIN maximum must always be respected. I
never be exceeded. A negative injection is induced by V
2. I
must never be exceeded. This is implicitly insured if VIN maximum is respected. If VIN maximum
INJ(PIN)
cannot be respected, the injection current must be limited externally to the I
injection is induced by V
while a negative injection is induced by VIN<VSS.
IN>VDD
IN<VSS
.
INJ(PIN)
INJ(PIN)
value. A positive
V
must
38/81 Doc ID 15275 Rev 11
STM8L101xxElectrical parameters
Table 14.Current characteristics
SymbolRatings Max.Unit
I
VDD
I
VSS
I
IO
Total current into V
Total current out of V
Output current sunk by IR_TIM pin (with high sink LED
driver capability)
power line (source)80
DD
ground line (sink)80
SS
80
Output current sunk by any other I/O and control pin25
Output current sourced by any I/Os and control pin-25
INJ(PIN)
ΣI
INJ(PIN)
1. Positive injection is not possible on these I/Os. VIN maximum must always be respected. I
never be exceeded. A negative injection is induced by VIN<VSS.
2. I
must never be exceeded. This is implicitly insured if VIN maximum is respected. If VIN maximum
INJ(PIN)
cannot be respected, the injection current must be limited externally to the I
injection is induced by V
3. When several inputs are submitted to a current injection, the maximum ΣI
positive and negative injected currents (instantaneous values). These results are based on
characterization with ΣI
Table 15.Thermal characteristics
Injected current on any other pin
Total injected current (sum of all I/O and control pins)
while a negative injection is induced by VIN<VSS.
IN>VDD
maximum current injection on four I/O port pins of the device.
INJ(PIN)
(2)
Injected current on true open-drain pins (PC0 and PC1)
I
(1)
(3)
value. A positive
INJ(PIN)
is the absolute sum of the
INJ(PIN)
-5
±5
±25
INJ(PIN)
must
SymbolRatingsValueUnit
T
STG
T
Storage temperature range-65 to +150
Maximum junction temperature150
J
mA
° C
Doc ID 15275 Rev 1139/81
Electrical parametersSTM8L101xx
9.3 Operating conditions
Subject to general operating conditions for VDD and TA.
9.3.1 General operating conditions
Table 16.General operating conditions
SymbolParameter ConditionsMinMaxUnit
f
MASTER
V
DD
Master clock frequency 1.65 V ≤ V
Standard operating voltage1.653.6V
< 3.6 V216MHz
DD
(1)
LQFP32-288
UFQFPN32-288
Power dissipation at TA= 85 °C
for suffix 6 devices
UFQFPN28-250
TSSOP20-181
(2)
P
D
UFQFPN20-196
LQFP32-83
UFQFPN32-185
Power dissipation at T
for suffix 3 devices
= 125 °C
A
UFQFPN28-62
TSSOP20-45
UFQFPN20-49
T
A
T
J
1. f
MASTER
2. To calculate P
Θ
in table “Thermal characteristics”
JA
Temperature range
Junction temperature range
= f
CPU
Dmax(TA
1.65 V ≤ V
(6 suffix version)
1.65 V ≤ V
(3 suffix version)
-40 °C ≤ T
(6 suffix version)
-40 °C ≤ T
(3 suffix version)
) use the formula given in thermal characteristics P
Dmax
< 3.6 V
DD
< 3.6 V
DD
≤ 85 °C
A
≤ 125 °C
A
=(T
-TA)/ΘJA with T
Jmax
− 4085
− 40125
- 40105°C
− 40130°C
in this table and
Jmax
mW
°C
40/81 Doc ID 15275 Rev 11
STM8L101xxElectrical parameters
9.3.2 Power-up / power-down operating conditions
Table 17.Operating conditions at power-up / power-down
SymbolParameterConditionsMinTyp
MaxUnit
t
V
V
t
VDD
TEMP
POR
PDR
VDD rise time rate 20-1300µs/V
Reset release delayVDD rising-1-ms
Power on reset
(1)
threshold
Power down reset
(1)
threshold
1. Data based on characterization results, not tested in production.
2. Data guaranteed, each individual device tested in production.
1. Based on characterization results, unless otherwise specified.
2. Maximum values are given for TA = -40 to 125 °C.
DD(WAIT)
vs. VDD, f
CPU not clocked,
all peripherals off,
HSI internal RC osc.
= 2 MHzFigure 14. I
CPU
f
f
f
MASTER
= 2 MHz245400
MASTER
= 4 MHz300450
MASTER
= 8 MHz380600
MASTER
= 16 MHz510800
DD(WAIT)
vs. VDD,f
CPU
(2)
= 16 MHz
Unit
µA
1. Typical current consumption measured with code executed from Flash.
Doc ID 15275 Rev 1143/81
Electrical parametersSTM8L101xx
ai17014b
0
1
2
3
4
5
6
7
1.62.12.63.13.6
V
DD
[V]
I
DD(HALT)
[µA]
-40°C
25°C
85°C
125°C
Table 20.Total current consumption and timing in Halt and Active-halt mode at
V
= 1.65 V to 3.6 V
DD
SymbolParameterConditionsTypMax Unit
I
DD(AH)
I
DD(WUFAH)
t
WU(AH)
I
DD(Halt)
I
DD(WUFH)
Supply current in Active-halt
mode
Supply current during
wakeup time from Active-halt
mode
Wakeup time from Active-
(3)
halt mode to Run mode
Supply current in Halt mode
Supply current during
wakeup time from Halt mode
(1)(2)
T
= -40 °C to 25 °C 0.82μA
A
= 55 °C12.5μA
T
LSI RC osc.
(at 37 kHz)
= 16 MHz46.5μs
f
CPU
A
= 85 °C1.43.2μA
T
A
T
= 105 °C2.97.5μA
A
= 125 °C5.813μA
T
A
TA = -40 °C to 25 °C0.35 1.2
T
= 55 °C0.61.8μA
A
= 85 °C12.5
T
A
= 105 °C2.56.5μA
T
A
T
= 125 °C5.412
A
2-mA
(4)
μA
(4)
μA
(4)
μA
2-mA
Wakeup time from Halt mode
t
1. T
(3)
WU(Halt)
= -40 to 125 °C, no floating I/O, unless otherwise specified.
A
to Run mode
= 16 MHz4 6.5μs
f
CPU
2. Data based on characterization results, not tested in production.
3. Measured from interrupt event to interrupt vector fetch.
To get tWU for another CPU frequency use tWU(FREQ) = tWU(16 MHz) + 1.5 (T
The first word of interrupt routine is fetched 5 CPU cycles after t
WU
.
FREQ-T16 MHz
).
4. Data guaranteed, each individual device tested in production.
Figure 15. Typ. I
DD(Halt)
vs. V
DD, fCPU
= 2 MHz and 16 MHz
1. Typical current consumption measured with code executed from Flash.
44/81 Doc ID 15275 Rev 11
STM8L101xxElectrical parameters
Current consumption of on-chip peripherals
Measurement made for f
Table 21.Peripheral current consumption
MASTER
SymbolParameterTyp. V
I
DD(TIM2)
I
DD(TIM3)
I
DD(TIM4)
I
DD(USART)
I
DD(SPI)
I
DD(I²C1)
I
DD(COMP)
TIM2 supply current
TIM3 supply current
TIM4 timer supply current
USART supply current
SPI supply current
I2C supply current
Comparator supply current
= from 2 MHz to 16 MHz
(1)
(1)
(1)
(2)
(2)
(2)
(2)
= 3.0 VUnit
DD
9
9
4
µA/MHz
7
4
4
20µA
1. Data based on a differential IDD measurement between all peripherals off and a timer counter running at
16 MHz. The CPU is in Wait mode in both cases. No IC/OC programmed, no I/O pin toggling. Not tested in
production.
2. Data based on a differential IDD measurement between the on-chip peripheral when kept under reset and
not clocked and the on-chip peripheral when clocked and not kept under reset. The CPU is in Wait mode in
both cases. No I/O pin toggling. Not tested in production.
Figure 17. Typical HSI accuracy vs. temperature, VDD = 3 V
Figure 18. Typical HSI accuracy vs. temperature, V
= 1.65 V to 3.6 V
DD
Low speed internal RC oscillator (LSI)
Table 23.LSI oscillator characteristics
SymbolParameterConditionsMinTypMaxUnit
(1)
f
f
drift(LSI)
1. V
2. For each individual part, this value is the frequency drift from the initial measured frequency.
Frequency 263856kHz
LSI
LSI oscillator frequency
(2)
drift
= 1.65 V to 3.6 V, TA = -40 to 125 °C unless otherwise specified.
DD
0 °C ≤ TA ≤ 85 °C-12-11%
Doc ID 15275 Rev 1147/81
Electrical parametersSTM8L101xx
ai17012b
25
27
29
31
33
35
37
39
41
43
45
1.62.12.63.13.6
V
DD
[V]
LSI frequency [MHz]
-40°C
25°C
85°C
125°C
Figure 19. Typical LSI RC frequency vs. V
DD
48/81 Doc ID 15275 Rev 11
STM8L101xxElectrical parameters
9.3.5 Memory characteristics
TA = -40 to 125 °C unless otherwise specified.
Table 24.RAM and hardware registers
SymbolParameter ConditionsMinTypMaxUnit
V
RM
Data retention mode
1. Minimum supply voltage without losing data stored in RAM (in Halt mode or under Reset) or in hardware
registers (only in Halt mode). Guaranteed by characterization, not tested in production.
Flash memory
(1)
Halt mode (or Reset)1.4--V
Table 25.Flash program memory
SymbolParameter ConditionsMin Typ
V
t
I
t
Operating voltage
DD
(all modes, read/write/erase)
Programming time for 1- or 64-byte (block)
erase/write cycles (on programmed byte)
prog
Programming time for 1- to 64-byte (block)
write cycles (on erased byte)
Programming/ erasing consumption
prog
Data retention (program memory)
after 10k erase/write cycles
= +85 °C
at T
A
Data retention (data memory)
after 10k erase/write cycles
RET
f
= 16 MHz1.65-3.6V
MASTER
-6-ms
-3-ms
T
=+25 °C, VDD = 3.0 V-
A
=+25 °C, VDD = 1.8 V--
T
A
T
= 55 °C20
RET
T
= 55 °C20
RET
(1)
(1)
at TA = +85 °C
Data retention (data memory)
after 300k erase/write cycles
= +125 °C
at T
A
Erase/write cycles (program memory)See notes
N
RW
Erase/write cycles
(data memory)See notes
T
= 85 °C1
RET
(1)(2)
(1)(3)
10
300
(1)
(1)
(1)(4)
Max
(1)
-
0.7
--
--
--
--
--
Unit
mA
years
kcycles
1. Data based on characterization results, not tested in production.
2. Retention guaranteed after cycling is 10 years at 55 °C.
3. Retention guaranteed after cycling is 1 year at 55 °C.
4. Data based on characterization performed on the whole data memory (2 Kbytes).
Doc ID 15275 Rev 1149/81
Electrical parametersSTM8L101xx
9.3.6 I/O port pin characteristics
General characteristics
Subject to general operating conditions for VDD and TA unless otherwise specified. All
unused pins must be kept at a fixed voltage: using the output mode of the I/O for example or
an external pull-up or pull-down resistor.
Table 26.I/O static characteristics
SymbolParameterConditionsMinTyp
(1)
MaxUnit
V
V
V
I
Input low level voltage
IL
Input high level voltage
IH
Schmitt trigger voltage hysteresis
hys
Input leakage current
lkg
(2)
(2)
(4)
Standard I/OsVSS-0.3-0.3 x V
True open drain I/OsV
Standard I/Os0.70 x V
-0.3-0.3 x V
SS
DD
-VDD+0.3
True open drain I/Os
V
< 2 V
DD
True open drain I/Os
≥ 2 V
V
DD
Standard I/Os-200-
(3)
0.70 x V
DD
-
True open drain I/Os-250-
V
≤ VIN≤ V
SS
Standard I/Os
V
SS
True open drain I/Os
V
SS
PA0 with high sink LED
≤ VIN≤ V
≤ VIN≤ V
DD
DD
DD
--50
--200
--200
driver capability
R
C
IO
Weak pull-up equivalent resistor
PU
(7)
I/O pin capacitance-5-pF
1. VDD = 3.0 V, TA = -40 to 85 °C unless otherwise specified.
2. Data based on characterization results, not tested in production.
3. Hysteresis voltage between Schmitt trigger switching levels. Based on characterization results, not tested.
4. The max. value may be exceeded if negative current is injected on adjacent pins.
5. Not tested in production.
pull-up equivalent resistor based on a resistive transistor (corresponding I
6. R
PU
Figure 22).
7. Data guaranteed by Design, not tested in production.
Figure 23. Typical pull-up current IPU vs. VDD with VIN=V
SS
52/81 Doc ID 15275 Rev 11
STM8L101xxElectrical parameters
Output driving current
Subject to general operating conditions for V
Table 27.Output driving current (standard ports)
I/O
SymbolParameterConditionsMinMaxUnit
Typ e
Output low level voltage for an I/O pin
(1)
V
OL
Standard
(2)
V
OH
Output high level voltage for an I/O pin
and TA unless otherwise specified.
DD
= +2 mA,
I
IO
V
= 3.0 V
DD
I
= +2 mA,
IO
V
= 1.8 V
DD
= +10 mA,
I
IO
= 3.0 V
V
DD
I
= -2 mA,
IO
V
= 3.0 V
DD
I
= -1 mA,
IO
V
= 1.8 V
DD
= -10 mA,
I
IO
V
= 3.0 V
DD
-0.45V
-0.45V
-1.2V
V
-0.45-V
DD
-0.45-V
V
DD
-1.2-V
V
DD
1. The IIO current sunk must always respect the absolute maximum rating specified in Table 14 and the sum
of I
(I/O ports and control pins) must not exceed I
IO
VSS
.
2. The IIO current sourced must always respect the absolute maximum rating specified in Table 14 and the
sum of I
(I/O ports and control pins) must not exceed I
IO
VDD
.
Table 28.Output driving current (true open drain ports)
I/O
SymbolParameterConditionsMinMaxUnit
Type
I
= +3 mA,
IO
V
= 3.0 V
(1)
V
Output low level voltage for an I/O pin
OL
Open drain
1. The IIO current sunk must always respect the absolute maximum rating specified in Table 14 and the sum
of IIO (I/O ports and control pins) must not exceed I
VSS
.
DD
= +1 mA,
I
IO
V
DD
= 1.8 V
-0.45V
-0.45V
Table 29.Output driving current (PA0 with high sink LED driver capability)
I/O
SymbolParameterConditionsMinMaxUnit
Type
= +20 mA,
(1)
V
IR
1. The IIO current sunk must always respect the absolute maximum rating specified in Table 14 and the sum
of IIO (I/O ports and control pins) must not exceed I
The reset network shown in Figure 32 protects the device against parasitic resets. The user
must ensure that the level on the NRST pin can go below the V
max. level specified in
IL
Ta bl e 3 0 . Otherwise the reset is not taken into account internally. For power consumption-
sensitive applications, the capacity of the external reset capacitor can be reduced to limit the
charge/discharge current. If the NRST signal is used to reset the external circuitry, the user
must pay attention to the charge/discharge time of the external capacitor to meet the reset
timing conditions of the external devices. The minimum recommended capacity is 10 nF
Figure 32. Recommended NRST pin configuration
56/81 Doc ID 15275 Rev 11
STM8L101xxElectrical parameters
9.3.7 Communication interfaces
Serial peripheral interface (SPI)
Unless otherwise specified, the parameters given in Ta bl e 3 1 are derived from tests
performed under ambient temperature, f
conditions summarized in Section 9.3.1. Refer to I/O port characteristics for more details on
the input/output alternate function characteristics (NSS, SCK, MOSI, MISO).
Table 31.SPI characteristics
SymbolParameterConditions
MASTER
frequency and VDD supply voltage
(1)
MinMaxUnit
f
SCK
1/t
c(SCK)
t
r(SCK)
t
f(SCK)
t
su(NSS)
t
h(NSS)
t
w(SCKH)
t
w(SCKL)
t
su(MI)
t
su(SI)
t
h(MI)
t
h(SI)
t
a(SO)
t
dis(SO)
t
v(SO)
t
v(MO)
t
h(SO)
t
h(MO)
(2)
(2)
(2)
(2)
(2)
(2)
(2)
(2)
(2)(3)
(2)(4)
(2)
(2)
(2)
(2)
SPI clock frequency
Master mode 08
Slave mode08
SPI clock rise and fall time Capacitive load: C = 30 pF-30
NSS setup time Slave mode4 x T
MASTER
NSS hold timeSlave mode80-
SCK high and low time
Master mode,
MASTER
= 8 MHz, f
f
SCK
= 4 MHz
105145
Master mode30-
Data input setup time
Slave mode3-
Master mode15-
Data input hold time
Slave mode0-
Data output access timeSlave mode-3x T
MASTER
Data output disable timeSlave mode30-
Data output valid timeSlave mode (after enable edge)-60
Data output valid time
Master mode
(after enable edge)
-20
Slave mode (after enable edge)15-
Data output hold time
Master mode
(after enable edge)
1-
MHz
-
ns
1. Parameters are given by selecting 10-MHz I/O output frequency.
2. Values based on design simulation and/or characterization results, and not tested in production.
3. Min time is for the minimum time to drive the output and max time is for the maximum time to validate the data.
4. Min time is for the minimum time to invalidate the output and max time is for the maximum time to put the data in Hi-Z.
1. Measurement points are done at CMOS levels: 0.3V
t
v(SO)
t
t
h(SI)
DD
c(SCK)
and 0.7V
BI T6 O UT
BIT1 IN
DD.
(1)
t
h(SO)
t
h(NSS)
t
r(SCK)
t
f(SCK)
LSB IN
t
dis(SO)
LSB OUT
ai14135
58/81 Doc ID 15275 Rev 11
STM8L101xxElectrical parameters
ai14136
SCK Input
CPHA=0
MOSI
OUTUT
MISO
INP UT
CPHA=0
MSBIN
M SB OUT
BIT6 IN
LSB OUT
LSB IN
CPOL=0
CPOL=1
B I T1 OUT
NSS input
t
c(SCK)
t
w(SCKH)
t
w(SCKL)
t
r(SCK)
t
f(SCK)
t
h(MI)
High
SCK Input
CPHA=1
CPHA=1
CPOL=0
CPOL=1
t
su(MI)
t
v(MO)
t
h(MO)
Figure 35. SPI timing diagram - master mode
(1)
1. Measurement points are done at CMOS levels: 0.3V
and 0.7V
DD
DD.
Doc ID 15275 Rev 1159/81
Electrical parametersSTM8L101xx
Inter IC control interface (I2C)
Subject to general operating conditions for VDD,
The STM8L I
2
C interface meets the requirements of the Standard I2C communication
f
MASTER
, and TA unless otherwise specified.
protocol described in the following table with the restriction mentioned below:
Refer to I/O port characteristics for more details on the input/output alternate function
characteristics (SDA and SCL).
Table 32.I2C characteristics
Standard mode
SymbolParameter
t
w(SCLL)
t
w(SCLH)
t
su(SDA)
t
h(SDA)
t
r(SDA)
t
r(SCL)
t
f(SDA)
t
f(SCL)
t
h(STA)
t
su(STA)
t
su(STO)
t
w(STO:STA)
C
1. f
SCK
Data based on standard I
2.
The maximum hold time of the START condition has only to be met if the interface does not stretch the low
3.
period of SCL signal.
The device must internally provide a hold time of at least 300 ns for the SDA signal in order to bridge the
4.
undefined region of the falling edge of SCL
SCL clock low time4.7-1.3 -
SCL clock high time4.0-0.6 -
SDA setup time250-100 -
SDA data hold time0
SDA and SCL rise time-1000-300
SDA and SCL fall time-300-300
START condition hold time4.0-0.6-
Repeated START condition setup
time
STOP condition setup time4.0-0.6 -μs
STOP to START condition time
(bus free)
Capacitive load for each bus line-400-400pF
b
must be at least 8 MHz to achieve max fast I2C speed (400 kHz).
2
C protocol requirement, not tested in production.
).
I2C
(2)
Min
Max
(3)
4.7 - 0.6 -
4.7-1.3-μs
Fast mode I2C
(2)
-0
Min
(2)
(4)
Max
900
(1)
(2)
(3)
Unit
μs
ns
μs
Note:For speeds around 200 kHz, achieved speed can have ± 5% tolerance
For other speed ranges, achieved speed can have
±
2% tolerance
The above variations depend on the accuracy of the external components used.
60/81 Doc ID 15275 Rev 11
STM8L101xxElectrical parameters
REPEATED START
START
STOP
START
t
f(SDA)
t
r(SDA)
t
su(SDA)th(SDA)
t
f(SCL)
t
r(SCL)
t
w(SCLL)
t
w(SCLH)
t
h(STA)
t
su(STO)
t
su(STA)tw(STO:STA)
SDA
SCL
4.7kΩ
SDA
STM8L
SCL
V
DD
100Ω
100Ω
V
DD
4.7kΩ
I2CBUS
Figure 36.
Typical application with I2C bus and timing diagram
1. Measurement points are done at CMOS levels: 0.3 x VDD and 0.7 x V
9.3.8 Comparator characteristics
V
offset
t
START
Comparator external reference-0.1-VDD-1.25V
IN
(2)
Comparator input voltage range-0.25-VDD+0.25V
Comparator offset error--± 20mV
Startup time (after BIAS_EN)--3
Analog comparator consumption--25
Analog comparator consumption
during power-down
Table 33.Comparator characteristics
SymbolParameter ConditionsMin
V
IN(COMP_REF)
V
I
DD(COMP)
1)
DD
(1)
TypMax
--60
(1)
(1)
(1)
(1)
Unit
µs
µA
nA
100-mV input step
with 5-mV overdrive,
--2
t
propag
(2)
Comparator propagation delay
input rise time = 1 ns
1. Data guaranteed by design, not tested in production.
2. The comparator accuracy depends on the environment. In particular, the following cases may reduce the accuracy of the
comparator and must be avoided:
- Negative injection current on the I/Os close to the comparator inputs
- Switching on I/Os close to the comparator inputs
- Negative injection current on not used comparator input.
- Switching with a high dV/dt on not used comparator input.
These phenomena are even more critical when a big external serial resistor is added on the inputs.
Doc ID 15275 Rev 1161/81
(1)
µs
Electrical parametersSTM8L101xx
9.3.9 EMC characteristics
Susceptibility tests are performed on a sample basis during product characterization.
Functional EMS (electromagnetic susceptibility)
Based on a simple running application on the product (toggling 2 LEDs through I/O ports),
the product is stressed by two electromagnetic events until a failure occurs (indicated by the
LEDs).
●ESD: Electrostatic discharge (positive and negative) is applied on all pins of the device
until a functional disturbance occurs. This test conforms with the IEC 61000-4-2
standard.
●FTB: A burst of fast transient voltage (positive and negative) is applied to V
through a 100 pF capacitor, until a functional disturbance occurs. This test conforms
with the IEC 61000-4-4 standard.
A device reset allows normal operations to be resumed. The test results are given in the
table below based on the EMS levels and classes defined in application note AN1709.
Designing hardened software to avoid noise problems
EMC characterization and optimization are performed at component level with a typical
application environment and simplified MCU software. It should be noted that good EMC
performance is highly dependent on the user application and the software in particular.
and VSS
DD
Therefore it is recommended that the user applies EMC software optimization and
prequalification tests in relation with the EMC level requested for his application.
Prequalification trials:
Most of the common failures (unexpected reset and program counter corruption) can be
reproduced by manually forcing a low state on the NRST pin or the oscillator pins for 1
second.
To complete these trials, ESD stress can be applied directly on the device, over the range of
specification values. When unexpected behavior is detected, the software can be hardened
to prevent unrecoverable errors occurring (see application note AN1015).
Table 34.EMS data
SymbolParameterConditions
V
Voltage limits to be applied on any I/O pin to
FESD
induce a functional disturbance
Fast transient voltage burst limits to be
V
applied through 100 pF on VDD and V
EFTB
SS
pins to induce a functional disturbance
LQFP32, V
LQFP32, V
LQFP32, V
= 3.3 V3B
DD
= 3.3 V, f
DD
= 3.3 V, f
DD
HSI
/24A
HSI
Level/
Class
3B
62/81 Doc ID 15275 Rev 11
STM8L101xxElectrical parameters
Electromagnetic interference (EMI)
Based on a simple application running on the product (toggling 2 LEDs through the I/O
ports), the product is monitored in terms of emission. This emission test is in line with the
norm SAE J 1752/3 which specifies the board and the loading of each pin.
Table 35.EMI data
(1)
Max vs.
Unit
16 MHz
dBμV30 MHz to 130 MHz-6
SymbolParameterConditions
V
= 3.6 V,
DD
TA = +25 °C,
EMI
Peak level
S
LQFP32
conforming to
IEC61967-2
Monitored
frequency band
0.1 MHz to 30 MHz-3
130 MHz to 1 GHz-5
SAE EMI Level1-
1. Not tested in production.
Absolute maximum ratings (electrical sensitivity)
Based on two different tests (ESD and LU) using specific measurement methods, the
product is stressed in order to determine its performance in terms of electrical sensitivity.
For more details, refer to the application note AN1181.
Electrostatic discharge (ESD)
Electrostatic discharges (a positive then a negative pulse separated by 1 second) are
applied to the pins of each sample according to each pin combination. The sample size
depends on the number of supply pins in the device (3 parts*(n+1) supply pin).
This test conforms to the JESD22-A114A/A115A standard.
Table 36.ESD absolute maximum ratings
SymbolRatingsConditions
V
ESD(HBM)
V
ESD(CDM)
Electrostatic discharge voltage
(human body model)
Electrostatic discharge voltage
(charge device model)
= +25 °C
T
A
Maximum
(1)
value
2000
500
Unit
V
1. Data based on characterization results, not tested in production.
Doc ID 15275 Rev 1163/81
Electrical parametersSTM8L101xx
Static latch-up
●LU: 2 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.
Table 37.Electrical sensitivities
SymbolParameterClass
LUStatic latch-up classII
9.4 Thermal characteristics
The maximum chip junction temperature (T
) must never exceed the values given in
Jmax
Table 16: General operating conditions on page 40.
The maximum chip-junction temperature, T
, in degrees Celsius, may be calculated
Jmax
using the following equation:
T
Jmax
= T
Amax
+ (P
Dmax
x ΘJA)
Where:
●T
●Θ
●P
●P
is the maximum ambient temperature in °C
Amax
is the package junction-to-ambient thermal resistance in °C/W
JA
is the sum of P
Dmax
is the product of I
INTmax
INTmax
DD
and P
I/Omax (PDmax
and VDD, expressed in watts. This is the maximum chip
internal power.
●P
represents the maximum power dissipation on output pins
I/Omax
where:
P
I/Omax =
taking into account the actual V
Σ (VOL*IOL) + Σ((VDD-V
OH)*IOH
OL/IOL and VOH/IOH
),
the application.
= P
INTmax
+ P
I/Omax
)
of the I/Os at low and high level in
64/81 Doc ID 15275 Rev 11
STM8L101xxElectrical parameters
Table 38.Thermal characteristics
(1)
SymbolParameterValueUnit
Thermal resistance junction-ambient
LQFP 32 - 7 x 7 mm
Thermal resistance junction-ambient
UFQFPN 32 - 5 x 5 mm
Θ
JA
Thermal resistance junction-ambient
UFQFPN 28 - 4 x 4 mm
Thermal resistance junction-ambient
UFQFPN 20 - 3 x 3 mm - 0.6 mm
Thermal resistance junction-ambient
TSSOP 20
1. Thermal resistances are based on JEDEC JESD51-2 with 4-layer PCB in a natural convection
environment.
60°C/W
25°C/W
80°C/W
102°C/W
110°C/W
Doc ID 15275 Rev 1165/81
Package characteristicsSTM8L101xx
10 Package characteristics
10.1 ECOPACK
In order to meet environmental requirements, ST offers these devices in different grades of
ECOPACK® packages, depending on their level of environmental compliance. ECOPACK®
specifications, grade definitions and product status are available at: www.st.com.
ECOPACK® is an ST trademark.
66/81 Doc ID 15275 Rev 11
STM8L101xxPackage characteristics
Seating plane
ddd C
C
A3
A1
A
D
e
9
16
17
24
32
Pin # 1 ID
R = 0.30
8
E
L
L
D2
1
b
E2
A0B8_ME
Bottom view
10.2 Package mechanical data
Figure 37. UFQFPN32 - 32-lead ultra thin fine pitch
quad flat no-lead package outline
(1)(2)(3)
(5x5)
Figure 38. UFQFPN32 recommended
footprint
(1)(4)
1. Drawing is not to scale.
2. All leads/pads should be soldered to the PCB to improve the lead/pad solder joint life.
3. There is an exposed die pad on the underside of the UFQFPN package. It is recommended to connect and solder this backside pad to PCB ground.
4. Dimensions are in millimeters.
Table 39.UFQFPN32 - 32-lead ultra thin fine pitch quad flat no-lead package (5 x 5),
package mechanical data
mminches
Dim.
MinTypMaxMinTypMax
A0.50.550.60.01970.02170.0236
A10.000.020.0500.00080.0020
A30.1520.006
b0.180.230.280.00710.00910.0110
D4.905.005.100.19290.19690.2008
D23.500.1378
E4.905.005.100.19290.19690.2008
E23.403.503.600.13390.13780.1417
e0.5000.0197
Doc ID 15275 Rev 1167/81
(1)
Package characteristicsSTM8L101xx
Table 39.UFQFPN32 - 32-lead ultra thin fine pitch quad flat no-lead package (5 x 5),
package mechanical data (continued)
mminches
Dim.
MinTypMaxMinTypMax
L0.300.400.500.01180.01570.0197
ddd0.080.0031
Number of pins
N32
1. Values in inches are converted from mm and rounded to 4 decimal digits.
1. Values in inches are converted from mm and rounded to 4 decimal digits.
Number of pins
Doc ID 15275 Rev 1169/81
Package characteristicsSTM8L101xx
A0B0_ME
15
21
22
28
1
7
D
e
b
e
E
dddddd
L1
14
L2
A1
A
A3
Figure 41. UFQFPN28 - 28-lead ultra thin fine pitch
quad flat no-lead package outline (4 x 4)
Figure 42. UFQFPN28 recommended
(1)
footprint
(1)(2)
1. Drawing is not to scale
2. Dimensions are in millimeters
Table 41.UFQFPN28 - 28-lead ultra thin fine pitch quad flat no-lead package (4 x 4),
package mechanical data
mminches
Dim.
MinTypMaxMinTypMax
(1)
A0.50.550.60.01970.02170.0236
A100.020.0500.00080.002
A30.1520.0060
b0.180.250.30.00710.00980.0118
D40.1575
E40.1575
e0.50.0197
L10.250.350.450.00980.01380.0177
L20.30.40.50.01180.01570.0197
ddd0.080.0031
N28
1. Values in inches are converted from mm and rounded to 4 decimal digits.
70/81 Doc ID 15275 Rev 11
Number of pins
STM8L101xxPackage characteristics
11
15
1620
1
5
D
e
b
e
E
A1
A
ddd
A0A5_ME
L2
10
L1
A3
L3
L4
BJ
Figure 43. UFQFPN20 3 x 3 mm 0.6 mm package
outline
(1)
1. Drawing is not to scale
2. Dimensions are in millimeters
Figure 44. UFQFPN20 recommended
footprint
(1)(2)
Table 42.UFQFPN20 3 x 3 mm 0.6 mm mechanical data
Symbol
millimeters
inches
(1)
MinTypMaxMinTypMax
D2.9003.0003.1000.1181
E2.9003.0003.1000.1181
A0.5000.5500.6000.01970.02170.0236
A100.0200.05000.00080.002
A30.1520.006
e0.5000.0197
L10.5000.5500.6000.01970.02170.0236
L20.3000.3500.4000.01180.01380.0157
L30.1500.0059
L40.2000.0079
b0.1800.2500.3000.00710.00980.0118
ddd0.0500.002
1. Values in inches are rounded to 4 decimal digits
Doc ID 15275 Rev 1171/81
Package characteristicsSTM8L101xx
TSSOP20-M
1
20
CP
c
L
EE1
D
A2
A
α
eb
10
11
A1
L1
BJ
Figure 45. TSSOP20 - 20-lead thin shrink small
package outline
(1)
Figure 46. TSSOP20 recommended
1. Drawing is not to scale
2. Dimensions are in millimeters
Table 43.20-lead thin shrink small package, mechanical data
mminches
Dim.
MinTypMaxMinTypMax
footprint
(1)(2)
(1)
A1.20.0472
A10.050.150.0020.0059
A20.811.050.03150.03940.0413
b0.190.30.00750.0118
CP0.10.0039
c0.090.20.00350.0079
D6.46.56.60.2520.25590.2598
E6.26.46.60.24410.2520.2598
E14.34.44.50.16930.17320.1772
e-0.65-0.16930.0256-
L0.450.60.750.16930.02360.0295
L110.0394
a0°8°0°8°
N20
1. Values in inches are converted from mm and rounded to 4 decimal digits.
Number of pins
72/81 Doc ID 15275 Rev 11
STM8L101xxDevice ordering information
STM8L101F3U6ATR
Product class
STM8 microcontroller
Pin count
K = 32 pins
G = 28 pins
F = 20 pins
Package
U = UFQFPN
T = LQFP
P = TSSOP
Example:
Sub-family type
101 = sub-family
Family type
L = Low power
Temperature range
3 = -40 °C to 125 °C
6 = -40 °C to 85 °C
Program memory size
1 = 2 Kbytes
2 = 4 Kbytes
3 = 8 Kbytes
COMP_REF availability on UFQFPN20 and UFQFPN28
A = COMP_REF available
Blank = COMP_REF not available
Shipping
TR = Tape and reel
Blank = Tray
11 Device ordering information
Figure 47. STM8L101xx ordering information scheme
1. For a list of available options (e.g. 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 ST Sales Office nearest to
you.
Doc ID 15275 Rev 1173/81
STM8 development toolsSTM8L101xx
12 STM8 development tools
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.
12.1 Emulation and in-circuit debugging tools
The STice emulation system offers a complete range of emulation and in-circuit debugging
features on a platform that is designed for versatility and cost-effectiveness. In addition,
STM8 application development is supported by a low-cost in-circuit debugger/programmer.
The STice is the fourth generation of full featured emulators from STMicroelectronics. It
offers new advanced debugging capabilities including profiling and coverage to help detect
and eliminate bottlenecks in application execution and dead code when fine tuning an
application.
In addition, STice offers in-circuit debugging and programming of STM8 microcontrollers via
the STM8 single wire interface module (SWIM), which allows non-intrusive debugging of an
application while it runs on the target microcontroller.
For improved cost effectiveness, STice is based on a modular design that allows you to
order exactly what you need to meet your development requirements and to adapt your
emulation system to support existing and future ST microcontrollers.
STice key features
●Occurrence and time profiling and code coverage (new features)
●Program and data trace recording up to 128 KB records
●Read/write on the fly of memory during emulation
●In-circuit debugging/programming via SWIM protocol
●8-bit probe analyzer
●Power supply follower managing application voltages between 1.62 to 5.5 V
●Modularity that allows you to specify the components you need to meet your
development requirements and adapt to future requirements
●Supported by free software tools that include integrated development environment
(IDE), programming software interface and assembler for STM8.
74/81 Doc ID 15275 Rev 11
STM8L101xxSTM8 development tools
12.2 Software tools
STM8 development tools are supported by a complete, free software package from
STMicroelectronics that includes ST Visual Develop (STVD) IDE and the ST Visual
Programmer (STVP) software interface. STVD provides seamless integration of the Cosmic
and Raisonance C compilers for STM8. A free version that outputs up to 32 Kbytes of code
is available.
12.2.1 STM8 toolset
STM8 toolset with STVD integrated development environment and STVP programming
software is available for free download at www.st.com/mcu. This package includes:
ST Visual Develop – Full-featured integrated development environment from ST, 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
ST Visual Programmer (STVP) – Easy-to-use, unlimited graphical interface allowing read,
write and verify of your STM8 microcontroller’s Flash program memory, data EEPROM and
option bytes. STVP also offers project mode for saving programming configurations and
automating programming sequences.
12.2.2 C and assembly toolchains
Control of C and assembly toolchains is seamlessly integrated into the STVD integrated
development environment, making it possible to configure and control the building of your
application directly from an easy-to-use graphical interface.
Available toolchains include:
●Cosmic C compiler for STM8 – One free version that outputs up to 32 Kbytes of code
is available. For more information, see www.cosmic-software.com.
●Raisonance C compiler for STM8 – One free version that outputs up to 32 Kbytes of
code. For more information, see www.raisonance.com.
●STM8 assembler linker – Free assembly toolchain included in the STVD toolset,
which allows you to assemble and link your application source code.
12.3 Programming tools
During the development cycle, STice provides in-circuit programming of the STM8 Flash
microcontroller on your application board via the SWIM protocol. Additional tools are to
include a low-cost in-circuit programmer as well as ST socket boards, which provide
dedicated programming platforms with sockets for programming your STM8.
For production environments, programmers will include a complete range of gang and
automated programming solutions from third-party tool developers already supplying
programmers for the STM8 family.
Doc ID 15275 Rev 1175/81
Revision historySTM8L101xx
13 Revision history
Table 44.Document revision history
DateRevisionChanges
19-Dec-20081Initial release.
Added TSSOP28 package
Modified packages on first page
COMPx_OUT pins removed
Added Figure 6: 28-pin TSSOP package pinout on page 17
Modified Section 9: Electrical parameters on page 37.
Updated UBC[7:0] description in Section 7: Option bytes.
Updated low power current consumption on cover page.
Updated Table 13: Voltage characteristics, Table 20: Total current
22-Apr-20092
24-Apr-20093
14-May-20094
15-May-20095
consumption and timing in Halt and Active-halt mode at VDD = 1.65
V to 3.6 V, Table 26: I/O static characteristics, Table 30: NRST pin
characteristics, and Section 9.3.9: EMC characteristics.
Updated PA1/NRST, PC0 and PC1 in Table 4: STM8L101xx pin
description.
Added ECC feature.
Changed internal RC frequency to 38 kHz.
Updated electrical characteristics in Ta b l e 1 6, Ta b l e 1 8, Ta b l e 1 9,
Ta bl e 2 0 , Tab l e 22 , Ta bl e 2 3 , and Tab l e 2 6.
Corrected title on cover page.
Changed VFQFPN32 to WFQFPN32 and updated Ta b le 39 :
UFQFPN32 - 32-lead ultra thin fine pitch quad flat no-lead package
(5 x 5), package mechanical data.
Updated Ta bl e 1 3 , Tab l e 2 6, and Ta b l e 3 3.
Replaced WFQFPN20 3 x 3 mm 0.8 mm package by UFQFPN20
3 x 3 mm 0.6 mm package (first page, Table 16: General operating
conditions on page 40, Table 38: Thermal characteristics on
page 65, Section 10.2: Package mechanical data on page 67)
Added one UFQFPN20 version with COMP_REF
Modified Figure 40: LQFP32 recommended footprint(1) on page 69
Added I
values in Table 25: Flash program memory on page 49
PROG
Updated Table 31: SPI characteristics on page 57
Added STM8L101F3U6ATR part number in Section 4: Pin
description on page 14 and in Figure 47: STM8L101xx ordering
information scheme on page 73
76/81 Doc ID 15275 Rev 11
STM8L101xxRevision history
Table 44.Document revision history (continued)
DateRevisionChanges
Removed TSSOP28 package
Modified consumption value on first page
Added BEEP_CSR (address 00 50F3h) in Table 7: General
hardware register map on page 25
TIM2_PSCRL replaced with TIM2_PSCR and CLK_PCKEN
replaced with CLK_PCKENR in Table 7: General hardware register
map on page 25
Added graphs in Section 9: Electrical parameters on page 37
(AH) and tWU(Halt) max values in Tabl e 2 0 : To t a l c u r r e n t
WU
12-Jun-20096
Added t
consumption and timing in Halt and Active-halt mode at VDD = 1.65
V to 3.6 V on page 44
Modified Table 20: Total current consumption and timing in Halt and
Active-halt mode at VDD = 1.65 V to 3.6 V on page 44
Updated Table 22: HSI oscillator characteristics on page 46,
Table 23: LSI oscillator characteristics on page 47 and Ta b l e 2 4:
RAM and hardware registers on page 49
Modified Table 27: Output driving current (standard ports) on
page 53
Removed note 1 in Table 37: Electrical sensitivities on page 64
Added note to Table 39: UFQFPN32 - 32-lead ultra thin fine pitch
quad flat no-lead package (5 x 5), package mechanical data on
page 67 and
Table 41: UFQFPN28 - 28-lead ultra thin fine pitch quad flat no-lead
package (4 x 4), package mechanical data on page 70
Doc ID 15275 Rev 1177/81
Revision historySTM8L101xx
Table 44.Document revision history (continued)
DateRevisionChanges
Added STM8L101F2U6ATR, STM8L101G2U6ATR and
STM8L101G3U6ATR part numbers
Modified Section 2: Description on page 7.
Modified Table 2: Device features on page 8 (Flash)
Modified Figure 1: STM8L101xx device block diagram on page 9
Modified Section 3.5: Memory on page 11
Added note below Figure 2: Standard 20-pin UFQFPN package
pinout on page 14 and Figure 5: Standard 28-pin UFQFPN package
pinout on page 17
Added Figure 6: 28-pin UFQFPN package pinout for
STM8L101G3U6ATR and STM8L101G2U6ATR part numbers on
page 18
Modified reset values for Px_IDR registers in Table 6: I/O Port
hardware register map on page 24
Added Section 6: Interrupt vector mapping on page 32
Modified OPT numbers in Section 7: Option bytes on page 34
Modified OPT2 in Table 10: Option bytes on page 34
Added Section 8: Unique ID on page 36
TIM_IR pin replaced with IR_TIM pin
07-Sep-20097
Modified Table 20: Total current consumption and timing in Halt and
Active-halt mode at VDD = 1.65 V to 3.6 V on page 44
Modified Figure 15: Typ. IDD(Halt) vs. VDD, fCPU = 2 MHz and
16 MHz on page 44 and Figure 19: Typical LSI RC frequency vs.
VDD on page 48
Modified Table 27: Output driving current (standard ports) on
page 53
Updated Table 29: Output driving current (PA0 with high sink LED
driver capability) on page 53
Modified : Functional EMS (electromagnetic susceptibility) on
page 62
Modified conditions in Table 35: EMI data on page 63
Added note to Figure 37: UFQFPN32 - 32-lead ultra thin fine pitch
quad flat no-lead package outline (5 x 5) on page 67
flat no-lead package outline (4 x 4)(1) on page 70
Added Figure 44: UFQFPN20 recommended footprint (1) on
page 71
Added Figure 46: TSSOP20 recommended footprint (1) on page 72
CMP replaced with COMP
78/81 Doc ID 15275 Rev 11
STM8L101xxRevision history
Table 44.Document revision history (continued)
DateRevisionChanges
Modified status of the document (datasheet instead of preliminary
data)
Replaced WFQFPN32 with UFQFPN32 and WFQFPN28 with
UFQFPN28.
Modified title of the reference manual mentioned in Section 2:
Description on page 7
Added references to “low-density” in Section 2: Description on
page 7, Section 3.5: Memory on page 11 and in Figure 8: Memory
map on page 23
29-Nov-20098
18-Jun-20109
Modified Figure 8: Memory map on page 23 (unique ID are added)
Table 7: General hardware register map on page 25: Modified
reserved areas and IR block replaced with IRTIM block
Modified t
in Table 17: Operating conditions at power-up /
TEMP
power-down on page 41
Modified Table 23: LSI oscillator characteristics on page 47
Modified Table 25: Flash program memory on page 49 (t
PROG
)
Modified Table 16: General operating conditions on page 40 and
Table 38: Thermal characteristics on page 65
Modified Section 10: Package characteristics on page 66
Modified Introduction and Description
Modified one reserved area (0x00 5055 to 0x00 509F) in Ta b l e 7 :
General hardware register map on page 25
ModifiedTable 4: STM8L101xx pin description on page 20: modified
note 2 and removed “wpu” for PC0 and PC1
Removed one note to Table 22: HSI oscillator characteristics on
page 46
Modified first paragraph in Section : NRST pin on page 55
Modified OPT3 description in Table 11: Option byte description on
page 34
Added note 5 to Table 18: Total current consumption in Run mode on
page 42
Modified V
ESD(CDM)
in Table 36: ESD absolute maximum ratings on
page 63
Modified Figure 36: Typical application with I2C bus and timing
diagram 1) on page 61
Modified COMP_REF availability information in Figure 47:
STM8L101xx ordering information scheme on page 73
Modified Section 12.2: Software tools on page 75
Doc ID 15275 Rev 1179/81
Revision historySTM8L101xx
Table 44.Document revision history (continued)
DateRevisionChanges
Modified Table 3: Legend/abbreviation for table 4 on page 20 and
features on page 8 and Table 5: Flash and RAM boundary
addresses on page 24
Modified warning below Figure 3 on page 15 and belowTa b le 4:
STM8L101xx pin description on page 20
Modified Figure 47: STM8L101xx ordering information scheme on
page 73
Modifed text above Figure 32: Recommended NRST pin
configuration on page 56
Modified Figure 32 on page 56
80/81 Doc ID 15275 Rev 11
STM8L101xx
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING
APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY,
DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.