STM 8 L 101
STM 8 L 101
STM 8 L 101
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 UFQFPN32
5 x 5 mm
– Low power consumption (Halt: 0.3 µA, LQFP32
UFQFPN28
4 x 4 mm
Active-halt: 0.8 µA, Dynamic Run: 7x7 mm
150 µA/MHz)
– STM8 Core with up to 16 CISC MIPS
throughput UFQFPN20 TSSOP20
3 x 3 mm 6.5 x 6.4 mm
– Temp. range: -40 to 85 °C and 125 °C
• Memories • Peripherals
– Up to 8 Kbytes of Flash program including – Two 16-bit general purpose timers (TIM2
up to 2 Kbytes of data EEPROM and TIM3) with up and down counter and 2
– Error correction code (ECC) channels (used as IC, OC, PWM)
– Flexible write and read protection modes – One 8-bit timer (TIM4) with 7-bit prescaler
– In-application and in-circuit programming – Infrared remote control (IR)
– Data EEPROM capability – Independent watchdog
– 1.5 Kbytes of static RAM – Auto-wakeup unit
• Clock management – Beeper timer with 1, 2 or 4 kHz frequencies
– Internal 16 MHz RC with fast wakeup time – SPI synchronous serial interface
(typ. 4 µs) – Fast I2C Multimaster/slave 400 kHz
– Internal low consumption 38 kHz RC – USART with fractional baud rate generator
driving both the IWDG and the AWU – 2 comparators with 4 inputs each
• Reset and supply management • Development support
– Ultra-low power POR/PDR – Hardware single wire interface module
– Three low-power modes: Wait, Active-halt, (SWIM) for fast on-chip programming and
Halt non intrusive debugging
• Interrupt management – In-circuit emulation (ICE)
– Nested interrupt controller with software • 96-bit unique ID
priority control
– Up to 29 external interrupt sources Table 1. Device summary
• I/Os Reference Part numbers
– Up to 30 I/Os, all mappable on external
STM8L101x1 STM8L101F1
interrupt vectors
– I/Os with programmable input pull-ups, high STM8L101x2 STM8L101F2, STM8L101G2
sink/source capability and one LED driver STM8L101F3, STM8L101G3,
STM8L101x3
infrared output STM8L101K3
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3 Product overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.1 Central processing unit STM8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
3.2 Development tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
3.3 Single wire data interface (SWIM) and debug module . . . . . . . . . . . . . . . .11
3.4 Interrupt controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
3.5 Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.6 Low power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.7 Voltage regulators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.8 Clock control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.9 Independent watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.10 Auto-wakeup counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.11 General purpose and basic timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.12 Beeper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.13 Infrared (IR) interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.14 Comparators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.15 USART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.16 SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.17 I²C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
7 Option bytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
8 Unique ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
9 Electrical parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
9.1 Parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
9.1.1 Minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
9.1.2 Typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
9.1.3 Typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
9.1.4 Loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
9.1.5 Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
9.2 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
9.3 Operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
9.3.1 General operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
9.3.2 Power-up / power-down operating conditions . . . . . . . . . . . . . . . . . . . . 41
9.3.3 Supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
9.3.4 Clock and timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
9.3.5 Memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
9.3.6 I/O port pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
9.3.7 Communication interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
9.3.8 Comparator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
9.3.9 EMC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
9.4 Thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
10 Package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
10.1 UFQFPN32 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
10.2 LQFP32 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
10.3 UFQFPN28 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
10.4 UFQFPN20 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
10.5 TSSOP20 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
13 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
List of tables
List of figures
package outline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Figure 47. UFQFPN20 - 20-lead, 3x3 mm, 0.5 mm pitch, ultra thin fine pitch quad flat
package recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Figure 48. UFQFPN20 marking example (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Figure 49. TSSOP20 - 20-lead thin shrink small package outline . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Figure 50. TSSOP20 recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Figure 51. TSSOP20 marking example (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Figure 52. STM8L101xx ordering information scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
1 Introduction
2 Description
3 Product overview
#9''
&ORFNV
5HVHW 1567
WRFRUHDQG
SHULSKHUDOV
3253'5
670
&RUH 8SWR.E\WHV
XSWR0+] )ODVKPHPRU\
LQFOXGLQJ
XSWR.E\WHV
GDWD((3520
1HVWHGLQWHUUXSW
FRQWUROOHU
.E\WHV
XSWRH[WHUQDO
65$0
LQWHUUXSWV
6:,0
6:,0
,ð& 6'$6&/
PXOWLPDVWHU
,5B7,0 ,QIUDUHGLQWHUIDFH
63, 026,0,62
6&.166
3$>@ 3RUW$
ELW7LPHU 7,0B&+>@
3%>@ 7,0B75,*
3RUW%
3&>@ ELW7LPHU 7,0B&+>@
3RUW& 7,0B75,*
3'>@ 3RUW'
ELW7LPHU
&203B5()
$:8
&203B&+>@ &203 %HHSHU %((3
069
Legend:
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
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.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.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.
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 I2C 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.
4 Pin description
3&+6
3&+6
3&+6
3$+6
3&
15673$+6 3&
3$+6 3%+6
3$+6 3%+6
966 3%+6
9'' 3%+6
3%+6
3%+6
3%+6
3%+6
3'+6
069
3&+6
3&+6
3&+6
3$+6
3&
15673$+6 3&
3$+6 3%+6
3$+6 3%+6
966 3%+6
9'' 3%+6
3%+6
3%+6
3%+6
3%+6
3'+6
069
0# (3 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&+6
3&
15673$+6 3&
3$+6 3'+6
3$+6 3%+6
3$+6 3%+6
3$+6 3%+6
966 3%+6
9'' 3%+6
3'+6
3'+6
3%+6
3'+6
3'+6
3%+6
3%+6
069
3&+6
3$+6
3&+6
3&+6
3&+6
3&+6
3&
15673$+6 3&
3$+6 3'+6
3$+6 3%+6
3$+6 3%+6
3$+6 3%+6
966 3%+6
9'' 3%+6
3'+6
3%+6
3'+6
3'+6
3'+6
3%+6
3%+6
069
3&+6
3$+6
3&+6
3&+6
3&+6
3&+6
3&
3&
15673$+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'+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).
standard UFQFPN28
Main function
High sink/source
(after reset)
Ext. interrupt
Type
TSSOP20
floating
OD
PP
standard UFQFPN28
Main function
High sink/source
(after reset)
Ext. interrupt
Type
TSSOP20
floating
Pin name Alternate function
wpu
OD
PP
Timer 2 - channel 1 /
PB0/TIM2_CH1/
7 7 10 12 12 13 I/O X(3) X(3) X HS X X Port B0 Comparator 1 -
COMP1_CH1 (3)
channel 1
Timer 3 - channel 1 /
PB1/TIM3_CH1/
8 8 11 13 13 14 I/O X X X HS X X Port B1 Comparator 1 -
COMP1_CH2
channel 2
Timer 2 - channel 2 /
PB2/ TIM2_CH2/
9 9 12 14 14 15 I/O X X X HS X X Port B2 Comparator 2 -
COMP2_CH1/
channel 1
Timer 2 - trigger /
PB3/TIM2_ETR/
10 10 13 15 15 16 I/O X X X HS X X Port B3 Comparator 2 -
COMP2_CH2
channel 2
SPI master/slave
11 11 14 16 16 17 PB4/SPI_NSS(3) I/O X(3) X(3) X HS X X Port B4
select
12 12 15 17 17 18 PB5/SPI_SCK I/O X X X HS X X Port B5 SPI clock
SPI master out/ slave
13 13 16 18 18 19 PB6/SPI_MOSI I/O X X X HS X X Port B6
in
SPI master in/ slave
14 14 17 19 19 20 PB7/SPI_MISO I/O X X X HS X X Port B7
out
- - - 20 20 21 PD4 I/O X X X HS X X Port D4 -
- - - - - 22 PD5 I/O X X X HS X X Port D5 -
- - - - - 23 PD6 I/O X X X HS X X Port D6 -
- - - - - 24 PD7 I/O X X X HS X X Port D7 -
15 15 18 21 21 25 PC0/I2C_SDA I/O X - X - T(4) Port C0 I2C data
16 16 19 22 22 26 PC1/I2C_SCL I/O X - X - T(4) Port C1 I2C clock
17 17 20 23 23 27 PC2/USART_RX I/O X X X HS X X Port C2 USART receive
18 18 1 24 24 28 PC3/USART_TX I/O X X X HS X X Port C3 USART transmit
USART synchronous
PC4/USART_CK/
19 19 2 25 25 29 I/O X X X HS X X Port C4 clock / Configurable
CCO
clock output
standard UFQFPN28
Main function
High sink/source
(after reset)
Ext. interrupt
Type
TSSOP20
floating
Pin name Alternate function
wpu
OD
PP
- - - 26 26 30 PC5 I/O X X X HS X X Port C5 -
- - - 27 27 31 PC6 I/O X X X HS X X Port C6 -
SWIM input and
PA0(5)/SWIM/ (5) output /Beep
20 20 3 28 28 32 I/O X X X HS(6) X X Port A0
BEEP/IR_TIM (6) output/Timer Infrared
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 a general purpose pin (PA1), it can be configured only as output push-pull, not neither as output open-
drain nor as a general purpose input. Refer to Section Configuring NRST/PA1 pin as general purpose output in the STM8L
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, weak pull-up and protection diode to VDD are
not 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.
Slope control of all GPIO pins can be programmed except true open drain pins and by
default is limited to 2 MHz.
[ 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.
Note: 2 Kbytes of Data EEPROM is only available on devices with 8 Kbytes flash program memory.
0x00 521E
to Reserved area (18 bytes)
0x00 522F
0x00 5230 USART_SR USART status register 0xC0
0x00 5231 USART_DR USART data register 0xXX
0x00 5232 USART_BRR1 USART baud rate register 1 0x00
0x00 5233 USART_BRR2 USART baud rate register 2 0x00
USART
0x00 5234 USART_CR1 USART control register 1 0x00
0x00 5235 USART_CR2 USART control register 2 0x00
0x00 5236 USART_CR3 USART control register 3 0x00
0x00 5237 USART_CR4 USART control register 4 0x00
0x00 5238
to Reserved area (18 bytes)
0x00 524F
0x00 52E9
to Reserved area (23 bytes)
0x00 52FE
0x00 52FF IRTIM IR_CR Infra-red control register 0x00
0x00 5300 COMP_CR Comparator control register 0x00
0x00 5301 COMP COMP_CSR Comparator status register 0x00
0x00 5302 COMP_CCS Comparator channel selection register 0x00
0x00 7F78
to Reserved area (2 bytes)
0x00 7F79
0x00 7F80 SWIM SWIM_CSR SWIM control status register 0x00
0x00 7F81
to Reserved area (15 bytes)
0x00 7F8F
0x00 7F90 DM_BK1RE Breakpoint 1 register extended byte 0xFF
0x00 7F91 DM_BK1RH Breakpoint 1 register high byte 0xFF
0x00 7F92 DM_BK1RL Breakpoint 1 register low byte 0xFF
0x00 7F93 DM_BK2RE Breakpoint 2 register extended byte 0xFF
0x00 7F94 DM_BK2RH Breakpoint 2 register high byte 0xFF
0x00 7F95 DM DM_BK2RL Breakpoint 2 register low byte 0xFF
0x00 7F96 DM_CR1 Debug module control register 1 0x00
0x00 7F97 DM_CR2 Debug module control register 2 0x00
0x00 7F98 DM_CSR1 Debug module control/status register 1 0x10
0x00 7F99 DM_CSR2 Debug module control/status register 2 0x00
0x00 7F9A DM_ENFCTR Enable function register 0xFF
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.
Transmission
27 USART complete/transmit data - - Yes Yes(1) 0x00 8074
register empty
Receive Register DATA
28 USART FULL/overrun/idle line - - Yes Yes(1) 0x00 8078
detected/parity error
29 I2C I2C interrupt(2) Yes Yes Yes Yes(1) 0x00 807C
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.
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 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.
Read-out
0x4800 protection OPT1 ROP[7:0] 0x00
(ROP)
0x4807 - - Must be programmed to 0x00 0x00
UBC (User
0x4802 OPT2 UBC[7:0] 0x00
Boot code size)
0x4803 DATASIZE OPT3 DATASIZE[7:0] 0x00
Independent
OPT4 IWDG IWDG
0x4808 watchdog Reserved 0x00
[1:0] _HALT _HW
option
Caution: After a device reset, read access to the program memory is not guaranteed if address
0x4807 is not programmed to 0x00.
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 cryptographic primitives and
protocols before programming the internal memory
• To activate secure boot processes.
9 Electrical parameters
34-, 0).
P&
069
34-, 0).
6).
069
Figure 11. IDD(RUN) vs. VDD, fCPU = 2 MHz Figure 12. IDD(RUN) vs. VDD, fCPU = 16 MHz
IDD (Wait) Supply CPU not clocked, fMASTER = 4 MHz 300 450
current in all peripherals off, µA
Wait mode HSI internal RC osc. fMASTER = 8 MHz 380 600
fMASTER = 16 MHz 510 800
1. Based on characterization results, unless otherwise specified.
2. Maximum values are given for TA = -40 to 125 °C.
Figure 13. IDD(WAIT) vs. VDD, fCPU = 2 MHz Figure 14. IDD(WAIT) vs. VDD, fCPU = 16 MHz
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
TA = -40 °C to 25 °C 0.8 2 μA
TA = 55 °C 1 2.5 μA
Supply current in Active-halt LSI RC osc.
IDD(AH) TA = 85 °C 1.4 3.2 μA
mode (at 37 kHz)
TA = 105 °C 2.9 7.5 μA
TA = 125 °C 5.8 13 μA
Supply current during
IDD(WUFAH) wakeup time from Active-halt - - 2 - mA
mode
Wakeup time from Active-
tWU(AH)(3) fCPU= 16 MHz 4 6.5 μs
halt mode to Run mode
TA = -40 °C to 25 °C 0.35 1.2(4) μA
TA = 55 °C 0.6 1.8 μA
IDD(Halt) Supply current in Halt mode TA = 85 °C 1 2.5(4) μA
TA = 105 °C 2.5 6.5 μA
TA = 125 °C 5.4 12(4) μA
Supply current during
IDD(WUFH) 2 - mA
wakeup time from Halt mode
Wakeup time from Halt mode
tWU(Halt)(3) fCPU = 16 MHz 4 6.5 μs
to Run mode
1. TA = -40 to 125 °C, no floating I/O, unless otherwise specified.
2. Guaranteed by characterization results.
3. Measured from interrupt event to interrupt vector fetch.
To get tWU for another CPU frequency use tWU(FREQ) = tWU(16 MHz) + 1.5 (TFREQ-T16 MHz).
The first word of interrupt routine is fetched 5 CPU cycles after tWU.
4. Tested in production.
Figure 15. Typ. IDD(Halt) vs. VDD, fCPU = 2 MHz and 16 MHz
IDD(TIM2) (1)
TIM2 supply current 9
IDD(TIM3) TIM3 supply current (1) 9
(1)
IDD(TIM4) TIM4 timer supply current 4
µA/MHz
IDD(USART) (2)
USART supply current 7
IDD(SPI) SPI supply current (2) 4
IDD(I²C1) I2C supply current (2) 4
IDD(COMP) (2)
Comparator supply current 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 18. Typical HSI accuracy vs. temperature, VDD = 1.65 V to 3.6 V
VRM Data retention mode (1) Halt mode (or Reset) 1.4 - - V
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 results.
Flash memory
Operating voltage
VDD fMASTER = 16 MHz 1.65 - 3.6 V
(all modes, read/write/erase)
Programming time for 1- or 64-byte (block)
- - 6 - ms
erase/write cycles (on programmed byte)
tprog
Programming time for 1- to 64-byte (block)
- - 3 - ms
write cycles (on erased byte)
Figure 20. Typical VIL and VIH vs. VDD (High sink I/Os)
Figure 21. Typical VIL and VIH vs. VDD (true open drain I/Os)
Figure 22. Typical pull-up resistance RPU vs. VDD with VIN=VSS
Figure 23. Typical pull-up current IPU vs. VDD with VIN=VSS
IIO = +2 mA,
- 0.45 V
VDD = 3.0 V
Output low level voltage for an I/O pin IIO = +2 mA,
VOL (1) - 0.45 V
VDD = 1.8 V
IIO = +10 mA,
- 1.2 V
Standard
VDD = 3.0 V
IIO = -2 mA,
VDD-0.45 - V
VDD = 3.0 V
IIO = -1 mA,
VOH (2) Output high level voltage for an I/O pin VDD-0.45 - V
VDD = 1.8 V
IIO = -10 mA,
VDD-1.2 - V
VDD = 3.0 V
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.
IIO = +3 mA,
Open drain
- 0.45 V
VDD = 3.0 V
VOL (1) Output low level voltage for an I/O pin
IIO = +1 mA,
- 0.45 V
VDD = 1.8 V
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)
I/O
Symbol Parameter Conditions Min Max Unit
Type
VDD = 2.0 V
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.
Figure 24. Typ. VOL at VDD = 3.0 V (High sink Figure 25. Typ. VOL at VDD = 1.8 V (High sink
ports) ports)
Figure 26. Typ. VOL at VDD = 3.0 V (true open Figure 27. Typ. VOL at VDD = 1.8 V (true open
drain ports) drain ports)
Figure 28. Typ. VDD - VOH at VDD = 3.0 V (High Figure 29. Typ. VDD - VOH at VDD = 1.8 V (High
sink ports) sink ports)
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.
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 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.
6$$
205
(;7(51$/ 567,1 ).4%2.!, 2%3%4
5(6(7 &ILTER
&,5&8,7
M) 670/
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].
Figure 34. SPI timing diagram - slave mode and CPHA = 1(1)
(IGH
.33 INPUT
TC3#+
3#+ /UTPUT
#0(!
#0/,
#0(!
#0/,
3#+ /UTPUT
#0(!
#0/,
#0(!
#0/,
TW3#+( TR3#+
TSU-) TW3#+, TF3#+
-)3/
).0 54 -3 "). ") 4 ). ,3"