STM8L162R8T6 STMicroelectronics, STM8L162R8T6 Datasheet

no-image

STM8L162R8T6

Manufacturer Part Number
STM8L162R8T6
Description
8 BITS MICROCONTR
Manufacturer
STMicroelectronics
Series
STM8L EnergyLiter
Datasheet

Specifications of STM8L162R8T6

Core Processor
STM8
Core Size
8-Bit
Speed
16MHz
Connectivity
I²C, IrDA, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, DMA, IR, LCD, POR, PWM, WDT
Number Of I /o
54
Program Memory Size
64KB (64K x 8)
Program Memory Type
FLASH
Eeprom Size
2K x 8
Ram Size
4K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 3.6 V
Data Converters
A/D 28x12b, D/A 2x12
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
64-LQFP
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
STM8L162R8T6
Manufacturer:
ST
0
Features
March 2011
This is preliminary information on a new product now in development or undergoing evaluation. Details are subject to
change without notice.
Operating conditions
– Operating power supply: 1.65 to 3.6 V
– Temperature range: 40 to 85 or 125 °C
Low power features
– 5 low power modes: Wait, Low power run,
– 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
– 32 kHz and 1-16 MHz crystal oscillators
– Internal 16 MHz factory-trimmed RC
– Internal 38 kHz low consumption RC
– Clock security system
Low power RTC
– BCD calendar with alarm interrupt
– Digital calibration with +/- 0.5ppm accuracy
– LSE security system
– Auto-wakeup from Halt w/ periodic interrupt
– Advanced anti-tamper detection
LCD: 8x40 or 4x44 w/ step-up converter
Memories
– 64 KB of Flash program memory plus 2 KB
– Flexible write/read protection modes
– 4 KB of RAM
RTC, AES, LCD, timers, USARTs, I2C, SPIs, ADC, DAC, COMPs
(without BOR), 1.8 to 3.6 V (with BOR)
Low power wait, Active-halt with RTC, Halt
selectable thresholds
of data EEPROM with ECC and RWW
8-bit ultralow power MCU, 64 KB Flash, 2 KB data EEPROM
Doc ID 17959 Rev 2
DMA
– 4 channels supporting ADC, AES, DACs,
– 1 channel for memory-to-memory
AES encryption hardware accelerator
2x12-bit DAC (dual mode) with output buffer
12-bit ADC up to 1 Msps/28 channels
– Temp. sensor and internal ref. voltage
2 ultralow power comparators (COMP)
– 1 with fixed threshold and 1 rail to rail
– Wakeup capability
Timers
– Three 16-bit timers with 2 channels (IC,
– One 16-bit advanced control timer with 3
– One 8-bit timer with 7-bit prescaler
– 1 Window and 1 independent watchdog
– Beeper timer with 1, 2 or 4 kHz frequencies
Communication interfaces
– Two synchronous serial interface (SPI)
– Fast I
– Three USARTs (ISO 7816 interface + IrDA)
Up to 67 I/Os, all mappable on interrupt vectors
Up to 16 capacitive sensing channels with free
firmware
Development support
– Fast on-chip programming and non-
– Bootloader using USART
96-bit unique ID
SPIs, I
OC, PWM), quadrature encoder
channels, supporting motor control
intrusive debugging with SWIM
2
C 400 kHz SMBus and PMBus
2
LQFP80
C, USARTs, timers
STM8L162M8
STM8L162R8
LQFP64
Preliminary data
www.st.com
1/121
1

Related parts for STM8L162R8T6

STM8L162R8T6 Summary of contents

Page 1

MCU Flash data EEPROM RTC, AES, LCD, timers, USARTs, I2C, SPIs, ADC, DAC, COMPs Features ■ Operating conditions – Operating power supply: 1.65 to 3.6 V (without BOR), 1.8 to 3.6 V (with ...

Page 2

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

Page 3

STM8L162R8, STM8L162M8 3.15.2 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

STM8L162R8, STM8L162M8 List of tables Table 1. High density STM8L162x low power device features and peripheral counts . . . . . . . . . . . 10 Table 2. Timer feature comparison . . . . . . ...

Page 6

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

Page 7

STM8L162R8, STM8L162M8 List of figures Figure 1. High density STM8L162xx device block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 8

... This document describes the features, pinout, mechanical data and ordering information for the high density STM8L162R8 and STM8L162M8 devices.For further details on the STMicroelectronics Ultralow power family please refer to continuum on page For detailed information on device operation and registers, refer to the reference manual (RM0031) ...

Page 9

STM8L162R8, STM8L162M8 2.1 STM8L Ultralow power 8-bit family benefits High density STM8L162xx devices are part of the STM8L Ultralow power family providing the following benefits: ● Integrated system – 64 Kbytes of high-density embedded Flash program memory – 2 Kbytes ...

Page 10

Description 2.2 Device overview Table 1. High density STM8L162x low power device features and peripheral counts Features Flash (Kbytes) Data EEPROM (Kbytes) RAM (Kbytes) AES LCD Basic Timers General purpose Advanced control SPI Communicatio I2C n interfaces USART GPIOs 12-bit ...

Page 11

... STMicroelectronics microcontrollers UltraLow 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 Ultralow leakage process. Note: 1 The STM8L151xx and STM8L152xx are pin-to-pin compatible with STM8L101xx devices. ...

Page 12

Functional overview 3 Functional overview Figure 1. High density STM8L162xx device block diagram OSC_IN, OSC_OUT OSC32_IN, OSC32_OUT SWIM 3 channels 2 channels 2 channels 2 channels IR_TIM SCL, SDA, SMB SPI1_MOSI, SPI1_MISO, SPI1_SCK, SPI1_NSS SPI2_MOSI, SPI2_MISO, SPI2_SCK, SPI2_NSS USART1_RX, USART1_TX, ...

Page 13

STM8L162R8, STM8L162M8 IWDG: Independent watchdog LCD: Liquid crystal display POR/PDR: Power on reset / power-down reset RTC: Real-time clock SPI: Serial peripheral interface SWIM: Single wire interface module USART: Universal synchronous asynchronous receiver transmitter WWDG: Window watchdog 3.1 Low power ...

Page 14

Functional overview 3.2 Central processing unit STM8 3.2.1 Advanced STM8 Core The 8-bit STM8 core is designed for code efficiency and performance with an Harvard architecture and a 3-stage pipeline. It contains 6 internal registers which are directly addressable in ...

Page 15

STM8L162R8, STM8L162M8 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 for ...

Page 16

Functional overview 3.3.3 Voltage regulator The high density STM8L162xx devices embed 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) for ...

Page 17

STM8L162R8, STM8L162M8 Figure 2. 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, in ...

Page 18

Functional overview 3.6 LCD (Liquid crystal display) The liquid crystal display drives common terminals and segment terminals to drive up to 320 pixels. It can also be configured to drive common ...

Page 19

STM8L162R8, STM8L162M8 3.9 Analog-to-digital converter ● 12-bit analog-to-digital converter (ADC1) with 28 channels (including 4 fast channel), temperature sensor and internal reference voltage ● Conversion time down to 1 µs with f ● Programmable resolution ● Programmable sampling time ● ...

Page 20

Functional overview 3.12 System configuration controller and routing interface The system configuration controller provides the capability to remap some alternate functions on different I/O ports. TIM4 and ADC1 DMA channels can also be remapped. The highly flexible routing interface allows ...

Page 21

STM8L162R8, STM8L162M8 3.14.1 16-bit advanced control timer (TIM1) This is a high-end timer designed for a wide range of control applications. With its complementary outputs, dead-time control and center-aligned PWM capability, the field of applications is extended to motor control, ...

Page 22

Functional overview It is clocked by the internal LSI RC clock source, and thus stays active even in case of a CPU clock failure. 3.16 Beeper The beeper function outputs a signal on the BEEP pin for sound generation. The ...

Page 23

STM8L162R8, STM8L162M8 3.17.3 USART The USART interfaces (USART1, USART2 and USART3) allow 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. ● 1 Mbit/s ...

Page 24

Pin description 4 Pin description Figure 3. STM8L162M8 80-pin package pinout Figure 4. STM8L162R8 64-pin pinout 24/121 Doc ID 17959 Rev 2 STM8L162R8, STM8L162M8 ...

Page 25

STM8L162R8, STM8L162M8 Table 3. Legend/abbreviation Type Level Port and control configuration Reset state Table 4. STM8L162x pin description Pin number Pin name 1 - PH0/LCD SEG PH1/LCD SEG PH2/LCD SEG PH3/LCD ...

Page 26

Pin description Table 4. STM8L162x pin description (continued) Pin number Pin name (4) PB0 /TIM2_CH1 LCD_SEG10/ADC1_IN18/ COMP1_INP PB1/TIM3_CH1 LCD_SEG11/ADC1_IN17/ COMP1_INP PB2/ TIM2_CH2 LCD_SEG12/ADC1_IN16/ COMP1_INP PB3/TIM2_ETR LCD_SEG13/ ADC1_IN15/COMP1_INP (4) PB4 /SPI1_NSS ...

Page 27

STM8L162R8, STM8L162M8 Table 4. STM8L162x pin description (continued) Pin number Pin name PC3/USART1_TX/ LCD_SEG23/ADC1_IN5 COMP_IN3M/ COMP2_INM/COMP1_INP PC4/USART1_CK/ I2C1_SMB/CCO LCD_SEG24/ADC1_IN4/ COMP2_INM/COMP1_INP PC5/OSC32_IN ( /[SPI1_NSS] / (2) [USART1_TX] PC6/OSC32_OUT/ ( [SPI1_SCK] / (2) [USART1_RX] ...

Page 28

Pin description Table 4. STM8L162x pin description (continued) Pin number Pin name PD5/TIM1_CH3 LCD_SEG19/ADC1_IN9/ COMP1_INP PD6/TIM1_BKIN/ LCD_SEG20/ADC1_IN8 RTC_CALIB/COMP1_INP/ VREFINT PD7/TIM1_CH1N/ LCD_SEG21/ADC1_IN7 TC_ALARM/COMP1_INP/ VREFINT PG4/LCD_SEG32 SPI2_NSS PG5/LCD_SEG33 SPI2_SCK PG6/LCD_SEG34 ...

Page 29

STM8L162R8, STM8L162M8 Table 4. STM8L162x pin description (continued) Pin number Pin name PE3/LCD_SEG4 USART2_RX PE4/LCD_SEG5 DAC_TRIG1 PE4/LCD_SEG5 DAC_TRIG2/USART2_TX PE5/LCD_SEG6 ADC1_IN23/COMP1_INP/ COMP2_INP PE5/LCD_SEG6 ADC1_IN23/COMP1_INP/ COMP2_INP/USART2_CK PE6/LCD_SEG26 PVD_IN/TIM5_BKIN PE7/LED_SEG27/ 76 ...

Page 30

Pin description Table 4. STM8L162x pin description (continued) Pin number Pin name PF1/ADC1_IN25/ DAC_OUT2 [USART3_RX]/ [SPI1_MOSI] PF1/ADC1_IN25 DAC_OUT2/[USART3_RX] PF2/ADC1_IN26 [SPI2_SCK]/ [USART3_SCK] PF3/ADC1_IN27 [SPI1_NSS PF4/LCD_COM4 54 42 PF5/LCD_COM5 55 43 PF6/LCD_COM6 ...

Page 31

STM8L162R8, STM8L162M8 Table 4. STM8L162x pin description (continued) Pin number Pin name 33 PH4/USART2_RX 34 PH5/USART2_TX PH6/USART2_CK/ 35 TIM5_CH1 36 PH7/TIM5_CH2 SSA/ REF DD3 SS3 (7) (2) PA0 /[USART1_CK] 5 ...

Page 32

Pin description System configuration options As shown in Table 4: STM8L162x pin remapped on different I/O ports by programming one of the two remapping registers described in the “Routing interface (RI) and system configuration controller” section in the STM8L15xx and ...

Page 33

STM8L162R8, STM8L162M8 5 Memory and register map 5.1 Memory mapping The memory map is shown in Figure 5. Memory map 0x00 0000 0x00 0FFF 0x00 1000 0x00 17FF 0x00 1800 0x00 47FF 0x00 4800 0x00 48FF 0x00 4900 0x00 4909 ...

Page 34

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

Page 35

STM8L162R8, STM8L162M8 Table 7. 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 36

Memory and register map Table 8. General hardware register map Address Block 0x00 502E to 0x00 5049 0x00 5050 0x00 5051 0x00 5052 Flash 0x00 5053 0x00 5054 0x00 5055 to 0x00 506F 0x00 5070 0x00 5071 0x00 5072 to ...

Page 37

STM8L162R8, STM8L162M8 Table 8. General hardware register map (continued) Address Block 0x00 5083 DMA1 0x00 5084 0x00 5085 DMA1 0x00 5086 0x00 5087 0x00 5088 0x00 5089 0x00 508A 0x00 508B 0x00 508C DMA1 0x00 508D 0x00 508E 0x00 508F ...

Page 38

Memory and register map Table 8. General hardware register map (continued) Address Block 0x00 509D 0x00 509E SYSCFG 0x00 509F 0x00 50A0 0x00 50A1 0x00 50A2 ITC - EXTI 0x00 50A3 0x00 50A4 0x00 50A5 0x00 50A6 0x00 50A7 WFE ...

Page 39

STM8L162R8, STM8L162M8 Table 8. General hardware register map (continued) Address Block 0x00 50CA 0x00 50CB 0x00 50CC 0x00 50CD CLK 0x00 50CE 0x00 50CF 0x00 50D0 0x00 50D1 to 0x00 50D2 0x00 50D3 WWDG 0x00 50D4 0x00 50D5 to 00 ...

Page 40

Memory and register map Table 8. General hardware register map (continued) Address Block 0x00 5148 0x00 5149 0x00 514A RTC 0x00 514B 0x00 514C 0x00 514D 0x00 514E 0x00 514F 0x00 5150 0x00 5151 RTC 0x00 5152 0x00 5153 0x00 ...

Page 41

STM8L162R8, STM8L162M8 Table 8. General hardware register map (continued) Address Block 0x00 516A 0x00 516B RTC 0x00 516C 0x00 516D 0x00 516E to 0x00 518A 0x00 5190 CSSLSE 0x00 519A to 0x00 51FF 0x00 5200 0x00 5201 0x00 5202 0x00 ...

Page 42

Memory and register map Table 8. General hardware register map (continued) Address Block 0x00 521F to 0x00 522F 0x00 5230 0x00 5231 0x00 5232 0x00 5233 0x00 5234 0x00 5235 USART1 0x00 5236 0x00 5237 0x00 5238 0x00 5239 0x00 ...

Page 43

STM8L162R8, STM8L162M8 Table 8. General hardware register map (continued) Address Block 0x00 5262 0x00 5263 0x00 5264 TIM2 0x00 5265 0x00 5266 0x00 5267 to 0x00 527F 0x00 5280 0x00 5281 0x00 5282 0x00 5283 0x00 5284 0x00 5285 0x00 ...

Page 44

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

Page 45

STM8L162R8, STM8L162M8 Table 8. 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 0x00 52E8 ...

Page 46

Memory and register map Table 8. General hardware register map (continued) Address Block 0x00 5310 0x00 5311 0x00 5312 0x00 5313 TIM5 0x00 5314 0x00 5315 0x00 5316 0x00 5317 to 0x00 533F 0x00 5340 0x00 5341 0x00 5342 0x00 ...

Page 47

STM8L162R8, STM8L162M8 Table 8. General hardware register map (continued) Address Block 0x00 5380 0x00 5381 0x00 5382 DAC 0x00 5383 0x00 5384 0x00 5385 0x00 5386 to 0x00 5387 0x00 5388 DAC 0x00 5389 0x00 538A to 0x00 538B 0x00 ...

Page 48

Memory and register map Table 8. General hardware register map (continued) Address Block 0x00 53A0 DAC 0x00 53A1 0x00 53A2 to 0x00 53AB 0x00 53AC 0x00 53AD 0x00 53A2 0x00 53A3 0x00 53A4 DAC 0x00 53A5 0x00 53A6 0x00 53A7 ...

Page 49

STM8L162R8, STM8L162M8 Table 8. General hardware register map (continued) Address Block 0x00 53C0 0x00 53C1 0x00 53C2 0x00 53C3 SPI2 0x00 53C4 0x00 53C5 0x00 53C6 0x00 53C7 0x00 53C8 to 0x00 53CF 0x00 53D0 0x00 53D1 AES 0x00 53D2 ...

Page 50

Memory and register map Table 8. General hardware register map (continued) Address Block 0x00 53F0 0x00 53F1 0x00 53F2 0x00 53F3 0x00 53F4 0x00 53F5 USART3 0x00 53F6 0x00 53F7 0x00 53F8 0x00 53F9 0x00 53FA 0x00 53FB to 0x00 ...

Page 51

STM8L162R8, STM8L162M8 Table 8. General hardware register map (continued) Address Block 0x00 540C 0x00 540D 0x00 540E 0x00 540F 0x00 5410 0x00 5411 0x00 5412 0x00 5413 0x00 5414 0x00 5415 0x00 5416 LCD 0x00 5417 0x00 5418 0x00 5419 ...

Page 52

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

Page 53

STM8L162R8, STM8L162M8 Table 9. 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 to 0x00 ...

Page 54

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

Page 55

STM8L162R8, STM8L162M8 6 Interrupt vector mapping Table 10. Interrupt mapping IRQ Source Description No. block RESET Reset TRAP Software interrupt (2) 0 TLI External Top level Interrupt 1 FLASH EOP/WR_PG_DIS 2 DMA1 0/1 DMA1 channels 0/1 3 DMA1 2/3 DMA1 ...

Page 56

Interrupt vector mapping Table 10. Interrupt mapping (continued) IRQ Source Description No. block TIM2/ Capture/Compare/USART 20 USART2 2 interrupt TIM3 Update /Overflow/Trigger/Break/ TIM3/ USART3 transmission 21 USART3 complete/transmit data register empty interrupt TIM3 Capture/Compare/ USART3 Receive register TIM3/ 22 data ...

Page 57

STM8L162R8, STM8L162M8 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 58

Option bytes Table 12. 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 STM8L reference manual (RM0031). UBC[7:0] Size of the ...

Page 59

STM8L162R8, STM8L162M8 Table 12. 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 according to the value of BOR_TH bits. OPTBL[15:0]: This option is checked by ...

Page 60

Unique ID 8 Unique ID 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. ...

Page 61

STM8L162R8, STM8L162M8 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 62

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

Page 63

STM8L162R8, STM8L162M8 Table 15. 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 64

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

Page 65

STM8L162R8, STM8L162M8 9.3.2 Embedded reset and power control block characteristics Table 18. 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-on ...

Page 66

Electrical parameters Table 18. Embedded reset and power control block characteristics (continued) Symbol Parameter V PVD threshold 0 PVD0 V PVD threshold 1 PVD1 V PVD threshold 2 PVD2 V PVD threshold 3 PVD3 V PVD threshold 4 PVD4 V ...

Page 67

STM8L162R8, STM8L162M8 Figure 8. Power supply thresholds 100 mV PVD hysteresis 100 mV V BOR hysteresis POR PDR PVD output BOR reset (NRST) BOR/PDR reset (NRST) POR/PDR reset (NRST) PVD BOR always active ...

Page 68

Electrical parameters 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 disabled except if explicitly mentioned. In ...

Page 69

STM8L162R8, STM8L162M8 Table 19. Total current consumption in Run mode (continued) Para Symbol meter All peripherals OFF, code Supply executed current I DD(RUN) from Flash, in Run V from mode All peripherals OFF, ...

Page 70

Electrical parameters Figure 9. Typical I 2 1.8 1.6 1.4 1.2 1 0.8 0.6 0.4 0.2 0 1.8 1. Typical current consumption measured with code executed from RAM. Figure 10. Typical I 4 3.5 3 2.5 2 1.5 1.8 2 ...

Page 71

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

Page 72

Electrical parameters Table 20. Total current consumption in Wait mode (continued) Symbol Parameter CPU not clocked, all peripherals OFF, Supply code I current in DD(Wait) executed from Wait mode Flash, V from All ...

Page 73

STM8L162R8, STM8L162M8 Figure 11. Typical I 0.8 0.7 0.6 0.5 0.4 0.3 0.2 1.8 1. Typical current consumption measured with code executed from RAM. Figure 12. Typical I 0.8 0.7 0.6 0.5 0.4 0.3 0.2 1 Typical current ...

Page 74

Electrical parameters In the following table, data are based on characterization results, unless otherwise specified. Table 21. 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 75

STM8L162R8, STM8L162M8 Figure 13. Typical I 0.02 0.015 0.01 0.005 0 1.8 vs. V (LSI clock source), all peripherals OFF DD(LPR 2.2 2.4 2.6 Doc ID 17959 Rev 2 Electrical parameters 2.8 3 3.2 3.4 25°C 85°C 105°C ...

Page 76

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

Page 77

STM8L162R8, STM8L162M8 Figure 14. Typical I 0.02 0.015 0.01 0.005 0 1.8 1. Typical current consumption measured with code executed from RAM. vs. V (LSI clock source), all peripherals OFF DD(LPW 2.2 2.4 2.6 Doc ID 17959 Rev ...

Page 78

Electrical parameters In the following table, data are based on characterization results, unless otherwise specified. Table 23. Total current consumption and timing in Active-halt mode 1. 3 Symbol Parameter Supply current in I ...

Page 79

STM8L162R8, STM8L162M8 Table 23. Total current consumption and timing in Active-halt mode 1. 3.6 V (continued) DD Symbol Parameter Supply current in I DD(AH) Active-halt mode Supply current during wakeup time from I DD(WUFAH) Active-halt ...

Page 80

Electrical parameters 7. RTC enabled. Clock source = LSE 8. Wakeup time until start of interrupt vector fetch. The first word of interrupt routine is fetched 4 CPU cycles after t 9. ULP=0 or ULP=1 and FWU=1 in the PWR_CSR2 ...

Page 81

STM8L162R8, STM8L162M8 In the following table, data are based on characterization results, unless otherwise specified. Table 25. Total current consumption and timing in Halt mode at V Symbol Supply current in Halt mode I (Ultra low power ULP bit =1 ...

Page 82

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

Page 83

STM8L162R8, STM8L162M8 3. Data based on a differential I measurement between the on-chip peripheral in reset configuration and not clocked and DD the on-chip peripheral when clocked and not kept under reset. The CPU is in Wait mode in both ...

Page 84

Electrical parameters LSE external clock (LSEBYP=1 in CLK_ECKCR) Subject to general operating conditions for V Table 29. LSE external clock characteristics Symbol (1) External clock source frequency f LSE_ext (2) OSC32_IN input pin high level voltage V LSEH (2) OSC32_IN ...

Page 85

STM8L162R8, STM8L162M8 Figure 17. HSE oscillator circuit diagram Resonator C L2 HSE oscillator critical g  2    mcrit R : Motional resistance (see crystal ...

Page 86

Electrical parameters Figure 18. LSE oscillator circuit diagram Resonator C L2 Internal clock sources Subject to general operating conditions for V High speed internal RC oscillator (HSI) In the following ...

Page 87

STM8L162R8, STM8L162M8 Figure 19. Typical HSI frequency vs. V Low speed internal RC oscillator (LSI) In the following table, data are based on characterization results, not tested in production. Table 33. LSI oscillator characteristics Symbol f Frequency LSI t LSI ...

Page 88

Electrical parameters Figure 20. Typical LSI clock source frequency vs. V 0.04 0.038 0.036 0.034 0.032 0.03 1.8 9.3.5 Memory characteristics T = -40 to 125 °C unless otherwise specified. A Table 34. RAM and hardware registers Symbol V Data ...

Page 89

STM8L162R8, STM8L162M8 Flash memory Table 35. Flash program and data EEPROM memory Symbol Parameter Operating voltage V DD (all modes, read/write/erase) Programming time for 1 or 128 bytes (block) erase/write cycles (on programmed byte) t prog Programming time for 1 ...

Page 90

Electrical parameters 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 91

STM8L162R8, STM8L162M8 Table 37. I/O static characteristics Symbol Parameter V Input low level voltage IL V Input high level voltage IH V Schmitt trigger voltage hysteresis hys I Input leakage current lkg R Weak pull-up equivalent resistor PU C I/O ...

Page 92

Electrical parameters Figure 21. Typical V Figure 22. Typical V Figure 23. Typical pull-up resistance R 92/121 and V vs. V (standard I/Os and V vs. V (true open drain I/Os vs ...

Page 93

STM8L162R8, STM8L162M8 Figure 24. Typical pull-up current I Output driving current Subject to general operating conditions for V Table 38. Output driving current (high sink ports) I/O Symbol Type (1) V Output low level voltage for an I/O pin OL ...

Page 94

Electrical parameters Table 39. Output driving current (true open drain ports) I/O Symbol Type (1) Output low level voltage for an I/O pin The I current sunk must always respect the absolute maximum rating specified in IO ...

Page 95

STM8L162R8, STM8L162M8 Figure 29. Typical (high sink ports) NRST pin Subject to general operating conditions for V Table 41. NRST pin characteristics Symbol Parameter V NRST input low level voltage IL(NRST) V NRST input high ...

Page 96

Electrical parameters Figure 31. Typical NRST pull-up resistance R 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 Table 41. Otherwise the reset ...

Page 97

STM8L162R8, STM8L162M8 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 42. SPI1 characteristics Symbol Parameter ...

Page 98

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 99

STM8L162R8, STM8L162M8 Figure 36. SPI1 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 100

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 101

STM8L162R8, STM8L162M8 Figure 37. Typical application with I 4.7k BUS SDA t f(SDA) SCL t h(STA) 1. Measurement points are done at CMOS levels: 0 9.3.9 LCD controller In the following table, data are guaranteed ...

Page 102

Electrical parameters 1. LCD enabled with 3 V internal booster (LCD_CR1 = 0x08), 1/4 duty, 1/3 bias, division ratio= 64, all pixels active, no LCD connected the total high value resistive network the ...

Page 103

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

Page 104

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

Page 105

STM8L162R8, STM8L162M8 In the following table, data are guaranteed by design, not tested in production. Table 48. Comparator 2 characteristics Symbol V Analog supply voltage DDA T Temperature range A V Comparator input voltage range IN Startup time after enable ...

Page 106

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

Page 107

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

Page 108

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

Page 109

STM8L162R8, STM8L162M8 Table 52. 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 (5) t IDLE conversion Internal reference t VREFINT voltage startup time ...

Page 110

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

Page 111

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

Page 112

Electrical parameters Figure 40. Power supply and reference decoupling (V Figure 41. Power supply and reference decoupling (V 112/121 1 µ µ µ Doc ID 17959 Rev 2 STM8L162R8, ...

Page 113

STM8L162R8, STM8L162M8 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 114

Electrical parameters Table 57. 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 115

STM8L162R8, STM8L162M8 9.4 Thermal characteristics The maximum chip junction temperature (T Table 17: 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 116

Package characteristics 10 Package characteristics 10.1 Package mechanical data 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 ...

Page 117

STM8L162R8, STM8L162M8 Figure 42. 80-pin low profile quad flat package ( mm) Table 61. 80-pin low profile quad flat package mechanical data Symbol ...

Page 118

Package characteristics Figure 43. LQFP64 – mm, 64 pin low-profile quad flat package outline 1. Drawing is not to scale. 2. Dimensions are in millimeters. Table 62. LQFP64 – mm, 64-pin low-profile quad flat ...

Page 119

STM8L162R8, STM8L162M8 11 Ordering information scheme Table 63. Ordering information scheme Example: Device family STM8 microcontroller Product type L = Low power Device subfamily 162: STM8L162 device family Pin count pins pins Program memory ...

Page 120

Revision history 12 Revision history Table 64. Document revision history Date Revision 14-Sep-2010 22-Mar-2011 120/121 1 Initial release. Table 4: STM8L162x pin “standard port” changed to “high sink port”. Figure 5: Memory map: updated the address range of the AES ...

Page 121

... STM8L162R8, STM8L162M8 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