Professional Documents
Culture Documents
STM8L101x3
8-bit ultra-low power microcontroller with up to 8 Kbytes Flash,
multifunction timers, comparators, USART, SPI, I2C
Datasheet - production data
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
Ultra-low power POR/PDR
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 programmable input pull-ups, high
sink/source capability and one LED driver
infrared output
August 2016
This is information on a product in full production.
UFQFPN32
5 x 5 mm
UFQFPN28
4 x 4 mm
LQFP32
7x7 mm
TSSOP20
6.5 x 6.4 mm
UFQFPN20
3 x 3 mm
Peripherals
Two 16-bit general purpose timers (TIM2
and TIM3) with up and down counter and 2
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)
96-bit unique ID
Table 1. Device summary
Reference
Part numbers
STM8L101x1
STM8L101F1
STM8L101x2
STM8L101F2, STM8L101G2
STM8L101x3
STM8L101F3, STM8L101G3,
STM8L101K3
DocID15275 Rev 15
1/88
www.st.com
Contents
Contents
1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Product overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.1
3.2
3.3
3.4
3.5
Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.6
3.7
Voltage regulators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.8
Clock control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.9
Independent watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.10
Auto-wakeup counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.11
3.12
Beeper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.13
3.14
Comparators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.15
USART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.16
SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.17
IC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Option bytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Unique ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
2/88
DocID15275 Rev 15
Electrical parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
9.1
Parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
9.1.1
9.1.2
Typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
9.1.3
Typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
9.1.4
Loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
9.1.5
9.2
9.3
Operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
9.4
10
Contents
9.3.1
9.3.2
9.3.3
9.3.4
9.3.5
Memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
9.3.6
9.3.7
Communication interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
9.3.8
Comparator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
9.3.9
EMC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
10.1
10.2
10.3
10.4
10.5
11
12
12.2
Software tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
12.3
12.2.1
STM8 toolset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
12.2.2
Programming tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
DocID15275 Rev 15
3/88
4
Contents
13
4/88
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
DocID15275 Rev 15
List of tables
List of tables
Table 1.
Table 2.
Table 3.
Table 4.
Table 5.
Table 6.
Table 7.
Table 8.
Table 9.
Table 10.
Table 11.
Table 12.
Table 13.
Table 14.
Table 15.
Table 16.
Table 17.
Table 18.
Table 19.
Table 20.
Table 21.
Table 22.
Table 23.
Table 24.
Table 25.
Table 26.
Table 27.
Table 28.
Table 29.
Table 30.
Table 31.
Table 32.
Table 33.
Table 34.
Table 35.
Table 36.
Table 37.
Table 38.
Table 39.
Table 40.
Table 41.
Table 42.
Table 43.
Table 44.
Device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
STM8L101xx device feature summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Legend/abbreviation for table 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
STM8L101xx pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Flash and RAM boundary addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
I/O Port hardware register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
General hardware register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
CPU/SWIM/debug module/interrupt controller registers . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Interrupt mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Option bytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Option byte description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Unique ID registers (96 bits) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
General operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Operating conditions at power-up / power-down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Total current consumption in Run mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Total current consumption in Wait mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Total current consumption and timing in Halt and Active-halt mode at
VDD = 1.65 V to 3.6 V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Peripheral current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
HSI oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
LSI oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
RAM and hardware registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Flash program memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
I/O static characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Output driving current (High sink ports) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Output driving current (true open drain ports). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Output driving current (PA0 with high sink LED driver capability). . . . . . . . . . . . . . . . . . . . 51
NRST pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
SPI characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
I2C characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Comparator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
EMS data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
EMI data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
ESD absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Electrical sensitivities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
UFQFPN32 - 32-lead ultra thin fine pitch quad flat no-lead package (5 x 5),
package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
LQFP32- 32-pin low profile quad flat package (7x7), package mechanical data . . . . . . . . 68
UFQFPN28 - 28-lead ultra thin fine pitch quad flat no-lead package (4 x 4),
package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
UFQFPN20 - 20-lead ultra thin fine pitch quad flat package (3 x 3 mm) mechanical data . 74
TSSOP20 - 20-lead thin shrink small package mechanical data . . . . . . . . . . . . . . . . . . . . 76
Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
DocID15275 Rev 15
5/88
5
List of figures
List of figures
Figure 1.
Figure 2.
Figure 3.
Figure 4.
Figure 5.
Figure 6.
Figure 7.
Figure 8.
Figure 9.
Figure 10.
Figure 11.
Figure 12.
Figure 13.
Figure 14.
Figure 15.
Figure 16.
Figure 17.
Figure 18.
Figure 19.
Figure 20.
Figure 21.
Figure 22.
Figure 23.
Figure 24.
Figure 25.
Figure 26.
Figure 27.
Figure 28.
Figure 29.
Figure 30.
Figure 31.
Figure 32.
Figure 33.
Figure 34.
Figure 35.
Figure 36.
Figure 37.
Figure 38.
Figure 39.
Figure 40.
Figure 41.
Figure 42.
Figure 43.
Figure 44.
Figure 45.
Figure 46.
6/88
DocID15275 Rev 15
List of figures
DocID15275 Rev 15
7/88
7
Introduction
Introduction
This datasheet provides the STM8L101x1 STM8L101x2 STM8L101x3 pinout, ordering
information, mechanical and electrical device characteristics.
For complete information on the STM8L101x1 STM8L101x2 STM8L101x3 microcontroller
memory, registers and peripherals, please refer to the STM8L reference manual.
The STM8L101x1 STM8L101x2 STM8L101x3devices are members of the STM8L lowpower 8-bit family. They are
referred to as low-density devices in the STM8L101x1 STM8L101x2 STM8L101x3
microcontroller family reference manual (RM0013) and in the STM8L Flash programming
manual (PM0054).
All devices of the SM8L product line provide the following benefits:
8/88
High system integration level with internal clock oscillators and watchdogs.
Less than 150 A/MH, 0.8 A in Active-halt mode, and 0.3 A in Halt mode
Product longevity
DocID15275 Rev 15
Description
Description
The STM8L101x1 STM8L101x2 STM8L101x3 low-power family features the enhanced
STM8 CPU core providing increased processing power (up to 16 MIPS at 16 MHz) while
maintaining the advantages of a CISC architecture with improved code density, a 24-bit
linear addressing space and an optimized architecture for low power operations.
The family includes an integrated debug module with a hardware interface (SWIM) which
allows non-intrusive in-application debugging and ultrafast Flash programming.
All STM8L101xx microcontrollers feature low power low-voltage single-supply program
Flash memory. The 8-Kbyte devices embed data EEPROM.
The STM8L101xx low power family is based on a generic set of state-of-the-art peripherals.
The modular design of the peripheral set allows the same peripherals to be found in
different ST microcontroller families including 32-bit families. This makes any transition to a
different family very easy, and simplified even more by the use of a common set of
development tools.
All STM8L low power products are based on the same architecture with the same memory
mapping and a coherent pinout.
Table 2. STM8L101xx device feature summary
Features
Flash
STM8L101xx
2 Kbytes of Flash program
memory
RAM
1.5 Kbytes
Peripheral functions
Timers
Operating voltage
1.65 to 3.6 V
Operating temperature
Packages
-40 to +85 C
UFQFPN20 3x3
UFQFPN28 4x 4
UFQFPN20 3x3
TSSOP20 4.4 x 6.4
DocID15275 Rev 15
-40 to +85 C or
-40 to +125 C
UFQFPN28 4x4
UFQFPN20 3x3
UFQFPN32
LQFP32
9/88
22
Product overview
Product overview
Figure 1. STM8L101xx device block diagram
#9''
0+]LQW5&
N+]LQW5&
9''
&ORFN
FRQWUROOHU
&ORFNV
WRFRUHDQG
SHULSKHUDOV
5HVHW
,QIUDUHGLQWHUIDFH
3$>@
3RUW$
3%>@
3RUW%
3&>@
3RUW&
3'>@
3RUW'
&203B&+>@
.E\WHV
65$0
$GGUHVVDQGGDWDEXV
,5B7,0
86$57
5;7;&.
,&
PXOWLPDVWHU
6'$6&/
63,
026,0,62
6&.166
ELW7LPHU
7,0B&+>@
7,0B75,*
ELW7LPHU
7,0B&+>@
7,0B75,*
ELW7LPHU
&203
,:'*
&203
%HHSHU
&203B5()
&203B&+>@
1567
8SWR.E\WHV
)ODVKPHPRU\
LQFOXGLQJ
XSWR.E\WHV
GDWD((3520
1HVWHGLQWHUUXSW
FRQWUROOHU
XSWRH[WHUQDO
LQWHUUXSWV
'HEXJPRGXOH
6:,0
9'' 9WR9
966
3253'5
670
&RUH
XSWR0+]
6:,0
3RZHU
9ROWUHJ
$:8
%((3
069
Legend:
AWU: Auto-wakeup unit
Int. RC: internal RC oscillator
IC: 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
10/88
DocID15275 Rev 15
3.1
Product overview
3.2
Development tools
Development tools for the STM8 microcontrollers include:
The STM8 also comes with starter kits, evaluation boards and low-cost in-circuit
debugging/programming tools.
3.3
3.4
Interrupt controller
The STM8L101xx features a nested vectored interrupt controller:
DocID15275 Rev 15
11/88
22
Product overview
3.5
Memory
The STM8L101xx devices have the following main features:
The EEPROM is divided into two memory arrays (see the STM8L reference manual for
details on the memory mapping):
64 option bytes (one block) of which 5 bytes are already used for the device.
3.6
3.7
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.
The RAM content is preserved. Wakeup is triggered by an external interrupt.
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.
12/88
DocID15275 Rev 15
3.10
Product overview
Auto-wakeup counter
The auto-wakeup (AWU) counter is used to wakeup the device from Active-halt mode.
3.11
Generating output waveforms (output compare, PWM and One pulse mode)
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
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.
DocID15275 Rev 15
13/88
22
Product 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
IC
The inter-integrated circuit (I2C) bus interface is designed to serve as an interface between
the microcontroller and the serial I2C bus. It provides multi-master capability, and controls all
IC bus-specific sequencing, protocol, arbitration and timing. It manages standard and fast
speed modes.
14/88
DocID15275 Rev 15
Pin description
Pin description
3$+6
3&+6
3&+6
3&+6
3&
3&
3%+6
3%+6
3%+6
3%+6
3'+6
3%+6
3%+6
3%+6
3%+6
15673$+6
3$+6
3$+6
966
9''
069
Note:
The COMP_REF pin is not available in this standard 20-pin UFQFPN package. It is
available on Port A6 in the Figure 3: 20-pin UFQFPN package pinout for
STM8L101F1U6ATR, STM8L101F2U6ATR and STM8L101F3U6ATR part numbers.
DocID15275 Rev 15
15/88
22
Pin description
3$+6
3&+6
3&+6
3&+6
3&
3&
3%+6
3%+6
3%+6
3%+6
3'+6
3%+6
3%+6
3%+6
3%+6
15673$+6
3$+6
3$+6
966
9''
069
Warning:
16/88
DocID15275 Rev 15
Pin description
0# (3
0# (3
0#
0! (3
0#
.234 0! (3
0"
0! (3
0" (3
0! (3
0" (3
633
0" (3
6$$
0" (3
0$ (3
0" (3
0" (3
0" (3
069
3&+6
3&
3&+6
3&+6
3&+6
3&+6
3$+6
3$+6
3'+6
3$+6
3%+6
3$+6
3%+6
3$+6
3%+6
966
3%+6
9''
3%+6
3&
3%+6
3%+6
3%+6
3'+6
3'+6
3'+6
3'+6
15673$+6
069
Note:
The COMP_REF pin is not available in this standard 28-pin UFQFPN package. It is
available on Port A6 in the Figure 6: 28-pin UFQFPN package pinout for
STM8L101G3U6ATR and STM8L101G2U6ATR part numbers.
DocID15275 Rev 15
17/88
22
Pin description
3&+6
3&
3&+6
3&+6
3&+6
3&+6
3$+6
3$+6
3'+6
3$+6
3%+6
3$+6
3%+6
3$+6
3%+6
966
3%+6
9''
3%+6
3&
3%+6
3%+6
3%+6
3'+6
3'+6
3'+6
3'+6
15673$+6
069
Warning:
18/88
DocID15275 Rev 15
Pin description
3&
3&
3&+6
3&+6
3&+6
3&+6
3&+6
3$+6
3'+6
3$+6
3'+6
3$+6
3'+6
3$+6
3'+6
3$+6
3%+6
3$+6
3%+6
966
3%+6
9''
3%+6
15673$+6
3%+6
3%+6
3%+6
3%+6
3'+6
3'+6
3'+6
3'+6
069
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).
DocID15275 Rev 15
19/88
22
Pin description
Type
Level
Input
CM = CMOS
Output
wpu
Ext. interrupt
OD
PP
NRST/PA1(2)
I/O -
HS
Reset
PA1
PA2
I/O X
HS
Port A2
PA3
I/O X
HS
Port A3
PA4/TIM2_BKIN
I/O X
HS
Port A4
PA5/TIM3_BKIN
I/O X
HS
Port A5
PA6/COMP_REF
I/O X
HS
Port A6
Comparator external
reference
VSS
Ground
VDD
Power supply
PD0/TIM3_CH2/
COMP1_CH3
I/O X
HS
Port D0
Timer 3 - channel 2 /
Comparator 1 channel 3
10
PD1/TIM3_ETR/
COMP1_CH4
I/O X
HS
Port D1
Timer 3 - trigger /
Comparator 1 channel 4
10 10 11
PD2/
COMP2_CH3
I/O X
HS
Port D2
Comparator 2 channel 3
11 11 12
PD3/
COMP2_CH4
I/O X
HS
Port D3
Comparator 2 channel 4
20/88
DocID15275 Rev 15
Main function
(after reset)
UFQFPN32 or LQFP32
High sink/source
floating
standard UFQFPN28
Pin name
Type
TSSOP20
Output
Input
standard UFQFPN20
Pin number
Alternate function
Pin description
OD
PP
Main function
(after reset)
HS
Port B0
Timer 2 - channel 1 /
Comparator 1 channel 1
11 13 13 14
PB1/TIM3_CH1/
COMP1_CH2
I/O X
HS
Port B1
Timer 3 - channel 1 /
Comparator 1 channel 2
12 14 14 15
PB2/ TIM2_CH2/
COMP2_CH1/
I/O X
HS
Port B2
Timer 2 - channel 2 /
Comparator 2 channel 1
10 10 13 15 15 16
PB3/TIM2_ETR/
COMP2_CH2
I/O X
HS
Port B3
Timer 2 - trigger /
Comparator 2 channel 2
11 11 14 16 16 17 PB4/SPI_NSS(3)
HS
Port B4
SPI master/slave
select
12 12 15 17 17 18 PB5/SPI_SCK
I/O X
HS
Port B5
SPI clock
13 13 16 18 18 19 PB6/SPI_MOSI
I/O X
HS
Port B6
14 14 17 19 19 20 PB7/SPI_MISO
I/O X
HS
Port B7
20 20 21 PD4
I/O X
HS
Port D4
22 PD5
I/O X
HS
Port D5
23 PD6
I/O X
HS
Port D6
24 PD7
I/O X
HS
Port D7
I/O X
T(4)
Port C0
I2C data
Port C1
I2C clock
15 15 18 21 21 25 PC0/I2C_SDA
Ext. interrupt
High sink/source
PB0/TIM2_CH1/
COMP1_CH1 (3)
wpu
10 12 12 13
floating
Pin name
Type
UFQFPN32 or LQFP32
Alternate function
standard UFQFPN28
TSSOP20
Output
Input
standard UFQFPN20
Pin number
16 16 19 22 22 26 PC1/I2C_SCL
I/O X
T(4)
17 17 20 23 23 27 PC2/USART_RX
I/O X
HS
Port C2
USART receive
18 18 1
24 24 28 PC3/USART_TX
I/O X
HS
Port C3
USART transmit
19 19 2
25 25 29
PC4/USART_CK/
I/O X
CCO
HS
Port C4
USART synchronous
clock / Configurable
clock output
DocID15275 Rev 15
21/88
22
Pin description
OD
PP
HS
Port C5
27 27 31 PC6
I/O X
HS
Port C6
HS(6)
Port A0
PA0(5)/SWIM/
28 28 32
BEEP/IR_TIM (6)
I/O X
(5)
Main function
(after reset)
Ext. interrupt
I/O X
High sink/source
wpu
26 26 30 PC5
floating
Pin name
Type
UFQFPN32 or LQFP32
standard UFQFPN28
20 20 3
TSSOP20
Output
Input
standard UFQFPN20
Pin number
Alternate function
Slope control of all GPIO pins can be programmed except true open drain pins and by
default is limited to 2 MHz.
Warning:
22/88
DocID15275 Rev 15
[))
[
5$0
.E\WHV
LQFOXGLQJ
6WDFN
XSWR E\WHV
5HVHUYHG
[))
[
2SWLRQE\WHV
[))
[
[
[
[
[
[))
[
[))
[
5HVHUYHG
8QLTXH,'
5HVHUYHG
*3,2DQGSHULSKHUDOUHJLVWHUV
5HVHUYHG
[())
[)
[)))
[
[)
[
&386:,0'HEXJ,7&
5HJLVWHUV
,QWHUUXSWYHFWRUV
/RZGHQVLW\
)ODVKSURJUDPPHPRU\
XSWR.E\WHV
LQFOXGLQJ
'DWD((3520
XSWR.E\WHV
[)))
069
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 Table 8 for information on CPU/SWIM/debug module controller registers.
DocID15275 Rev 15
23/88
33
Memory area
Size
Start address
End address
RAM
1.5 Kbytes
0x00 0000
0x00 05FF
2 Kbytes
0x00 8000
0x00 87FF
4 Kbytes
0x00 8000
0x00 8FFF
8 Kbytes
0x00 8000
0x00 9FFF
Note:
2 Kbytes of Data EEPROM is only available on devices with 8 Kbytes flash program memory.
Register name
Reset
status
0x00 5000
PA_ODR
0x00
0x00 5001
PA_IDR
0xxx
PA_DDR
0x00
0x00 5003
PA_CR1
0x00
0x00 5004
PA_CR2
0x00
0x00 5005
PB_ODR
0x00
0x00 5006
PB_IDR
0xxx
PB_DDR
0x00
0x00 5008
PB_CR1
0x00
0x00 5009
PB_CR2
0x00
0x00 500A
PC_ODR
0x00
0x00 500B
PC_IDR
0xxx
PC_DDR
0x00
0x00 500D
PC_CR1
0x00
0x00 500E
PC_CR2
0x00
0x00 500F
PD_ODR
0x00
0x00 5010
PD_IDR
0xxx
PD_DDR
0x00
0x00 5012
PD_CR1
0x00
0x00 5013
PD_CR2
0x00
Address
0x00 5002
0x00 5007
0x00 500C
0x00 5011
24/88
Block
Port A
Port B
Port C
Port D
DocID15275 Rev 15
Register name
Reset
status
0x00 5050
FLASH_CR1
0x00
0x00 5051
FLASH_CR2
0x00
FLASH _PUKR
0x00
0x00 5053
FLASH _DUKR
0x00
0x00 5054
FLASH _IAPSR
0xX0
Address
0x00 5052
Block
Flash
0x00 5055
to
0x00 509F
0x00 50A0
EXTI_CR1
0x00
0x00 50A1
EXTI_CR2
0x00
EXTI_CR3
0x00
EXTI_SR1
0x00
0x00 50A4
EXTI_SR2
0x00
0x00 50A5
EXTI_CONF
0x00
WFE_CR1
0x00
WFE_CR2
0x00
0x00 50A2
0x00 50A3
0x00 50A6
0x00 50A7
ITC-EXTI
WFE
0x00 50A8
to
0x00 50AF
0x00 50B0
0x00 50B1
RST
RST_CR
0x00
RST_SR
0x01
0x00 50B2
to
0x00 50BF
0x00 50C0
0x00 50C1
to
0x00 50C2
0x00 50C3
CLK_CKDIVR
CLK
CLK_PCKENR
0x00 50C4
0x00 50C5
0x00 50C6
to
0x00 50DF
0x03
0x00
Reserved (1 byte)
CLK_CCOR
0x00
DocID15275 Rev 15
25/88
33
Address
Block
0x00 50E0
0x00 50E1
IWDG
0x00 50E2
Register label
Register name
Reset
status
IWDG_KR
0xXX
IWDG_PR
0x00
IWDG_RLR
0xFF
0x00 50E3
to
0x00 50EF
0x00 50F0
0x00 50F1
AWU
0x00 50F2
0x00 50F3
BEEP
AWU_CSR
0x00
AWU_APR
0x3F
AWU_TBR
0x00
BEEP_CSR
0x1F
0x00 50F4
to
0x00 51FF
0x00 5200
SPI_CR1
0x00
0x00 5201
SPI_CR2
0x00
SPI_ICR
0x00
0x00 5203
SPI_SR
0x02
0x00 5204
SPI_DR
0x00
0x00 5202
SPI
0x00 5205
to
0x00 520F
0x00 5210
I2C_CR1
0x00
0x00 5211
I2C_CR2
0x00
0x00 5212
I2C_FREQR
0x00
0x00 5213
I2C_OARL
0x00
0x00 5214
I2C_OARH
0x00
0x00 5215
0x00 5216
I2C_DR
0x00
I2C_SR1
0x00
0x00 5218
I2C_SR2
0x00
0x00 5219
I2C_SR3
0x00
0x00 521A
I2C_ITR
0x00
0x00 521B
I2C_CCRL
0x00
0x00 521C
I2C_CCRH
0x00
0x00 521D
I2C_TRISER
0x02
0x00 5217
26/88
DocID15275 Rev 15
Block
Register label
0x00 521E
to
0x00 522F
Register name
Reset
status
0x00 5230
USART_SR
0xC0
0x00 5231
USART_DR
0xXX
0x00 5232
USART_BRR1
0x00
USART_BRR2
0x00
USART_CR1
0x00
0x00 5235
USART_CR2
0x00
0x00 5236
USART_CR3
0x00
0x00 5237
USART_CR4
0x00
0x00 5233
0x00 5234
0x00 5238
to
0x00 524F
USART
DocID15275 Rev 15
27/88
33
Register name
Reset
status
0x00 5250
TIM2_CR1
0x00
0x00 5251
TIM2_CR2
0x00
0x00 5252
TIM2_SMCR
0x00
0x00 5253
TIM2_ETR
0x00
0x00 5254
TIM2_IER
0x00
0x00 5255
TIM2_SR1
0x00
0x00 5256
TIM2_SR2
0x00
0x00 5257
TIM2_EGR
0x00
0x00 5258
TIM2_CCMR1
0x00
0x00 5259
TIM2_CCMR2
0x00
TIM2_CCER1
0x00
TIM2_CNTRH
0x00
0x00 525C
TIM2_CNTRL
0x00
0x00 525D
TIM2_PSCR
0x00
0x00 525E
TIM2_ARRH
0xFF
0x00 525F
TIM2_ARRL
0xFF
0x00 5260
TIM2_CCR1H
0x00
0x00 5261
TIM2_CCR1L
0x00
0x00 5262
TIM2_CCR2H
0x00
0x00 5263
TIM2_CCR2L
0x00
0x00 5264
TIM2_BKR
0x00
0x00 5265
TIM2_OISR
0x00
Address
0x00 525A
0x00 525B
0x00 5266
to
0x00 527F
28/88
Block
TIM2
DocID15275 Rev 15
Register name
Reset
status
0x00 5280
TIM3_CR1
0x00
0x00 5281
TIM3_CR2
0x00
0x00 5282
TIM3_SMCR
0x00
0x00 5283
TIM3_ETR
0x00
0x00 5284
TIM3_IER
0x00
0x00 5285
TIM3_SR1
0x00
0x00 5286
TIM3_SR2
0x00
0x00 5287
TIM3_EGR
0x00
0x00 5288
TIM3_CCMR1
0x00
0x00 5289
TIM3_CCMR2
0x00
TIM3_CCER1
0x00
TIM3_CNTRH
0x00
0x00 528C
TIM3_CNTRL
0x00
0x00 528D
TIM3_PSCR
0x00
0x00 528E
TIM3_ARRH
0xFF
0x00 528F
TIM3_ARRL
0xFF
0x00 5290
TIM3_CCR1H
0x00
0x00 5291
TIM3_CCR1L
0x00
0x00 5292
TIM3_CCR2H
0x00
0x00 5293
TIM3_CCR2L
0x00
0x00 5294
TIM3_BKR
0x00
0x00 5295
TIM3_OISR
0x00
Address
0x00 528A
0x00 528B
Block
TIM3
0x00 5296
to
0x00 52DF
0x00 52E0
TIM4_CR1
0x00
0x00 52E1
TIM4_CR2
0x00
0x00 52E2
TIM4_SMCR
0x00
0x00 52E3
TIM4_IER
0x00
TIM4_SR1
0x00
0x00 52E5
TIM4_EGR
0x00
0x00 52E6
TIM4_CNTR
TIM4 counter
0x00
0x00 52E7
TIM4_PSCR
0x00
0x00 52E8
TIM4_ARR
0xFF
0x00 52E4
TIM4
DocID15275 Rev 15
29/88
33
Address
Block
Register label
0x00 52E9
to
0x00 52FE
Register name
Reset
status
0x00 52FF
IRTIM
0x00 5300
0x00 5301
COMP
0x00 5302
IR_CR
0x00
COMP_CR
0x00
COMP_CSR
0x00
COMP_CCS
0x00
Register name
Reset
status
0x00 7F00
Accumulator
0x00
0x00 7F01
PCE
0x00
0x00 7F02
PCH
0x80
0x00 7F03
PCL
0x00
0x00 7F04
XH
0x00
XL
0x00
0x00 7F06
YH
0x00
0x00 7F07
YL
0x00
0x00 7F08
SPH
0x05
0x00 7F09
SPL
0xFF
0x00 7F0A
CC
0x28
Address
0x00 7F05
Block
CPU
0x00 7F0B
to
0x00 7F5F
0x00 7F60
CFG_GCR
0x00 7F61
0x00 7F6F
0x00
0x00 7F70
ITC_SPR1
0xFF
0x00 7F71
ITC_SPR2
0xFF
0x00 7F72
ITC_SPR3
0xFF
ITC_SPR4
0xFF
ITC_SPR5
0xFF
0x00 7F75
ITC_SPR6
0xFF
0x00 7F76
ITC_SPR7
0xFF
0x00 7F77
ITC_SPR8
0xFF
0x00 7F73
0x00 7F74
30/88
ITC-SPR
(1)
DocID15275 Rev 15
Block
Register label
0x00 7F78
to
0x00 7F79
0x00 7F80
Register name
Reset
status
SWIM_CSR
0x00 7F81
to
0x00 7F8F
0x00
0x00 7F90
DM_BK1RE
0xFF
0x00 7F91
DM_BK1RH
0xFF
0x00 7F92
DM_BK1RL
0xFF
0x00 7F93
DM_BK2RE
0xFF
0x00 7F94
DM_BK2RH
0xFF
DM_BK2RL
0xFF
0x00 7F96
DM_CR1
0x00
0x00 7F97
DM_CR2
0x00
0x00 7F98
DM_CSR1
0x10
0x00 7F99
DM_CSR2
0x00
0x00 7F9A
DM_ENFCTR
0xFF
0x00 7F95
DM
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.
DocID15275 Rev 15
31/88
33
IRQ
No.
Source
block
RESET
TRAP
FLASH
2-3
AWU
EXTIB
Wakeup
from Halt
mode
Wakeup
from
Active-halt
mode
Wakeup
from Wait
(WFI
mode)
Wakeup
from Wait
(WFE
mode)
Yes
Yes
Yes
Yes
0x00 8000
Software interrupt
0x00 8004
Reserved
Description
Reset
address
0x00 8008
(1)
0x00 800C
EOP/WR_PG_DIS
Yes
Reserved
0x00 8010
-0x00 8017
Yes
Yes
Yes(1)
0x00 8018
Reserved
0x00 801C
Yes
Yes
Yes
Yes
0x00 8020
EXTID
Yes
Yes
Yes
Yes
0x00 8024
EXTI0
External interrupt 0
Yes
Yes
Yes
Yes
0x00 8028
EXTI1
External interrupt 1
Yes
Yes
Yes
Yes
0x00 802C
10
EXTI2
External interrupt 2
Yes
Yes
Yes
Yes
0x00 8030
11
EXTI3
External interrupt 3
Yes
Yes
Yes
Yes
0x00 8034
12
EXTI4
External interrupt 4
Yes
Yes
Yes
Yes
0x00 8038
13
EXTI5
External interrupt 5
Yes
Yes
Yes
Yes
0x00 803C
14
EXTI6
External interrupt 6
Yes
Yes
Yes
Yes
0x00 8040
15
EXTI7
External interrupt 7
Yes
Yes
Yes
Yes
0x00 8044
16
Reserved
0x00 8048
17
Reserved
0x00 804C
-0x00 804F
18
COMP
Comparators
Yes
Yes(1)
0x00 8050
19
TIM2
Update
/Overflow/Trigger/Break
Yes
Yes
0x00 8054
20
TIM2
Capture/Compare
Yes
Yes
0x00 8058
Yes
Yes(1)
0x00 805C
(1)
0x00 8060
21
TIM3
22
TIM3
2324
25
TIM4
26
32/88
SPI
Update /Overflow/Break
Yes
Vector
Capture/Compare
Yes
Reserved
Update /Trigger
Yes
Yes(1)
0x00 806C
Yes
Yes(1)
0x00 8070
End of Transfer
Yes
Yes
DocID15275 Rev 15
Yes
Source
block
27
USART
28
USART
29
I2C
Wakeup
from Halt
mode
Wakeup
from
Active-halt
mode
Wakeup
from Wait
(WFI
mode)
Wakeup
from Wait
(WFE
mode)
Transmission
complete/transmit data
register empty
Yes
Yes(1)
0x00 8074
Yes
Yes(1)
0x00 8078
Yes
Yes
Yes
Yes(1)
0x00 807C
Description
I2C interrupt(2)
Vector
address
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 Section Wait for event (WFE) mode in the RM0013 reference manual.
2. The device is woken up from Halt or Active-halt mode only when the address received matches the interface address.
DocID15275 Rev 15
33/88
33
Option bytes
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 Table 10 for details on option byte addresses.
Refer to the STM8L Flash programming manual (PM0054) and STM8 SWIM and Debug
Manual (UM0470) for information on SWIM programming procedures.
Table 10. Option bytes
Addr.
Option name
Option
byte
No.
Option bits
7
Factory
default
setting
0x4800
Read-out
protection
(ROP)
OPT1
ROP[7:0]
0x00
0x4807
0x00
0x4802
UBC (User
Boot code size)
OPT2
UBC[7:0]
0x00
0x4803
DATASIZE
OPT3
DATASIZE[7:0]
0x00
0x4808
Independent
watchdog
option
OPT4
[1:0]
Reserved
IWDG
_HALT
IWDG
_HW
0x00
34/88
OPT1
OPT2
DocID15275 Rev 15
Option bytes
OPT3
OPT4
Caution:
After a device reset, read access to the program memory is not guaranteed if address
0x4807 is not programmed to 0x00.
DocID15275 Rev 15
35/88
35
Unique ID
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 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
Unique ID bits
7
3
U_ID[7:0]
X co-ordinate on
the wafer
U_ID[15:8]
U_ID[23:16]
0x4928
Y co-ordinate on
the wafer
0x4929
Wafer number
U_ID[39:32]
U_ID[31:24]
0x492A
U_ID[47:40]
0x492B
U_ID[55:48]
0x492C
U_ID[63:56]
0x492D
36/88
Content
description
Lot number
U_ID[71:64]
0x492E
U_ID[79:72]
0x492F
U_ID[87:80]
0x4930
U_ID[95:88]
DocID15275 Rev 15
Electrical parameters
Electrical parameters
9.1
Parameter conditions
Unless otherwise specified, all voltages are referred to VSS.
9.1.1
Note:
The values given at 85 C <TA 125 C are only valid for suffix 3 versions.
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 (mean3).
9.1.2
Typical values
Unless otherwise specified, typical data are based on TA = 25 C, VDD = 3 V. They are given
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
34-, 0).
P&
069
DocID15275 Rev 15
37/88
63
Electrical parameters
9.1.5
6).
069
9.2
VESD
Ratings
Min
Max
-0.3
4.0
VSS-0.3
VDD + 4.0
VSS-0.3
4.0
Unit
1. Positive injection is not possible on these I/Os. VIN maximum must always be respected. IINJ(PIN) must
never be exceeded. A negative injection is induced by VIN<VSS.
2. IINJ(PIN) must never be exceeded. This 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.
38/88
DocID15275 Rev 15
Electrical parameters
Ratings
Max.
IVDD
80
IVSS
80
80
25
-25
-5
IIO
IINJ(PIN)
IINJ(PIN)
pins) (3)
Unit
mA
25
1. Positive injection is not possible on these I/Os. VIN maximum must always be respected. IINJ(PIN) must
never be exceeded. A negative injection is induced by VIN<VSS.
2. IINJ(PIN) must never be exceeded. This 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.
3. 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.
Ratings
Storage temperature range
Maximum junction temperature
DocID15275 Rev 15
Value
-65 to +150
150
Unit
C
39/88
63
Electrical parameters
9.3
Operating conditions
Subject to general operating conditions for VDD and TA.
9.3.1
Symbol
fMASTER(1)
VDD
Parameter
Master clock frequency
PD(2)
TJ
Min
Max
Unit
16
MHz
1.65
3.6
LQFP32
288
UFQFPN32
288
UFQFPN28
250
TSSOP20
181
UFQFPN20
196
LQFP32
83
UFQFPN32
185
UFQFPN28
62
TSSOP20
45
UFQFPN20
49
40
85
40
125
-40 C TA 85 C
(6 suffix version)
- 40
105
-40 C TA 125 C
(3 suffix version)
40
130
TA
Conditions
Temperature range
mW
1. fMASTER = fCPU
2. To calculate PDmax(TA) use the formula given in thermal characteristics PDmax=(TJmax -TA)/JA with TJmax in this table and
JA in table Thermal characteristics
40/88
DocID15275 Rev 15
9.3.2
Electrical parameters
Parameter
tVDD
tTEMP
Conditions
Min
Typ
20
ms
VDD rising
Max
1300
Unit
s/V
VPOR(1)(2)
Power on reset
threshold
1.35
1.65(3)
VPDR(1)(2)
1.40
1.60
9.3.3
All I/O pins in input mode with a static value at VDD or VSS (no load)
DocID15275 Rev 15
41/88
63
Electrical parameters
Parameter
Conditions(2)
Typ
Max(3)
fMASTER = 2 MHz
0.39
0.60
fMASTER = 4 MHz
0.55
0.70
fMASTER = 8 MHz
0.90
1.20
fMASTER = 16 MHz
1.60
2.10(6)
fMASTER = 2 MHz
0.55
0.70
fMASTER = 4 MHz
0.88
1.80
fMASTER = 8 MHz
1.50
2.50
fMASTER = 16 MHz
2.70
3.50
Unit
mA
42/88
DocID15275 Rev 15
Electrical parameters
Parameter
Typ
Max(2)
fMASTER = 2 MHz
245
400
fMASTER = 4 MHz
300
450
fMASTER = 8 MHz
380
600
fMASTER = 16 MHz
510
800
Conditions
Unit
DocID15275 Rev 15
43/88
63
Electrical parameters
Table 20. Total current consumption and timing in Halt and Active-halt mode at
VDD = 1.65 V to 3.6 V (1)(2)
Symbol
Parameter
Conditions
Typ
Max
Unit
0.8
TA = 55 C
2.5
TA = 85 C
1.4
3.2
TA = 105 C
2.9
7.5
TA = 125 C
5.8
13
mA
6.5
TA = -40 C to 25 C
0.35
1.2(4)
TA = 55 C
0.6
1.8
TA = 85 C
2.5(4)
TA = 105 C
2.5
6.5
5.4
12(4)
TA = -40 C to 25 C
IDD(AH)
IDD(Halt)
LSI RC osc.
(at 37 kHz)
fCPU= 16 MHz
TA = 125 C
IDD(WUFH)
mA
tWU(Halt)(3)
6.5
Figure 15. Typ. IDD(Halt) vs. VDD, fCPU = 2 MHz and 16 MHz
44/88
DocID15275 Rev 15
Electrical parameters
Parameter
IDD(TIM2)
IDD(TIM3)
IDD(TIM4)
IDD(SPI)
IDD(IC1)
Unit
9
9
IDD(USART)
IDD(COMP)
(1)
(1)
(2)
A/MHz
7
4
4
(2)
20
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.
9.3.4
Parameter
Frequency
Conditions
Min
Typ
Max
Unit
VDD = 3.0 V
16
MHz
VDD = 3.0 V, TA = 25 C
-1
-2.5(2)
2(2)
-4.5(2)
2(2)
VDD = 3.0 V, 0 C TA 55 C
-1.5(2)
1.5(2)
-2(2)
2(2)
-4.5(2)
3(2)
70
100(2)
IDD(HSI)
DocID15275 Rev 15
45/88
63
Electrical parameters
5&DFFXUDF\
BJ
7HPSHUDWXUH&
Figure 18. Typical HSI accuracy vs. temperature, VDD = 1.65 V to 3.6 V
0LQ99
0D[99
9W\SLFDO
5&DFFXUDF\
7HPSHUDWXUH&
46/88
DocID15275 Rev 15
BJ
Electrical parameters
Parameter
Conditions
Min
Typ
Max
Unit
26
38
56
kHz
-12
11
Frequency
LSI oscillator frequency
drift(2)
0 C TA 85 C
9.3.5
Memory characteristics
TA = -40 to 125 C unless otherwise specified.
Table 24. RAM and hardware registers
Symbol
Parameter
Conditions
Min
Typ
Max
Unit
VRM
1.4
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
Table 25. Flash program memory
Symbol
VDD
tprog
Parameter
Conditions
Min
Typ
fMASTER = 16 MHz
1.65
Operating voltage
(all modes, read/write/erase)
DocID15275 Rev 15
Max
(1)
Unit
3.6
ms
ms
47/88
63
Electrical parameters
Symbol
Iprog
tRET
NRW
Parameter
Min
TRET = 55 C
20(1)
TRET = 55 C
20(1)
TRET = 85 C
1(1)
10(1)
300(1)(4)
See notes
(1)(3)
Typ
Max
Conditions
0.7
Unit
(1)
mA
years
kcycles
9.3.6
Symbol
VIL
Parameter
Input low level voltage(2)
Conditions
Min
Typ
Max
Standard I/Os
VSS-0.3
0.3 x VDD
VSS-0.3
0.3 x VDD
0.70 x VDD
VDD+0.3
Standard I/Os
VIH
Vhys
48/88
5.2
0.70 x VDD
5.5
Standard I/Os
200
250
DocID15275 Rev 15
Unit
mV
Electrical parameters
Ilkg
RPU
CIO
(7)
Parameter
Conditions
Min
Typ
Max
50 (5)
200(5)
200(5)
30
45
60
pF
VIN = VSS
Unit
nA
Figure 20. Typical VIL and VIH vs. VDD (High sink I/Os)
DocID15275 Rev 15
49/88
63
Electrical parameters
Figure 22. Typical pull-up resistance RPU vs. VDD with VIN=VSS
Figure 23. Typical pull-up current IPU vs. VDD with VIN=VSS
50/88
DocID15275 Rev 15
Electrical parameters
Standard
VOL (1)
Parameter
Conditions
Min
Max
Unit
IIO = +2 mA,
VDD = 3.0 V
0.45
IIO = +2 mA,
VDD = 1.8 V
0.45
1.2
IIO = -2 mA,
VDD = 3.0 V
VDD-0.45
IIO = -1 mA,
VDD = 1.8 V
VDD-0.45
VDD-1.2
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 IVSS.
2. The IIO current sourced 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 IVDD.
Open drain
I/O
Symbol
Type
VOL
(1)
Parameter
Conditions
Min
Max
Unit
IIO = +3 mA,
VDD = 3.0 V
0.45
IIO = +1 mA,
VDD = 1.8 V
0.45
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 IVSS.
Table 29. Output driving current (PA0 with high sink LED driver capability)
IR
I/O
Symbol
Type
VOL (1)
Parameter
Output low level voltage for an I/O pin
Conditions
Min
Max
Unit
0.9
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 IVSS.
DocID15275 Rev 15
51/88
63
Electrical parameters
52/88
DocID15275 Rev 15
Electrical parameters
NRST pin
The NRST pin input driver is CMOS. A permanent pull-up is present.
RPU(NRST) has the same value as RPU (see Table 26 on page 48).
Subject to general operating conditions for VDD and TA unless otherwise specified.
Table 30. NRST pin characteristics
Symbol
VIL(NRST)
Parameter
Min
Typ (1)
Max
VSS
0.8
1.4
VDD
IOL = 2 mA
VDD-0.8
30
45
60
50
ns
20
ns
300
ns
VIH(NRST)
VOL(NRST)
RPU(NRST)
VF(NRST)
tOP(NRST)
VNF(NRST)
Conditions
(3)
pulse (3)
Unit
DocID15275 Rev 15
53/88
63
Electrical parameters
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 VIL max. level specified in
Table 30. Otherwise the reset is not taken into account internally. For power consumptionsensitive 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
6$$
205
567,1
(;7(51$/
5(6(7
&,5&8,7
&ILTER
).4%2.!, 2%3%4
670/
M)
069
1. Correct device reset during power on sequence is guaranteed when tVDD[max] is respected.
2. External reset circuit is recommended to ensure correct device reset during power down, when VPDR <
VDD < VDD[min].
54/88
DocID15275 Rev 15
9.3.7
Electrical parameters
Communication interfaces
Serial peripheral interface (SPI)
Unless otherwise specified, the parameters given in Table 31 are derived from tests
performed under ambient temperature, fMASTER frequency and VDD supply voltage
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
Symbol
fSCK
1/tc(SCK)
tr(SCK)
tf(SCK)
tsu(NSS)(2)
th(NSS)
(2)
(2)
tw(SCKH)
tw(SCKL)(2)
Parameter
SPI clock frequency
Conditions(1)
Min
Max
Master mode
Slave mode
30
Slave mode
4 x TMASTER
Slave mode
80
Master mode,
fMASTER = 8 MHz, fSCK= 4 MHz
105
145
Master mode
30
Slave mode
Master mode
15
Slave mode
tsu(MI) (2)
tsu(SI)(2)
th(MI) (2)
th(SI)(2)
ta(SO)(2)(3)
Slave mode
3x TMASTER
tdis(SO)(2)(4)
30
Slave mode
(2)
60
tv(MO)(2)
Master mode
(after enable edge)
20
15
Master mode
(after enable edge)
tv(SO)
th(SO)(2)
th(MO)(2)
Unit
MHz
ns
DocID15275 Rev 15
55/88
63
Electrical parameters
6&.,QSXW
W 68166
&3+$
&32/
&3+$
&32/
W F6&.
W K166
W Z6&.+
W Z6&./
W Y62
W D62
0,62
287387
W U6&.
W I6&.
W K62
06%287
%,7287
06%,1
%,7,1
W GLV62
/6%287
WVX6,
026,
,1387
/6%,1
W K6,
DL
Figure 34. SPI timing diagram - slave mode and CPHA = 1(1)
166LQSXW
W68166
6&.,QSXW
&3+$
&32/
&3+$
&32/
WF6&.
WZ6&.+
WZ6&./
WY62
WD62
0,62
287 3 87
WK62
06 % 2 87
WVX6,
026,
, 1387
WK166
%, 7 287
WU6&.
WI6&.
WGLV62
/6% 287
WK6,
% , 7 ,1
0 6% ,1
/6% ,1
DL
56/88
DocID15275 Rev 15
Electrical parameters
3#+ /UTPUT
#0(!
#0/,
3#+ /UTPUT
TC3#+
#0(!
#0/,
#0(!
#0/,
#0(!
#0/,
TSU-)
-)3/
).0 54
TW3#+(
TW3#+,
-3 ").
TR3#+
TF3#+
") 4 ).
,3"