STM8L152K6T3 STMicroelectronics, STM8L152K6T3 Datasheet

no-image

STM8L152K6T3

Manufacturer Part Number
STM8L152K6T3
Description
8-bit Microcontrollers - MCU 8-bit Ultralow MCU LCD 32pin 32kb Flash
Manufacturer
STMicroelectronics
Datasheet

Specifications of STM8L152K6T3

Product Category
8-bit Microcontrollers - MCU
Rohs
yes
Core
STM8
Data Bus Width
8 bit

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
STM8L152K6T3
Manufacturer:
CSI
Quantity:
10
Part Number:
STM8L152K6T3
Manufacturer:
STMicroelectronics
Quantity:
10 000
Part Number:
STM8L152K6T3
Manufacturer:
ST
0
Features
November 2012
This is information on a product in full production.
8-bit ultralow power MCU, up to 32 KB Flash, 1 KB Data EEPROM,
Operating conditions
– Operating power supply range 1.8 V to
– Temp. range: - 40 °C to 85, 105 or 125 °C
Low power features
– 5 low power modes: Wait, Low power run
– Consumption: 195 µA/MHz + 440 µA
– Ultra-low leakage per I/0: 50 nA
– Fast wakeup from Halt: 4.7 µs
Advanced STM8 core
– Harvard architecture and 3-stage pipeline
– Max freq. 16 MHz, 16 CISC MIPS peak
– Up to 40 external interrupt sources
Reset and supply management
– Low power, ultra-safe BOR reset with 5
– Ultra-low-power POR/PDR
– Programmable voltage detector (PVD)
Clock management
– 1 to 16 MHz crystal oscillator
– 32 kHz crystal oscillator
– Internal 16 MHz factory-trimmed RC
– Internal 38 kHz low consumption RC
– Clock security system
Low power RTC
– BCD calendar with alarm interrupt
– Auto-wakeup from Halt w/ periodic interrupt
LCD: up to 4x28 segments w/ step-up converter
Memories
– Up to 32 KB of Flash program memory and
– Flexible write and read protection modes
– Up to 2 Kbytes of RAM
DMA
– 4 channels; supported peripherals: ADC,
– 1 channel for memory-to-memory
12-bit DAC with output buffer
3.6 V (down to 1.65 V at power down)
(5.1 µA), Low power wait (3 µA), Active-halt
with full RTC (1.3 µA), Halt (350 nA)
selectable thresholds
1 Kbyte of data EEPROM with ECC, RWW
DAC, SPI, I2C, USART, timers
RTC, LCD, timers, USART, I2C, SPI, ADC, DAC, comparators
Doc ID 15962 Rev 12
STM8L151x4, STM8L151x6,
STM8L152x4, STM8L152x6
Table 1.
(without LCD)
STM8L151xx
STM8L152xx
Reference
LQFP48
(with LCD)
12-bit ADC up to 1 Msps/25 channels
– T. sensor and internal reference voltage
2 ultra-low-power comparators
– 1 with fixed threshold and 1 rail to rail
– Wakeup capability
Timers
– Two 16-bit timers with 2 channels (used as
– One 16-bit advanced control timer with 3
– One 8-bit timer with 7-bit prescaler
– 2 watchdogs: 1 Window, 1 Independent
– Beeper timer with 1, 2 or 4 kHz frequencies
Communication interfaces
– Synchronous serial interface (SPI)
– Fast I2C 400 kHz SMBus and PMBus
– USART (ISO 7816 interface and IrDA)
Up to 41 I/Os, all mappable on interrupt vectors
Up to 16 capacitive sensing channels
supporting touchkey, proximity, linear touch
and rotary touch sensors
Development support
– Fast on-chip programming and non intrusive
– Bootloader using USART
96-bit unique ID
IC, OC, PWM), quadrature encoder
channels, supporting motor control
debugging with SWIM
LQFP32
Device summary
STM8L151C6, STM8L151C4,
STM8L152C6, STM8L152C4,
STM8L151K6, STM8L151K4,
STM8L151G6, STM8L151G4
STM8L152K6, STM8L152K4
UFQFPN48
Datasheet
UFQFPN28
Part number
production data
WLCSP28
UFQFPN32
www.st.com
CSP
1/129
1

Related parts for STM8L152K6T3

STM8L152K6T3 Summary of contents

Page 1

MCU Flash Data EEPROM, RTC, LCD, timers, USART, I2C, SPI, ADC, DAC, comparators Features ■ Operating conditions – Operating power supply range 1 3.6 V (down to 1.65 V ...

Page 2

Contents Contents 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 3

STM8L151xx, STM8L152xx 3.16 Beeper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 4

Contents 9.3.8 9.3.9 9.3.10 9.3.11 9.3.12 9.3.13 9.3.14 9.3.15 9.4 Thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 5

STM8L151xx, STM8L152xx List of tables Table 1. Device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 6

List of tables Table 48. Comparator 1 characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 7

STM8L151xx, STM8L152xx List of figures Figure 1. Medium density STM8L15x device block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 8

List of figures Figure 48. Recommended LQFP32 footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 9

... STM8L15x and STM8L16x reference manual (RM0031) and in the STM8L Flash programming manual (PM0054). For more details on the whole STMicroelectronics ultra-low-power family please refer to Section 2.2: Ultra-low-power continuum on page For information on the debug module and SWIM (single wire interface module), refer to the STM8 SWIM communication protocol and debug module user manual (UM0470) ...

Page 10

Description 2 Description The medium-density STM8L15x devices are members of the STM8L ultra-low-power 8-bit family. The medium-density STM8L15x family operates from 1 3.6 V (down to 1. power down) and is available in the The medium-density ...

Page 11

STM8L151xx, STM8L152xx 2.1 Device overview Table 2. Medium density STM8L15x low power device features and peripheral counts Features Flash (Kbytes) Data EEPROM (Kbytes) RAM-Kbytes LCD Basic Timers General purpose Advanced control SPI Communication I2C interfaces USART GPIOs 12-bit synchronized ADC ...

Page 12

... STMicroelectronics microcontrollers ultra-low-power strategy which also includes STM8L101xx and STM32L15xxx. The STM8L and STM32L families allow a continuum of performance, peripherals, system architecture, and features. They are all based on STMicroelectronics 0.13 µm ultra-low leakage process. Note: 1 The STM8L151xx and STM8L152xx are pin-to-pin compatible with STM8L101xx devices. ...

Page 13

STM8L151xx, STM8L152xx 3 Functional overview Figure 1. Medium density STM8L15x device block diagram OSC_IN, 1-16 MHz oscillator OSC_OUT 16 MHz internal RC OSC32_IN, 32 kHz oscillator OSC32_OUT 38 kHz internal RC Interrupt controller STM8 Core Debug module SWIM (SWIM) 2 ...

Page 14

Functional overview 3.1 Low power modes The medium density STM8L15x devices support five low power modes to achieve the best compromise between low power consumption, short startup time and available wakeup sources: ● Wait mode: The CPU clock is stopped, ...

Page 15

STM8L151xx, STM8L152xx Architecture and registers ● Harvard architecture ● 3-stage pipeline ● 32-bit wide program memory bus - single cycle fetching most instructions ● X and Y 16-bit index registers - enabling indexed addressing modes with or without offset and ...

Page 16

Functional overview 3.3 Reset and supply management 3.3.1 Power supply scheme The device requires a 1. 3.6 V operating supply voltage (V supply pins must be connected as follows: ● SS1 DD1 I/Os and for ...

Page 17

STM8L151xx, STM8L152xx 3.4 Clock management The clock controller distributes the system clock (SYSCLK) coming from different oscillators to the core and the peripherals. It also manages clock gating for low power modes and ensures clock robustness. Features ● Clock prescaler: ...

Page 18

Functional overview Figure 2. Medium density STM8L15x clock tree diagram 1. The HSE clock source can be either an external crystal/ceramic resonator or an external source (HSE bypass). Refer to Section HSE clock in the STM8L15x and STM8L16x reference manual ...

Page 19

STM8L151xx, STM8L152xx 3.6 LCD (Liquid crystal display) The liquid crystal display drives common terminals and segment terminals to drive up to 112 pixels. ● Internal step-up converter to guarantee contrast control whatever V ● ...

Page 20

Functional overview 3.10 Digital-to-analog converter (DAC) ● 12-bit DAC with output buffer ● Synchronized update capability using TIM4 ● DMA capability ● External triggers for conversion ● Input reference voltage V Note: DAC can be served by DMA1. 3.11 Ultra-low-power ...

Page 21

STM8L151xx, STM8L152xx Reliable touch sensing solutions can be quickly and easily implemented using the free STM8 Touch Sensing Library. 3.14 Timers Medium density STM8L15x devices contain one advanced control timer (TIM1), two 16-bit general purpose timers (TIM2 and TIM3) and ...

Page 22

Functional overview 3.14.2 16-bit general purpose timers ● 16-bit autoreload (AR) up/down-counter ● 7-bit prescaler adjustable to fixed power of 2 ratios (1…128) ● 2 individually configurable capture/compare channels ● PWM mode ● Interrupt capability on various events (capture, compare, ...

Page 23

STM8L151xx, STM8L152xx 3.17 Communication interfaces 3.17.1 SPI The serial peripheral interface (SPI1) provides half/ full duplex synchronous serial communication with external devices. ● Maximum speed: 8 Mbit/s (f ● Full duplex synchronous transfers ● Simplex synchronous transfers on 2 lines ...

Page 24

Functional overview 3.19 Development support 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 ...

Page 25

STM8L151xx, STM8L152xx 4 Pin description Figure 3. STM8L151Cx 48-pin pinout (without LCD) 1. Reserved. Must be tied to V Figure 4. STM8L151Kx 32-pin package pinout (without LCD) 1. Example given for the UFQFPN32 package. The pinout is the same for ...

Page 26

Pin description Figure 6. STM8L151Gx WLCSP28 package pinout Figure 7. STM8L152Cx 48-pin pinout (with LCD) Figure 8. STM8L152Kx 32-pin package pinout (with LCD) 1. Example given for the UFQFPN32 package. The pinout is the same for the LQFP32 package. 26/129 ...

Page 27

STM8L151xx, STM8L152xx Table 4. Legend/abbreviation for table 5 Type Level Port and control configuration Reset state Table 5. Medium density STM8L15x pin description Pin number Pin name ( NRST/PA1 PA2/OSC_IN/ ( [USART1_TX] ...

Page 28

Pin description Table 5. Medium density STM8L15x pin description (continued) Pin number Pin name PA5/TIM3_BKIN/ (4) [TIM3_ETR (2) LCD_COM1 /ADC1_IN1/ COMP1_INP PA6/[ADC1_TRIG] ( LCD_COM2 /ADC1_IN0/ COMP1_INP PA7/LCD_SEG0 ...

Page 29

STM8L151xx, STM8L152xx Table 5. Medium density STM8L15x pin description (continued) Pin number Pin name PB3/[TIM2_ETR] TIM1_CH1N/ ( LCD_SEG13 / ADC1_IN15/RTC_ALARM /COMP1_INP (6) PB4 /[SPI1_NSS] ( LCD_SEG14 / ADC1_IN14/COMP1_INP (6) PB4 /[SPI1_NSS] (2) ...

Page 30

Pin description Table 5. Medium density STM8L15x pin description (continued) Pin number Pin name PB7/[SPI1_MISO] ( LCD_SEG17 / ADC1_IN11/COMP1_INP ( PC0 /I2C1_SDA ( PC1 /I2C1_SCL PC2/USART1_RX ...

Page 31

STM8L151xx, STM8L152xx Table 5. Medium density STM8L15x pin description (continued) Pin number Pin name PC7/LCD_SEG25 ADC1_IN3/COMP2_INM/ COMP1_INP PD0/TIM3_CH2/ (4) [ADC1_TRIG] ( LCD_SEG7 /ADC1_IN2 2/COMP2_INP/ COMP1_INP PD0/TIM3_CH2/ (4) [ADC1_TRIG ...

Page 32

Pin description Table 5. Medium density STM8L15x pin description (continued) Pin number Pin name PD2/TIM1_CH1 ( /LCD_SEG8 / ADC1_IN20/COMP1_INP PD3/ TIM1_ETR/ ( LCD_SEG9 /ADC1_IN1 9/COMP1_INP PD3/ TIM1_ETR/ (2) LCD_SEG9 / - - ...

Page 33

STM8L151xx, STM8L152xx Table 5. Medium density STM8L15x pin description (continued) Pin number Pin name ( PE0 /LCD_SEG1 PE1/TIM1_CH2N (2) /LCD_SEG2 PE2/TIM1_CH3N (2) /LCD_SEG3 PE3/LCD_SEG4 ...

Page 34

Pin description Table 5. Medium density STM8L15x pin description (continued) Pin number Pin name DD2 SS2 (9) PA0 /[USART1_CK SWIM/BEEP/IR_TIM 1. At power-up, the PA1/NRST pin ...

Page 35

STM8L151xx, STM8L152xx 5 Memory and register map 5.1 Memory mapping The memory map is shown in Figure 9. Memory map 0x00 0000 Stack 0x00 07FF 0x00 0800 0x00 0FFF 0x00 1000 0x00 13FF 0x00 1400 0x00 47FF 0x00 4800 0x00 ...

Page 36

Memory and register map Table 6. Flash and RAM boundary addresses Memory area RAM Flash program memory 5.2 Register map Table 7. Factory conversion registers Address Block 0x00 4910 - 0x00 4911 - 1. The VREFINT_Factory_CONV byte represents the 8 ...

Page 37

STM8L151xx, STM8L152xx Table 8. I/O port hardware register map (continued) Address Block 0x00 500F 0x00 5010 0x00 5011 Port D 0x00 5012 0x00 5013 0x00 5014 0x00 5015 0x00 5016 Port E 0x00 5017 0x00 5018 0x00 5019 0x00 501A ...

Page 38

Memory and register map Table 9. General hardware register map (continued) Address Block 0x00 5070 0x00 5071 0x00 5072 to 0x00 5074 0x00 5075 0x00 5076 0x00 5077 0x00 5078 0x00 5079 0x00 507A DMA1 0x00 507B 0x00 507C 0x00 ...

Page 39

STM8L151xx, STM8L152xx Table 9. General hardware register map (continued) Address Block 0x00 5084 0x00 5085 0x00 5086 0x00 5087 0x00 5088 0x00 5089 0x00 508A 0x00 508B 0x00 508C 0x00 508D 0x00 508E 0x00 508F DMA1 0x00 5090 0x00 5091 ...

Page 40

Memory and register map Table 9. General hardware register map (continued) Address Block 0x00 50A0 0x00 50A1 0x00 50A2 ITC - EXTI 0x00 50A3 0x00 50A4 0x00 50A5 0x00 50A6 0x00 50A7 WFE 0x00 50A8 0x00 50A9 to 0x00 50AF ...

Page 41

STM8L151xx, STM8L152xx Table 9. General hardware register map (continued) Address Block 0x00 50D0 to 0x00 50D2 0x00 50D3 WWDG 0x00 50D4 0x00 50D5 to 00 50DF 0x00 50E0 0x00 50E1 IWDG 0x00 50E2 0x00 50E3 to 0x00 50EF 0x00 50F0 ...

Page 42

Memory and register map Table 9. General hardware register map (continued) Address Block 0x00 5140 0x00 5141 0x00 5142 0x00 5143 0x00 5144 0x00 5145 0x00 5146 0x00 5147 0x00 5148 0x00 5149 0x00 514A 0x00 514B 0x00 514C 0x00 ...

Page 43

STM8L151xx, STM8L152xx Table 9. General hardware register map (continued) Address Block 0x00 5200 0x00 5201 0x00 5202 0x00 5203 SPI1 0x00 5204 0x00 5205 0x00 5206 0x00 5207 0x00 5208 to 0x00 520F 0x00 5210 0x00 5211 0x00 5212 0x00 ...

Page 44

Memory and register map Table 9. General hardware register map (continued) Address Block 0x00 5230 0x00 5231 0x00 5232 0x00 5233 0x00 5234 0x00 5235 USART1 0x00 5236 0x00 5237 0x00 5238 0x00 5239 0x00 523A 0x00 523B to 0x00 ...

Page 45

STM8L151xx, STM8L152xx Table 9. General hardware register map (continued) Address Block 0x00 5250 0x00 5251 0x00 5252 0x00 5253 0x00 5254 0x00 5255 0x00 5256 0x00 5257 0x00 5258 0x00 5259 0x00 525A 0x00 525B TIM2 0x00 525C 0x00 525D ...

Page 46

Memory and register map Table 9. General hardware register map (continued) Address Block 0x00 5280 0x00 5281 0x00 5282 0x00 5283 0x00 5284 0x00 5285 0x00 5286 0x00 5287 0x00 5288 0x00 5289 0x00 528A 0x00 528B TIM3 0x00 528C ...

Page 47

STM8L151xx, STM8L152xx Table 9. General hardware register map (continued) Address Block 0x00 52B0 0x00 52B1 0x00 52B2 0x00 52B3 0x00 52B4 0x00 52B5 0x00 52B6 0x00 52B7 0x00 52B8 0x00 52B9 0x00 52BA 0x00 52BB 0x00 52BC 0x00 52BD 0x00 ...

Page 48

Memory and register map Table 9. General hardware register map (continued) Address Block 0x00 52D2 TIM1 0x00 52D3 0x00 52D4 to 0x00 52DF 0x00 52E0 0x00 52E1 0x00 52E2 0x00 52E3 0x00 52E4 TIM4 0x00 52E5 0x00 52E6 0x00 52E7 ...

Page 49

STM8L151xx, STM8L152xx Table 9. General hardware register map (continued) Address Block 0x00 534E 0x00 534F ADC1 0x00 5350 0x00 5351 0x00 5352 to 0x00 537F 0x00 5380 0x00 5381 0x00 5382 to 0x00 5383 0x00 5384 0x00 5385 0x00 5386 ...

Page 50

Memory and register map Table 9. General hardware register map (continued) Address Block 0x00 5400 0x00 5401 0x00 5402 0x00 5403 LCD 0x00 5404 0x00 5405 0x00 5406 0x00 5407 0x00 5408 to 0x00 540B 0x00 540C 0x00 540D 0x00 ...

Page 51

STM8L151xx, STM8L152xx Table 9. General hardware register map (continued) Address Block 0x00 5430 0x00 5431 0x00 5432 0x00 5433 0x00 5434 0x00 5435 0x00 5436 0x00 5437 RI 0x00 5438 0x00 5439 0x00 543A 0x00 543B 0x00 543C 0x00 543D ...

Page 52

Memory and register map Table 10. CPU/SWIM/debug module/interrupt controller registers Address Block Register Label 0x00 7F00 0x00 7F01 0x00 7F02 0x00 7F03 0x00 7F04 (1) 0x00 7F05 CPU 0x00 7F06 0x00 7F07 0x00 7F08 0x00 7F09 0x00 7F0A 0x00 7F0B ...

Page 53

STM8L151xx, STM8L152xx Table 10. CPU/SWIM/debug module/interrupt controller registers (continued) Address Block Register Label 0x00 7F90 DM_BK1RE 0x00 7F91 DM_BK1RH 0x00 7F92 DM_BK1RL 0x00 7F93 DM_BK2RE 0x00 7F94 DM_BK2RH 0x00 7F95 DM DM_BK2RL 0x00 7F96 0x00 7F97 0x00 7F98 DM_CSR1 0x00 ...

Page 54

Interrupt vector mapping 6 Interrupt vector mapping Table 11. Interrupt mapping IRQ Source Description No. block RESET Reset TRAP Software interrupt 0 FLASH end of programing/ 1 FLASH write attempted to protected page interrupt DMA1 channels 0/1 half 2 DMA1 ...

Page 55

STM8L151xx, STM8L152xx Table 11. Interrupt mapping (continued) IRQ Source Description No. block TIM2 update/overflow/ 19 TIM2 trigger/break interrupt TIM2 capture/ 20 TIM2 compare interrupt TIM3 update/overflow/ 21 TIM3 trigger/break interrupt TIM3 capture/ 22 TIM3 compare interrupt Update /overflow/trigger/ 23 TIM1 ...

Page 56

Option bytes 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 memory block. All option bytes can be modified in ICP mode (with ...

Page 57

STM8L151xx, STM8L152xx Table 13. Option byte description Option byte No. ROP[7:0] Memory readout protection (ROP) OPT0 0xAA: Disable readout protection (write access via SWIM protocol) Refer to Readout protection section in the STM8L15x and STM8L16x reference manual (RM0031). UBC[7:0] Size ...

Page 58

Option bytes Table 13. Option byte description (continued) Option byte No. BOR_ON: 0: Brownout reset off 1: Brownout reset on OPT5 BOR_TH[3:1]: Brownout reset thresholds. Refer to the value of BOR_TH bits. OPTBL[15:0]: This option is checked by the boot ...

Page 59

STM8L151xx, STM8L152xx 8 Unique ID STM8 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 ...

Page 60

Electrical parameters 9 Electrical parameters 9.1 Parameter conditions Unless otherwise specified, all voltages are referred to V 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 ...

Page 61

STM8L151xx, STM8L152xx 9.1.5 Pin input voltage The input voltage measurement on a pin of the device is described in Figure 11. Pin input voltage 9.2 Absolute maximum ratings Stresses above those listed as “absolute maximum ratings” may cause permanent damage ...

Page 62

Electrical parameters Table 16. Current characteristics Symbol I Total current into V VDD I Total current out of V VSS Output current sunk by IR_TIM pin (with high sink LED driver capability Output current sunk by any other ...

Page 63

STM8L151xx, STM8L152xx 9.3 Operating conditions Subject to general operating conditions for V 9.3.1 General operating conditions Table 18. General operating conditions Symbol Parameter System clock (1) f SYSCLK frequency Standard operating V DD voltage Analog operating V DDA voltage Power ...

Page 64

Electrical parameters 9.3.2 Embedded reset and power control block characteristics Table 19. Embedded reset and power control block characteristics Symbol Parameter V rise time rate DD t VDD V fall time rate DD t Reset release delay TEMP V Power-down ...

Page 65

STM8L151xx, STM8L152xx Figure 12. POR/BOR thresholds Internal NRST 9.3.3 Supply current characteristics Total current consumption The MCU is placed under the following conditions: ● All I/O pins in input mode with a static value at V ● All peripherals are ...

Page 66

Electrical parameters Table 20. Total current consumption in Run mode Para Symbol meter All peripherals OFF, Supply code current I executed DD(RUN) in run from RAM, (5) mode V from DD 1. 3.6 V All peripherals OFF, code ...

Page 67

STM8L151xx, STM8L152xx 5. CPU executing typical data processing 6. The run from RAM consumption can be approximated with the linear formula: I (run_from_RAM) = Freq * 90 µA/MHz + 380 µ Oscillator bypassed (HSEBYP = 1 in CLK_ECKCR). ...

Page 68

Electrical parameters In the following table, data is based on characterization results, unless otherwise specified. Table 21. Total current consumption in Wait mode Symbol Parameter CPU not clocked, all peripherals OFF, Supply code executed I current in from RAM DD(Wait) ...

Page 69

STM8L151xx, STM8L152xx 2. For temperature range 6. 3. For temperature range 7. 4. For temperature range 3. 5. Flash is configured in I mode in Wait mode by setting the EPM or WAITM bit in the Flash_CR1 register. DDQ 6. ...

Page 70

Electrical parameters In the following table, data is based on characterization results, unless otherwise specified. Table 22. Total current consumption and timing in Low power run mode at V 3.6 V Symbol Parameter Supply current in Low I DD(LPR) power ...

Page 71

STM8L151xx, STM8L152xx Figure 15. Typ. I vs. V (LSI clock source) DD(LPR) DD Doc ID 15962 Rev 12 Electrical parameters 71/129 ...

Page 72

Electrical parameters In the following table, data is based on characterization results, unless otherwise specified. Table 23. Total current consumption in Low power wait mode at V Symbol Parameter Supply current in I DD(LPW) Low power wait mode 1. No ...

Page 73

STM8L151xx, STM8L152xx In the following table, data is based on characterization results, unless otherwise specified. Table 24. Total current consumption and timing in Active-halt mode at V Symbol Parameter Supply current in I DD(AH) Active-halt mode (1) Conditions T = ...

Page 74

Electrical parameters Table 24. Total current consumption and timing in Active-halt mode at V (continued) Symbol Parameter Supply current in I DD(AH) Active-halt mode Supply current during wakeup time from I DD(WUFAH) Active-halt mode (using HSI) Wakeup time from (8)(9) ...

Page 75

STM8L151xx, STM8L152xx Table 25. Typical current consumption in Active-halt mode, RTC clocked by LSE external crystal Symbol Supply current in Active-halt (2) I DD(AH) mode 1. No floating I/O, unless otherwise specified. 2. Based on measurements on bench with 32.768 ...

Page 76

Electrical parameters Current consumption of on-chip peripherals Table 27. Peripheral current consumption Symbol I TIM1 supply current DD(TIM1) I TIM2 supply current DD(TIM2) I TIM3 supply current DD(TIM3) I TIM4 timer supply current DD(TIM4) I USART1 supply current DD(USART1) I ...

Page 77

STM8L151xx, STM8L152xx Table 28. Current consumption under external reset Symbol Parameter Supply current under I DD(RST) (1) external reset 1. All pins except PA0, PB0 and PB4 are floating under reset. PA0, PB0 and PB4 are configured with pull-up under ...

Page 78

Electrical parameters HSE crystal/ceramic resonator oscillator The HSE clock can be supplied with MHz crystal/ceramic resonator oscillator. All the information given in this paragraph is based on characterization results with specified typical external components. In the ...

Page 79

STM8L151xx, STM8L152xx LSE crystal/ceramic resonator oscillator The LSE clock can be supplied with a 32.768 kHz crystal/ceramic resonator oscillator. All the information given in this paragraph is based on characterization results with specified typical external components. In the application, the ...

Page 80

Electrical parameters Internal clock sources Subject to general operating conditions for V High speed internal RC oscillator (HSI) In the following table, data is based on characterization results, not tested in production, unless otherwise specified. Table 33. HSI oscillator characteristics ...

Page 81

STM8L151xx, STM8L152xx Low speed internal RC oscillator (LSI) In the following table, data is based on characterization results, not tested in production. Table 34. LSI oscillator characteristics Symbol f Frequency LSI t LSI oscillator wakeup time su(LSI) LSI oscillator frequency ...

Page 82

Electrical parameters 9.3.5 Memory characteristics T = -40 to 125 °C unless otherwise specified. A Table 35. RAM and hardware registers Symbol V Data retention mode RM 1. Minimum supply voltage without losing data stored in RAM (in Halt mode ...

Page 83

STM8L151xx, STM8L152xx 9.3.6 I/O current injection characteristics As a general rule, current injection to the I/O pins, due to external voltage below V above V (for standard pins) should be avoided during normal product operation. However order to ...

Page 84

Electrical parameters Table 38. I/O static characteristics Symbol Parameter V Input low level voltage IL V Input high level voltage IH Schmitt trigger voltage V hys (3) hysteresis I Input leakage current lkg Weak pull-up equivalent R PU (2)(6) resistor ...

Page 85

STM8L151xx, STM8L152xx 6. R pull-up equivalent resistor based on a resistive transistor(corresponding I PU Figure 24). Figure 21. Typical V Figure 22. Typical V and (high sink I/Os and (true open ...

Page 86

Electrical parameters Figure 23. Typical pull-up resistance R Figure 24. Typical pull-up current I 86/129 vs V with with Doc ID 15962 Rev 12 STM8L151xx, STM8L152xx = ...

Page 87

STM8L151xx, STM8L152xx Output driving current Subject to general operating conditions for V Table 39. Output driving current (high sink ports) I/O Symbol Type (1) Output low level voltage for an I/O pin V OL (2) V Output high level voltage ...

Page 88

Electrical parameters Figure 25. Typ ports) Figure 27. Typ drain ports) Figure 29. Typ sink ports) 88/129 = 3.0 V (high sink Figure ...

Page 89

STM8L151xx, STM8L152xx NRST pin Subject to general operating conditions for V Table 42. NRST pin characteristics Symbol Parameter V NRST input low level voltage IL(NRST) V NRST input high level voltage IH(NRST) V NRST output low level voltage OL(NRST) V ...

Page 90

Electrical parameters Figure 32. Typical NRST pull-up current I The reset network shown in must ensure that the level on the NRST pin can go below the V in Table 42. Otherwise the reset is not taken into account internally. ...

Page 91

STM8L151xx, STM8L152xx 9.3.8 Communication interfaces SPI1 - Serial peripheral interface Unless otherwise specified, the parameters given in performed under ambient temperature, f conditions summarized in the input/output alternate function characteristics (NSS, SCK, MOSI, MISO). Table 43. SPI1 characteristics Symbol Parameter ...

Page 92

Electrical parameters Figure 34. SPI1 timing diagram - slave mode and CPHA=0 NSS input t SU(NSS) CPHA= 0 CPOL=0 t w(SCKH) CPHA w(SCKL) CPOL=1 t a(SO) MISO OUT su(SI) MOSI I NPUT Figure 35. SPI1 ...

Page 93

STM8L151xx, STM8L152xx Figure 36. SPI1 timing diagram - master mode 1. Measurement points are done at CMOS levels: 0.3V (1) and 0. Doc ID 15962 Rev 12 Electrical parameters 93/129 ...

Page 94

Electrical parameters Inter IC control interface Subject to general operating conditions for V 2 The STM8L I C interface (I2C1) meets the requirements of the Standard I protocol described in the following table with the restriction ...

Page 95

STM8L151xx, STM8L152xx Figure 37. Typical application with BUS SDA t f(SDA) SCL t h(STA) 1. Measurement points are done at CMOS levels: 0 bus and timing diagram 4.7k ...

Page 96

Electrical parameters 9.3.9 LCD controller (STM8L152xx only) In the following table, data is guaranteed by design. Not tested in production. Table 45. LCD characteristics Symbol V LCD V LCD0 V LCD1 V LCD2 V LCD3 V LCD4 V LCD5 V ...

Page 97

STM8L151xx, STM8L152xx 9.3.10 Embedded reference voltage In the following table, data is based on characterization results, not tested in production, unless otherwise specified. Table 46. Reference voltage characteristics Symbol Parameter Internal reference voltage I REFINT consumption ADC sampling time when ...

Page 98

Electrical parameters 9.3.11 Temperature sensor In the following table, data is based on characterization results, not tested in production, unless otherwise specified. Table 47. TS characteristics Symbol (1) V Sensor reference voltage at 90°C ±5 ° ...

Page 99

STM8L151xx, STM8L152xx In the following table, data is guaranteed by design, not tested in production. Table 49. Comparator 2 characteristics Symbol V Analog supply voltage DDA T Temperature range A V Comparator 2 input voltage range IN t Comparator startup ...

Page 100

Electrical parameters 9.3.13 12-bit DAC characteristics In the following table, data is guaranteed by design, not tested in production. Table 50. DAC characteristics Symbol Parameter V Analog supply voltage DDA V Reference supply voltage REF+ Current consumption onV I VREF ...

Page 101

STM8L151xx, STM8L152xx In the following table, data is based on characterization results, not tested in production. Table 51. DAC accuracy Symbol Parameter DNL Differential non linearity INL Integral non linearity (4) Offset Offset error Offset1 Offset error at Code 1 ...

Page 102

Electrical parameters 9.3.14 12-bit ADC1 characteristics In the following table, data is guaranteed by design, not tested in production. Table 53. ADC1 characteristics Symbol Parameter V Analog supply voltage DDA Reference supply V REF+ voltage V Lower reference voltage REF- ...

Page 103

STM8L151xx, STM8L152xx Table 53. ADC1 characteristics (continued) Symbol Parameter t Sampling time S t 12-bit conversion time conv Wakeup time from OFF t WKUP state Time before a new (6) t IDLE conversion Internal reference t VREFINT voltage startup time ...

Page 104

Electrical parameters In the following three tables, data is guaranteed by characterization result, not tested in production. Table 54. ADC1 accuracy with V Symbol DNL Differential non linearity INL Integral non linearity TUE Total unadjusted error Offset Offset error Gain ...

Page 105

STM8L151xx, STM8L152xx Figure 38. ADC1 accuracy characteristics [1LSB = IDEAL 4095 4094 4093 SSA Figure 39. Typical connection diagram using the ADC 1. Refer to Table 53 ...

Page 106

Electrical parameters Figure 40. Maximum dynamic current consumption on V conversion Sampling (n cycles) ADC clock I ref+ 700µA 300µA Table 57. R max for f AIN ADC Ts Ts (cycles) (µs) 2.4 V < V DDA 4 0.25 Not ...

Page 107

STM8L151xx, STM8L152xx Figure 41. Power supply and reference decoupling (V Figure 42. Power supply and reference decoupling (V REF+ REF+ Doc ID 15962 Rev 12 Electrical parameters V not connected to ) DDA V ) connected to DDA 107/129 ...

Page 108

Electrical parameters 9.3.15 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 ...

Page 109

STM8L151xx, STM8L152xx Table 59. EMI data Symbol Parameter S Peak level EMI 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 ...

Page 110

Electrical parameters 9.4 Thermal characteristics The maximum chip junction temperature (T Table 18: General operating conditions on page The maximum chip-junction temperature, T the following equation: Where: is the maximum ambient temperature in C ● T Amax  is the ...

Page 111

STM8L151xx, STM8L152xx 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: ...

Page 112

Package characteristics 10.2 Package mechanical data 10.2.1 48-pin low profile quad flat 7x7mm package (LQFP48) Figure 43. LQFP48 package outline 1. Drawing is not to scale. Table 63. LQFP48 package mechanical data Dim ...

Page 113

STM8L151xx, STM8L152xx Figure 44. Recommended LQFP48 footprint 1. Dimensions are in millimeters. Doc ID 15962 Rev 12 Package characteristics 113/129 ...

Page 114

Package characteristics 10.2.2 48-pin ultra thin fine pitch quad flat no-lead mm, 0.5 mm pitch package (UFQFPN48) Figure 45. UFQFPN48 package outline Pin 1 indentifier laser marking area Exposed pad area Drawing is ...

Page 115

STM8L151xx, STM8L152xx Table 64. UFQFPN48 package mechanical data Symbol Values in inches are converted from mm and rounded to 4 decimal digits. Figure 46. Recommended ...

Page 116

Package characteristics 10.2.3 32-pin low profile quad flat package (LQFP32) Figure 47. LQFP32 package outline Pin 1 identification 1. Drawing is not to scale. Table 65. LQFP32 package mechanical data Dim ...

Page 117

STM8L151xx, STM8L152xx Figure 48. Recommended LQFP32 footprint 1. Dimensions are in millimeters. Doc ID 15962 Rev 12 Package characteristics 117/129 ...

Page 118

Package characteristics 10.2.4 32-lead ultra thin fine pitch quad flat no-lead 5x5 mm package (UFQFPN32) Figure 49. UFQFPN32 package outline Seating plane C E2 Pin # 0.30 1. Drawing is not to scale. 2. All leads/pads ...

Page 119

STM8L151xx, STM8L152xx Table 66. UFQFPN32 package mechanical data Dim ddd 1. Values in inches are converted from mm and rounded to 4 decimal digits. Figure 50. Recommended UFQFPN32 footprint 1. ...

Page 120

Package characteristics 10.2.5 28-lead ultra thin fine pitch quad flat no-lead 4x4 mm package (UFQFPN28) Figure 51. UFQFPN28 package outline 1. Drawing is not to scale. Table 67. UFQFPN28 package mechanical data Symbol Min A 0.500 A1 -0.050 D 3.900 ...

Page 121

STM8L151xx, STM8L152xx Figure 52. Recommended UFQFPN28 footprint (dimensions in mm) 1. Dimensions are in millimeters. Doc ID 15962 Rev 12 Package characteristics 121/129 ...

Page 122

Package characteristics 10.2.6 28-pin wafer level chip size package (WLCSP28) Figure 53. WLCSP28 package outline 1. Drawing is not to scale. 122/129 Doc ID 15962 Rev 12 STM8L151xx, STM8L152xx ...

Page 123

STM8L151xx, STM8L152xx Table 68. WLCSP28 package mechanical data Dim aaa bbb ccc ddd eee 1. Values in inches are converted from mm and rounded to 4 decimal digits. mm ...

Page 124

Device ordering information 11 Device ordering information Figure 54. Medium density STM8L15x ordering information scheme Example: Product class STM8 microcontroller Family type L = Low power Sub-family type 151 = Ultra-low-power 152 = Ultra-low-power with LCD Pin count C = ...

Page 125

STM8L151xx, STM8L152xx 12 Revision history Table 69. Document revision history Date 06-Aug-2009 10-Sep-2009 11-Dec-2009 02-Apr-2010 Revision 1 Initial release Updated peripheral naming throughout document. Added Figure 3: STM8L151Cx 48-pin pinout (without LCD) on page 30 Added capacitive sensing channels in ...

Page 126

Revision history Table 69. Document revision history Date 23-Jul-2010 11-Mar-2011 126/129 Revision Modified Introduction Modified Table 4: Legend/abbreviation for table 5 on page 29 Table 7: Medium density STM8L15x pin description on page 37 PA0, PA1, PB0 and PB4 and ...

Page 127

STM8L151xx, STM8L152xx Table 69. Document revision history Date 11-Mar-2011 06-Sep-2011 Revision Modified OPT1 and OPT4 description in description on page 50. Updated Section 9: Electrical parameters on page 53 I/Os” replaced with “high sink I//Os”. 6 cont’d Updated R R ...

Page 128

Revision history Table 69. Document revision history Date 10-Feb-2012 02-Mar-2012 30-Mar-2012 26-Apr-2012 12-Nov-2012 128/129 Revision Features: replaced “’Dynamic consumption’ with ‘Consumption’. Table 5: Medium density STM8L15x pin column of NRST/PA1 pin. Table 11: Interrupt mapping: removed tamper 1, tamper 2 ...

Page 129

... STM8L151xx, STM8L152xx 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. ...

Related keywords