STM8L151K6U3 STMICROELECTRONICS [STMicroelectronics], STM8L151K6U3 Datasheet

no-image

STM8L151K6U3

Manufacturer Part Number
STM8L151K6U3
Description
8-bit ultralow power MCU, up to 32 KB Flash, 1 KB Data EEPROM RTC, LCD, timers, USART, I2C, SPI, ADC, DAC, comparators
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
STM8L151K6U3
Manufacturer:
STMicroelectronics
Quantity:
10 000
Part Number:
STM8L151K6U3
Manufacturer:
ST
0
Features
September 2009
This is preliminary information on a new product now in development or undergoing evaluation. Details are subject to
change without notice.
8-bit ultralow power MCU, up to 32 KB Flash, 1 KB Data EEPROM
Operating conditions
– Operating power supply range 1.8 V to
– Temperature range: - 40 °C to 85 or 125 °C
Low power features
– 5 low power modes: Wait , Low power run
– Dynamic consumption: 192 µA/MHz
– Ultralow leakage per I/0: 50 nA
– Fast wakeup from Halt: 5 µ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, ultrasafe BOR reset with 5
– Ultralow 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.4 µA), Low power wait (3 µA), Active-halt
with RTC (1 µA), Halt (400 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 2
STM8L151xx, STM8L152xx
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 Ultralow 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 with free
firmware
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
VFQFPN48
Part number
WFQFPN28
Preliminary data
WFQFPN32
www.st.com
1/101
1

Related parts for STM8L151K6U3

STM8L151K6U3 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 Communication interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 4

Contents 8.3.11 8.3.12 8.3.13 8.3.14 8.4 Thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 5

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

Page 6

List of tables Table 47. ADC1 accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 7

STM8L151xx, STM8L152xx List of figures Figure 1. STM8L15xxx device block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 8

Introduction 1 Introduction This document describes the STM8L15xxx family features, pinout, mechanical data and ordering information. For more details on the whole STMicroelectronics Ultralow power family please refer to Section 2.2: Ultralow power continuum on page The reference manual and ...

Page 9

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

Page 10

Description 2.1 Device overview Table 2. 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 (number of channels) ...

Page 11

STM8L151xx, STM8L152xx 2.2 Ultralow power continuum The Ultralow power STM8L151xx and STM8L152xx are fully pin-to-pin, software and feature compatible. Besides the full compatibility within the family, the devices are part of STMicroelectronics microcontrollers UtraLowPower strategy which also includes STM8L101xx and ...

Page 12

Functional overview 3 Functional overview Figure 1. STM8L15xxx 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 channels 16-bit ...

Page 13

STM8L151xx, STM8L152xx 3.1 Low power modes The STM8L15xxx supports five low power modes to achieve the best compromise between low power consumption, short startup time and available wakeup sources: ● Wait mode: CPU clock is stopped, but selected peripherals keep ...

Page 14

Functional overview offset and read-modify-write type data manipulations ● 8-bit accumulator ● 24-bit program counter - 16 Mbyte linear memory space ● 16-bit stack pointer - access Kbyte level stack ● 8-bit condition code register - 7 ...

Page 15

STM8L151xx, STM8L152xx 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: ● 1.8 to 3.6 V, ...

Page 16

Functional overview When entering Halt or Active-halt modes, the system automatically switches from the MVR to the LPVR in order to reduce current consumption. 3.4 Clock management The clock controller distributes the system clock (SYSCLK) coming from different oscillators to ...

Page 17

STM8L151xx, STM8L152xx Figure 2. STM8L15x clock tree diagram 3.5 Low power real-time clock The real-time clock (RTC independent binary coded decimal (BCD) timer/counter. Six byte locations contain the second, minute, hour (12/24 hour), week day, date, month, year, ...

Page 18

Functional overview 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 19

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

Page 20

Functional overview Table 3. Timer feature comparison Counter Counter Timer resolution type TIM1 16-bit up/down TIM2 TIM3 TIM4 8-bit up 3.13.1 TIM1 - 16-bit advanced control timer This is a high-end timer designed for a wide range of control applications. ...

Page 21

STM8L151xx, STM8L152xx 3.14 Watchdog timers The watchdog system is based on two independent timers providing maximum security to the applications. 3.14.1 Window watchdog timer The window watchdog (WWDG) is used to detect the occurrence of a software fault, usually generated ...

Page 22

Functional overview 2 Note can be served by the DMA1 Controller. 3.16.3 USART The USART interface (USART1) allows full duplex, asynchronous communications with external devices requiring an industry standard NRZ asynchronous serial data format. It offers a very ...

Page 23

STM8L151xx, STM8L152xx 4 Pin description Figure 3. STM8L151Gx 28-pin package pinout Figure 4. STM8L151Kx 32-pin package pinout (without LCD) 1. Example given for the WFQFPN32 package. The pinout is the same for the LQFP32 package. Figure 5. STM8L152Kx 32-pin package ...

Page 24

Pin description Figure 6. STM8L151Cx 48-pin pinout (without LCD) 1. Reserved. Must be tied to V Figure 7. STM8L152Cx 48-pin pinout (with LCD) 24/101 PA0 36 1 NRST/PA1 ...

Page 25

STM8L151xx, STM8L152xx Legend / Abbreviations for Type: I/O level: Input level: Output level High sink/source (20 mA) Port and control configuration: ● Input: float = floating, wpu = weak pull-up ● Output: T= true open drain ...

Page 26

Pin description Table 4. STM8L15x pin description (continued) Pin number Pin name ( PA7/LCD_SEG0 PB0/TIM2_CH1/ ( LCD_SEG10 / ADC1_IN18/COMP1_INP PB1/TIM3_CH1/ ( LCD_SEG11 / ADC1_IN17/COMP1_INP PB2/ TIM2_CH2/ ( LCD_SEG12 ...

Page 27

STM8L151xx, STM8L152xx Table 4. STM8L15x pin description (continued) Pin number Pin name (3) PB6/[SPI1_MOSI] ( LCD_SEG16 / ADC1_IN12/COMP1_INP (3) PB6/[SPI1_MOSI] (2) LCD_SEG16 / - 19 18 ADC1_IN12/COMP1_INP/ DAC_OUT (3) PB7/[SPI1_MISO] ( LCD_SEG17 / ADC1_IN11/COMP1_INP ...

Page 28

Pin description Table 4. STM8L15x pin description (continued) Pin number Pin name PD0/TIM3_CH2/ (3) [ADC1_TRIG LCD_SEG7 /ADC1_IN2 2/COMP2_INP/ COMP1_INP PD0/TIM3_CH2/ (3) [ADC1_TRIG ADC1_IN22/COMP2_INP/ COMP1_INP PD1/TIM3_TRIG/ (2) LCD_COM3 / ...

Page 29

STM8L151xx, STM8L152xx Table 4. STM8L15x pin description (continued) Pin number Pin name PD5/TIM1_CH3 ( /LCD_SEG19 / ADC1_IN9/COMP1_INP PD6/TIM1_BKIN (2) /LCD_SEG20 / ADC1_IN8/RTC_CALIB/ VREF_OUT/ COMP1_INP PD7/TIM1_CH1N (2) /LCD_SEG21 / ADC1_IN7/RTC_ALARM/ VREF_OUT/ COMP1_INP ...

Page 30

Pin description Table 4. STM8L15x pin description (continued) Pin number Pin name - DD/ DDA/ REF SSA/ REF DDIO SSIO ...

Page 31

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

Page 32

Memory and register map Table 5. Flash and RAM boundary addresses Memory area RAM Flash program memory 5.2 Register map Table 6. I/O port hardware register map Address Block 0x00 5000 0x00 5001 0x00 5002 Port A 0x00 5003 0x00 ...

Page 33

STM8L151xx, STM8L152xx Table 6. I/O port hardware register map (continued) Address Block 0x00 5019 0x00 501A 0x00 501B Port F 0x00 501C 0x00 501D Table 7. General hardware register map Address Block 0x00 501E to 0x00 5049 0x00 5050 0x00 ...

Page 34

Memory and register map Table 7. 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 35

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

Memory and register map Table 7. 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 37

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

Memory and register map Table 7. 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 39

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

Memory and register map Table 7. 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 41

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

Memory and register map Table 7. 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 43

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

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

Page 45

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

Memory and register map Table 7. 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 47

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

Memory and register map Table 8. 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 49

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

Interrupt vector mapping 6 Interrupt vector mapping Table 9. Interrupt mapping IRQ Source Description No. block RESET Reset TRAP Software interrupt 1 FLASH EOP/WR_PG_DIS 2 DMA1 0/1 DMA1 channels 0/1 3 DMA1 2/3 DMA1 channels 2/3 4 RTC RTC alarm ...

Page 51

STM8L151xx, STM8L152xx Table 9. Interrupt mapping (continued) IRQ Source Description No. block 25 TIM4 Update/overflow/trigger 26 SPI1 End of Transfer Transmission 27 USART 1 complete/transmit data register empty Receive Register Data 28 USART 1 full/overrun/idle line detected/parity error 2 2 ...

Page 52

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 53

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

Page 54

Option bytes Table 11. Option byte description (continued) Option byte No. BOR_ON Brownout reset off 1 - Brownout reset on OPT5 BOR_TH[3:1]: Brownout reset thresholds. Refer to the value of BOR_TH bits. 54/101 Option description Table 16 for ...

Page 55

STM8L151xx, STM8L152xx 8 Electrical parameters 8.1 Parameter conditions Unless otherwise specified, all voltages are referred to V 8.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 56

Electrical parameters 8.1.5 Pin input voltage The input voltage measurement on a pin of the device is described in Figure 10. Pin input voltage 8.2 Absolute maximum ratings Stresses above those listed as “absolute maximum ratings” may cause permanent damage ...

Page 57

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

Electrical parameters 8.3 Operating conditions Subject to general operating conditions for V 8.3.1 General operating conditions Table 15. General operating conditions Symbol Parameter System clock (1) f SYSCLK frequency Standard operating V DD voltage Analog operating V DDA voltage Power ...

Page 59

STM8L151xx, STM8L152xx 8.3.2 Power-up / power-down operating conditions Table 16. Operating conditions at power-up / power-down Symbol Parameter V rise time rate DD t VDD V fall time rate DD t Reset release delay TEMP V Power-down reset threshold PDR ...

Page 60

Electrical parameters Figure 11. POR/BOR thresholds Internal NRST 60/101 Operating power supply Vdd Doc ID 15962 Rev 2 STM8L151xx, STM8L152xx Vdd ...

Page 61

STM8L151xx, STM8L152xx 8.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 disabled except if explicitly mentioned. Subject ...

Page 62

Electrical parameters Table 17. Total current consumption in Run mode Symbol Parameter All peripherals OFF, code Supply executed from I current in DD(RUN) Flash, run mode V from 1. 3 Based on characterization results, unless ...

Page 63

STM8L151xx, STM8L152xx Table 18. Total current consumption in Wait mode Symbol Parameter CPU not clocked, all peripherals OFF, Supply code executed I current in DD(Wait) from RAM Wait mode with Flash switched OFF, V from DD 1. 3.6 ...

Page 64

Electrical parameters Table 19. Total current consumption and timing in Low power run mode at V (1)(2) 3.6 V Symbol Parameter Supply current in Low I DD(LPR) power run mode 1. No floating I/Os 2. Based on characterization results, unless ...

Page 65

STM8L151xx, STM8L152xx Table 20. Total current consumption in Low power wait mode at V Symbol Parameter Supply current in I DD(LPW) Low power wait mode 1. No floating I/Os. 2. Based on characterization results, unless otherwise specified. 3. Timer 2 ...

Page 66

Electrical parameters Table 21. Total current consumption and timing in Active-halt mode 1. 3 Symbol Parameter Supply current in I DD(AH) Active-halt mode Supply current during wakeup time from I DD(WUFAH) Active-halt mode ...

Page 67

STM8L151xx, STM8L152xx Table 21. Total current consumption and timing in Active-halt mode 1. 3 Symbol Parameter Wakeup time from (5)(6) Active-halt mode to t WU_HSI(AH) Run mode (using HSI) Wakeup time from (5)(6) ...

Page 68

Electrical parameters Current consumption of on-chip peripherals Table 23. 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 69

STM8L151xx, STM8L152xx 8.3.4 Clock and timing characteristics HSE external clock (HSEBYP = 1 in CLK_ECKCR) Subject to general operating conditions for V Table 24. HSE external clock characteristics Symbol External clock source f HSE_ext frequency OSC_IN input pin high level ...

Page 70

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 71

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 72

Electrical parameters Internal clock sources Subject to general operating conditions for V High speed internal RC oscillator (HSI) Table 28. HSI oscillator characteristics Symbol Parameter f Frequency HSI Accuracy of HSI ACC HSI oscillator (factory calibrated) HSI user trim TRIM ...

Page 73

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

Page 74

Electrical parameters 8.3.6 I/O port pin characteristics General characteristics Subject to general operating conditions for V unused pins must be kept at a fixed voltage: using the output mode of the I/O for example or an external pull-up or pull-down ...

Page 75

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

Page 76

Electrical parameters NRST pin Subject to general operating conditions for V Table 36. NRST pin characteristics Symbol V NRST Input low level voltage IL(NRST) V NRST Input high level voltage IH(NRST) V NRST Output low level voltage OL(NRST) R NRST ...

Page 77

STM8L151xx, STM8L152xx 8.3.7 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 37. SPI1 characteristics Symbol Parameter ...

Page 78

Electrical parameters Figure 15. SPI 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 16. SPI ...

Page 79

STM8L151xx, STM8L152xx Figure 17. SPI timing diagram - master mode High NSS input CPHA= 0 CPOL=0 CPHA= 0 CPOL=1 CPHA=1 CPOL=0 CPHA=1 CPOL=1 t su(MI) MISO INP UT MOSI OUTUT 1. Measurement points are done at CMOS levels: 0.3V (1) ...

Page 80

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 81

STM8L151xx, STM8L152xx Figure 18. Typical application with BUS SDA t f(SDA) SCL t h(STA) 1. Measurement points are done at CMOS levels: 0 8.3.8 LCD controller (STM8L152xx only) Table 39. LCD characteristics Symbol V ...

Page 82

Electrical parameters VLCD external capacitor (STM8L152xx only) The application can achieve a stabilized LCD reference voltage by connecting an external capacitor C to the V EXT 8.3.9 Embedded reference voltage Table 40. Reference voltage characteristics Symbol I Internal reference voltage ...

Page 83

STM8L151xx, STM8L152xx Table 41. TS characteristics Symbol T Temperature sensor startup time START ADC sampling time when reading the T S_TEMP 1. Based on characterization results, unless otherwise specified. 2. Defined for ADC output reaches its final value ±1/2LSB. 8.3.11 ...

Page 84

Electrical parameters Table 43. Comparator 2 characteristics Symbol Propagation delay in fast t df mode Propagation delay in slow t ds mode V Comparator offset error offset I Consumption in fast mode DD(CMP2F) I Consumption in slow mode DD(CMP2S) 1. ...

Page 85

STM8L151xx, STM8L152xx Table 44. DAC characteristics, output on PF0 Symbol Parameter INL Integral non linearity (8) Offset Offset error Gain error Gain error TUE Total unadjusted error Settling time (full scale: for a 12- bit input code transition between t ...

Page 86

Electrical parameters Table 45. DAC output on PB4-PB5-PB6 Symbol R int 28-pin packages only. The DAC channel can be routed either on PB4, PB5 or PB6 using the routing interface I/O switch registers. 2. Data guaranteed by ...

Page 87

STM8L151xx, STM8L152xx 8.3.13 12-bit ADC1 characteristics Table 46. ADC1 characteristics Symbol Parameter V Analog supply voltage DDA V Reference supply voltage REF+ V Lower reference voltage REF- I Current on the V DDA VDDA I Current on the V REF+ ...

Page 88

Electrical parameters Table 47. ADC1 accuracy Symbol DNL Differential non linearity INL Integral non linearity TUE Total unadjusted error Offset Offset error Gain Gain error ENOB Effective number of bits SINAD Signal-to-noise and distortion ratio SNR Signal-to-noise ratio THD Total ...

Page 89

STM8L151xx, STM8L152xx Figure 20. Power supply and reference decoupling (V 8.3.14 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 ...

Page 90

Electrical parameters Table 48. EMS data Symbol Voltage limits to be applied on any I/O pin to V FESD induce a functional disturbance Fast transient voltage burst limits applied through 100 EFTB pins to ...

Page 91

STM8L151xx, STM8L152xx Table 50. ESD absolute maximum ratings Symbol Electrostatic discharge voltage V ESD(HBM) (human body model) Electrostatic discharge voltage V ESD(CDM) (charge device model) 1. Data based on characterization results, not tested in production. Static latch-up ● LU: 3 ...

Page 92

Electrical parameters Table 52. Thermal characteristics Symbol Thermal resistance junction-ambient Θ JA WFQFPN28 - Thermal resistance junction-ambient Θ JA LQFP Thermal resistance junction-ambient Θ JA VFQFPN ...

Page 93

STM8L151xx, STM8L152xx 9 Package characteristics 9.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 94

Package characteristics 9.2 Package mechanical data Figure 21. WFQFPN28 – 28-lead very very thin fine pitch quad flat no-lead package outline ( Drawing is not to scale. Table ...

Page 95

STM8L151xx, STM8L152xx Figure 23. WFQFPN32 – 32-lead very very thin fine pitch quad flat no-lead package outline ( The exposed pad must be soldered to the PCB recommended to connect Table 54. ...

Page 96

Package characteristics Figure 24. LQFP32 – 32-pin low profile quad flat package outline Pin 1 identification Table 55. LQFP32 – 32-pin low profile quad flat package, package mechanical data Dim. Min A A1 0.05 A2 1.35 b ...

Page 97

STM8L151xx, STM8L152xx Figure 25. VFQFPN48 mm, 0.5 mm pitch, package (1)(2) outline Drawing is not to scale. 2. The exposed pad must be soldered to ...

Page 98

Package characteristics Figure 27. LQFP48 – 48-pin low profile quad flat package outline (7x7 Pin 1 identification Table 57. LQFP48 – 48-pin low profile quad flat package (7x7), package mechanical data Dim. Min A A1 0.05 A2 ...

Page 99

STM8L151xx, STM8L152xx 10 Device ordering information Figure 28. STM8L15xxx ordering information scheme Example: Product class STM8 microcontroller Family type L = Low power Sub-family type 151 = Ultralow power 152 = Ultralow power with LCD Pin count ...

Page 100

Revision history 11 Revision history Table 58. Document revision history Date Revision 06-Aug-2009 10-Sep-2009 100/101 1 Initial release Updated peripheral naming throughout document. Added Figure 6: STM8L151Cx 48-pin pinout (without LCD) on page 24 Added capacitive sensing channels in Updated ...

Page 101

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 ...

Related keywords