Docsity

STM32 reference manual for development, Manuais, Projetos, Pesquisas de Engenharia de Software

Toggle sidebar
bg1
December 2017 DocID025941 Rev 5 1/1001
1
RM0376
Reference manual
Ultra-low-power STM32L0x2 advanced Arm®-based
32-bit MCUs
Introduction
This reference manual targets application developers. It provides complete information on
how to use the STM32L0x2 microcontroller memory and peripherals.
The STM32L0x2 is a line of microcontrollers with different memory sizes, packages and
peripherals.
For ordering information, mechanical and electrical device characteristics please refer to the
corresponding datasheets.
For information on the Arm® Cortex®-M0+ core, please refer to the Cortex®-M0+ Technical
Reference Manual.
Related documents
•Cortex®-M0+ Technical Reference Manual, available from www.arm.com.
•STM32L0 Series Cortex®-M0+ programming manual (PM0223).
•STM32L0x2 datasheets.
www.st.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Pré-visualização parcial do texto

Baixe STM32 reference manual for development e outras Manuais, Projetos, Pesquisas em PDF para Engenharia de Software, somente na Docsity!

December 2017 DocID025941 Rev 5 1/ 1

RM

Reference manual

Ultra-low-power STM32L0x2 advanced Arm ®^ -based

32-bit MCUs

Introduction

This reference manual targets application developers. It provides complete information on how to use the STM32L0x2 microcontroller memory and peripherals. The STM32L0x2 is a line of microcontrollers with different memory sizes, packages and peripherals. For ordering information, mechanical and electrical device characteristics please refer to the corresponding datasheets. For information on the Arm®^ Cortex®^ -M0+ core, please refer to the Cortex® -M0+ Technical Reference Manual.

Related documents

  • Cortex ®-M0+ Technical Reference Manual, available from www.arm.com.
  • STM32L0 Series Cortex ®-M0+ programming manual (PM0223).
  • STM32L0x2 datasheets.

www.st.com

Contents

RM0376 Contents

RM0376 Contents

RM0376 Contents

39

RM0376 Contents

RM0376 Contents

RM0376 Contents

  • Contents RM
  • 2/1001 DocID025941 Rev
  • 1 Documentation conventions
    • 1.1 List of abbreviations for registers
    • 1.2 Glossary
    • 1.3 Peripheral availability
    • 1.4 Product category definition
  • 2 System and memory overview
    • 2.1 System architecture
      • 2.1.1 S0: Cortex®-bus
      • 2.1.2 S1: DMA-bus
      • 2.1.3 BusMatrix
        • AHB/APB bridges.
    • 2.2 Memory organization
      • 2.2.1 Introduction
      • 2.2.2 Memory map and register boundary addresses
    • 2.3 Embedded SRAM
    • 2.4 Boot configuration - Bank swapping (category 5 devices only). - Physical remap. - Embedded bootloader.
  • 3 Flash program memory and data EEPROM (FLASH)
    • 3.1 Introduction
    • 3.2 NVM main features
    • 3.3 NVM functional description
      • 3.3.1 NVM organization
      • 3.3.2 Dual-bank boot capability
      • 3.3.3 Reading the NVM
        • Protocol to read.
        • Relation between CPU frequency/Operation mode/NVM read time..
        • Data buffering.
      • 3.3.4 Writing/erasing the NVM
        • Write/erase protocol.
        • Unlocking/locking operations.
        • DocID025941 Rev 5 3/
      • Detailed description of NVM write/erase operations..
      • Parallel write half-page Flash program memory.
      • Status register.
  • 3.4 Memory protection
    • 3.4.1 RDP (Read Out Protection)
    • 3.4.2 PcROP (Proprietary Code Read-Out Protection)
    • 3.4.3 Protections against unwanted write/erase operations
    • 3.4.4 Write/erase protection management
    • 3.4.5 Protection errors
      • Write protection error flag (WRPERR).
      • Read error (RDERR).
  • 3.5 NVM interrupts
    • 3.5.1 Hard fault
  • 3.6 Memory interface management
    • 3.6.1 Operation priority and evolution
      • Read.
      • Write/erase.
      • Option byte loading..
    • 3.6.2 Sequence of operations
      • Read as data while write.
      • Fetch while write.
      • Write while another write operation is ongoing.
    • 3.6.3 Change the number of wait states while reading
    • 3.6.4 Power-down
  • 3.7 Flash register description - Read registers. - Write to registers.
    • 3.7.1 Access control register (FLASH_ACR)
    • 3.7.2 Program and erase control register (FLASH_PECR)
    • 3.7.3 Power-down key register (FLASH_PDKEYR)
    • 3.7.4 PECR unlock key register (FLASH_PEKEYR)
    • 3.7.5 Program and erase key register (FLASH_PRGKEYR)
    • 3.7.6 Option bytes unlock key register (FLASH_OPTKEYR)
    • 3.7.7 Status register (FLASH_SR)
    • 3.7.8 Option bytes register (FLASH_OPTR)
    • 3.7.9 Write protection register 1 (FLASH_WRPROT1)
    • 3.7.10 Write protection register 2 (FLASH_WRPROT2)
    • 3.7.11 Flash register map
  • Contents RM
  • 4/1001 DocID025941 Rev
    • 3.8 Option bytes
      • 3.8.1 Option bytes description
      • 3.8.2 Mismatch when loading protection flags
      • 3.8.3 Reloading Option bytes by software
  • 4 Cyclic redundancy check calculation unit (CRC)
    • 4.1 Introduction
    • 4.2 CRC main features
    • 4.3 CRC functional description
      • 4.3.1 CRC block diagram
      • 4.3.2 CRC internal signals
      • 4.3.3 CRC operation
        • Polynomial programmability.
    • 4.4 CRC registers
      • 4.4.1 Data register (CRC_DR)
      • 4.4.2 Independent data register (CRC_IDR)
      • 4.4.3 Control register (CRC_CR)
      • 4.4.4 Initial CRC value (CRC_INIT)
      • 4.4.5 CRC polynomial (CRC_POL)
      • 4.4.6 CRC register map
  • 5 Firewall (FW)
    • 5.1 Introduction
    • 5.2 Firewall main features
    • 5.3 Firewall functional description
      • 5.3.1 Firewall AMBA bus snoop
      • 5.3.2 Functional requirements
        • Debug consideration..
        • Write protection.
        • Interruptions management.
      • 5.3.3 Firewall segments
        • Code segment.
        • Non-volatile data segment.
        • Volatile data segment.
      • 5.3.4 Segment accesses and properties
        • Segment access depending on the Firewall state.
        • Segments properties.
          • DocID025941 Rev 5 5/
      • 5.3.5 Firewall initialization
      • 5.3.6 Firewall states
        • Opening the Firewall..
        • Closing the Firewall.
    • 5.4 Firewall registers
      • 5.4.1 Code segment start address (FW_CSSA)
      • 5.4.2 Code segment length (FW_CSL)
      • 5.4.3 Non-volatile data segment start address (FW_NVDSSA)
      • 5.4.4 Non-volatile data segment length (FW_NVDSL)
      • 5.4.5 Volatile data segment start address (FW_VDSSA)
      • 5.4.6 Volatile data segment length (FW_VDSL)
      • 5.4.7 Configuration register (FW_CR)
      • 5.4.8 Firewall register map
  • 6 Power control (PWR)
    • 6.1 Power supplies
      • 6.1.1 Independent A/D and DAC converter supply and reference voltage
        • On packages with more than 64 pins and UFBGA64.
        • On packages with 64 pins or less (except BGA package).
      • 6.1.2 RTC and RTC backup registers
        • RTC registers access.
      • 6.1.3 Voltage regulator
      • 6.1.4 Dynamic voltage scaling management
        • Range 1.
        • Range 2 and 3.
      • 6.1.5 Dynamic voltage scaling configuration
        • below 1.71 V 6.1.6 Voltage regulator and clock management when VDD drops
        • VCORE range 6.1.7 Voltage regulator and clock management when modifying the
      • 6.1.8 Voltage range and limitations when VDD ranges from 1.71 V to 2.0 V
    • 6.2 Power supply supervisor
      • 6.2.1 Power-on reset (POR)/power-down reset (PDR)
      • 6.2.2 Brown out reset (BOR)
      • 6.2.3 Programmable voltage detector (PVD)
      • 6.2.4 Internal voltage reference (VREFINT)
    • 6.3 Low-power modes
      • 6.3.1 Behavior of clocks in low-power modes
  • Contents RM
  • 6/1001 DocID025941 Rev - Sleep and Low-power sleep modes. - Stop and Standby modes. - 6.3.2 Slowing down system clocks - 6.3.3 Peripheral clock gating - 6.3.4 Low-power run mode (LP run) - Entering Low-power run mode. - Exiting Low-power run mode. - 6.3.5 Entering low-power mode - 6.3.6 Exiting low-power mode - 6.3.7 Sleep mode - I/O states in Sleep mode. - Entering Sleep mode. - Exiting Sleep mode.. - 6.3.8 Low-power sleep mode (LP sleep) - I/O states in Low-power sleep mode. - Entering Low-power sleep mode. - Exiting Low-power sleep mode.. - 6.3.9 Stop mode - I/O states in Low-power sleep mode. - Entering Stop mode. - Exiting Stop mode. - 6.3.10 Standby mode - I/O states in Standby mode. - Entering Standby mode. - Exiting Standby mode.. - Debug mode. - and comparators 6.3.11 Waking up the device from Stop and Standby modes using the RTC - RTC auto-wakeup (AWU) from the Stop mode. - RTC auto-wakeup (AWU) from the Standby mode.. - Comparator auto-wakeup (AWU) from the Stop mode..
    • 6.4 Power control registers
      • 6.4.1 PWR power control register (PWR_CR)
      • 6.4.2 PWR power control/status register (PWR_CSR)
      • 6.4.3 PWR register map
  • 7 Reset and clock control (RCC)
    • 7.1 Reset
      • 7.1.1 System reset
        • Software reset.
        • DocID025941 Rev 5 7/
      • Low-power management reset.
      • Option byte loader reset.
    • 7.1.2 Power reset
    • 7.1.3 RTC and backup registers reset
  • 7.2 Clocks
    • 7.2.1 HSE clock
      • External source (HSE bypass).
      • External crystal/ceramic resonator (HSE crystal).
    • 7.2.2 HSI16 clock
      • Calibration.
    • 7.2.3 MSI clock
      • Calibration.
    • 7.2.4 HSI48 clock
    • 7.2.5 PLL
    • 7.2.6 LSE clock
      • External source (LSE bypass).
    • 7.2.7 LSI clock
      • LSI measurement.
    • 7.2.8 System clock (SYSCLK) selection
    • 7.2.9 System clock source frequency versus voltage range
    • 7.2.10 HSE clock security system (CSS)
    • 7.2.11 LSE Clock Security System
    • 7.2.12 RTC clock
    • 7.2.13 Watchdog clock
    • 7.2.14 Clock-out capability
    • 7.2.15 Internal/external clock measurement using TIM21
    • 7.2.16 Clock-independent system clock sources for TIM2/TIM21/TIM22
  • 7.3 RCC registers
    • 7.3.1 Clock control register (RCC_CR)
    • 7.3.2 Internal clock sources calibration register (RCC_ICSCR)
    • 7.3.3 Clock recovery RC register (RCC_CRRCR)
    • 7.3.4 Clock configuration register (RCC_CFGR)
    • 7.3.5 Clock interrupt enable register (RCC_CIER)
    • 7.3.6 Clock interrupt flag register (RCC_CIFR)
    • 7.3.7 Clock interrupt clear register (RCC_CICR)
    • 7.3.8 GPIO reset register (RCC_IOPRSTR)
    • 7.3.9 AHB peripheral reset register (RCC_AHBRSTR)
    • 7.3.10 APB2 peripheral reset register (RCC_APB2RSTR)
  • Contents RM
  • 8/1001 DocID025941 Rev - 7.3.11 APB1 peripheral reset register (RCC_APB1RSTR) - 7.3.12 GPIO clock enable register (RCC_IOPENR) - 7.3.13 AHB peripheral clock enable register (RCC_AHBENR) - 7.3.14 APB2 peripheral clock enable register (RCC_APB2ENR) - 7.3.15 APB1 peripheral clock enable register (RCC_APB1ENR) - 7.3.16 GPIO clock enable in Sleep mode register (RCC_IOPSMENR) - register (RCC_AHBSMENR) 7.3.17 AHB peripheral clock enable in Sleep mode - register (RCC_APB2SMENR) 7.3.18 APB2 peripheral clock enable in Sleep mode - register (RCC_APB1SMENR) 7.3.19 APB1 peripheral clock enable in Sleep mode - 7.3.20 Clock configuration register (RCC_CCIPR) - 7.3.21 Control/status register (RCC_CSR) - 7.3.22 RCC register map
  • 8 Clock recovery system (CRS)
    • 8.1 Introduction
    • 8.2 CRS main features
    • 8.3 CRS functional description
      • 8.3.1 CRS block diagram
      • 8.3.2 Synchronization input
      • 8.3.3 Frequency error measurement
      • 8.3.4 Frequency error evaluation and automatic trimming
      • 8.3.5 CRS initialization and configuration
        • RELOAD value.
        • FELIM value.
    • 8.4 CRS low-power modes
    • 8.5 CRS interrupts
    • 8.6 CRS registers
      • 8.6.1 CRS control register (CRS_CR)
      • 8.6.2 CRS configuration register (CRS_CFGR)
      • 8.6.3 CRS interrupt and status register (CRS_ISR)
      • 8.6.4 CRS interrupt flag clear register (CRS_ICR)
      • 8.6.5 CRS register map
  • 9 General-purpose I/Os (GPIO)
    • 9.1 Introduction - DocID025941 Rev 5 9/
    • 9.2 GPIO main features
    • 9.3 GPIO functional description
      • 9.3.1 General-purpose I/O (GPIO)
      • 9.3.2 I/O pin alternate function multiplexer and mapping
      • 9.3.3 I/O port control registers
      • 9.3.4 I/O port data registers
      • 9.3.5 I/O data bitwise handling
      • 9.3.6 GPIO locking mechanism
      • 9.3.7 I/O alternate function input/output
      • 9.3.8 External interrupt/wakeup lines
      • 9.3.9 Input configuration
      • 9.3.10 Output configuration
      • 9.3.11 Alternate function configuration
      • 9.3.12 Analog configuration
      • 9.3.13 Using the HSE or LSE oscillator pins as GPIOs
      • 9.3.14 Using the GPIO pins in the RTC supply domain
    • 9.4 GPIO registers
      • 9.4.1 GPIO port mode register (GPIOx_MODER) (x =A..E and H)
      • 9.4.2 GPIO port output type register (GPIOx_OTYPER) (x = A..E and H)
        • (x = A..E and H) 9.4.3 GPIO port output speed register (GPIOx_OSPEEDR)
        • (x = A..E and H) 9.4.4 GPIO port pull-up/pull-down register (GPIOx_PUPDR)
      • 9.4.5 GPIO port input data register (GPIOx_IDR) (x = A..E and H)
      • 9.4.6 GPIO port output data register (GPIOx_ODR) (x = A..E and H)
      • 9.4.7 GPIO port bit set/reset register (GPIOx_BSRR) (x = A..E and H)
        • (x = A..E and H) 9.4.8 GPIO port configuration lock register (GPIOx_LCKR)
        • (x = A..E and H) 9.4.9 GPIO alternate function low register (GPIOx_AFRL)
        • (x = A..E and H) 9.4.10 GPIO alternate function high register (GPIOx_AFRH)
      • 9.4.11 GPIO port bit reset register (GPIOx_BRR) (x = A..E and H)
      • 9.4.12 GPIO register map
  • 10 System configuration controller (SYSCFG)
    • 10.1 Introduction
    • 10.2 SYSCFG registers
  • Contents RM
  • 10/1001 DocID025941 Rev - 10.2.1 SYSCFG memory remap register (SYSCFG_CFGR1) - 10.2.2 SYSCFG peripheral mode configuration register (SYSCFG_CFGR2) - 10.2.3 Reference control and status register (SYSCFG_CFGR3) - 10.2.4 SYSCFG external interrupt configuration register - (SYSCFG_EXTICR1) - 10.2.5 SYSCFG external interrupt configuration register - (SYSCFG_EXTICR2) - 10.2.6 SYSCFG external interrupt configuration register - (SYSCFG_EXTICR3) - 10.2.7 SYSCFG external interrupt configuration register - (SYSCFG_EXTICR4) - 10.2.8 SYSCFG register map
  • 11 Direct memory access controller (DMA)
    • 11.1 Introduction
    • 11.2 DMA main features
    • 11.3 DMA functional description
      • 11.3.1 DMA transactions
      • 11.3.2 Arbiter
      • 11.3.3 DMA channels
        • Programmable data sizes.
        • Pointer incrementation.
        • Channel configuration procedure.
        • Circular mode.
        • Memory-to-memory mode.
      • 11.3.4 Programmable data width, data alignment and endianness
        • write operations. Addressing an AHB peripheral that does not support byte or halfword
      • 11.3.5 Error management
      • 11.3.6 DMA interrupts
      • 11.3.7 DMA request mapping
        • DMA controller.
    • 11.4 DMA registers
      • 11.4.1 DMA interrupt status register (DMA_ISR)
      • 11.4.2 DMA interrupt flag clear register (DMA_IFCR) - (x = 1..7 , where x = channel number) 11.4.3 DMA channel x configuration register (DMA_CCRx)
        • where x = channel number) 11.4.4 DMA channel x number of data register (DMA_CNDTRx) (x = 1..7,
          • DocID025941 Rev 5 11/
        • where x = channel number) 11.4.5 DMA channel x peripheral address register (DMA_CPARx) (x = 1..7,
        • where x = channel number) 11.4.6 DMA channel x memory address register (DMA_CMARx) (x = 1..7,
      • 11.4.7 DMA channel selection register (DMA_CSELR)
      • 11.4.8 DMA register map
  • 12 Nested vectored interrupt controller (NVIC)
    • 12.1 Main features
    • 12.2 SysTick calibration value register
    • 12.3 Interrupt and exception vectors
  • 13 Extended interrupt and event controller (EXTI)
    • 13.1 Introduction
    • 13.2 EXTI main features
    • 13.3 EXTI functional description
      • 13.3.1 EXTI block diagram
      • 13.3.2 Wakeup event management
      • 13.3.3 Peripherals asynchronous interrupts
      • 13.3.4 Hardware interrupt selection
      • 13.3.5 Hardware event selection
      • 13.3.6 Software interrupt/event selection
    • 13.4 EXTI interrupt/event line mapping
    • 13.5 EXTI registers
      • 13.5.1 EXTI interrupt mask register (EXTI_IMR)
      • 13.5.2 EXTI event mask register (EXTI_EMR)
      • 13.5.3 EXTI rising edge trigger selection register (EXTI_RTSR)
      • 13.5.4 Falling edge trigger selection register (EXTI_FTSR)
      • 13.5.5 EXTI software interrupt event register (EXTI_SWIER)
      • 13.5.6 EXTI pending register (EXTI_PR)
      • 13.5.7 EXTI register map
  • 14 Analog-to-digital converter (ADC)
    • 14.1 Introduction
    • 14.2 ADC main features
    • 14.3 ADC functional description
      • 14.3.1 ADC pins and internal signals
  • Contents RM
  • 12/1001 DocID025941 Rev - 14.3.2 ADC voltage regulator (ADVREGEN) - Analog reference for the ADC internal voltage regulator. - ADVREG enable sequence. - ADVREG disable sequence. - 14.3.3 Calibration (ADCAL) - Calibration factor forcing Software Procedure. - 14.3.4 ADC on-off control (ADEN, ADDIS, ADRDY) - 14.3.5 ADC clock (CKMODE, PRESC[3:0], LFMEN) - Low frequency. - 14.3.6 Configuring the ADC - 14.3.7 Channel selection (CHSEL, SCANDIR) - Temperature sensor, V REFINT internal channels. - 14.3.8 Programmable sampling time (SMP) - 14.3.9 Single conversion mode (CONT=0) - 14.3.10 Continuous conversion mode (CONT=1) - 14.3.11 Starting conversions (ADSTART) - 14.3.12 Timings - 14.3.13 Stopping an ongoing conversion (ADSTP)
    • 14.4 Conversion on external trigger and trigger polarity (EXTSEL, EXTEN)
      • 14.4.1 Discontinuous mode (DISCEN)
      • 14.4.2 Programmable resolution (RES) - fast conversion mode
      • 14.4.3 End of conversion, end of sampling phase (EOC, EOSMP flags)
      • 14.4.4 End of conversion sequence (EOS flag)
        • hardware/software triggers) 14.4.5 Example timing diagrams (single/continuous modes
    • 14.5 Data management
      • 14.5.1 Data register and data alignment (ADC_DR, ALIGN)
      • 14.5.2 ADC overrun (OVR, OVRMOD)
      • 14.5.3 Managing a sequence of data converted without using the DMA
      • 14.5.4 Managing converted data without using the DMA without overrun
      • 14.5.5 Managing converted data using the DMA
        • DMA one shot mode (DMACFG=0).
        • DMA circular mode (DMACFG=1).
    • 14.6 Low-power features
      • 14.6.1 Wait mode conversion
      • 14.6.2 Auto-off mode (AUTOFF)
      • ADC_TR, AWD) 14.7 Analog window watchdog (AWDEN, AWDSGL, AWDCH, - DocID025941 Rev 5 13/
    • 14.8 Oversampler
      • 14.8.1 ADC operating modes supported when oversampling
      • 14.8.2 Analog watchdog
      • 14.8.3 Triggered mode
    • 14.9 Temperature sensor and internal reference voltage - Main features. - Reading the temperature. - Calculating the actual VDDA voltage using the internal reference voltage. - Converting a supply-relative ADC measurement to an absolute voltage value.
    • 14.10 ADC interrupts
    • 14.11 ADC registers
      • 14.11.1 ADC interrupt and status register (ADC_ISR)
      • 14.11.2 ADC interrupt enable register (ADC_IER)
      • 14.11.3 ADC control register (ADC_CR)
      • 14.11.4 ADC configuration register 1 (ADC_CFGR1)
      • 14.11.5 ADC configuration register 2 (ADC_CFGR2)
      • 14.11.6 ADC sampling time register (ADC_SMPR)
      • 14.11.7 ADC watchdog threshold register (ADC_TR)
      • 14.11.8 ADC channel selection register (ADC_CHSELR)
      • 14.11.9 ADC data register (ADC_DR)
      • 14.11.10 ADC Calibration factor (ADC_CALFACT)
      • 14.11.11 ADC common configuration register (ADC_CCR)
      • 14.11.12 ADC register map
  • 15 Digital-to-analog converter (DAC)
    • 15.1 Introduction
    • 15.2 DAC1 main features
    • 15.3 DAC output buffer enable
    • 15.4 DAC channel enable
    • 15.5 Single mode functional description
      • 15.5.1 DAC data format
      • 15.5.2 DAC channel conversion
        • Independent trigger with single LFSR generation.
        • Independent trigger with single triangle generation.
      • 15.5.3 DAC output voltage
      • 15.5.4 DAC trigger selection
    • 15.6 Dual-mode functional description
  • Contents RM
  • 14/1001 DocID025941 Rev - 15.6.1 DAC data format - 15.6.2 DAC channel conversion in dual mode - 15.6.3 Description of dual conversion modes - Independent trigger without wave generation.. - Independent trigger with single LFSR generation. - Independent trigger with different LFSR generation. - Independent trigger with single triangle generation. - Independent trigger with different triangle generation. - Simultaneous software start. - Simultaneous trigger without wave generation. - Simultaneous trigger with single LFSR generation.. - Simultaneous trigger with different LFSR generation. - Simultaneous trigger with single triangle generation. - Simultaneous trigger with different triangle generation. - 15.6.4 DAC output voltage - 15.6.5 DAC trigger selection
    • 15.7 Noise generation
    • 15.8 Triangle-wave generation
    • 15.9 DMA request - DMA underrun.
    • 15.10 DAC registers
      • 15.10.1 DAC control register (DAC_CR)
      • 15.10.2 DAC software trigger register (DAC_SWTRIGR)
        • (DAC_DHR12R1) 15.10.3 DAC channel1 12-bit right-aligned data holding register
        • (DAC_DHR12L1) 15.10.4 DAC channel1 12-bit left-aligned data holding register
        • (DAC_DHR8R1) 15.10.5 DAC channel1 8-bit right-aligned data holding register
        • (DAC_DHR12R2) 15.10.6 DAC channel2 12-bit right-aligned data holding register
        • (DAC_DHR12L2) 15.10.7 DAC channel2 12-bit left-aligned data holding register
        • (DAC_DHR8R2) 15.10.8 DAC channel2 8-bit right-aligned data holding register
        • (DAC_DHR12RD) 15.10.9 Dual DAC 12-bit right-aligned data holding register
        • (DAC_DHR12LD) 15.10.10 Dual DAC 12-bit left-aligned data holding register
        • (DAC_DHR8RD) 15.10.11 Dual DAC 8-bit right-aligned data holding register
        • DocID025941 Rev 5 15/
      • 15.10.12 DAC channel1 data output register (DAC_DOR1)
      • 15.10.13 DAC channel2 data output register (DAC_DOR2)
      • 15.10.14 DAC status register (DAC_SR)
      • 15.10.15 DAC register map
  • 16 Comparator (COMP)
    • 16.1 Introduction
    • 16.2 COMP main features
    • 16.3 COMP functional description
      • 16.3.1 COMP block diagram
      • 16.3.2 COMP pins and internal signals
      • 16.3.3 COMP reset and clocks
      • 16.3.4 Comparator LOCK mechanism
      • 16.3.5 Power mode
    • 16.4 COMP interrupts
    • 16.5 COMP registers
      • 16.5.1 Comparator 1 control and status register (COMP1_CSR)
      • 16.5.2 Comparator 2 control and status register (COMP2_CSR)
      • 16.5.3 COMP register map
  • 17 Touch sensing controller (TSC)
    • 17.1 Introduction
    • 17.2 TSC main features
    • 17.3 TSC functional description
      • 17.3.1 TSC block diagram
      • 17.3.2 Surface charge transfer acquisition overview
      • 17.3.3 Reset and clocks
      • 17.3.4 Charge transfer acquisition sequence
      • 17.3.5 Spread spectrum feature
      • 17.3.6 Max count error
      • 17.3.7 Sampling capacitor I/O and channel I/O mode selection
      • 17.3.8 Acquisition mode
      • 17.3.9 I/O hysteresis and analog switch control
    • 17.4 TSC low-power modes
    • 17.5 TSC interrupts
    • 17.6 TSC registers
  • Contents RM
  • 16/1001 DocID025941 Rev - 17.6.1 TSC control register (TSC_CR) - 17.6.2 TSC interrupt enable register (TSC_IER) - 17.6.3 TSC interrupt clear register (TSC_ICR) - 17.6.4 TSC interrupt status register (TSC_ISR) - 17.6.5 TSC I/O hysteresis control register (TSC_IOHCR) - 17.6.6 TSC I/O analog switch control register (TSC_IOASCR) - 17.6.7 TSC I/O sampling control register (TSC_IOSCR) - 17.6.8 TSC I/O channel control register (TSC_IOCCR) - 17.6.9 TSC I/O group control status register (TSC_IOGCSR) - 17.6.10 TSC I/O group x counter register (TSC_IOGxCR) (x = 1..8) - 17.6.11 TSC register map
  • 18 AES hardware accelerator (AES)
    • 18.1 Introduction
    • 18.2 AES main features
    • 18.3 AES implementation
    • 18.4 AES functional description
      • 18.4.1 AES block diagram
      • 18.4.2 AES internal signals
      • 18.4.3 AES cryptographic core
        • Overview..
        • Typical data processing.
        • Chaining modes.
        • Electronic codebook (ECB) mode.
        • Cipher block chaining (CBC) mode.
        • Counter (CTR) mode.
      • 18.4.4 AES procedure to perform a cipher operation
        • Introduction.
        • Initialization of AES..
        • Data append.
      • 18.4.5 AES decryption key preparation
      • 18.4.6 AES ciphertext stealing and data padding
      • 18.4.7 AES task suspend and resume
      • 18.4.8 AES basic chaining modes (ECB, CBC)
        • Overview..
        • ECB/CBC encryption sequence.
        • ECB/CBC decryption sequence.
        • Suspend/resume operations in ECB/CBC modes.
          • DocID025941 Rev 5 17/
        • Alternative single ECB/CBC decryption using Mode 4.
      • 18.4.9 AES counter (CTR) mode
        • Overview..
        • CTR encryption and decryption.
        • Suspend/resume operations in CTR mode.
      • 18.4.10 AES data registers and data swapping
        • Data input and output.
        • Data swapping.
        • Data padding.
      • 18.4.11 AES key registers
      • 18.4.12 AES initialization vector registers
      • 18.4.13 AES DMA interface
        • Data input using DMA..
        • Data output using DMA.
        • DMA operation in different operating modes.
      • 18.4.14 AES error management
        • Read error flag (RDERR).
        • Write error flag (WDERR).
    • 18.5 AES interrupts
    • 18.6 AES processing latency
    • 18.7 AES registers
      • 18.7.1 AES control register (AES_CR)
      • 18.7.2 AES status register (AES_SR)
      • 18.7.3 AES data input register (AES_DINR)
      • 18.7.4 AES data output register (AES_DOUTR)
      • 18.7.5 AES key register 0 (AES_KEYR0)
      • 18.7.6 AES key register 1 (AES_KEYR1)
      • 18.7.7 AES key register 2 (AES_KEYR2)
      • 18.7.8 AES key register 3 (AES_KEYR3)
      • 18.7.9 AES initialization vector register 0 (AES_IVR0)
      • 18.7.10 AES initialization vector register 1 (AES_IVR1)
      • 18.7.11 AES initialization vector register 2 (AES_IVR2)
      • 18.7.12 AES initialization vector register 3 (AES_IVR3)
      • 18.7.13 AES register map
  • 19 True random number generator (RNG)
    • 19.1 Introduction
    • 19.2 RNG main features
  • Contents RM
  • 18/1001 DocID025941 Rev
    • 19.3 RNG functional description
      • 19.3.1 RNG block diagram
      • 19.3.2 RNG internal signals
      • 19.3.3 Random number generation
        • Noise source..
        • Post processing.
        • Output buffer..
        • Health checks.
      • 19.3.4 RNG initialization
      • 19.3.5 RNG operation
        • Normal operations.
        • Low-power operations.
        • Software post-processing.
      • 19.3.6 RNG clocking
      • 19.3.7 Error management
        • Clock error detection.
        • Noise source error detection.
    • 19.4 RNG low-power usage
    • 19.5 RNG interrupts
    • 19.6 RNG processing time
    • 19.7 Entropy source validation
      • 19.7.1 Introduction
      • 19.7.2 Validation conditions
      • 19.7.3 Data collection
    • 19.8 RNG registers
      • 19.8.1 RNG control register (RNG_CR)
      • 19.8.2 RNG status register (RNG_SR)
      • 19.8.3 RNG data register (RNG_DR)
      • 19.8.4 RNG register map
  • 20 General-purpose timers (TIM2/TIM3)
    • 20.1 TIM2/TIM3 introduction
    • 20.2 TIM2/TIM3 main features
    • 20.3 TIM2/TIM3 functional description
      • 20.3.1 Time-base unit
        • Prescaler description.
      • 20.3.2 Counter modes
        • DocID025941 Rev 5 19/
      • Upcounting mode.
      • Downcounting mode.
      • Center-aligned mode (up/down counting).
    • 20.3.3 Clock selection
      • Internal clock source (CK_INT).
      • External clock source mode 1.
      • External clock source mode 2.
    • 20.3.4 Capture/compare channels
    • 20.3.5 Input capture mode
    • 20.3.6 PWM input mode
    • 20.3.7 Forced output mode
    • 20.3.8 Output compare mode
    • 20.3.9 PWM mode
      • PWM edge-aligned mode.
      • Downcounting configuration.
      • PWM center-aligned mode.
    • 20.3.10 One-pulse mode
      • Particular case: OCx fast enable:.
    • 20.3.11 Clearing the OCxREF signal on an external event
    • 20.3.12 Encoder interface mode
    • 20.3.13 Timer input XOR function
    • 20.3.14 Timers and external trigger synchronization
      • Slave mode: Reset mode.
      • Slave mode: Gated mode.
      • Slave mode: Trigger mode.
      • Slave mode: External Clock mode 2 + trigger mode.
    • 20.3.15 Timer synchronization
      • Using one timer as prescaler for another timer.
      • Using one timer to enable another timer.
      • Using one timer to start another timer.
      • Starting 2 timers synchronously in response to an external trigger.
    • 20.3.16 Debug mode
  • 20.4 TIM2/TIM3 registers
    • 20.4.1 TIMx control register 1 (TIMx_CR1)
    • 20.4.2 TIMx control register 2 (TIMx_CR2)
    • 20.4.3 TIMx slave mode control register (TIMx_SMCR)
    • 20.4.4 TIMx DMA/Interrupt enable register (TIMx_DIER)
    • 20.4.5 TIMx status register (TIMx_SR)
    • 20.4.6 TIMx event generation register (TIMx_EGR)
  • Contents RM
  • 20/1001 DocID025941 Rev - 20.4.7 TIMx capture/compare mode register 1 (TIMx_CCMR1) - Output compare mode. - Input capture mode.. - 20.4.8 TIMx capture/compare mode register 2 (TIMx_CCMR2) - Output compare mode. - Input capture mode.. - 20.4.9 TIMx capture/compare enable register (TIMx_CCER) - 20.4.10 TIMx counter (TIMx_CNT) - 20.4.11 TIMx prescaler (TIMx_PSC) - 20.4.12 TIMx auto-reload register (TIMx_ARR) - 20.4.13 TIMx capture/compare register 1 (TIMx_CCR1) - 20.4.14 TIMx capture/compare register 2 (TIMx_CCR2) - 20.4.15 TIMx capture/compare register 3 (TIMx_CCR3) - 20.4.16 TIMx capture/compare register 4 (TIMx_CCR4) - 20.4.17 TIMx DMA control register (TIMx_DCR) - 20.4.18 TIMx DMA address for full transfer (TIMx_DMAR) - Example of how to use the DMA burst feature. - 20.4.19 TIM2 option register (TIM2_OR) - 20.4.20 TIM3 option register (TIM3_OR)
    • 20.5 TIMx register map
  • 21 General-purpose timers (TIM21/22)
    • 21.1 Introduction
    • 21.2 TIM21/22 main features
      • 21.2.1 TIM21/22 main features
    • 21.3 TIM21/22 functional description
      • 21.3.1 Timebase unit
        • Prescaler description.
      • 21.3.2 Counter modes
        • Upcounting mode.
        • Downcounting mode.
        • Center-aligned mode (up/down counting).
      • 21.3.3 Clock selection
        • Internal clock source (CK_INT).
        • External clock source mode 2.
      • 21.3.4 Capture/compare channels
      • 21.3.5 Input capture mode
      • 21.3.6 PWM input mode