0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
STM32L4R9I-DISCO

STM32L4R9I-DISCO

  • 厂商:

    STMICROELECTRONICS(意法半导体)

  • 封装:

    -

  • 描述:

    STM32L4R9I-DISCO

  • 数据手册
  • 价格&库存
STM32L4R9I-DISCO 数据手册
STM32L4R5xx STM32L4R7xx STM32L4R9xx Ultra-low-power Arm® Cortex®-M4 32-bit MCU+FPU, 150DMIPS, up to 2MB Flash, 640KB SRAM, LCD-TFT & MIPI DSI, ext. SMPS Datasheet- production data Features • Ultra-low-power with FlexPowerControl – 1.71 V to 3.6 V power supply – -40 °C to 85/125 °C temperature range – Batch acquisition mode (BAM) – 305 nA in VBAT mode: supply for RTC and 32x32-bit backup registers – 33 nA Shutdown mode (5 wakeup pins) – 125 nA Standby mode (5 wakeup pins) – 420 nA Standby mode with RTC – 2.8 μA Stop 2 with RTC – 110 μA/MHz Run mode (LDO mode) – 43 μA/MHz Run mode (@ 3.3 V SMPS mode) – 5 µs wakeup from Stop mode – Brownout reset (BOR) in all modes except shutdown – Interconnect matrix • Core: Arm® 32-bit Cortex®-M4 CPU with FPU, adaptive real-time accelerator (ART Accelerator) allowing 0-wait-state execution from Flash memory, frequency up to 120 MHz, MPU, 150 DMIPS/1.25 DMIPS/MHz (Dhrystone 2.1), and DSP instructions • Performance benckmark – 1.25 DMIPS/MHz (Drystone 2.1) – 409.20 Coremark® (3.41 Coremark/MHz @120 MHz) • Energy benckmark – 233 ULPMark™CP score – 56.5 ULPMark™PP score • Clock sources – 4 to 48 MHz crystal oscillator – 32 kHz crystal oscillator for RTC (LSE) – Internal 16 MHz factory-trimmed RC (±1%) – Internal low-power 32 kHz RC (±5%) LQFP144 (20 × 20) UFBGA169 (7 x 7) LQFP100 (14 x 14) WLCSP144 UFBGA144 (10 x 10) UFBGA132 (7 × 7) – Internal multispeed 100 kHz to 48 MHz oscillator, auto-trimmed by LSE (better than ±0.25 % accuracy) – Internal 48 MHz with clock recovery – 3 PLLs for system clock, USB, audio, ADC • RTC with HW calendar, alarms and calibration • Up to 24 capacitive sensing channels: support touchkey, linear and rotary touch sensors • Advanced graphics features – Chrom-ART Accelerator (DMA2D) for enhanced graphic content creation – Chrom-GRC (GFXMMU) allowing up to 20% of graphic resources optimization – MIPI® DSI Host controller with two DSI lanes running at up to 500 Mbits/s each – LCD-TFT controller • 16x timers: 2 x 16-bit advanced motor-control, 2 x 32-bit and 5 x 16-bit general purpose, 2x 16-bit basic, 2x low-power 16-bit timers (available in Stop mode), 2x watchdogs, SysTick timer • Up to 136 fast I/Os, most 5 V-tolerant, up to 14 I/Os with independent supply down to 1.08 V • Memories – 2-Mbyte Flash, 2 banks read-while-write, proprietary code readout protection – 640 Kbytes of SRAM including 64 Kbytes with hardware parity check – External memory interface for static memories supporting SRAM, PSRAM, NOR, NAND and FRAM memories – 2 x OctoSPI memory interface • 4x digital filters for sigma delta modulator January 2020 This is information on a product in full production. DS12023 Rev 5 1/307 www.st.com STM32L4R5xx, STM32L4R7xx and STM32L4R9xx • Rich analog peripherals (independent supply) – 12-bit ADC 5 Msps, up to 16-bit with hardware oversampling, 200 µA/Msps – 2x 12-bit DAC, low-power sample and hold – 2x operational amplifiers with built-in PGA – 2x ultra-low-power comparators • 20x communication interfaces – USB OTG 2.0 full-speed, LPM and BCD – 2x SAIs (serial audio interface) – 4x I2C FM+(1 Mbit/s), SMBus/PMBus – 6x USARTs (ISO 7816, LIN, IrDA, modem) – 3x SPIs (5x SPIs with the dual OctoSPI) – CAN (2.0B Active) and SDMMC • 14-channel DMA controller • True random number generator • CRC calculation unit, 96-bit unique ID • 8- to 14-bit camera interface up to 32 MHz (black and white) or 10 MHz (color) • Development support: serial wire debug (SWD), JTAG, Embedded Trace Macrocell (ETM) Table 1. Device summary Reference Part numbers STM32L4R5xx STM32L4R5VI, STM32L4R5QI, STM32L4R5ZI, STM32L4R5AI, STM32L4R5AG, STM32L4R5QG, STM32L4R5VG, STM32L4R5ZG STM32L4R7xx STM32L4R7VI, STM32L4R7ZI, STM32L4R7AI STM32L4R9xx STM32L4R9VI, STM32L4R9ZI, STM32L4R9AI, STM32L4R9AG, STM32L4R9VG, STM32L4R9ZG 2/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Contents Contents 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3 Functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.1 Arm® Cortex®-M4 core with FPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.2 Adaptive real-time memory accelerator (ART Accelerator) . . . . . . . . . . . 18 3.3 Memory protection unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.4 Embedded Flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.5 Embedded SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.6 Multi-AHB bus matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.7 Firewall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.8 Boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 3.9 Cyclic redundancy check calculation unit (CRC) . . . . . . . . . . . . . . . . . . . 22 3.10 Power supply management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.10.1 Power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.10.2 Power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.10.3 Voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.10.4 Low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.10.5 Reset mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 3.10.6 VBAT operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 3.11 Interconnect matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 3.12 Clocks and startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 3.13 General-purpose inputs/outputs (GPIOs) . . . . . . . . . . . . . . . . . . . . . . . . . 42 3.14 Direct memory access controller (DMA) . . . . . . . . . . . . . . . . . . . . . . . . . . 42 3.15 DMA request router (DMAMux) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 3.16 Chrom-ART Accelerator (DMA2D) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 3.17 Chrom-GRC (GFXMMU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 3.18 Interrupts and events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 3.19 3.18.1 Nested vectored interrupt controller (NVIC) . . . . . . . . . . . . . . . . . . . . . . 44 3.18.2 Extended interrupt/event controller (EXTI) . . . . . . . . . . . . . . . . . . . . . . 44 Analog-to-digital converter (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 DS12023 Rev 5 3/307 6 Contents 4/307 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 3.19.1 Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 3.19.2 Internal voltage reference (VREFINT) . . . . . . . . . . . . . . . . . . . . . . . . . . 46 3.19.3 VBAT battery voltage monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 3.20 Digital to analog converter (DAC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 3.21 Voltage reference buffer (VREFBUF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 3.22 Comparators (COMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 3.23 Operational amplifier (OPAMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 3.24 Touch sensing controller (TSC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 3.25 LCD-TFT controller (LTDC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 3.26 DSI Host (DSIHOST) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 3.27 Digital filter for sigma-delta modulators (DFSDM) . . . . . . . . . . . . . . . . . . 51 3.28 Random number generator (RNG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 3.29 Digital camera interface (DCMI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 3.30 Timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 3.30.1 Advanced-control timer (TIM1, TIM8) . . . . . . . . . . . . . . . . . . . . . . . . . . 53 3.30.2 General-purpose timers (TIM2, TIM3, TIM4, TIM5, TIM15, TIM16, TIM17) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 3.30.3 Basic timers (TIM6 and TIM7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 3.30.4 Low-power timer (LPTIM1 and LPTIM2) . . . . . . . . . . . . . . . . . . . . . . . . 54 3.30.5 Independent watchdog (IWDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 3.30.6 System window watchdog (WWDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 3.30.7 SysTick timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 3.31 Real-time clock (RTC) and backup registers . . . . . . . . . . . . . . . . . . . . . . 56 3.32 Inter-integrated circuit interface (I2C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 3.33 Universal synchronous/asynchronous receiver transmitter (USART) . . . 58 3.34 Low-power universal asynchronous receiver transmitter (LPUART) . . . . 59 3.35 Serial peripheral interface (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 3.36 Serial audio interfaces (SAI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 3.37 Controller area network (CAN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 3.38 Secure digital input/output and MultiMediaCards Interface (SDMMC) . . . 61 3.39 Universal serial bus on-the-go full-speed (OTG_FS) . . . . . . . . . . . . . . . . 62 3.40 Clock recovery system (CRS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 3.41 Flexible static memory controller (FSMC) . . . . . . . . . . . . . . . . . . . . . . . . 62 3.42 OctoSPI interface (OctoSPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Contents 3.43 OctoSPI IO manager (OctoSPIIOM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 3.44 Development support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 3.44.1 Serial wire JTAG debug port (SWJ-DP) . . . . . . . . . . . . . . . . . . . . . . . . . 64 3.44.2 Embedded Trace Macrocell™ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 4 Pinouts and pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 5 Memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 6 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 6.1 Parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 6.1.1 Minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 6.1.2 Typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 6.1.3 Typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 6.1.4 Loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 6.1.5 Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 6.1.6 Power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 6.1.7 Current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . 138 6.2 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 6.3 Operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 6.3.1 General operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 6.3.2 Operating conditions at power-up / power-down . . . . . . . . . . . . . . . . . 142 6.3.3 Embedded reset and power control block characteristics . . . . . . . . . . 142 6.3.4 Embedded voltage reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 6.3.5 Supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 6.3.6 Wakeup time from low-power modes and voltage scaling transition times . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182 6.3.7 External clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . 185 6.3.8 Internal clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . 190 6.3.9 PLL characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 6.3.10 MIPI D-PHY characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 6.3.11 MIPI D-PHY PLL characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200 6.3.12 MIPI D-PHY regulator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . 201 6.3.13 Flash memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 6.3.14 EMC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 6.3.15 Electrical sensitivity characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 204 6.3.16 I/O current injection characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 DS12023 Rev 5 5/307 6 Contents 7 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 6.3.17 I/O port characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 6.3.18 NRST pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212 6.3.19 Extended interrupt and event controller input (EXTI) characteristics . . 213 6.3.20 Analog switches booster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 6.3.21 Analog-to-digital converter characteristics . . . . . . . . . . . . . . . . . . . . . . 214 6.3.22 Digital-to-Analog converter characteristics . . . . . . . . . . . . . . . . . . . . . 227 6.3.23 Voltage reference buffer characteristics . . . . . . . . . . . . . . . . . . . . . . . 232 6.3.24 Comparator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234 6.3.25 Operational amplifiers characteristics . . . . . . . . . . . . . . . . . . . . . . . . . 235 6.3.26 Temperature sensor characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 6.3.27 VBAT monitoring characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 6.3.28 DFSDM characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240 6.3.29 Timer characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241 6.3.30 Communication interfaces characteristics . . . . . . . . . . . . . . . . . . . . . . 243 6.3.31 FSMC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 6.3.32 OctoSPI characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269 6.3.33 Camera interface (DCMI) timing specifications . . . . . . . . . . . . . . . . . . 276 6.3.34 LCD-TFT controller (LTDC) characteristics . . . . . . . . . . . . . . . . . . . . . 277 6.3.35 SD/SDIO/MMC card host interfaces (SDMMC) . . . . . . . . . . . . . . . . . . 278 Package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281 7.1 UFBGA169 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282 7.2 UFBGA144 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285 7.3 LQFP144 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288 7.4 WLCSP144 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292 7.5 UFBGA132 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295 7.6 LQFP100 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298 7.7 Thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301 7.7.1 Reference document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301 7.7.2 Selecting the product temperature range . . . . . . . . . . . . . . . . . . . . . . 301 8 Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304 9 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305 6/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx List of tables List of tables Table 1. Table 2. Table 3. Table 4. Table 5. Table 6. Table 7. Table 8. Table 9. Table 10. Table 11. Table 12. Table 13. Table 14. Table 15. Table 16. Table 17. Table 18. Table 19. Table 20. Table 21. Table 22. Table 23. Table 24. Table 25. Table 26. Table 27. Table 28. Table 29. Table 30. Table 31. Table 32. Table 33. Table 34. Device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx features and peripheral counts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Access status versus readout protection level and execution modes. . . . . . . . . . . . . . . . . 19 STM32L4R5xx modes overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Functionalities depending on the working mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx peripherals interconnect matrix. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 DMA implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 Temperature sensor calibration values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 Internal voltage reference calibration values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 Timer feature comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 I2C implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 USART/UART/LPUART features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 SAI implementation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Legend/abbreviations used in the pinout table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 STM32L4Rxxx pin definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 Alternate function AF0 to AF7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 Alternate function AF8 to AF15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 Voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 Current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 Thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 General operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 Operating conditions at power-up / power-down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 Embedded reset and power control block characteristics. . . . . . . . . . . . . . . . . . . . . . . . . 142 Embedded internal voltage reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 Current consumption in Run and Low-power run modes, code with data processing running from Flash in single Bank, ART enable (Cache ON Prefetch OFF) . 147 Current consumption in Run and Low-power run modes, code with data processing running from Flash in single Bank, ART enable (Cache ON Prefetch OFF) and power supplied by external SMPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148 Current consumption in Run and Low-power run modes, code with data processing running from Flash in dual bank, ART enable (Cache ON Prefetch OFF) . . . 149 Consumption in Run and Low-power run modes, code with data processing running from Flash in dual bank, ART enable (Cache ON Prefetch OFF) and power supplied by external SMPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 Current consumption in Run and Low-power run modes, code with data processing running from Flash in single bank, ART disable. . . . . . . . . . . 151 Current consumption in Run and Low-power run modes, code with data processing running from Flash in single bank, ART disable and power supplied by external SMPS . 152 Current consumption in Run and Low-power run modes, code with data processing running from Flash in dual bank, ART disable . . . . . . . . . . . . 153 Current consumption in Run and Low-power run modes, code with data processing running from Flash in dual bank, ART disable and power supplied by external SMPS . . 154 Current consumption in Run and Low-power run modes, code with data processing running from SRAM1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 Current consumption in Run and Low-power run modes, code with data processing running from SRAM1 and power supplied by external SMPS . . . . . . . . . . . . . . . . . . . . . 156 DS12023 Rev 5 7/307 10 List of tables Table 35. Table 36. Table 37. Table 38. Table 39. Table 40. Table 41. Table 42. Table 43. Table 44. Table 45. Table 46. Table 47. Table 48. Table 49. Table 50. Table 51. Table 52. Table 53. Table 54. Table 55. Table 56. Table 57. Table 58. Table 59. Table 60. Table 61. Table 62. Table 63. Table 64. Table 65. Table 66. Table 67. Table 68. Table 69. Table 70. Table 71. Table 72. Table 73. Table 74. Table 75. Table 76. Table 77. Table 78. 8/307 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Typical current consumption in Run and Low-power run modes, with different codes running from Flash, ART enable (Cache ON Prefetch OFF) . . . . . . . . . . . . . . . . . . . . . . 157 Typical current consumption in Run and Low-power run modes, with different codes running from Flash, ART enable (Cache ON Prefetch OFF) and power supplied by external SMPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 Typical current consumption in Run and Low-power run modes, with different codes running from Flash, ART disable . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 Typical current consumption in Run and Low-power run modes with different codes running from Flash, ART disable and power supplied by external SMPS . . . . . . . . . . . . 162 Typical current consumption in Run and Low-power run modes, with different codes running from SRAM1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 Typical consumption in Run and Low-power run modes, with different codes running from SRAM1 and power supplied by external SMPS . . . . . . . . . . . . . . . . . . . . . 164 Current consumption in Sleep and Low-power sleep mode, Flash ON . . . . . . . . . . . . . . 165 Current consumption in Sleep and Low-power sleep modes, Flash ON and power supplied by external SMPS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 Current consumption in Low-power sleep mode, Flash in power-down . . . . . . . . . . . . . . 167 Current consumption in Stop 2 mode, SRAM3 disabled . . . . . . . . . . . . . . . . . . . . . . . . . 168 Current consumption in Stop 2 mode, SRAM3 enabled . . . . . . . . . . . . . . . . . . . . . . . . . . 169 Current consumption in Stop 1 mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 Current consumption in Stop 0 mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 Current consumption in Standby mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 Current consumption in Shutdown mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 Current consumption in VBAT mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175 Peripheral current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177 Low-power mode wakeup timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182 Regulator modes transition times . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 Wakeup time using USART/LPUART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 High-speed external user clock characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 Low-speed external user clock characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186 HSE oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 LSE oscillator characteristics (fLSE = 32.768 kHz) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 HSI16 oscillator characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 MSI oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .192 HSI48 oscillator characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195 LSI oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196 PLL, PLLSAI1, PLLSAI2 characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 MIPI D-PHY characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 MIPI D-PHY AC characteristics LP mode and HS/LP transitions . . . . . . . . . . . . . . . . . . . 199 DSI-PLL characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200 DSI regulator characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 Flash memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 Flash memory endurance and data retention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 EMS characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 EMI characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204 ESD absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204 Electrical sensitivities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 I/O current injection susceptibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 I/O static characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 Output voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 I/O AC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210 NRST pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 79. Table 80. Table 81. Table 82. Table 83. Table 84. Table 85. Table 86. Table 87. Table 88. Table 89. Table 90. Table 91. Table 92. Table 93. Table 94. Table 95. Table 96. Table 97. Table 98. Table 99. Table 100. Table 101. Table 102. Table 103. Table 104. Table 105. Table 106. Table 107. Table 108. Table 109. Table 110. Table 111. Table 112. Table 113. Table 114. Table 115. Table 116. Table 117. Table 118. Table 119. Table 120. Table 121. Table 122. Table 123. Table 124. Table 125. Table 126. Table 127. List of tables EXTI input characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 Analog switches booster characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 ADC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214 Maximum ADC RAIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216 ADC accuracy - limited test conditions 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218 ADC accuracy - limited test conditions 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 ADC accuracy - limited test conditions 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 ADC accuracy - limited test conditions 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224 DAC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227 DAC accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230 VREFBUF characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232 COMP characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234 OPAMP characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235 TS characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 VBAT monitoring characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 VBAT charging characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 DFSDM characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240 TIMx characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242 IWDG min/max timeout period at 32 kHz (LSI). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242 WWDG min/max timeout value at 120 MHz (PCLK). . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242 I2C analog filter characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243 SPI characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244 SAI characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248 USB electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250 USB OTG electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 USB BCD DC electrical characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 Asynchronous non-multiplexed SRAM/PSRAM/NOR read timings . . . . . . . . . . . . . . . . . 254 Asynchronous non-multiplexed SRAM/PSRAM/NOR read-NWAIT timings . . . . . . . . . . . 254 Asynchronous non-multiplexed SRAM/PSRAM/NOR write timings . . . . . . . . . . . . . . . . . 255 Asynchronous non-multiplexed SRAM/PSRAM/NOR write-NWAIT timings. . . . . . . . . . . 256 Asynchronous multiplexed PSRAM/NOR read timings. . . . . . . . . . . . . . . . . . . . . . . . . . . 257 Asynchronous multiplexed PSRAM/NOR read-NWAIT timings . . . . . . . . . . . . . . . . . . . . 257 Asynchronous multiplexed PSRAM/NOR write timings . . . . . . . . . . . . . . . . . . . . . . . . . . 258 Asynchronous multiplexed PSRAM/NOR write-NWAIT timings . . . . . . . . . . . . . . . . . . . . 259 Synchronous multiplexed NOR/PSRAM read timings . . . . . . . . . . . . . . . . . . . . . . . . . . . 261 Synchronous multiplexed PSRAM write timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263 Synchronous non-multiplexed NOR/PSRAM read timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264 Synchronous non-multiplexed PSRAM write timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266 Switching characteristics for NAND Flash read cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . 268 Switching characteristics for NAND Flash write cycles. . . . . . . . . . . . . . . . . . . . . . . . . . . 268 OctoSPI characteristics in SDR mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269 OctoSPI characteristics in DTR mode (no DQS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270 OctoSPI characteristics in DTR mode (with DQS)/Octal and HyperBus™ . . . . . . . . . . . . 271 DCMI characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276 LTDC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278 Dynamics characteristics: SD / eMMC characteristics at VDD = 2.7 V to 3.6 V . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278 Dynamics characteristics: eMMC characteristics at VDD = 1.71 V to 1.9 V. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279 UFBGA169 mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282 UFBGA169 recommended PCB design rules (0.5 mm pitch BGA) . . . . . . . . . . . . . . . . . 283 DS12023 Rev 5 9/307 10 List of tables Table 128. Table 129. Table 130. Table 131. Table 132. Table 133. Table 134. Table 135. Table 136. Table 137. Table 138. 10/307 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx UFBGA144 mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285 UFBGA144 recommended PCB design rules (0.80 mm pitch BGA) . . . . . . . . . . . . . . . . 286 LQFP144 mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289 WLCSP144 mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293 WLCSP144 recommended PCB design rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294 UFBGA132 mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295 UFBGA132 recommended PCB design rules (0.5 mm pitch BGA) . . . . . . . . . . . . . . . . . 296 LQPF100 mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298 Package thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301 STM32L4Rxxx ordering information scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304 Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx List of figures List of figures Figure 1. Figure 2. Figure 3. Figure 4. Figure 5. Figure 6. Figure 7. Figure 8. Figure 9. Figure 10. Figure 11. Figure 12. Figure 13. Figure 14. Figure 15. Figure 16. Figure 17. Figure 18. Figure 19. Figure 20. Figure 21. Figure 22. Figure 23. Figure 24. Figure 25. Figure 26. Figure 27. Figure 28. Figure 29. Figure 30. Figure 31. Figure 32. Figure 33. Figure 34. Figure 35. Figure 36. Figure 37. Figure 38. Figure 39. Figure 40. Figure 41. Figure 42. Figure 43. Figure 44. Figure 45. Figure 46. Figure 47. Figure 48. STM32L4R5xx, STM32L4R7xx and STM32L4R9xx block diagram . . . . . . . . . . . . . . . . . . 17 Multi-AHB bus matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 STM32L4R5xx and STM32L4R7xx power supply overview . . . . . . . . . . . . . . . . . . . . . . . . 24 STM32L4R5xxxP and STM32L4R7xxxP with external SMPS power supply overview . . . 25 STM32L4R9xx power supply overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Power-up/down sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Clock tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Voltage reference buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 STM32L4R5xx and STM32L4R7xx UFBGA169 ballout(1) . . . . . . . . . . . . . . . . . . . . . . . . . 66 STM32L4R9xx UFBGA169 ballout(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 STM32L4R5xxxP UFBGA169 external SMPS ballout(1) . . . . . . . . . . . . . . . . . . . . . . . . . . 67 STM32L4R5xx and STM32L4R7xx LQFP144 pinout(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 STM32L4R9xx LQFP144 pinout(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 STM32L4R5ZxxxP external SMPS LQFP144 pinout(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 STM32L4R9xx UFBGA144 ballout(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 STM32L4R9xx WLCSP144 ballout(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 STM32L4R9ZxxxP WLCSP144 external SMPS ballout(1) . . . . . . . . . . . . . . . . . . . . . . . . . 72 STM32L4R5xx WLCSP144 ballout(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 STM32L4R5xx UFBGA132 ballout(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 STM32L4R5xxxP UFBGA132 external SMPS ballout(1) . . . . . . . . . . . . . . . . . . . . . . . . . . 73 STM32L4R5xx and STM32L4R7xx LQFP100 pinout(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 STM32L4R9xx LQFP100 pinout(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Pin loading conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 Power supply scheme. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 Current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 VREFINT versus temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 High-speed external clock source AC timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 Low-speed external clock source AC timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186 Typical application with an 8 MHz crystal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 Typical application with a 32.768 kHz crystal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 HSI16 frequency versus temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191 Typical current consumption versus MSI frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194 HSI48 frequency versus temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196 MIPI D-PHY HS/LP clock lane transition timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . 200 MIPI D-PHY HS/LP data lane transition timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 200 I/O input characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 I/O AC characteristics definition(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212 Recommended NRST pin protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 ADC accuracy characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226 Typical connection diagram using the ADC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226 12-bit buffered / non-buffered DAC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229 SPI timing diagram - slave mode and CPHA = 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245 SPI timing diagram - slave mode and CPHA = 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246 SPI timing diagram - master mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246 SAI master timing waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249 SAI slave timing waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249 USB OTG timings – definition of data signal rise and fall time . . . . . . . . . . . . . . . . . . . . . 251 DS12023 Rev 5 11/307 12 List of figures Figure 49. Figure 50. Figure 51. Figure 52. Figure 53. Figure 54. Figure 55. Figure 56. Figure 57. Figure 58. Figure 59. Figure 60. Figure 61. Figure 62. Figure 63. Figure 64. Figure 65. Figure 66. Figure 67. Figure 68. Figure 69. Figure 70. Figure 71. Figure 72. Figure 73. Figure 74. Figure 75. Figure 76. Figure 77. Figure 78. Figure 79. Figure 80. Figure 81. Figure 82. Figure 83. Figure 84. Figure 85. Figure 86. Figure 87. Figure 88. Figure 89. 12/307 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Asynchronous non-multiplexed SRAM/PSRAM/NOR read waveforms . . . . . . . . . . . . . . 253 Asynchronous non-multiplexed SRAM/PSRAM/NOR write waveforms . . . . . . . . . . . . . . 255 Asynchronous multiplexed PSRAM/NOR read waveforms. . . . . . . . . . . . . . . . . . . . . . . . 256 Asynchronous multiplexed PSRAM/NOR write waveforms . . . . . . . . . . . . . . . . . . . . . . . 258 Synchronous multiplexed NOR/PSRAM read timings . . . . . . . . . . . . . . . . . . . . . . . . . . . 260 Synchronous multiplexed PSRAM write timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262 Synchronous non-multiplexed NOR/PSRAM read timings . . . . . . . . . . . . . . . . . . . . . . . . 264 Synchronous non-multiplexed PSRAM write timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265 NAND controller waveforms for read access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267 NAND controller waveforms for write access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267 NAND controller waveforms for common memory read access . . . . . . . . . . . . . . . . . . . . 267 NAND controller waveforms for common memory write access. . . . . . . . . . . . . . . . . . . . 268 OctoSPI timing diagram - SDR mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273 OctoSPI timing diagram - DDR mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273 OctoSPI HyperBus™ clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273 OctoSPI HyperBus™ read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274 OctoSPI HyperBus™ read with double latency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274 OctoSPI HyperBus™ write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275 DCMI timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276 SDIO high-speed mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 SD default mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 DDR mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 UFBGA169 outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282 UFBGA169 recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283 UFBGA169 marking (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284 UFBGA144 outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285 UFBGA144 recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286 UFBGA144 marking (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287 LQFP144 outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288 LQFP144 recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290 LQFP144 marking (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291 LQFP144 external SMPS device marking (package top view)(2) . . . . . . . . . . . . . . . . . . . 291 WLCSP144 outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292 WLCSP144 recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293 WLCSP144 marking (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294 UFBGA132 outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295 UFBGA132 recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296 UFBGA132 marking (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297 LQFP100 outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298 LQFP100 recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299 LQFP100 marking (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 1 Introduction Introduction This datasheet provides the ordering information and mechanical device characteristics of the STM32L4Rxxx microcontrollers. This document should be read in conjunction with the STM32L4Rxxx reference manual (RM0432). The reference manual is available from the STMicroelectronics website www.st.com. For information on the Arm®(a) Cortex®-M4 core, refer to the Cortex®-M4 Technical Reference Manual, available from the www.arm.com website. a. Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere. DS12023 Rev 5 13/307 65 Description 2 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Description The STM32L4R5xx, STM32L4R7xx and STM32L4R9xx devices are an ultra-low-power microcontrollers family (STM32L4+ Series) based on the high-performance Arm® Cortex®-M4 32-bit RISC core. They operate at a frequency of up to 120 MHz. The Cortex-M4 core features a single-precision floating-point unit (FPU), which supports all the Arm® single-precision data-processing instructions and all the data types. The CortexM4 core also implements a full set of DSP (digital signal processing) instructions and a memory protection unit (MPU) which enhances the application’s security. These devices embed high-speed memories (2 Mbytes of Flash memory and 640 Kbytes of SRAM), a flexible external memory controller (FSMC) for static memories (for devices with packages of 100 pins and more), two OctoSPI Flash memories interface (available on all packages) and an extensive range of enhanced I/Os and peripherals connected to two APB buses, two AHB buses and a 32-bit multi-AHB bus matrix. The STM32L4Rxxx devices embed several protection mechanisms for embedded Flash memory and SRAM: readout protection, write protection, proprietary code readout protection and a firewall. These devices offer a fast 12-bit ADC (5 Msps), two comparators, two operational amplifiers, two DAC channels, an internal voltage reference buffer, a low-power RTC, two general-purpose 32-bit timer, two 16-bit PWM timers dedicated to motor control, seven general-purpose 16-bit timers, and two 16-bit low-power timers. The devices support four digital filters for external sigma delta modulators (DFSDM). In addition, up to 24 capacitive sensing channels are available. They also feature standard and advanced communication interfaces such as: • Four I2Cs • Three SPIs • Three USARTs, two UARTs and one low-power UART • Two SAIs • One SDMMC • One CAN • One USB OTG full-speed • Camera interface • DMA2D controller The devices operate in the -40 to +85 °C (+105 °C junction) and -40 to +125 °C (+130 °C junction) temperature ranges from a 1.71 to 3.6 V for VDD power supply when using internal LDO regulator and a 1.05 to 1.32 V VDD12 power supply when using external SMPS supply. A comprehensive set of power-saving modes allows the design of low-power applications. Some independent power supplies are supported like an analog independent supply input for ADC, DAC, OPAMPs and comparators, a 3.3 V dedicated supply input for USB and up to 14 I/Os, which can be supplied independently down to 1.08 V. A VBAT input allows to backup the RTC and backup the registers. Dedicated VDD12 power supplies can be used to bypass the internal LDO regulator when connected to an external SMPS. The STM32L4Rxxx family offers six packages from 100-pin to 169-pin. 14/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Description Table 2. STM32L4R5xx, STM32L4R7xx and STM32L4R9xx features and peripheral counts Peripheral R5VI R5VG R7VI R9VI R5QI R5ZI R9VG R5QG R5ZG R9ZI R5AI R9ZG R5AG System 640 (192 + 64 + 384) Kbyte Backup 128 byte External memory controller for static memories (FSMC) OctoSPI Yes(1) Yes 1 2 Advanced control 2 (16-bit) General purpose 5 (16-bit) 2 (32-bit) Basic 2 (16-bit) Timers Low-power 1 Watchdog timers (independent, window) 2 SPI 3 2C 4 USART/UART Comm UART LPUART . interfa SAI ces CAN R9AG 3 2 1 2 1 USB OTG FS Yes SDMMC Yes Digital filters for sigmadelta modulators Yes (4 filters) Number of channels 8 RTC Yes Tamper pins 3 Camera interface Yes Chrom-ART Accelerator Yes Chrom-GRC R9AI 2 (16-bit) SysTick timer I R7AI 1 Mbyte for xxxG devices 2 Mbyte for xxxI devices Flash memory SRAM R7ZI No Yes No DS12023 Rev 5 Yes No Yes 15/307 65 Description STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 2. STM32L4R5xx, STM32L4R7xx and STM32L4R9xx features and peripheral counts (continued) Peripheral LCD - TFT MIPI DSI Host R5VI R7VI R5VG No (2) Yes No R9VI R5QI R5ZI R9VG R5QG R5ZG No No Yes R9ZI R5AI R9ZG R5AG Yes No Random number generator R7AI No R9AI R9AG Yes Yes No Yes 112(4) 5 11 140 5 14 131 4 13 Yes GPIOs(3) Wakeup pins Nb of I/Os down to 1.08 V 83 5 0 77 4 0 Capacitive sensing Number of channels 21 18 12-bit ADCs Number of channels R7ZI 110 5 14 115 5 14 24 1 16 14 16 14 2 2 12-bit DAC Number of channels Internal voltage reference buffer Yes Analog comparator 2 Operational amplifiers 2 Max. CPU frequency 120 MHz Operating voltage (VDD) 1.71 to 3.6 V Operating voltage (VDD12) 1.05 to 1.32 V Operating temperature Ambient operating temperature: -40 to 85 °C / -40 to 105 °C / -40 to 125 °C Packages LQFP100 UFBGA132 LQFP144 WLCSP144 LQFP144 LQFP144, UFBGA144 WLCSP144 UFBGA169 1. For the LQFP100 package, only FMC bank1 is available. Bank1 can only support a multiplexed NOR/PSRAM memory using the NE1 chip select. 2. The DSI Host interface is only available on the STM32L4R9xx sales types. 3. In the case of an external SMPS package type is used, 2 GPIOs are replaced by VDD12 pins to connect the SMPS power supplies hence reducing the number of available GPIOs by 2. 4. 110 GPIOs available for WLCSP144 and LQFP144 packages. 16/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Description Figure 1. STM32L4R5xx, STM32L4R7xx and STM32L4R9xx block diagram CLK, NE[4:1], NL, NBL[1:0], A[25:0], D[15:0], NOE, NWE, NWAIT, NCE, INT as AF, FRAM Flexible static memory controller (FSMC): SRAM, PSRAM, NOR Flash, NAND Flash JTAG & SW MPU ETM NVIC TRACECLK TRACED[3:0] OctoSPI1 memory interface IO[7:0], CLK, NCS. DQS OctoSPI2 memory interface D-BUS RNG I-BUS D[7:0] CMD, CK as AF SDIO / MMC AHB bus-matrix Chrom-GRC (GFXMMU) FIFO @ VDDUSB SRAM2 64 KB USB OTG SRAM3 384 KB VDD AHB2 120 MHz VSS Supply supervision reset MSI Touch sensing controller VDD = 1.71 to 3.6 V @ VDD @ VDD DMA1 RC HSI VDDIO, VDDUSB Int BOR VDDA, VSSA RC LSI GPIO PORT A PB[15:0] GPIO PORT B PC[15:0] GPIO PORT C PD[15:0] GPIO PORT D PE[15:0] GPIO PORT E VDD, VSS, NRST PVD, PVM PLL 1&2&3 AHB1 120 MHz PA[15:0] DP DM ID, VBUS, SOF Power management Voltage regulator 3.3 to 1.2 V DMA2 8 Groups of 4 channels max as AF HSYNC, VSYNC, PIXCLK, D[13:0] Camera Interface SRAM1 192 KB FIFO FIFO CHROM-ART DMA2D FIFO LCD - TFT Flash up to 2 MB FIFO LCD_R[7:0], LCD_G[7:0], LCD_B[7:0], LCD_HSYNC, LCD_VSYNC, LCD_DE, LCD_CLK FIFO S-BUS PHY ARM Cortex-M4 120 MHz FPU ART ACCEL/ CACHE NJTRST, JTDI, JTCK/SWCLK JTDO/SWD, JTDO @VDD OSC_IN OSC_OUT XTAL OSC 4- 16MHz IWDG PF[15:0] Standby interface Reset & clock M AN AGT control @VBAT GPIO PORT F XTAL 32 kHz OSC32_IN OSC32_OUT PG[15:0] GPIO PORT G GPIO PORT I PCLKx PI[11:0] FCLK GPIO PORT H HCLKx PH[15:0] RTC RTC_TS RTC_TAMPx RTC_OUT AWU Backup register VBAT = 1.55 to 3.6 V TIM2 32b 4 channels, ETR as AF TIM3 16b 4 channels, ETR as AF TIM4 16b 4 channels, ETR as AF TIM5 32b 4 channels, ETR as AF CRC U STemperature AR T 2 M B ps sensor @ VDD 8 analog inputs common to the ADC @ VDDA ITF ADC1 @ VDDA USART2 smcard irDA RX, TX, CK, CTS, RTS as AF USART3 smcard irDA RX, TX, CK, CTS, RTS as AF VREF+ VREF Buffer AHB/APB2 114 AF EXT IT. WKUP 3 compl. channels (TIM1_CH[1:3]N), 4 channels (TIM1_CH[1:4]), ETR, BKIN, BKIN2 as AF TIM1 / PWM 3 compl. Channels (TIM1_CH[1:3]N), 4 channels (TIM1_CH[1:4]), ETR, BKIN, BKIN2 as AF TIM8 / PWM 16b RX, TX, CTS, RTS as AF UART5 RX, TX, CTS, RTS as AF SPI2 MOSI, MISO, SCK, NSS as AF SPI3 MOSI, MISO, SCK, NSS as AF I2C1/SMBUS 16b SCL, SDA, SMBA as AF USART1 MOSI, MISO, SCK, NSS as AF SPI1 MCLK_A, SD_A, FS_A, SCK_A, EXTCLK MCLK_B, SD_B, FS_B, SCK_B as AF SAI1 MCLK_A, SD_A, FS_A, SCK_A, EXTCLK MCLK_B, SD_B, FS_B, SCK_B as AF SAI2 SDCKIN[7:0], SDDATIN[7:0], SDCKOUT,SDTRIG as AF SCL, SDA, SMBA as AF I2C3/SMBUS SCL, SDA, SMBA as AF I2C4/SMBUS SCL, SDA, SMBA as AF TIM6 16b TIM7 16b bxCAN1 FIFO 16b P B 1(max) 3 0 M Hz APB1 120AMHz 16b TIM17 APB2 120MHz TIM16 1 channel, 1 compl. channel, BKIN as AF smcard irDA I2C2/SMBUS 16b A 60PM B Hz 2 TIM15 1 channel, 1 compl. channel, BKIN as AF TX, RX as AF @VDDA OpAmp1 OUT, INN, INP OpAmp2 OUT, INN, INP LPUART1 RX, TX, CTS, RTS as AF LPTIM1 IN1, IN2, OUT, ETR as AF LPTIM2 IN1, OUT, ETR as AF DFSDM DSI PHI DSI_D0 P/N DSI_D1 P/N DSI_CK P/N VDD12DSI, VDDSI, VSSDSI VCAPDSI DSI_TE UART4 WWDG 2 channels, 1 compl. channel, BKIN as AF RX, TX, CK,CTS, RTS as AF AHB/APB1 DSI Host @ VDDA @ VDDA INP, INN, OUT COMP1 INP, INN, OUT COMP2 DAC1 ITF DAC2 Firewall DAC1_OUT Note: DAC2_OUT MSv49327V2 AF: alternate function on I/O pins. DS12023 Rev 5 17/307 65 Functional overview STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 3 Functional overview 3.1 Arm® Cortex®-M4 core with FPU The Arm® Cortex®-M4 with FPU processor is the latest generation of Arm® processors for embedded systems. It was developed to provide a low-cost platform that meets the needs of the MCU implementation, with a reduced pin count and with low-power consumption, while delivering outstanding computational performance and an advanced response to interrupts. The Arm® Cortex®-M4 with FPU 32-bit RISC processor features an exceptional codeefficiency, delivering the expected high-performance from an Arm® core in a memory size usually associated with 8-bit and 16-bit devices. The processor supports a set of DSP instructions which allows an efficient signal processing and a complex algorithm execution. Its single precision FPU speeds up the software development by using metalanguage development tools to avoid saturation. With its embedded Arm® core, the STM32L4Rxxx family is compatible with all Arm® tools and software. Figure 1 shows the general block diagram of the STM32L4Rxxx family devices. 3.2 Adaptive real-time memory accelerator (ART Accelerator) The ART Accelerator is a memory accelerator that is optimized for the STM32 industrystandard Arm®Cortex®-M4 processors. It balances the inherent performance advantage of the Arm® Cortex®-M4 over Flash memory technologies, which normally requires the processor to wait for the Flash memory at higher frequencies. To release the processor near 150 DMIPS performance at 120 MHz, the accelerator implements an instruction prefetch queue and a branch cache, which increases the program’s execution speed from the Flash memory. Based on CoreMark benchmark, the performance achieved thanks to the ART accelerator is equivalent to 0 wait state program execution from the Flash memory at a CPU frequency of up to 120 MHz. 3.3 Memory protection unit The memory protection unit (MPU) is used to manage the CPU accesses to the memory and to prevent one task to accidentally corrupt the memory or the resources used by any other active task. This memory area is organized into up to eight protected areas, which can be divided in up into eight subareas each. The protection area sizes range between 32 bytes and the whole 4 gigabytes of addressable memory. The MPU is especially helpful for applications where some critical or certified code has to be protected against the misbehavior of other tasks. It is usually managed by an RTOS (realtime operating system). If a program accesses a memory location that is prohibited by the MPU, the RTOS can detect it and take action. In an RTOS environment, the kernel can dynamically update the MPU area setting based on the process to be executed. The MPU is optional and can be bypassed for applications that do not need it. 18/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 3.4 Functional overview Embedded Flash memory The STM32L4Rxxx devices feature 2 Mbytes of embedded Flash memory which is available for storing programs and data. The Flash interface features: – Single or dual bank operating modes – Read-while-write (RWW) in dual bank mode This feature allows to perform a read operation from one bank while an erase or program operation is performed to the other bank. The dual bank boot is also supported. Each bank contains 256 pages of 4 or 8 Kbytes (depending on the read access width). Flexible protections can be configured thanks to the option bytes: • Readout protection (RDP) to protect the whole memory. Three levels of protection are available: – Level 0: no readout protection – Level 1: memory readout protection; the Flash memory cannot be read from or written to if either the debug features are connected or the boot in RAM or bootloader are selected – Level 2: chip readout protection; the debug features (Cortex-M4 JTAG and serial wire), the boot in RAM and the bootloader selection are disabled (JTAG fuse). This selection is irreversible. Table 3. Access status versus readout protection level and execution modes Area Debug, boot from RAM or boot from system memory (loader) User execution Protection level Read Write Erase Read Write Erase Main memory 1 Yes Yes Yes No No No 2 Yes Yes Yes N/A N/A N/A System memory 1 Yes No No Yes No No 2 Yes No No N/A N/A N/A Option bytes 1 Yes Yes Yes Yes Yes Yes 2 Yes No No N/A N/A N/A No No N/A(1) Backup registers SRAM2 (1) 1 Yes Yes N/A 2 Yes Yes N/A N/A N/A N/A 1 Yes Yes Yes(1) No No No(1) 2 Yes Yes Yes N/A N/A N/A 1. Erased when RDP change from Level 1 to Level 0. • Write protection (WRP): the protected area is protected against erasing and programming: – In single bank mode, four areas can be selected with 8-Kbyte granularity. – In dual bank mode, two areas per bank can be selected with 4-Kbyte granularity. DS12023 Rev 5 19/307 65 Functional overview • STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Proprietary code readout protection (PCROP): a part of the Flash memory can be protected against read and write from third parties. The protected area is execute-only and it can only be reached by the STM32 CPU as an instruction code, while all other accesses (DMA, debug and CPU data read, write and erase) are strictly prohibited: – In single bank mode, two areas can be selected with 128-bit granularity. – In dual bank mode, one area per bank can be selected with 64-bit granularity. An additional option bit (PCROP_RDP) allows to select if the PCROP area is erased or not when the RDP protection is changed from Level 1 to Level 0. The whole non-volatile memory embeds the error correction code (ECC) feature supporting: 3.5 • Single error detection and correction • Double error detection • The address of the ECC fail can be read in the ECC register. Embedded SRAM The STM32L4R5xx, STM32L4R7xx and STM32L4R9xx devices feature 640 Kbytes of embedded SRAM. This SRAM is split into three blocks: • 192 Kbytes mapped at address 0x2000 0000 (SRAM1). • 64 Kbytes located at address 0x1000 0000 with hardware parity check (SRAM2). This memory is also mapped at address 0x2003 0000 offering a contiguous address space with the SRAM1. This block is accessed through the ICode/DCode buses for maximum performance. These 64 Kbytes SRAM can also be retained in Standby mode. The SRAM2 can be write-protected with 1 Kbyte granularity. • 384 Kbytes mapped at address 0x2004 0000 - (SRAM3). The memory can be accessed in read/write at CPU clock speed with 0 wait states. 20/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 3.6 Functional overview Multi-AHB bus matrix The 32-bit multi-AHB bus matrix interconnects all the masters (CPU, DMAs, DMA2D, SDMMC1, LCD-TFT and GFXMMU) and the slaves (Flash memory, RAM, FMC, OctoSPI, AHB and APB peripherals). It also ensures a seamless and efficient operation even when several high-speed peripherals work simultaneously. Figure 2. Multi-AHB bus matrix DMA1 DMA2 DMA2D LCD-TFT SDMMC1 GFXMMU S-bus D-bus I-bus Cortex®-M4 with FPU DCode ACCEL ICode FLASH 2 MB SRAM1 SRAM2 SRAM3 GFXMMU AHB1 peripherals AHB2 peripherals FSMC OCTOSPI1 OCTOSPI2 BusMatrix-S MSv38490V1 3.7 Firewall These devices embed a firewall which protects code sensitive and secure data from any access performed by a code executed outside of the protected areas. Each illegal access generates a reset which kills immediately the detected intrusion. DS12023 Rev 5 21/307 65 Functional overview STM32L4R5xx, STM32L4R7xx and STM32L4R9xx The main features of the firewall are the following: • • Three segments can be protected and defined thanks to the firewall registers: – Code segment (located in Flash or SRAM1 if defined as executable protected area) – Non-volatile data segment (located in Flash) – Volatile data segment (located in SRAM1) The start address and the length of each segment are configurable: – Code segment: up to 2048 Kbytes with granularity of 256 bytes – Non-volatile data segment: up to 2048 Kbytes with granularity of 256 bytes – Volatile data segment: up to 192 Kbytes of SRAM1 with a granularity of 64 bytes • Specific mechanism implemented to open the firewall to get access to the protected areas (call gate entry sequence) • Volatile data segment can be shared or not with the non-protected code • Volatile data segment can be executed or not depending on the firewall configuration The Flash readout protection must be set to level 2 in order to reach the expected level of protection. 3.8 Boot modes At startup, a BOOT0 pin and an nBOOT1 option bit are used to select one of three boot options: • Boot from user Flash • Boot from system memory • Boot from embedded SRAM The BOOT0 value may come from the PH3-BOOT0 pin or from an option bit depending on the value of a user option bit to free the GPIO pad if needed. A Flash empty-check mechanism is implemented to force the boot from system Flash if the first Flash memory location is not programmed and if the boot selection is configured to boot from main Flash. The boot loader is located in the system memory. It is used to reprogram the Flash memory by using USART, I2C, SPI, CAN or USB OTG FS in device mode through the DFU (device firmware upgrade). 3.9 Cyclic redundancy check calculation unit (CRC) The CRC (cyclic redundancy check) calculation unit is used to get a CRC code using a configurable generator with polynomial value and size. Among other applications, the CRC-based techniques are used to verify data transmission or storage integrity. In the scope of the EN/IEC 60335-1 standard, they offer a mean to verify the Flash memory integrity. The CRC calculation unit helps to compute a signature of the software during runtime, which can be ulteriorly compared with a reference signature generated at link-time and which can be stored at a given memory location. 22/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 3.10 Power supply management 3.10.1 Power supply schemes Functional overview The STM32L4x devices require a 1.71 V to 3.6 V VDD operating voltage supply. Several independent supplies can be provided for specific peripherals: • VDD = 1.71 V to 3.6 V VDD is the external power supply for the I/Os, the internal regulator and the system analog such as reset, power management and internal clocks. It is provided externally through the VDD pins. • VDD12 = 1.05 to 1.32 V VDD12 is the external power supply bypassing the internal regulator when connected to an external SMPS. It is provided externally through VDD12 pins and only available on packages with the external SMPS supply option. VDD12 does not require any external decoupling capacitance and cannot support any external load. • VDDA = 1.62 V (ADCs/COMPs) / 1.8 V (DACs/OPAMPs) to 2.4 V (VREFBUF) to 3.6 V VDDA is the external analog power supply for A/D converters, D/A converters, voltage reference buffer, operational amplifiers and comparators. The VDDA voltage level is independent from the VDD voltage and should preferably be connected to VDD when these peripherals are not used. • VDDUSB = 3.0 V to 3.6 V VDDUSB is the external independent power supply for USB transceivers. The VDDUSB voltage level is independent from the VDD voltage and should preferably be connected to VDD when the USB is not used. • VDDIO2 = 1.08 V to 3.6 V • VDDIO2 is the external power supply for 14 I/Os (port G[15:2]). The VDDIO2 voltage level is independent from the VDD voltage and should preferably be connected to VDD when PG[15:2] are not used. • VDDDSI is used to supply the DSI regulator and MIPI D-PHY. This supply must be connected to the global VDD. • VCAPDSI pin is the output of DSI regulator (1.2 V) which must be connected externally to VDD12DSI. • VDD12DSI pin is used to supply the MIPI D-PHY, and to supply clock and data lanes pins. An external capacitor of 2.2 uF must be connected on the VDD12DSI pin. • VBAT = 1.55 V to 3.6 V VBAT is the power supply for RTC, external clock 32 kHz oscillator and backup registers (through power switch) when VDD is not present. • VREF-, VREF+ VREF+ is the input reference voltage for ADCs and DACs. It is also the output of the internal voltage reference buffer when enabled. When VDDA < 2 V VREF+ must be equal to VDDA. When VDDA ≥ 2 V VREF+ must be between 2 V and VDDA. VREF+ can be grounded when ADC and DAC are not active. The internal voltage reference buffer supports two output voltages, which are configured with VRS bit in the VREFBUF_CSR register: – VREF+ around 2.048 V. This requires VDDA equal to or higher than 2.4 V. – VREF+ around 2.5 V. This requires VDDA equal to or higher than 2.8 V. DS12023 Rev 5 23/307 65 Functional overview STM32L4R5xx, STM32L4R7xx and STM32L4R9xx VREF- and VREF+ pins are not available on all packages. When not available, they are bonded to VSSA and VDDA, respectively. When the VREF+ is double-bonded with VDDA in a package, the internal voltage reference buffer is not available and must be kept disable (refer to datasheet for packages pinout description). VREF- must always be equal to VSSA. An embedded linear voltage-regulator is used to supply the internal digital power VCORE. VCORE is the power supply for digital peripherals, SRAM1, SRAM2 and SRAM3. The Flash is supplied by VCORE and VDD. Figure 3. STM32L4R5xx and STM32L4R7xx power supply overview VDDA domain VDDA VSSA VDDUSB VSS VDDIO2 VSS 1 x A/D converter 2 x comparators 2 x D/A converters 2 x operational amplifiers Voltage reference buffer USB transceivers VDDIO2 domain VDDIO2 I/O ring PG[15:2] VDD domain VDDIO1 I/O ring VCORE domain Reset block Temp. sensor 3 x PLL, HSI, MSI VSS VDD Standby circuitry (Wakeup logic, IWDG) VCORE Core SRAM1 SRAM2 SRAM3 Digital peripherals Voltage regulator Low voltage detector Flash memory Backup domain VBAT LSE crystal 32 K osc BKP registers RCC BDCR register RTC MSv49328V1 24/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Functional overview Figure 4. STM32L4R5xxxP and STM32L4R7xxxP with external SMPS power supply overview VDDA domain VDDA VSSA 1 x A/D converter 2 x comparators 2 x D/A converters 2 x operational amplifiers Voltage reference buffer VDDUSB VSS VDDIO2 VSS USB transceivers VDDIO2 domain VDDIO2 I/O ring PG[15:2] VDD domain VDDIO1 I/O ring VCORE domain Reset block Temp. sensor 3 x PLL, HSI, MSI VSS VDD Standby circuitry (Wakeup logic, IWDG) Voltage regulator 2x VDD12 Core SRAM1 SRAM2 SRAM3 VCORE Digital peripherals Flash memory Low voltage detector Backup domain VBAT LSE crystal 32 K osc BKP registers RCC BDCR register RTC MSv49333V1 DS12023 Rev 5 25/307 65 Functional overview STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Figure 5. STM32L4R9xx power supply overview VDDA domain VDDA VSSA 1 x A/D converter 2 x comparators 2 x D/A converters 2 x operational amplifiers Voltage reference buffer VDDUSB VSS VDDIO2 VSS VDDDSI VCAPDSI USB transceivers VDDIO2 domain VDDIO2 I/O ring PG[15:2] DSI voltage regulator VDD12DSI DSI PHY VDD domain VDDIO1 I/O ring VCORE domain Reset block Temp. sensor 3 x PLL, HSI, MSI VSS VDD Standby circuitry (Wakeup logic, IWDG) VCORE Voltage regulator Low voltage detector Core SRAM1 SRAM2 SRAM3 Digital peripherals Flash memory Backup domain VBAT LSE crystal 32 K osc BKP registers RCC BDCR register RTC MSv38488V1 During power-up and power-down phases, the following power sequence requirements must be respected: 26/307 • When VDD is below 1 V, other power supplies (VDDA, VDDIO2, VDDUSB and VLCD) must remain below VDD +300 mV. • When VDD is above 1 V, all power supplies are independent. • During the power-down phase, VDD can temporarily become lower than other supplies only if the energy provided to the MCU remains below 1 mJ; this allows external decoupling capacitors to be discharged with different time constants during the powerdown transient phase. DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Functional overview Figure 6. Power-up/down sequence V 3.6 VDDX(1) VDD VBOR0 1 0.3 Power-on Invalid supply area Operating mode VDDX < VDD + 300 mV Power-down time VDDX independent from VDD MSv47490V1 1. VDDX refers to any power supply among VDDA, VDDIO2, VDDUSB and VLCD. 3.10.2 Power supply supervisor The STM32L4R5xx, STM32L4R7xx and STM32L4R9xx devices have an integrated ultralow-power Brownout reset (BOR) active in all modes (except for Shutdown mode). The BOR ensures proper operation of the devices after power-on and during power-down. The devices remain in reset mode when the monitored supply voltage VDD is below a specified threshold, without the need for an external reset circuit. The lowest BOR level is 1.71 V at power on, and other higher thresholds can be selected through option bytes.The devices feature an embedded programmable voltage detector (PVD) that monitors the VDD power supply and compares it to the VPVD threshold. An interrupt can be generated when VDD drops below the VPVD threshold and/or when VDD is higher than the VPVD threshold. The interrupt service routine can then generate a warning message and/or put the MCU into a safe state. The PVD is enabled by software. In addition, the devices embed a peripheral voltage monitor which compares the independent supply voltages VDDA, VDDUSB, VDDIO2 with a fixed threshold in order to ensure that the peripheral is in its functional supply range. 3.10.3 Voltage regulator Two embedded linear voltage regulators supply most of the digital circuitries: the main regulator (MR) and the low-power regulator (LPR). • The MR is used in the Run and Sleep modes and in the Stop 0 mode. • The LPR is used in Low-power run, Low-power sleep, Stop 1 and Stop 2 modes. It is also used to supply the 64 Kbytes SRAM2 in standby with RAM2 retention. • Both regulators are in power-down while they are in standby and Shutdown modes: the regulator output is in high impedance, and the kernel circuitry is powered down thus inducing zero consumption. DS12023 Rev 5 27/307 65 Functional overview STM32L4R5xx, STM32L4R7xx and STM32L4R9xx The ultra-low-power STM32L4Rxxx devices support dynamic voltage scaling to optimize its power consumption in Run mode. The voltage from the main regulator that supplies the logic (VCORE) can be adjusted according to the system’s maximum operating frequency. The main regulator operates in the following ranges: • Range 1 boost mode with the CPU running at up to 120 MHz. • Range 1 normal mode with the CPU running at up to 80 MHz. • Range 2 with a maximum CPU frequency of 26 MHz. All peripheral clocks are also limited to 26 MHz. The VCORE can be supplied by the low-power regulator, the main regulator being switched off. The system is then in Low-power run mode. • Low-power run mode with the CPU running at up to 2 MHz. Peripherals with independent clock can be clocked by the HSI16. When the MR is in use, the device with the external SMPS option allows to force an external VCORE supply on the VDD12 supply pins. When VDD12 is forced by an external source and that it is higher than the output of the internal LDO, the current is taken from this external supply and the overall power efficiency is significantly improved if using an external step down DC/DC converter. Note: 28/307 The USB and DSIHOST can only be used when the main regulator is in range1 boost mode. DS12023 Rev 5 Low-power modes The ultra-low-power STM32L4Rxxx devices support seven low-power modes to achieve the best compromise between low-power consumption, short startup time, available peripherals and available wake-up sources. Table 4 shows the related STM32L4Rxxx modes overview. Table 4. STM32L4R5xx modes overview Mode Regulator(1) CPU Flash SRAM Clocks DMA & Peripherals(2) Wakeup source Range 1 Run SMPM rage 2 High Range 2 All Yes ON(3) ON Any All except OTG_FS, RNG, LCD-TFT SMPS range 2 Low DS12023 Rev 5 LPRun LPR N/A Yes ON(3) ON Any except PLL All except OTG_FS, RNG, LCD-TFT N/A Range 1 Sleep SMPM rage 2 High Range 2 All No ON(3) ON(4) LPR Any Any interrupt or event All except OTG_FS, RNG, LCD-TFT SMPS range 2 Low LPSleep STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 3.10.4 No ON(3) ON(4) Any All except OTG_FS, RNG, LCD-TFT except PLL Any interrupt or event Functional overview 29/307 Mode Regulator CPU Flash SRAM DMA & Peripherals(2) Wakeup source LSE LSI BOR, PVD, PVM RTC, IWDG COMPx (x=1,2) DACx (x=1,2) OPAMPx (x=1,2) USARTx (x=1...5)(6) LPUART1(6) I2Cx (x=1...4)(7) LPTIMx (x=1,2) *** All other peripherals are frozen Reset pin, all I/Os BOR, PVD, PVM RTC, IWDG COMPx (x=1..2) USARTx (x=1...5)(6) LPUART1(6) I2Cx (x=1...4)(7) LPTIMx (x=1,2) OTG_FS(8) LSE LSI BOR, PVD, PVM RTC, IWDG COMPx (x=1,2) DACx (x=1,2) OPAMPx (x=1,2) USARTx (x=1...5)(6) LPUART1(6) I2Cx (x=1...4)(7) LPTIMx (x=1,2) *** All other peripherals are frozen Reset pin, all I/Os BOR, PVD, PVM RTC, IWDG COMPx (x=1..2) USARTx (x=1...5)(6) LPUART1(6) I2Cx (x=1...4)(7) LPTIMx (x=1,2) OTG_FS(8) Range 1 Stop 0(5) No Off ON Range 2 DS12023 Rev 5 Stop 1 LPR No Off ON STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Clocks Functional overview 30/307 Table 4. STM32L4R5xx modes overview (continued) (1) Mode Stop 2 Regulator LPR CPU No Flash Off LPR Standby DS12023 Rev 5 Shutdown OFF OFF SRAM ON Clocks DMA & Peripherals(2) Wakeup source LSE LSI BOR, PVD, PVM RTC, IWDG COMPx (x=1..2) I2C3(7) LPUART1(6) LPTIM1 *** All other peripherals are frozen Reset pin, all I/Os BOR, PVD, PVM RTC, IWDG COMPx (x=1..2) I2C3(7) LPUART1(6) LPTIM1 LSE LSI BOR, RTC, IWDG *** All other peripherals are powered off *** I/O configuration can be floating, pullup or pull-down Reset pin 5 I/Os (WKUPx)(9) BOR, RTC, IWDG LSE RTC *** All other peripherals are powered off *** I/O configuration can be floating, pullup or pull-down(10) Reset pin 5 I/Os (WKUPx)(9) RTC SRAM2 ON Powered Off Powered Off Off Off Powered Off Powered Off STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 4. STM32L4R5xx modes overview (continued) (1) 1. LPR means Main regulator is OFF and Low-power regulator is ON. 2. All peripherals can be active or clock gated to save power consumption. 3. The Flash memory can be put in power-down and its clock can be gated off when executing from SRAM. 4. The SRAM1, SRAM2 and SRAM3 clocks can be gated on or off independently. SMPS mode can be used in Stop 0 mode, but no significant power gain can be expected. 6. U(S)ART and LPUART reception is functional in Stop mode, and generates a wakeup interrupt on Start, address match or received frame event. 7. I2C address detection is functional in Stop mode, and generates a wakeup interrupt in case of address match. 8. OTG_FS wakeup by resume from suspend and attach detection protocol event. 9. The I/Os with wakeup from Standby/Shutdown capability are: PA0, PC13, PE6, PA2, PC5. 31/307 10. I/Os can be configured with internal pull-up, pull-down or floating in Shutdown mode but the configuration is lost when exiting the Shutdown mode. Functional overview 5. Functional overview STM32L4R5xx, STM32L4R7xx and STM32L4R9xx By default, the microcontroller is in Run mode after a system or a power reset. It is up to the user to select one of the low-power modes described below: • Sleep mode In Sleep mode, only the CPU is stopped. All peripherals continue to operate and can wake up the CPU when an interrupt/event occurs. • Low-power run mode This mode is achieved with VCORE supplied by the low-power regulator to minimize the regulator's operating current. The code can be executed from SRAM or from Flash, and the CPU frequency is limited to 2 MHz. The peripherals with independent clock can be clocked by HSI16. • Low-power sleep mode This mode is entered from the Low-power run mode. Only the CPU clock is stopped. When wakeup is triggered by an event or an interrupt, the system reverts to the Lowpower run mode. • Stop 0, Stop 1 and Stop 2 modes Stop mode achieves the lowest power consumption while retaining the content of SRAM and registers. All clocks in the VCORE domain are stopped, the PLL, the MSI RC, the HSI16 RC and the HSE crystal oscillators are disabled. The LSE or LSI is still running. The RTC can remain active (Stop mode with RTC, Stop mode without RTC). Some peripherals with wake-up capability can enable the HSI16 RC during Stop mode to detect their wake-up condition. Three Stop modes are available: Stop 0, Stop 1 and Stop 2 modes. In Stop 2 mode, most of the VCORE domain is put in a lower leakage mode. Stop 1 offers the largest number of active peripherals and wakeup sources, a smaller wakeup time but a higher consumption than Stop 2. In Stop 0 mode, the main regulator remains ON, allowing a very fast wakeup time but with much higher consumption. The system clock when exiting from Stop 0, Stop 1 or Stop 2 modes can be either MSI up to 48 MHz or HSI16, depending on software configuration. • Standby mode The Standby mode is used to achieve the lowest power consumption with BOR. The internal regulator is switched off so that the VCORE domain is powered off. The PLL, the MSI RC, the HSI16 RC and the HSE crystal oscillators are also switched off. The RTC can remain active (Standby mode with RTC, Standby mode without RTC). The Brownout reset (BOR) always remains active in Standby mode. The state of each I/O during Standby mode can be selected by software: I/O with internal pull-up, internal pull-down or floating. After entering Standby mode, SRAM1, SRAM3 and register contents are lost except for registers in the Backup domain and Standby circuitry. Optionally, SRAM2 can be 32/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Functional overview retained in Standby mode, supplied by the low-power regulator (standby with RAM2 retention mode). The device exits Standby mode when an external reset (NRST pin), an IWDG reset, WKUP pin event (configurable rising or falling edge), or an RTC event occurs (alarm, periodic wakeup, timestamp, tamper) or a failure is detected on LSE (CSS on LSE). The system clock after wakeup is MSI up to 8 MHz. • Shutdown mode The Shutdown mode allows to achieve the lowest power consumption. The internal regulator is switched off so that the VCORE domain is powered off. The PLL, the HSI16, the MSI, the LSI and the HSE oscillators are also switched off. The RTC can remain active (Shutdown mode with RTC, Shutdown mode without RTC). The BOR is not available in Shutdown mode. No power voltage monitoring is possible in this mode, therefore the switch to Backup domain is not supported. SRAM1, SRAM2, SRAM3 and register contents are lost except for registers in the Backup domain. The device exits Shutdown mode when an external reset (NRST pin), a WKUP pin event (configurable rising or falling edge), or an RTC event occurs (alarm, periodic wakeup, timestamp, tamper). The system clock after wakeup is MSI at 4 MHz. DS12023 Rev 5 33/307 65 Functional overview STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 5. Functionalities depending on the working mode(1) - - Y - Y - - - - - - - - - - O(2) O(2) O(2) O(2) - - - - - - - - - SRAM1 (192 Kbytes) Y Y(3) Y Y(3) Y - Y - - - - - - SRAM2 (64 Kbytes) Y Y(3) Y Y(3) Y - Y - O(4) - - - - SRAM3 (384 Kbytes) Y Y(3) Y Y(3) Y - Y(3) - - - - - - FSMC O O O O - - - - - - - - - OctoSPIs O O O O - - - - - - - - - Backup Registers Y Y Y Y Y - Y - Y - Y - Y Brownout reset (BOR) Y Y Y Y Y Y Y Y Y Y - - - Programmable Voltage Detector (PVD) O O O O O O O O - - - - - Peripheral Voltage Monitor (PVMx; x=1,2,3,4) O O O O O O O O - - - - - DMA O O O O - - - - - - - - - DMA2D O O O O - - - - - - - - - High speed internal (HSI16) O O O O (5) - (5) - - - - - - Oscillator HSI48 O O - - - - - - - - - - - High speed external (HSE) O O O O - - - - - - - - - Low speed internal (LSI) O O O O O - O - O - - - - Low speed external (LSE) O O O O O - O - O - O - O Multi speed internal (MSI) O O O O - - - - - - - - - Clock security system (CSS) O O O O - - - - - - - - - Peripheral CPU Flash memory (2 Mbytes) 34/307 Run Sleep Lowpower run Lowpower sleep - DS12023 Rev 5 Wakeup capability - Wakeup capability Standby Shutdown Wakeup capability Stop 2 Wakeup capability Stop 0/1 VBAT STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Functional overview Table 5. Functionalities depending on the working mode(1) (continued) - - Clock security system on LSE O O O O O O O O O O - - - RTC / Auto wakeup O O O O O O O O O O O O O Number of RTC Tamper pins 3 3 3 3 3 O 3 O 3 O 3 O 3 Camera interface O O O O - - - - - - - - - LCD-TFT O O - - - - - - - - - - - GFXMMU O O O O - - - - - - - - - DSIHOST O O - - - - - - - - - - - O(8) - - - O - - - - - - - - - - - - - - Peripheral USB OTG FS Run O (8) Sleep Lowpower run Lowpower sleep - Wakeup capability - Wakeup capability Standby Shutdown Wakeup capability Stop 2 Wakeup capability Stop 0/1 VBAT USARTx (x=1,2,3,4,5) O O O O O(6) O(6) Low-power UART (LPUART) O O O O O(6) O(6) O(6) O(6) - - - - - I2Cx (x=1,2,4) O O O O O(7) O(7) (7) - - - - - - - O(7) O(7) O(7) - - - - - I2C3 O O O O O SPIx (x=1,2,3) O O O O - - - - - - - - - CAN(x=1,2) O O O O - - - - - - - - - SDMMC1 O O O O - - - - - - - - - SAIx (x=1,2) O O O O - - - - - - - - - DFSDM1 O O O O - - - - - - - - - ADC O O O O - - - - - - - - - DACx (x=1,2) O O O O O - - - - - - - - VREFBUF O O O O O - - - - - - - - OPAMPx (x=1,2) O O O O O - - - - - - - - COMPx (x=1,2) O O O O O O O O - - - - - Temperature sensor O O O O - - - - - - - - - Timers (TIMx) O O O O - - - - - - - - - Low-power timer 1 (LPTIM1) O O O O O O O O - - - - - Low-power timer 2 (LPTIM2) O O O O O O - - - - - - - DS12023 Rev 5 35/307 65 Functional overview STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 5. Functionalities depending on the working mode(1) (continued) - - Independent watchdog (IWDG) O O O O O O O O O O - - - Window watchdog (WWDG) O O O O - - - - - - - - - SysTick timer O O O O - - - - - - - - - Touch sensing controller (TSC) O O O O - - - - - - - - - Random number generator (RNG) O(8) O(8) - - - - - - - - - - - CRC calculation unit O O O O - - - - - - - - - GPIOs O O O O O O O O (9) 5 pins (11) 5 pins - Peripheral Run Sleep Lowpower run Lowpower sleep - (10) Wakeup capability - Wakeup capability Standby Shutdown Wakeup capability Stop 2 Wakeup capability Stop 0/1 VBAT (10) 1. Legend: Y = yes (enable). O = optional (disable by default, can be enabled by software). - = not available. Gray cells highlight the wakeup capability in each mode. 2. The Flash can be configured in power-down mode. By default, it is not in power-down mode. 3. The SRAM clock can be gated on or off. In Stop 2 mode, the content of SRAM3 is preserved or not depending on the RRSTP bit in PWR_CR1 register. 4. SRAM2 content is preserved when the bit RRS is set in PWR_CR3 register. 5. Some peripherals with wakeup from Stop capability can request HSI16 to be enabled. In this case, HSI16 is woken up by the peripheral, and only feeds the peripheral which requested it. HSI16 is automatically put off when the peripheral does not need it anymore. 6. UART and LPUART reception is functional in Stop mode, and generates a wakeup interrupt on Start, address match or received frame event. 7. I2C address detection is functional in Stop mode, and generates a wakeup interrupt in case of address match. 8. Voltage scaling range 1 only. 9. I/Os can be configured with internal pull-up, pull-down or floating in Standby mode. 10. The I/Os with wakeup from standby/shutdown capability are: PA0, PC13, PE6, PA2, PC5. 11. I/Os can be configured with internal pull-up, pull-down or floating in Shutdown mode but the configuration is lost when exiting the Shutdown mode. 3.10.5 Reset mode In order to improve the consumption under reset, the I/Os state under and after reset is “analog state” (the I/O schmitt trigger is disable). In addition, the internal reset pull-up is deactivated when the reset source is internal. 36/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 3.10.6 Functional overview VBAT operation The VBAT pin allows to power the device VBAT domain from an external battery, an external supercapacitor, or from VDD when there is no external battery and when an external supercapacitor is present. The VBAT pin supplies the RTC with LSE and the backup registers. Three anti-tamper detection pins are available in VBAT mode. The VBAT operation is automatically activated when VDD is not present. An internal VBAT battery charging circuit is embedded and can be activated when VDD is present. Note: When the microcontroller is supplied from VBAT, neither external interrupts nor RTC alarm/events exit the microcontroller from the VBAT operation. 3.11 Interconnect matrix Several peripherals have direct connections between them, which allow autonomous communication between them and support the saving of CPU resources (thus power supply consumption). In addition, these hardware connections allow fast and predictable latency. Depending on the peripherals, these interconnections can operate in Run, Sleep, Lowpower run and Sleep, Stop 0, Stop 1 and Stop 2 modes. See Table 6 for more details. Stop 2 RTC Stop 0 / Stop 1 ADCx Low-power sleep COMPx Low-power run TIMx Sleep Interconnect source Run Table 6. STM32L4R5xx, STM32L4R7xx and STM32L4R9xx peripherals interconnect matrix TIMx Timers synchronization or chaining Y Y Y Y - - ADC DACx DFSDM1 Conversion triggers Y Y Y Y - - DMA Memory to memory transfer trigger Y Y Y Y - - COMPx Comparator output blanking Y Y Y Y - - TIM1, 8 TIM2, 3 Timer input channel, trigger, break from analog signals comparison Y Y Y Y - - LPTIMERx Low-power timer triggered by analog signals comparison Y Y Y Y Y (1) TIM1, 8 Timer triggered by analog watchdog Y Y Y Y - - TIM16 Timer input channel from RTC events Y Y Y Y - - LPTIMERx Low-power timer triggered by RTC alarms or tampers Y Y Y Y Y (1) Clock source used as input channel for RC measurement and trimming Y Y Y Y - - Interconnect destination All clocks sources (internal TIM2 and external) TIM15, 16, 17 Interconnect action DS12023 Rev 5 Y Y 37/307 65 Functional overview STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Low-power run Low-power sleep Stop 0 / Stop 1 Stop 2 USB Sleep Interconnect source Run Table 6. STM32L4R5xx, STM32L4R7xx and STM32L4R9xx peripherals interconnect matrix (continued) Timer triggered by USB SOF Y Y - - - - Timer break Y Y Y Y - - TIMx External trigger Y Y Y Y - - LPTIMERx External trigger Y Y Y Y Y (1) ADC DACx DFSDM1 Conversion external trigger Y Y Y Y - - Interconnect destination TIM2 CSS CPU (hard fault) RAM (parity error) Flash memory (ECC error) TIM1,8 COMPx TIM15,16,17 PVD DFSDM1 (analog watchdog, short circuit detection) GPIO Interconnect action 1. LPTIM1 only. 38/307 DS12023 Rev 5 Y STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 3.12 Functional overview Clocks and startup The clock controller (see Figure 7) distributes the clocks coming from the different oscillators to the core and to the peripherals. It also manages the clock gating for low-power modes and ensures the clock robustness. It features: • Clock prescaler: to get the best trade-off between speed and current consumption, the clock frequency to the CPU and peripherals can be adjusted by a programmable prescaler. • Safe clock switching: clock sources can be changed safely on the fly in Run mode through a configuration register. • Clock management: to reduce the power consumption, the clock controller can stop the clock to the core, individual peripherals or memory. • System clock source: four different clock sources can be used to drive the master clock SYSCLK: – 4 to 48 MHz high-speed external crystal or ceramic resonator (HSE), that can supply a PLL. The HSE can also be configured in bypass mode for an external clock. The HSE must be available when the DSI-HOST peripheral is used. – 16 MHz high-speed internal RC oscillator (HSI16), trimmable by software, that can supply a PLL – Multispeed internal RC oscillator (MSI), trimmable by software, able to generate 12 frequencies from 100 kHz to 48 MHz. When a 32.768 kHz clock source is available in the system (LSE), the MSI frequency can be automatically trimmed by hardware to reach better than ±0.25% accuracy. In this mode the MSI can feed the USB device, saving the need of an external high-speed crystal (HSE). The MSI can supply a PLL. – System PLL which can be fed by HSE, HSI16 or MSI, with a maximum frequency at 120 MHz. • RC48 with clock recovery system (HSI48): internal 48 MHz clock source (HSI48)can be used to drive the USB, the SDMMC or the RNG peripherals. This clock can be output on the MCO. • Auxiliary clock source: two ultra-low-power clock sources that can be used to drive the real-time clock: – 32.768 kHz low-speed external crystal (LSE), supporting four drive capability modes. The LSE can also be configured in bypass mode for an external clock. – 32 kHz low-speed internal RC (LSI), also used to drive the independent watchdog. The LSI clock accuracy is ±5% accuracy. • Peripheral clock sources: several peripherals (USB, SDMMC, RNG, SAI, USARTs, I2Cs, LPTimers, ADC) have their own independent clock whatever the system clock. Three PLLs, each having three independent outputs allowing the highest flexibility, can generate independent clocks for the ADC, the USB/SDMMC/RNG, the two SAIs, LCDTFT and DSI-HOST. When using DSI-HOST peripheral, the high-speed external crystal (HSE) must be available. • Startup clock: after reset, the microcontroller restarts by default with an internal 4 MHz clock (MSI). The prescaler ratio and clock source can be changed by the application program as soon as the code execution starts. • Clock security system (CSS): this feature can be enabled by software. If a HSE clock failure occurs, the master clock is automatically switched to HSI16 and a software DS12023 Rev 5 39/307 65 Functional overview STM32L4R5xx, STM32L4R7xx and STM32L4R9xx interrupt is generated if enabled. LSE failure can also be detected and generated an interrupt. • Clock-out capability: – MCO (microcontroller clock output): it outputs one of the internal clocks for external use by the application – LSCO (low-speed clock output): it outputs LSI or LSE in all low-power modes (except VBAT). Several prescalers allow to configure the AHB frequency, the high speed APB (APB2) and the low-speed APB (APB1) domains. The maximum frequency of the AHB and the APB domains is 120 MHz. 40/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Functional overview Figure 7. Clock tree to IWDG LSI RC 32 kHz LSCO to RTC OSC32_OUT LSE OSC 32.768 kHz /32 OSC32_IN MCO to PWR LSE LSI MSI HSI16 HSE SYSCLK / 1→16 to AHB bus, core, memory and DMA AHB PRESC / 1,2,..512 HCLK PLLCLK HSI48 to Cortex system timer /8 Clock source control OSC_OUT HSE OSC 4-48 MHz OSC_IN Clock detector FCLK Cortex free running clock APB1 PRESC / 1,2,4,8,16 HSE PCLK1 to APB1 peripherals x1 or x2 MSI SYSCLK HSI16 LSE HSI16 SYSCLK to USARTx X=2..5 to LPUART1 HSI RC 16 MHz HSI16 SYSCLK MSI RC 100 kHz – 48 MHz PLL MSI HSI16 HSE /M /P PLLSAI3CLK /Q PLL48M1CLK /R PLLCLK to LPTIMx x=1,2 MSI OCTOSPI clock CRS clock PCLK2 APB2 PRESC / 1,2,4,8,16 HSI16 /M PLLSAI1 to I2Cx x=1,2,3,4 LSI LSE HSI16 RC 48 MHz to TIMx x=2..7 /P PLLSAI1CLK /Q PLL48M2CLK /R PLLADC1CLK to APB2 peripherals x1 or x2 to TIMx x=1,8,15,16,17 LSE HSI16 SYSCLK to USART1 SDMMC clock HSI16 MSI 48 MHz clock to USB, RNG SYSCLK HSE DSI PLL ≤ 20 MHz DSI - PHY ≤ 62.5 MHz < 62.5 MHz MSI HSI16 /M PLLSAI2 /P PLLSAI2CLK /Q PLLDSICLK /R PLLLCDCLK to ADC DSIHOST byte lane clock DSIHOST rxclkesc clock DFSDM audio clock to SAI1 HSI16 PLLSAI2DIVR SAI1_EXTCLK LTDC clock to SAI2 SAI2_EXTCLK MSv38434V7 DS12023 Rev 5 41/307 65 Functional overview 3.13 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx General-purpose inputs/outputs (GPIOs) Each of the GPIO pins can be configured by software as output (push-pull or open-drain), as input (with or without pull-up or pull-down) or as peripheral alternate function. Most of the GPIO pins are shared with digital or analog alternate functions. Fast I/O toggling can be achieved thanks to their mapping on the AHB2 bus. The I/Os alternate function configuration can be locked if needed following a specific sequence in order to avoid spurious writing to the I/Os registers. 3.14 Direct memory access controller (DMA) The device embeds 2 DMAs. Refer to Table 7: DMA implementation for the features implementation. Direct memory access (DMA) is used in order to provide a high-speed data transfer between peripherals and memory as well as from memory to memory. Data can be quickly moved by DMA without any CPU actions. This keeps the CPU resources free for other operations. The two DMA controllers have 14 channels in total, each one dedicated to manage memory access requests from one or more peripherals. Each controller has an arbiter for handling the priority between DMA requests. The DMA supports: • 14 independently configurable channels (requests) – Each channel is connected to a dedicated hardware DMA request, a software trigger is also supported on each channel. This configuration is done by software. • Priorities between requests from channels of one DMA are both software programmable (4 levels: very high, high, medium, low) or hardware programmable in case of equality (request 1 has priority over request 2, etc.) • Independent source and destination transfer size (byte, half word, word), emulating packing and unpacking. Source/destination addresses must be aligned on the data size • Support for circular buffer management • 3 event flags (DMA half transfer, DMA transfer complete and DMA transfer error) logically ORed together in a single interrupt request for each channel • Memory-to-memory transfer • Peripheral-to-memory, memory-to-peripheral, and peripheral-to-peripheral transfers • Access to Flash, SRAM, APB and AHB peripherals as source and destination • Programmable number of data to be transferred: up to 65536 Table 7. DMA implementation 42/307 DMA features DMA1 DMA2 Number of regular channels 7 7 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 3.15 Functional overview DMA request router (DMAMux) When a peripheral indicates a request for DMA transfer by setting its DMA request line, the DMA request is pending until it is served and the corresponding DMA request line is reset. The DMA request router allows to route the DMA control lines between the peripherals and the DMA controllers of the product. An embedded multi-channel DMA request generator can be considered as one of such peripherals. The routing function is ensured by a multi-channel DMA request line multiplexer. Each channel selects a unique set of DMA control lines, unconditionally or synchronously with events on synchronization inputs. For simplicity, the functional description is limited to DMA request lines. The other DMA control lines are not shown in figures or described in the text. The DMA request generator produces DMA requests following events on DMA request trigger inputs. 3.16 Chrom-ART Accelerator (DMA2D) Chrom-ART Accelerator (DMA2D) is a graphic accelerator that offers an advanced bit blitting, row data copy and pixel format conversion. It supports the following functions: • Rectangle filling with a fixed color • Rectangle copy • Rectangle copy with pixel format conversion • Rectangle composition with blending and pixel format conversion. Various image format coding are supported, from indirect 4 bpp color mode up to 32 bpp direct color. It embeds a dedicated memory to store color lookup tables. An interrupt can be generated when an operation is complete or at a programmed watermark. All the operations are fully automatized and are running independently from the CPU or the DMAs. 3.17 Chrom-GRC (GFXMMU) The Chrom-GRC (GFXMMU) is a graphical oriented memory management unit aimed to: • Optimize memory usage according to the display shape • Manage packing/unpacking for 24 bpp frame buffers The Chrom-GRC features: • Fully programmable display shape to physically store only the visible pixel • Up to four virtual buffers • Each virtual buffer have 4096 bytes per line and 1024 lines • Each virtual buffer can be physically mapped to any system memory • 24 bpp packing unit to store unpacked 24bpp data in a packed 24 bpp • Packing/un-packing management per buffer • Interrupt in case of buffer overflow (1 per buffer) • Interrupt in case of memory transfer error DS12023 Rev 5 43/307 65 Functional overview STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 3.18 Interrupts and events 3.18.1 Nested vectored interrupt controller (NVIC) The STM32L4R5xx, STM32L4R7xx and STM32L4R9xxdevices embed a nested vectored interrupt controller which is able to manage 16 priority levels, and to handle up to 94 maskable interrupt channels plus the 16 interrupt lines of the Cortex®-M4. The NVIC benefits are the following: • Closely coupled NVIC gives low latency interrupt processing • Interrupt entry vector table address passed directly to the core • Allows early processing of interrupts • Processing of late arriving higher priority interrupts • Support for tail chaining • Processor state automatically saved • Interrupt entry restored on interrupt exit with no instruction overhead The NVIC hardware block provides flexible interrupt management features with minimal interrupt latency. 3.18.2 Extended interrupt/event controller (EXTI) The extended interrupt/event controller consists of 36 edge detector lines used to generate interrupt/event requests and to wake-up the system from the Stop mode. Each external line can be independently configured to select the trigger event (rising edge, falling edge, both) and can be masked independently. A pending register maintains the status of the interrupt requests. The internal lines are connected to peripherals with wakeup from Stop mode capability. The EXTI can detect an external line with a pulse width shorter than the internal clock period. Up to 114 GPIOs can be connected to the 16 external interrupt lines. 44/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 3.19 Functional overview Analog-to-digital converter (ADC) The device embeds a successive approximation analog-to-digital converters with the following features: • 12-bit native resolution, with built-in calibration • 5.33 Msps maximum conversion rate with full resolution Down to 18.75 ns sampling time – Increased conversion rate for lower resolution (up to 8.88 Msps for 6-bit resolution) • Up to 16 external channels • 5 internal channels: internal reference voltage, temperature sensor, VBAT/3, DAC1 and DAC2 outputs • One external reference pin is available on some package, allowing the input voltage range to be independent from the power supply • Single-ended and differential mode inputs • Low-power design • 3.19.1 – – Capable of low-current operation at low conversion rate (consumption decreases linearly with speed) – Dual clock domain architecture: ADC speed independent from CPU frequency Highly versatile digital interface – Single-shot or continuous/discontinuous sequencer-based scan mode: 2 groups of analog signals conversions can be programmed to differentiate background and high-priority real-time conversions – Each ADC support multiple trigger inputs for synchronization with on-chip timers and external signals – Results stored into a data register or in RAM with DMA controller support – Data pre-processing: left/right alignment and per channel offset compensation – Built-in oversampling unit for enhanced SNR – Channel-wise programmable sampling time – Analog watchdog for automatic voltage monitoring, generating interrupts and trigger for selected timers – Hardware assistant to prepare the context of the injected channels to allow fast context switching Temperature sensor The temperature sensor (TS) generates a voltage VTS that varies linearly with temperature. The temperature sensor is internally connected to the ADC1_IN17 input channels which is used to convert the sensor output voltage into a digital value. The sensor provides good linearity but it has to be calibrated to obtain good overall accuracy of the temperature measurement. As the offset of the temperature sensor varies from chip to chip due to process variation, the uncalibrated internal temperature sensor is suitable for applications that detect temperature changes only. To improve the accuracy of the temperature sensor measurement, each device is individually factory-calibrated by ST. The temperature sensor factory calibration data are stored by ST in the system memory area, accessible in read-only mode. DS12023 Rev 5 45/307 65 Functional overview STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 8. Temperature sensor calibration values 3.19.2 Calibration value name Description Memory address TS_CAL1 TS ADC raw data acquired at a temperature of 30 °C (± 5 °C), VDDA = VREF+ = 3.0 V (± 10 mV) 0x1FFF 75A8 - 0x1FFF 75A9 TS_CAL2 TS ADC raw data acquired at a temperature of 130 °C (± 5 °C), VDDA = VREF+ = 3.0 V (± 10 mV) 0x1FFF 75CA - 0x1FFF 75CB Internal voltage reference (VREFINT) The internal voltage reference (VREFINT) provides a stable (bandgap) voltage output for the ADC and the comparators. The VREFINT is internally connected to the ADC1_IN0 input channel. The precise voltage of VREFINT is individually measured for each part by ST during production test and stored in the system memory area. It is accessible in read-only mode. Table 9. Internal voltage reference calibration values 3.19.3 Calibration value name Description Memory address VREFINT Raw data acquired at a temperature of 30 °C (± 5 °C), VDDA = VREF+ = 3.0 V (± 10 mV) 0x1FFF 75AA - 0x1FFF 75AB VBAT battery voltage monitoring This embedded hardware enables the application to measure the VBAT battery voltage using the internal ADC channel ADC1_IN18. As the VBAT voltage may be higher than the VDDA, and thus outside the ADC input range, the VBAT pin is internally connected to a bridge divider by 3. As a consequence, the converted digital value is one third of the VBAT voltage. 3.20 Digital to analog converter (DAC) Two 12-bit buffered DAC channels can be used to convert digital signals into analog voltage signal outputs. The chosen design structure is composed of integrated resistor strings and an amplifier in inverting configuration. This digital interface supports the following features: 46/307 • Up to two DAC output channels • 8-bit or 12-bit output mode • Buffer offset calibration (factory and user trimming) • Left or right data alignment in 12-bit mode • Synchronized update capability • Noise-wave generation • Triangular-wave generation DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Functional overview • Dual DAC channel independent or simultaneous conversions • DMA capability for each channel • External triggers for conversion • Sample and hold low-power mode, with internal or external capacitor The DAC channels are triggered through the timer update outputs that are also connected to different DMA channels. 3.21 Voltage reference buffer (VREFBUF) The STM32L4Rxxx devices embed a voltage reference buffer which can be used as voltage reference for ADC, DACs and also as voltage reference for external components through the VREF+ pin. The internal voltage reference buffer supports two voltages: • 2.048 V • 2.5 V An external voltage reference can be provided through the VREF+ pin when the internal voltage reference buffer is off. The VREF+ pin is double-bonded with VDDA on some packages. In these packages the internal voltage reference buffer is not available. Figure 8. Voltage reference buffer VREFBUF VDDA Bandgap DAC, ADC + VREF+ Low frequency cut-off capacitor 100 nF MSv40197V1 3.22 Comparators (COMP) The STM32L4Rxxx devices embed two rail-to-rail comparators with programmable reference voltage (internal or external), hysteresis and speed (low speed for low-power) and with selectable output polarity. The reference voltage can be one of the following: • External I/O • DAC output channels • Internal reference voltage or submultiple (1/4, 1/2, 3/4). All comparators can wake up from Stop mode, generate interrupts and breaks for the timers and can also be combined into a window comparator. DS12023 Rev 5 47/307 65 Functional overview 3.23 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Operational amplifier (OPAMP) The STM32L4Rxxx devices embed two operational amplifiers with external or internal follower routing and PGA capability. The operational amplifier features: 3.24 • Low input bias current • Low offset voltage • Low-power mode • Rail-to-rail input Touch sensing controller (TSC) The touch sensing controller provides a simple solution to add capacitive sensing functionality to any application. A capacitive sensing technology is able to detect finger presence near an electrode that is protected from direct touch by a dielectric (glass, plastic or other). The capacitive variation introduced by the finger (or any conductive object) is measured using a proven implementation based on a surface charge transfer acquisition principle. The touch sensing controller is fully supported by the STMTouch touch sensing firmware library which is free to use and allows touch sensing functionality to be implemented reliably in the end application. The main features of the touch sensing controller are the following: Note: 48/307 • Proven and robust surface charge transfer acquisition principle • Supports up to 24 capacitive sensing channels • Up to 3 capacitive sensing channels can be acquired in parallel offering a very good response time • Spread spectrum feature to improve system robustness in noisy environments • Full hardware management of the charge transfer acquisition sequence • Programmable charge transfer frequency • Programmable sampling capacitor I/O pin • Programmable channel I/O pin • Programmable max count value to avoid long acquisition when a channel is faulty • Dedicated end of acquisition and max count error flags with interrupt capability • One sampling capacitor for up to 3 capacitive sensing channels to reduce the system components • Compatible with proximity, touchkey, linear and rotary touch sensor implementation • Designed to operate with STMTouch touch sensing firmware library The number of capacitive sensing channels is dependent on the size of the packages and subject to I/O availability. DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 3.25 Functional overview LCD-TFT controller (LTDC) The LCD-TFT display controller provides a 24-bit parallel digital RGB (red, green, blue) and delivers all signals to interface directly to a broad range of LCD and TFT panels with the following features: 3.26 • Two displays layers with dedicated FIFO (64 x 32-bit) • Color look-up table (CLUT) up to 256 colors (256 x 24-bit) per layer • Up to 8 input color formats selectable per layer • Flexible blending between two layers using alpha value (per pixel or constant) • Flexible programmable parameters for each layer • Color keying (transparency color) • Up to four programmable interrupt events DSI Host (DSIHOST) The DSI Host is a dedicated IP that interfaces with the MIPI® DSI compliant displays. It includes a dedicated video interface internally connected to the LTDC and a generic APB interface that can be used to transmit information to the display. The interfaces are as follows: • • • LTDC interface: – Used to transmit information in Video Mode, in which the transfers from the host processor to the peripheral take the form of a real-time pixel stream (DPI) – Used to transmit information in full bandwidth in the Adapted Command Mode (DBI) through a custom mode APB slave interface: – Allows the transmission of generic information in Command mode, and follows a proprietary register interface – Can operate concurrently with either LTDC interface in either Video Mode or Adapted Command Mode Video mode pattern generator: – Allows the transmission of horizontal/vertical color bar and D-PHY BER testing pattern without any kind of stimuli DS12023 Rev 5 49/307 65 Functional overview STM32L4R5xx, STM32L4R7xx and STM32L4R9xx The DSI Host main features are: • Compliant with MIPI® Alliance standards • Interface with MIPI® D-PHY • Supports all commands defined in the MIPI® Alliance specification for DCS: – Transmission of all Command mode packets through the APB interface – Transmission of commands in low-power and high-speed during Video Mode • Supports up to two D-PHY data lanes • Bidirectional communication and escape mode support through data lane 0 • Supports non-continuous clock in D-PHY clock lane for additional power saving • Supports Ultra Low-Power mode with PLL disabled • ECC and Checksum capabilities • Support for end of transmission packet (EoTp) • Fault recovery schemes • Configurable selection of system interfaces: • – AMBA APB for control and optional support for generic and DCS commands – Video Mode interface through LTDC – Adapted command mode interface through LTDC Independently programmable virtual channel ID in – Video mode – Adapted command mode – APB Slave Video Mode interfaces features: • LTDC interface color coding mappings into 24-bit interface: – 16-bit RGB, configurations 1, 2 and 3 – 18-bit RGB, configurations 1 and 2 – 24-bit RGB • Programmable polarity of all LTDC interface signals • Maximum resolution is limited by available DSI physical link bandwidth: – Number of lanes: 2 – Maximum speed per lane: 500 Mbps Adapted interface features: • Support for sending large amounts of data through the memory_write_start (WMS) and memory_write_continue (WMC) DCS commands • LTDC interface color coding mappings into 24-bit interface: – 16-bit RGB, configurations 1, 2 and 3 – 18-bit RGB, configurations 1 and 2 – 24-bit RGB Video mode pattern generator: 50/307 • Vertical and horizontal color bar generation without LTDC stimuli • BER pattern without LTDC stimuli DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 3.27 Functional overview Digital filter for sigma-delta modulators (DFSDM) The STM32L4Rxxx devices embed one DFSDM with four digital filters modules and eight external input serial channels (transceivers) or alternately eight internal parallel inputs support. The DFSDM peripheral is dedicated to interface the external Σ∆ modulators to the microcontroller and then to perform digital filtering of the received data streams (which represent analog value on Σ∆ modulators inputs). The DFSDM can also interface the PDM (pulse density modulation) microphones and perform PDM to PCM conversion and filtering in hardware. The DFSDM features optional parallel data stream inputs from microcontrollers memory (through DMA/CPU transfers into DFSDM). The DFSDM transceivers support several serial interface formats (to support various Σ∆ modulators) and the DFSDM digital filter modules perform digital processing according to the user’s selected filter parameters with up to 24-bit final ADC resolution. The DFSDM peripheral supports: • • 8 multiplexed input digital serial channels: – Configurable SPI interface to connect various SD modulator(s) – Configurable Manchester coded 1 wire interface support – PDM (pulse density modulation) microphone input support – Maximum input clock frequency up to 20 MHz (10 MHz for Manchester coding) – Clock output for SD modulator(s): 0..20 MHz Alternative inputs from 8 internal digital parallel channels (up to 16-bit input resolution): – • Internal sources: device memory data streams (DMA) 4 digital filter modules with adjustable digital signal processing: – Sincx filter: filter order/type (1..5), oversampling ratio (up to 1..1024) – Integrator: oversampling ratio (1..256) • Up to 24-bit output data resolution, signed output data format • Automatic data offset correction (offset stored in register by user) • Continuous or single conversion • Start-of-conversion triggered by: • • – Software trigger – Internal timers – External events – Start-of-conversion synchronously with first digital filter module (DFSDM0) Analog watchdog feature: – Low value and high-value data threshold registers – Dedicated configurable Sincx digital filter (order = 1..3, oversampling ratio = 1..32) – Input from final output data or from selected input digital serial channels – Continuous monitoring independently from standard conversion Short circuit detector to detect saturated analog input values (bottom and top range): – Up to 8-bit counter to detect 1..256 consecutive 0’s or 1’s on serial data stream – Monitoring continuously each input serial channel DS12023 Rev 5 51/307 65 Functional overview 3.28 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx • Break signal generation on analog watchdog event or on short circuit detector event • Extremes detector: – Storage of minimum and maximum values of final conversion data – Refreshed by software • DMA capability to read the final conversion data • Interrupts: end of conversion, overrun, analog watchdog, short circuit, input serial channel clock absence • “Regular” or “injected” conversions: – “Regular” conversions can be requested at any time or even in continuous mode without having any impact on the timing of “injected” conversions – “Injected” conversions for precise timing and with high conversion priority Random number generator (RNG) All devices embed an RNG that delivers 32-bit random numbers generated by an integrated analog circuit. 3.29 Digital camera interface (DCMI) The STM32L4Rxxx devices embed a camera interface that can connect with any camera modules and CMOS sensors through an 8-bit to 14-bit parallel interface in order to receive video data. The camera interface can sustain a data transfer rate up to 54 Mbytes/s at 54 MHz. It features: 3.30 • Programmable polarity for the input pixel clock and synchronization signals • Parallel data communication of 8-, 10-, 12- or 14-bit • Supports 8-bit progressive video monochrome or raw bayer format, YCbCr 4:2:2 progressive video, RGB 565 progressive video or compressed data (like JPEG) • Supports continuous mode or snapshot (a single frame) mode • Capability to automatically crop the image. Timers and watchdogs The STM32L4Rxxx devices include two advanced control timers, up to nine generalpurpose timers, two basic timers, two low-power timers, two watchdog timers and a SysTick timer. The Table 10 below compares the features of the advanced control, general-purpose and basic timers. 52/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Functional overview Table 10. Timer feature comparison Timer type Timer Counter resolution Counter type Prescaler factor DMA request generation Capture/ compare channels Complementary outputs Advanced control TIM1, TIM8 16-bit Up, down, Up/down Any integer between 1 and 65536 Yes 4 3 Generalpurpose TIM2, TIM5 32-bit Up, down, Up/down Any integer between 1 and 65536 Yes 4 No Generalpurpose TIM3, TIM4 16-bit Up, down, Up/down Any integer between 1 and 65536 Yes 4 No Generalpurpose TIM15 16-bit Up Any integer between 1 and 65536 Yes 2 1 Generalpurpose TIM16, TIM17 16-bit Up Any integer between 1 and 65536 Yes 1 1 Basic TIM6, TIM7 16-bit Up Any integer between 1 and 65536 Yes 0 No 3.30.1 Advanced-control timer (TIM1, TIM8) The advanced-control timers can each be seen as a three-phase PWM multiplexed on six channels. They have complementary PWM outputs with programmable inserted deadtimes. They can also be seen as complete general-purpose timers. The four independent channels can be used for: • Input capture • Output compare • PWM generation (edge or center-aligned modes) with full modulation capability (0100%) • One-pulse mode output In debug mode, the advanced-control timer counter can be frozen and the PWM outputs disabled in order to turn off any power switches driven by these outputs. Many features are shared with the general-purpose TIMx timers (described in Section 3.30.2) using the same architecture, so the advanced-control timers can work together with the TIMx timers via the Timer Link feature for synchronization or event chaining. DS12023 Rev 5 53/307 65 Functional overview 3.30.2 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx General-purpose timers (TIM2, TIM3, TIM4, TIM5, TIM15, TIM16, TIM17) There are up to seven synchronizable general-purpose timers embedded in the STM32L4Rxxx devices (see Table 10 for differences). Each general-purpose timer can be used to generate PWM outputs, or act as a simple time base. • TIM2, TIM3, TIM4 and TIM5 They are full-featured general-purpose timers: – TIM2 and TIM5 have a 32-bit auto-reload up/downcounter and 32-bit prescaler – TIM3 and TIM4 have 16-bit auto-reload up/downcounter and 16-bit prescaler. These timers feature four independent channels for input capture/output compare, PWM or one-pulse mode output. They can work together, or with the other generalpurpose timers via the Timer Link feature for synchronization or event chaining. The counters can be frozen in debug mode. All have independent DMA request generation and support quadrature encoders. • TIM15, 16 and 17 They are general-purpose timers with mid-range features: They have 16-bit auto-reload upcounters and 16-bit prescalers. – TIM15 has two channels and one complementary channel – TIM16 and TIM17 have one channel and one complementary channel All channels can be used for input capture/output compare, PWM or one-pulse mode output. The timers can work together via the Timer Link feature for synchronization or event chaining. The timers have independent DMA request generation. The counters can be frozen in debug mode. 3.30.3 Basic timers (TIM6 and TIM7) The basic timers are mainly used for DAC trigger generation. They can also be used as generic 16-bit timebases. 3.30.4 Low-power timer (LPTIM1 and LPTIM2) The STM32L4Rxxx devices embed two low-power timers. These timers have an independent clock and are running in Stop mode if they are clocked by LSE, LSI or an external clock. They are able to wakeup the system from Stop mode. LPTIM1 is active in Stop 0, Stop 1 and Stop 2 modes. LPTIM2 is active in Stop 0 and Stop 1 mode. 54/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Functional overview This low-power timer supports the following features: 3.30.5 • 16-bit up counter with 16-bit autoreload register • 16-bit compare register • Configurable output: pulse, PWM • Continuous/ one shot mode • Selectable software/hardware input trigger • Selectable clock source – Internal clock sources: LSE, LSI, HSI16 or APB clock – External clock source over LPTIM input (working even with no internal clock source running, used by pulse counter application). • Programmable digital glitch filter • Encoder mode (LPTIM1 only). Independent watchdog (IWDG) The independent watchdog is based on a 12-bit downcounter and an 8-bit prescaler. It is clocked from an independent 32 kHz internal RC (LSI) and as it operates independently from the main clock, it can operate in Stop and Standby modes. It can be used either as a watchdog to reset the device when a problem occurs, or as a free running timer for application timeout management. It is hardware or software configurable through the option bytes. The counter can be frozen in debug mode. 3.30.6 System window watchdog (WWDG) The window watchdog is based on a 7-bit downcounter that can be set as free running. It can be used as a watchdog to reset the device when a problem occurs. It is clocked from the main clock. It has an early warning interrupt capability and the counter can be frozen in debug mode. 3.30.7 SysTick timer This timer is dedicated to real-time operating systems, but could also be used as a standard down counter. It features: • A 24-bit down counter • Autoreload capability • Maskable system interrupt generation when the counter reaches 0. • Programmable clock source DS12023 Rev 5 55/307 65 Functional overview 3.31 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Real-time clock (RTC) and backup registers The RTC is an independent BCD timer/counter. It supports the following features: • Calendar with subsecond, seconds, minutes, hours (12 or 24 format), week day, date, month, year, in BCD (binary-coded decimal) format • Automatic correction for 28, 29 (leap year), 30, and 31 days of the month • Two programmable alarms • On-the-fly correction from 1 to 32767 RTC clock pulses. This can be used to synchronize it with a master clock • Reference clock detection: a more precise second source clock (50 or 60 Hz) can be used to enhance the calendar precision • Digital calibration circuit with 0.95 ppm resolution, to compensate for quartz crystal inaccuracy • Three anti-tamper detection pins with programmable filter • Timestamp feature which can be used to save the calendar content. This function can be triggered by an event on the timestamp pin, or by a tamper event, or by a switch to VBAT mode • 17-bit auto-reload wakeup timer (WUT) for periodic events with programmable resolution and period The RTC and the 32 backup registers are supplied through a switch that takes power either from the VDD supply when present or from the VBAT pin. The backup registers are 32-bit registers used to store 128 bytes of user application data when VDD power is not present. They are not reset by a system or power reset, or when the device wakes up from standby or Shutdown mode. The RTC clock sources can be: • A 32.768 kHz external crystal (LSE) • An external resonator or oscillator (LSE) • The internal low-power RC oscillator (LSI, with typical frequency of 32 kHz) • The high-speed external clock (HSE) divided by 32 The RTC is functional in VBAT mode and in all low-power modes when it is clocked by the LSE. When clocked by the LSI, the RTC is not functional in VBAT mode, but is functional in all low-power modes except Shutdown mode. All RTC events (alarm, wake-up timer, Timestamp or Tamper) can generate an interrupt and wakeup the device from the low-power modes. 3.32 Inter-integrated circuit interface (I2C) The device embeds four I2C. Refer to Table 11: I2C implementation for the features implementation. The I2C bus interface handles communications between the microcontroller and the serial I2C bus. It controls all I2C bus-specific sequencing, protocol, arbitration and timing. 56/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Functional overview The I2C peripheral supports: • • I2C-bus specification and user manual rev. 5 compatibility: – Slave and master modes, multimaster capability – Standard-mode (Sm), with a bitrate up to 100 kbit/s – Fast-mode (Fm), with a bitrate up to 400 kbit/s – Fast-mode plus (Fm+), with a bitrate up to 1 Mbit/s and 20 mA output drive I/Os – 7-bit and 10-bit addressing mode, multiple 7-bit slave addresses – Programmable setup and hold times – Optional clock stretching System management bus (SMBus) specification rev 2.0 compatibility: – Hardware PEC (packet error checking) generation and verification with ACK control – Address resolution protocol (ARP) support – SMBus alert • Power system management protocol (PMBusTM) specification rev 1.1 compatibility • Independent clock: a choice of independent clock sources allowing the I2C communication speed to be independent from the PCLK reprogramming. Refer to Figure 7: Clock tree • Wakeup from Stop mode on address match • Programmable analog and digital noise filters • 1-byte buffer with DMA capability Table 11. I2C implementation I2C features(1) I2C1 I2C2 I2C3 I2C4 Standard-mode (up to 100 kbit/s) X X X X Fast-mode (up to 400 kbit/s) X X X X Fast-mode Plus with 20 mA output drive I/Os (up to 1 Mbit/s) X X X X Programmable analog and digital noise filters X X X X SMBus/PMBus hardware support X X X X Independent clock X X X X Wakeup from Stop 0, Stop 1 mode on address match X X X X Wakeup from Stop 2 mode on address match - - X - 1. X: supported DS12023 Rev 5 57/307 65 Functional overview 3.33 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Universal synchronous/asynchronous receiver transmitter (USART) The STM32L4Rxxx devices have three embedded universal synchronous receiver transmitters (USART1, USART2 and USART3) and two universal asynchronous receiver transmitters (UART4, UART5). These interfaces provide asynchronous communication, IrDA SIR ENDEC support, multiprocessor communication mode, single-wire half-duplex communication mode and have LIN master/slave capability. They provide hardware management of the CTS and RTS signals, and RS485 driver enable. They are able to communicate at speeds of up to 10 Mbit/s. The USART1, USART2 and USART3 also provide a Smartcard mode (ISO 7816 compliant) and an SPI-like communication capability. All USART have a clock domain independent from the CPU clock, allowing the USARTx (x=1,2,3,4,5) to wake up the MCU from Stop mode using baudrates up to 200 Kbaud. The wake up events from Stop mode are programmable and can be: • Start bit detection • Any received data frame • A specific programmed data frame All USART interfaces can be served by the DMA controller. Table 12. USART/UART/LPUART features USART modes/features(1) USART1 USART2 USART3 UART4 UART5 LPUART1 Hardware flow control for modem X X X X X X Continuous communication using DMA X X X X X X Multiprocessor communication X X X X X X Synchronous mode X X X - - - Smartcard mode X X X - - - Single-wire half-duplex communication X X X X X X IrDA SIR ENDEC block X X X X X - LIN mode X X X X X - Dual clock domain X X X X X X Wakeup from Stop 0 / Stop 1 modes X X X X X X Wakeup from Stop 2 mode - - - - - X Receiver timeout interrupt X X X X X - Modbus communication X X X X X - Auto baud rate detection Driver enable X (4 modes) X X LPUART/USART data length X 7, 8 and 9 bits 1. X = supported. 58/307 X - DS12023 Rev 5 X X STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 3.34 Functional overview Low-power universal asynchronous receiver transmitter (LPUART) The STM32L4Rxxx devices embed one low-power UART. The LPUART supports asynchronous serial communication with minimum power consumption. It supports halfduplex single-wire communication and modem operations (CTS/RTS). It allows multiprocessor communication. The LPUART has a clock domain independent from the CPU clock, and can wakeup the system from Stop mode using baudrates up to 220 Kbaud. The wake up events from Stop mode are programmable and can be: • Start bit detection • Any received data frame • A specific programmed data frame Only a 32.768 kHz clock (LSE) is needed to allow LPUART communication up to 9600 baud. Therefore, even in Stop mode, the LPUART can wait for an incoming frame while having an extremely low energy consumption. Higher speed clock can be used to reach higher baudrates. The LPUART interface can be served by the DMA controller. 3.35 Serial peripheral interface (SPI) Three SPI interfaces allow communication up to slave modes, in half-duplex, full-duplex and simplex modes. The 3-bit prescaler gives eight master mode frequencies and the frame size is configurable from 4 bits to 16 bits. The SPI interfaces support NSS pulse mode, TI mode and hardware CRC calculation. All SPI interfaces can be served by the DMA controller. 3.36 Serial audio interfaces (SAI) The STM32L4Rxxx devices embed two SAI. Refer to Table 13: SAI implementation for the features implementation. The SAI bus interface handles communications between the microcontroller and the serial audio protocol. The SAI peripheral supports: • Two independent audio sub-blocks which can be transmitters or receivers with their respective FIFO. • 8-word integrated FIFOs for each audio sub-block. • Synchronous or asynchronous mode between the audio sub-blocks. • Master or slave configuration independent for both audio sub-blocks. • Clock generator for each audio block to target independent audio frequency sampling when both audio sub-blocks are configured in master mode. • Data size configurable: 8-, 10-, 16-, 20-, 24-, 32-bit. • Peripheral with large configurability and flexibility allowing to target as example the following audio protocol: I2S, LSB or MSB-justified, PCM/DSP, TDM, AC’97 and SPDIF out. DS12023 Rev 5 59/307 65 Functional overview STM32L4R5xx, STM32L4R7xx and STM32L4R9xx • Up to 16 slots available with configurable size and with the possibility to select which ones are active in the audio frame. • Number of bits by frame may be configurable. • Frame synchronization active level configurable (offset, bit length, level). • First active bit position in the slot is configurable. • LSB first or MSB first for data transfer. • Mute mode. • Stereo/Mono audio frame capability. • Communication clock strobing edge configurable (SCK). • Error flags with associated interrupts if enabled respectively. • • – Overrun and underrun detection. – Anticipated frame synchronization signal detection in slave mode. – Late frame synchronization signal detection in slave mode. – Codec not ready for the AC’97 mode in reception. Interruption sources when enabled: – Errors. – FIFO requests. DMA interface with two dedicated channels to handle access to the dedicated integrated FIFO of each SAI audio sub-block. Table 13. SAI implementation SAI features(1) SAI1 SAI2 I2S, LSB or MSB-justified, PCM/DSP, TDM, AC’97 X X Mute mode X X Stereo/Mono audio frame capability. X X 16 slots X X Data size configurable: 8-, 10-, 16-, 20-, 24-, 32-bit X X X (8 Word) X (8 Word) SPDIF X X PDM X - FIFO size 1. X: supported 3.37 Controller area network (CAN) The CAN is compliant with the 2.0A and B (active) specifications with a bit rate of up to 1 Mbit/s. They can receive and transmit standard frames with 11-bit identifiers as well as extended frames with 29-bit identifiers. The CAN has three transmit mailboxes, two receive FIFOS with three stages and 28 shared scalable filter banks (all of them can be used even if one CAN is used). 256 bytes of SRAM are allocated. 60/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Functional overview The CAN peripheral supports: • CAN protocol version 2.0 A, B Active • Bit rates of up to 1 Mbit/s • Transmission • • • 3.38 – Three transmit mailboxes – Configurable transmit priority Reception – Two receive FIFOs with three stages – Scalable filter banks: 28 filter banks – Identifier list feature – Configurable FIFO overrun Time-triggered communication option – Disable automatic retransmission mode – 16-bit free running timer – Time Stamp sent in last two data bytes Management – Maskable interrupts – Software-efficient mailbox mapping at a unique address space Secure digital input/output and MultiMediaCards Interface (SDMMC) The SD/SDIO, MultiMediaCard (MMC) host interface (SDMMC) provides an interface between the AHB bus and SD memory cards, SDIO cards and MMC devices. The SDMMC features include the following: • Full compliance with MultiMediaCard System Specification Version 4.51. Card support for three different databus modes: 1-bit (default), 4-bit and 8-bit • Full compatibility with previous versions of MultiMediaCards (backward compatibility) • Full compliance with SD Memory Card Specifications Version 4.1. (SDR104 SDMMC_CK speed limited to maximum allowed IO speed, SPI mode and UHS-II mode not supported) • Full compliance with SDIO Card Specification Version 4.0: card support for two different databus modes: 1-bit (default) and 4-bit. (SDR104 SDMMC_CK speed limited to maximum allowed IO speed, SPI mode and UHS-II mode not supported) • Data transfer up to 104 Mbyte/s for the 8-bit mode (depending maximum allowed IO speed) • Data and command output enable signals to control external bidirectional drivers. DS12023 Rev 5 61/307 65 Functional overview 3.39 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Universal serial bus on-the-go full-speed (OTG_FS) The devices embed an USB OTG full-speed device/host/OTG peripheral with integrated transceivers. The USB OTG FS peripheral is compliant with the USB 2.0 specification and with the OTG 2.0 specification. It has software-configurable endpoint setting and supports suspend/resume. The USB OTG controller requires a dedicated 48 MHz clock that can be provided by the internal multispeed oscillator (MSI) automatically trimmed by 32.768 kHz external oscillator (LSE).This allows to use the USB device without external high speed crystal (HSE). The major features are: • Combined Rx and Tx FIFO size of 1.25 Kbytes with dynamic FIFO sizing • Supports the session request protocol (SRP) and host negotiation protocol (HNP) • One bidirectional control endpoint + 5 IN endpoints + 5 OUT endpoints • Eight host channels with periodic OUT support • HNP/SNP/IP inside (no need for any external resistor) • Software configurable to OTG 1.3 and OTG 2.0 modes of operation • OTG 2.0 Supports ADP (Attach detection Protocol) • USB 2.0 LPM (Link Power Management) support • Battery charging specification revision 1.2 support • Internal FS OTG PHY support For OTG/Host modes, a power switch is needed in case bus-powered devices are connected. The synchronization for this oscillator can also be taken from the USB data stream itself (SOF signalization) which allows crystal less operation. 3.40 Clock recovery system (CRS) The devices embed a special block which allows automatic trimming of the internal 48 MHz oscillator to guarantee its optimal accuracy over the whole device operational range. This automatic trimming is based on the external synchronization signal, which could be either derived from USB SOF signalization, from LSE oscillator, from an external signal on CRS_SYNC pin or generated by user software. For faster lock-in during startup it is also possible to combine automatic trimming with manual trimming action. 3.41 Flexible static memory controller (FSMC) The flexible static memory controller (FSMC) includes two memory controllers: • The NOR/PSRAM memory controller • The NAND/memory controller This memory controller is also named flexible memory controller (FMC). 62/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Functional overview The main features of the FMC controller are the following: • Interface with static-memory mapped devices including: – Static random access memory (SRAM) – NOR Flash memory/OneNAND Flash memory – PSRAM (four memory banks) – NAND Flash memory with ECC hardware to check up to 8 Kbytes of data – Ferroelectric RAM (FRAM) • 8-,16- bit data bus width • Independent chip select control for each memory bank • Independent configuration for each memory bank • Write FIFO • The Maximum FMC_CLK frequency for synchronous accesses is HCLK/2. LCD parallel interface The FMC can be configured to interface seamlessly with most graphic LCD controllers. It supports the Intel 8080 and Motorola 6800 modes, and is flexible enough to adapt to specific LCD interfaces. This LCD parallel interface capability makes it easy to build cost effective graphic applications using LCD modules with embedded controllers or highperformance solutions using external controllers with dedicated acceleration. 3.42 OctoSPI interface (OctoSPI) The OctoSPI is a specialized communication interface targetting single, dual, quad or octal SPI memories. It can operate in any of the three following modes: • Indirect mode: all the operations are performed using the OctoSPI registers • Status polling mode: the external memory status register is periodically read and an interrupt can be generated in case of flag setting • Memory-mapped mode: the external memory is memory mapped and is seen by the system as if it were an internal memory supporting read and write operation The OctoSPI supports two frame formats: • Classical frame format with command, address, alternate byte, dummy cycles and data phase over 1, 2, 4 or 8 data pins • HyperBusTM frame format The OctoSPI offers the following features: • Three functional modes: indirect, status-polling, and memory-mapped • Read and write support in memory-mapped mode • Supports for single, dual, quad and octal communication • Dual-quad mode, where 8 bits can be sent/received simultaneously by accessing two quad memories in parallel. • SDR and DTR support • Data strobe support • Fully programmable opcode for both indirect and memory mapped mode • Fully programmable frame format for both indirect and memory mapped mode DS12023 Rev 5 63/307 65 Functional overview • • 3.43 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Each of the five following phases can be configured independently (enable, length, single/dual/quad communication) – Instruction phase – Address phase – Alternate bytes phase – Dummy cycles phase – Data phase HyperBusTM support • Integrated FIFO for reception and transmission • 8, 16, and 32-bit data accesses are allowed • DMA channel for indirect mode operations • Timeout management • Interrupt generation on FIFO threshold, timeout, status match, operation complete, and access error OctoSPI IO manager (OctoSPIIOM) The OctoSPI IO Manager is a low level interface allowing: • Efficient OctoSPI pin assignment with a full IO Matrix (before alternate function map) • Multiplexing single/dual/quad/octal SPI interface over the same bus The OctoSPI IO Manager has the following features: • Support up to two single/dual/quad/octal SPI Interface • Support up to eight ports for pin assignment • Fully programmable IO matrix for pin assignment by function (data/control/clock) • Muxer for Single/Dual/Quad/Octal SPI interface multiplexing over the same bus 3.44 Development support 3.44.1 Serial wire JTAG debug port (SWJ-DP) The Arm® SWJ-DP interface is embedded, and is a combined JTAG and serial wire debug port that enables either a serial wire debug or a JTAG probe to be connected to the target. Debug is performed using two pins only instead of five required by the JTAG (JTAG pins could be re-used as GPIO with alternate function): the JTAG TMS and TCK pins are shared with SWDIO and SWCLK, respectively, and a specific sequence on the TMS pin is used to switch between JTAG-DP and SW-DP. 64/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 3.44.2 Functional overview Embedded Trace Macrocell™ The Arm® Embedded Trace Macrocell provides a greater visibility of the instruction and data flow inside the CPU core by streaming compressed data at a very high rate from the STM32L4Rxxx devices through a small number of ETM pins to an external hardware trace port analyzer (TPA) device. Real-time instruction and data flow activity be recorded and then formatted for display on the host computer that runs the debugger software. TPA hardware is commercially available from common development tool vendors. The Embedded Trace Macrocell operates with third party debugger software tools. DS12023 Rev 5 65/307 65 Pinouts and pin description 4 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Pinouts and pin description Figure 9. STM32L4R5xx and STM32L4R7xx UFBGA169 ballout(1) 1 2 3 4 5 6 7 8 9 10 11 12 13 A PI10 PH2 VDD PE0 PB4 PB3 VSS VDD PA15 PA14 PA13 PI0 PH14 B PI9 PI7 VSS PE1 PB5 VDDIO2 PG9 PD0 PI6 PI2 PI1 PH15 PH12 C VDD VSS PI11 PB8 PB6 PG15 PD4 PD1 PH13 PI3 PI8 VSS VDD D PE4 PE3 PE2 PB9 PB7 PG10 PD5 PD2 PC10 PI4 PH9 PH7 PA12 E PC13 VBAT PE6 PE5 PH3-BOOT0 PG11 PD6 PD3 PC11 PI5 PH6 VDDUSB PA11 F PC14OSC32_IN VSS PF2 PF1 PF0 PG12 PD7 PC12 PA10 PA9 PC6 VDDIO2 VSS G PC15OSC32_OUT VDD PF3 PF4 PF5 PG14 PG13 PA8 PC9 PC8 PG6 PC7 VDD H PH0-OSC_IN VSS NRST PF10 PC4 PG1 PE10 PB11 PG8 PG7 PD15 VSS VDD J PH1OSC_OUT PC0 PC1 PC2 PC5 PG0 PE9 PE15 PG5 PG4 PG3 PG2 PD10 K PC3 VSSA/VREF- PA0 PA5 PB0 PF15 PE8 PE14 PH4 PD14 PD12 PD11 PD13 L VREF+ VDDA PA4 PA7 PB1 PF14 PE7 PE13 PH5 PD9 PD8 VDD VSS M OPAMP1_VI NM PA3 VSS PA6 PF11 PF13 VSS PE12 PH10 PH11 VSS PB15 PB14 N PA2 PA1 VDD OPAMP2_VI NM PB2 PF12 VDD PE11 PB10 PH8 VDD PB12 PB13 MSv38036V4 1. The above figure shows the package top view. Figure 10. STM32L4R9xx UFBGA169 ballout(1) 1 2 3 4 5 6 7 8 9 10 11 12 13 A PI10 PH2 VDD PE0 PB4 PB3 VSS VDD PA15 PA14 PA13 PI0 PH14 B PI9 PI7 VSS PE1 PB5 VDDIO2 PG9 PD0 PI6 PI2 PI1 PH15 PH12 C VDD VSS PI11 PB8 PB6 PG15 PD4 PD1 PH13 PI3 PH9 VSS VDD D PE4 PE3 PE2 PB9 PB7 PG10 PD5 PD2 PC10 PI4 PA10 VDDUSB PA12 E PC13 VBAT PE6 PE5 PH3-BOOT0 PG11 PD6 PD3 PC11 PI5 PA8 PA9 PA11 F PC14OSC32_IN VSS PF2 PF1 PF0 PG12 PD7 PC12 PC8 PG8 PC6 VDDIO2 VSS G PC15OSC32_OUT VDD PF3 PF4 PF5 PG13 PG4 PG3 PG5 PG7 PC7 PG6 PC9 H PH0-OSC_IN VSS NRST PF10 PG1 PE10 PB11 PD13 PG2 PD15 PD14 VSS VDD J PH1OSC_OUT PC0 PC1 PC2 PG0 PE9 PE15 PD12 PD11 PD10 DSI_D1P DSI_D1N VSSDSI K PC3 VSSA/VREF- PA0 PC4 PF15 PE8 PE14 PH4 PD9 PD8 DSI_CKP DSI_CKN VSSDSI L VREF+ VDDA PA5 PA6 PB1 PF14 PE7 PE13 PH5 PB15 DSI_D0P DSI_D0N VCAPDSI M PA1 PA3 VSS PA7 PF11 PF13 VSS PE12 PH10 PH11 VSS PB14 VDDDSI N PA2 PA4 VDD PB0 PB2 PF12 VDD PE11 PB10 PH8 VDD PB12 PB13 MSv45223V2 1. The above figure shows the package top view. 66/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Pinouts and pin description Figure 11. STM32L4R5xxxP UFBGA169 external SMPS ballout(1) 1 2 3 4 5 6 7 8 9 10 11 12 13 A PI10 PH2 VDD PE0 PB4 PB3 VSS VDD PA15 PA14 PA13 PI0 PH14 B PI9 PI7 VSS PE1 PB5 VDDIO2 PG9 PD0 PI6 PI2 PI1 PH15 PH12 C VDD VSS PI11 PB8 PB6 VDD12 PD4 PD1 PH13 PI3 PI8 VSS VDD D PE4 PE3 PE2 PB9 PB7 PG10 PD5 PD2 PC10 PI4 PH9 PH7 PA12 E PC13 VBAT PE6 PE5 PH3-BOOT0 PG11 PD6 PD3 PC11 PI5 PH6 VDDUSB PA11 F PC14OSC32_IN VSS PF2 PF1 PF0 PG12 PD7 PC12 PA10 PA9 PC6 VDDIO2 VSS G PC15OSC32_OUT VDD PF3 PF4 PF5 PG14 PG13 PA8 PC9 PC8 PG6 PC7 VDD H PH0-OSC_IN VSS NRST PF10 PC4 PG1 PE10 PB11 PG8 PG7 PD15 VSS VDD J PH1OSC_OUT PC0 PC1 PC2 PC5 PG0 PE9 PE15 PG5 PG4 PG3 PG2 PD10 K PC3 VSSA/VREF- PA0 PA5 PB0 PF15 PE8 PE14 PH4 PD14 PD12 PD11 PD13 L VREF+ VDDA PA4 PA7 PB1 PF14 PE7 PE13 PH5 PD9 PD8 VDD VSS M OPAMP1_ VNM PA3 VSS PA6 PF11 PF13 VSS PE12 PH10 VDD12 VSS PB15 PB14 VDD OPAMP2_ VNM PB2 PF12 VDD PE11 PB10 PH8 VDD PB12 PB13 N PA2 PA1 MSv49309V2 1. The above figure shows the package top view. DS12023 Rev 5 67/307 135 Pinouts and pin description STM32L4R5xx, STM32L4R7xx and STM32L4R9xx VDD VSS PE1 PE0 PB9 PB8 PH3-BOOT0 PB7 PB6 PB5 PB4 PB3 PG15 VDDIO2 VSS PG14 PG13 PG12 PG11 PG10 PG9 PD7 PD6 VDD VSS PD5 PD4 PD3 PD2 PD1 PD0 PC12 PC11 PC10 PA15 PA14 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 Figure 12. STM32L4R5xx and STM32L4R7xx LQFP144 pinout(1) PE2 PE3 PE4 PE5 1 2 3 4 108 VDD 107 VSS 106 VDDUSB 105 PA13 PE6 5 104 PA12 VBAT 6 103 PA11 PC13 7 PC14-OSC32_IN 8 102 101 PA10 PA9 PC15-OSC32_OUT 9 100 PA8 PF0 10 99 PC9 PF1 11 PF2 12 98 97 PC8 PC7 PF3 13 96 PC6 PF4 14 95 VDDIO2 PF5 15 94 VSS VSS 16 93 PG8 VDD 17 92 PG7 PF6 18 91 PG6 PF7 19 90 PG5 PF8 20 89 PG4 PF9 21 88 PG3 PF10 22 87 PG2 PH0-OSC_IN 23 86 PD15 PH1-OSC_OUT 24 85 PD14 NRST 25 84 VDD PC0 26 83 VSS PC1 27 82 PD13 PC2 28 81 PD12 PC3 29 80 PD11 VSSA 30 79 PD10 VREF- 31 78 PD9 VREF+ 32 77 PD8 VDDA 33 76 PB15 PA0 34 75 PB14 PA1 35 74 PB13 PA2 36 73 PB12 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 PA3 VSS VDD PA4 PA5 PA6 PA7 PC4 PC5 PB0 PB1 PB2 PF11 PF12 VSS VDD PF13 PF14 PF15 PG0 PG1 PE7 PE8 PE9 VSS VDD PE10 PE11 PE12 PE13 PE14 PE15 PB10 PB11 VSS VDD LQFP144 MSv45224V1 1. The above figure shows the package top view. 68/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Pinouts and pin description VDD VSS PE1 PE0 PB9 PB8 PH3-BOOT0 PB7 PB6 PB5 PB4 PB3 PG15 VDDIO2 VSS PG12 PG11 PG10 PG9 PD7 PD6 VDD VSS PD5 PD4 PD3 PD2 PD1 PD0 PC12 PC11 PC10 PA15 PA14 VDD VSS 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 Figure 13. STM32L4R9xx LQFP144 pinout(1) PE2 PE3 PE4 PE5 1 2 3 4 108 VDDUSB 107 PA13 106 PA12 105 PA11 PA10 PE6 5 104 VBAT 6 103 PA9 PC13 7 PC14-OSC32_IN 8 102 101 PA8 PC9 PC15-OSC32_OUT 9 100 PC8 PF0 10 99 PC7 PF1 11 PF2 12 98 97 PC6 PG8 PF3 13 96 PG7 PF4 14 95 PG6 PF5 15 94 PG5 VSS 16 93 PG4 VDD 17 92 PG3 PF6 18 91 PG2 PF7 19 90 PD15 PF10 20 89 PD14 PH0-OSC_IN 21 88 VDD PH1-OSC_OUT 22 87 VSS NRST 23 86 PD13 PC0 24 85 PD12 PC1 25 84 PD11 PC2 26 83 PD10 PC3 27 82 PD9 VSSA/VREF- 28 81 PD8 VREF+ 29 80 VDD12DSI VDDA 30 79 DSI_CKN PA0 31 78 DSI_CKP PA1 32 77 VSSDSI PA2 33 76 DSI_D0N PA3 34 75 DSI_D0P VSS 35 74 VCAPDSI VDD 36 73 VDDDSI 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 PA4 PA5 PA6 PA7 PC4 PB0 PB1 PB2 PF11 PF12 VSS VDD PF13 PF14 PF15 PG0 PG1 PE7 PE8 PE9 VSS VDD PE10 PE11 PE12 PE13 PE14 PE15 PB10 PB11 VSS VDD PB12 PB13 PB14 PB15 LQFP144 MSv45225V1 1. The above figure shows the package top view. DS12023 Rev 5 69/307 135 Pinouts and pin description STM32L4R5xx, STM32L4R7xx and STM32L4R9xx VDD VSS VDD12 PE1 PE0 PB9 PB8 PH3-BOOT0 PB7 PB6 PB5 PB4 PB3 VDDIO2 VSS PG14 PG13 PG12 PG11 PG10 PG9 PD7 PD6 VDD VSS PD5 PD4 PD3 PD2 PD1 PD0 PC12 PC11 PC10 PA15 PA14 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 Figure 14. STM32L4R5ZxxxP external SMPS LQFP144 pinout(1) PE2 PE3 PE4 PE5 1 2 3 4 108 VDD 107 VSS 106 VDDUSB 105 PA13 PE6 5 104 PA12 VBAT 6 103 PA11 PC13 7 PC14-OSC32_IN 8 102 101 PA10 PA9 PC15-OSC32_OUT 9 100 PA8 PF0 10 99 PC9 PF1 11 PF2 12 98 97 PC8 PC7 PF3 13 96 PC6 PF4 14 95 VDDIO2 PF5 15 94 VSS VSS 16 93 PG8 VDD 17 92 PG7 PF6 18 91 PG6 PF7 19 90 PG5 PF8 20 89 PG4 PF9 21 88 PG3 PF10 22 87 PG2 PH0-OSC_IN 23 86 PD15 PH1-OSC_OUT 24 85 PD14 NRST 25 84 VDD PC0 26 83 VSS PC1 27 82 PD13 PC2 28 81 PD12 PC3 29 80 PD11 VSSA 30 79 PD10 VREF- 31 78 PD9 VREF+ 32 77 PD8 VDDA 33 76 PB15 PA0 34 75 PB14 PA1 35 74 PB13 PA2 36 73 PB12 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 PA3 VSS VDD PA4 PA5 PA6 PA7 PC4 PC5 PB0 PB1 PB2 PF11 PF12 VSS VDD PF13 PF14 PF15 PG0 PG1 PE7 PE8 PE9 VSS VDD PE10 PE11 PE12 PE13 PE14 PE15 PB10 VDD12 VSS VDD LQFP144 MSv42236V1 1. The above figure shows the package top view. 70/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Pinouts and pin description Figure 15. STM32L4R9xx UFBGA144 ballout(1) 1 2 3 4 5 6 7 8 9 10 11 12 A VSS PE0 PB9 PH3-BOOT0 PB4 VDDIO2 VSS PD3 PC11 PA14 VDD VSS B VBAT VDD PE3 PB8 PB5 PB3 PD6 PD1 PA15 PA13 PA12 PA11 C VSS PE5 PE2 PE1 PB7 PG13 PD4 PD0 PC10 PA10 VDDUSB PC9 D PC14OSC32_IN PC15OSC32_OUT PE4 PE6 PB6 PG12 PD5 PD2 PC12 PA9 PA8 PC6 E PF2 PF1 PF0 PC13 PF3 PG10 PD7 PG8 PC7 PC8 PG7 VDDIO2 F PF8 PF6 PF4 PF5 PF7 PG9 PG3 PG5 PG6 PG4 VSS PG2 G VDD VSS PF10 PF9 PF12 PE7 PD15 PD14 PD12 PD13 PD11 VDD H PH0-OSC_IN PH1OSC_OUT PC0 PC2 PB2 PF15 PE11 PD10 PD9 PD8 DSI_D1P DSI_D1N J NRST PC1 PC3 PA6 PB1 PF13 PE9 PE13 PB15 VSSDSI DSI_CKP DSI_CKN K VSSA/VREF- VREF+ PA0 PA4 PC5 PF11 PE8 PE15 PB11 PB14 DSI_D0P DSI_D0N L VDDA PA1 PA2 PA5 PC4 VSS PG0 PE10 PB10 PB12 VDD VCAPDSI M VSS VDD PA3 PA7 PB0 VDD PF14 PG1 PE12 PE14 PB13 VSS MSv38491V4 1. The above figure shows the package top view. Figure 16. STM32L4R9xx WLCSP144 ballout(1) 1 2 3 4 5 6 7 8 9 10 11 12 A VSS PA14 PA15 PD0 PD5 VDD PG12 VDDIO2 PB7 PE0 PE1 VSS B VDD VDDUSB PA13 PC12 PD2 VSS PG10 PB3 PH3-BOOT0 PB9 PE2 VDD C PA11 PA12 PC10 PC11 PD1 PD4 PG9 PB4 PB6 PB8 PE3 PE4 D PC8 PC9 PA8 PA9 PA10 PD3 PD7 PG13 PE5 PE6 PC13 VSS E PG7 PG8 VDDIO2 PC6 PG6 PC7 PD6 PB5 PF0 VBAT PC14OSC32_IN PC15OSC32_OUT F PD15 PG2 PD14 PD12 PG3 PG4 PG5 PF1 PF5 PF4 PF3 PF2 G VSS VDD PD13 PD11 PD10 PE9 PF14 PA5 PF7 PF6 VSS VDD H PD9 PD8 PB14 PB13 PE14 PE8 PB1 PA2 PC2 PF10 NRST PH0-OSC_IN J DSI_D1N DSI_D1P PB15 PB12 PE13 PF15 PB2 PA6 PA0 PC3 PC0 PH1OSC_OUT K DSI_CKP DSI_CKN VSSDSI PE15 PE10 PG0 PF11 PC5 PA4 PA1 VSSA/VREF- PC1 L DSI_D0P DSI_D0N VCAPDSI PB10 PE11 PG1 VDD PF12 PC4 PA3 VREF+ VDDA M VDD VDD VSS PB11 PE12 PE7 PF13 VSS PB0 PA7 VDD VSS MSv42219V2 1. The above figure shows the package top view DS12023 Rev 5 71/307 135 Pinouts and pin description STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Figure 17. STM32L4R9ZxxxP WLCSP144 external SMPS ballout(1) 1 2 3 4 5 6 7 8 9 10 11 12 A VSS PA14 PA15 PD0 PD5 VDD PG12 VDDIO2 PB7 PE0 VDD12 VSS_3 B VDD VDDBUS PA13 PC12 PD2 VSS PG10 PB3 PH3-BOOT0 PB9 PE2 VDD_3 C PA11 PA12 PC10 PC11 PD1 PD4 PG9 PB4 PB6 PB8 PE3 PE4 D PC8 PC9 PA8 PA9 PA10 PD3 PD7 PE1 PE5 PE6 PC13 VSS E PG7 PG8 VDDIO2 PC6 PG6 PC7 PD6 PB5 PF0 VBAT PC14OSC32_IN PC15OSC32_OUT F PD15 PG2 PD14 PD12 PG3 PG4 PG5 PF1 PF5 PF4 PF3 PF2 G VSS VDD PD13 PD11 PD10 PE9 PF14 PA5 PF7 PF6 VSS VDD H PD9 PD8 PB14 PB13 PE14 PE8 PB1 PA2 PC2 PF10 NRST PH0-OSC_IN J DSI_D1N DSI_D1P PB15 PB12 PE13 PF15 PB2 PA6 PA0 PC3 PC0 PH1OSC_OUT K DSI_CKP DSI_CKN VSSDSI PE15 PE10 PG0 PF11 PC5 PA4 PA1 VSSA/VREF- PC1 L DSI_D0P DSI_D0N VCAPDSI PB10 PE11 PG1 VDD PF12 PC4 PA3 VREF+ VDDA M VDD VDD VDD12 VSS PE12 PE7 PF13 VSS PB0 PA7 VDD VSS MSv49307V1 1. The above figure shows the package top view. Figure 18. STM32L4R5xx WLCSP144 ballout(1) 1 2 3 4 5 6 7 8 9 10 11 12 A VSS PA14 PA15 PD0 PD5 VDD PG12 VDDIO2 PB7 PE0 PE1 VSS B VDD VDDUSB PA13 PC12 PD2 VSS PG10 PB3 PH3-BOOT0 PB9 PE2 VDD C PA11 PA12 PC10 PC11 PD1 PD4 PG9 PB4 PB6 PB8 PE3 PE4 D PC8 PC9 PA8 PA9 PA10 PD3 PD7 PG13 PE5 PE6 PC13 VSS E PG7 PG8 VDDIO2 PC6 PG6 PC7 PD6 PB5 PF0 VBAT PC14OSC32_IN PC15OSC32_OUT F PD15 PG2 PD14 PD12 PG3 PG4 PG5 PF1 PF5 PF4 PF3 PF2 G VSS VDD PD13 PD11 PD10 PE9 PF14 PA5 PF7 PF6 VSS VDD H PD9 PD8 PB14 PB13 PE14 PE8 PB1 PA2 PC2 PF10 NRST PH0-OSC_IN J NC NC PB15 PB12 PE13 PF15 PB2 PA6 PA0 PC3 PC0 PH1OSC_OUT K NC NC VSS PE15 PE10 PG0 PF11 PC5 PA4 PA1 VSSA/VREF- PC1 L NC NC NC PB10 PE11 PG1 VDD PF12 PC4 PA3 VREF+ VDDA M VDD VDD VSS PB11 PE12 PE7 PF13 VSS PB0 PA7 VDD VSS MSv43442V1 1. The above figure shows the package top view. NC (not-connected) balls must be left unconnected. 72/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Pinouts and pin description Figure 19. STM32L4R5xx UFBGA132 ballout(1) 1 2 3 4 5 6 7 8 9 10 11 12 A PE3 PE1 PB8 PH3-BOOT0 PD7 PD5 PB4 PB3 PA15 PA14 PA13 PA12 B PE4 PE2 PB9 PB7 PB6 PD6 PD4 PD3 PD1 PC12 PC10 PA11 C PC13 PE5 PE0 VDD PB5 PG14 PG13 PD2 PD0 PC11 VDDUSB PA10 D PC14OSC32_IN PE6 VSS PF2 PF1 PF0 PG12 PG10 PG9 PA9 PA8 PC9 E PC15OSC32_OUT VBAT VSS PF3 PG5 PC8 PC7 PC6 F PH0-OSC_IN VSS PF4 PF5 VSS VSS PG3 PG4 VSS VSS G PH1OSC_OUT VDD PG11 PG6 VDD VDDIO2 PG1 PG2 VDD VDD H PC0 NRST VDD PG7 PG0 PD15 PD14 PD13 J VSSA/VREF- PC1 PC2 PA4 PA7 PG8 PF12 PF14 PF15 PD12 PD11 PD10 K PG15 PC3 PA2 PA5 PC4 PF11 PF13 PD9 PD8 PB15 PB14 PB13 L VREF+ PA0 PA3 PA6 PC5 PB2 PE8 PE10 PE12 PB10 PB11 PB12 M VDDA PA1 OPAMP1_VI NM OPAMP2_VI NM PB0 PB1 PE7 PE9 PE11 PE13 PE14 PE15 MSv38035V5 1. The above figure shows the package top view. Figure 20. STM32L4R5xxxP UFBGA132 external SMPS ballout(1) 1 2 3 4 5 6 7 8 9 10 11 12 A PE3 PE1 PB8 PH3-BOOT0 PD7 PD5 PB4 PB3 PA15 PA14 PA13 PA12 B PE4 PE2 PB9 PB7 PB6 PD6 PD4 PD3 PD1 PC12 PC10 PA11 C PC13 PE5 PE0 VDD_3 PB5 VDD12 PG13 PD2 PD0 PC11 VDDUSB PA10 D PC14OSC32_IN PE6 VSS PF2 PF1 PF0 PG12 PG10 PG9 PA9 PA8 PC9 E PC15OSC32_OUT VBAT VSS PF3 PG5 PC8 PC7 PC6 F PH0-OSC_IN VSS PF4 PF5 VSS VSS PG3 PG4 VSS VSS G PH1OSC_OUT VDD PG11 PG6 VDD VDDIO2 PG1 PG2 VDD VDD H PC0 NRST VDD PG7 PG0 PD15 PD14 PD13 J VSSA/VREF- PC1 PC2 PA4 PA7 PG8 PF12 PF14 PF15 PD12 PD11 PD10 K PG15 PC3 PA2 PA5 PC4 PF11 PF13 PD9 PD8 PB15 PB14 PB13 L VREF+ PA0 PA3 PA6 PC5 PB2 PE8 PE10 PE12 PB10 VDD12 PB12 M VDDA PA1 OPAMP1_ VINM OPAMP2_ VINM PB0 PB1 PE7 PE9 PE11 PE13 PE14 PE15 MSv49308V2 1. The above figure shows the package top view. DS12023 Rev 5 73/307 135 Pinouts and pin description STM32L4R5xx, STM32L4R7xx and STM32L4R9xx VDD VSS PE1 PE0 PB9 PB8 PH3-BOOT0 PB7 PB6 PB5 PB4 PB3 PD7 PD6 PD5 PD4 PD3 PD2 PD1 PD0 PC12 PC11 PC10 PA15 PA14 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 Figure 21. STM32L4R5xx and STM32L4R7xx LQFP100 pinout(1) PE2 1 75 VDD PE3 2 74 VSS PE4 3 73 VDDUSB PE5 4 72 PA13 PE6 5 71 PA12 VBAT 6 70 PA11 PC13 7 69 PA10 PC14-OSC32_IN 8 68 PA9 PC15-OSC32_OUT 9 67 PA8 VSS 10 66 PC9 VDD 11 65 PC8 PH0-OSC_IN 12 64 PC7 PH1-OSC_OUT 13 63 PC6 NRST 14 62 PD15 PC0 15 61 PD14 PC1 16 60 PD13 PC2 17 59 PD12 PC3 18 58 PD11 VSSA 19 57 PD10 VREF- 20 56 PD9 VREF+ 21 55 PD8 VDDA 22 54 PB15 PA0 23 53 PB14 PA1 24 52 PB13 PA2 25 51 PB12 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 PA3 VSS VDD PA4 PA5 PA6 PA7 PC4 PC5 PB0 PB1 PB2 PE7 PE8 PE9 PE10 PE11 PE12 PE13 PE14 PE15 PB10 PB11 VSS VDD LQFP100 MSv38494V1 1. The above figure shows the package top view. 74/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Pinouts and pin description 9'' 966 3% 3% 3+%227 3% 3% 3% 3% 3% 3' 3' 3' 3' 3' 3' 3' 3' 3& 3& 3& 3$ 3$ 9'' 966                          Figure 22. STM32L4R9xx LQFP100 pinout(1) 3(   9''86% 3(   3$ 3(   3$ 3(   3$ 3(   3$ 9%$7   3$ 3&   3$ 3&26&B,1   3& 3&26&B287   3& 966   3& 9''   3& 3+26&B,1   3' 3+26&B287   3' 1567   3' 3&   3' 3&   3' 3&   9'''6, 3&   '6,B&.1 966$95()   '6,B&.3 9''$95()   966'6, 3$   '6,B'1 3$   '6,B'3 3$   9&$3'6, 3$   9'''6, 966   3%                        3$ 3$ 3$ 3$ 3& 3% 3% 3% 3( 3( 3( 3( 3( 3( 3( 3( 3( 3% 3% 966 9'' 3% 3% 3%   9'' /4)3 06Y9 1. The above figure shows the package top view. DS12023 Rev 5 75/307 135 Pinouts and pin description STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 14. Legend/abbreviations used in the pinout table Name Pin name Abbreviation Definition Unless otherwise specified in brackets below the pin name, the pin function during and after reset is the same as the actual pin name S Supply pin I Input only pin Pin type I/O Input / output pin FT 5 V tolerant I/O TT 3.6 V tolerant I/O B Dedicated BOOT0 pin RST Bidirectional reset pin with embedded weak pull-up resistor Option for TT or FT I/Os I/O structure _f (1) I/O, Fm+ capable _l (2) Notes I/O, with LCD function supplied by VLCD _u (3) I/O, with USB function supplied by VDDUSB _a (4) I/O, with Analog switch function supplied by VDDA _s (5) I/O supplied only by VDDIO2 Unless otherwise specified by a note, all I/Os are set as analog inputs during and after reset. Alternate Functions selected through GPIOx_AFR registers functions Pin functions Additional Functions directly selected/enabled through peripheral registers functions 1. The related I/O structures in Table 15 are: FT_f, FT_fa, FT_fl, FT_fla. 2. The related I/O structures in Table 15 are: FT_l, FT_fl, FT_lu. 3. The related I/O structures in Table 15 are: FT_u, FT_lu. 4. The related I/O structures in Table 15 are: FT_a, FT_la, FT_fa, FT_fla, TT_a, TT_la. 5. The related I/O structures in Table 15 are: FT_s, FT_fs. 76/307 DS12023 Rev 5 Table 15. STM32L4Rxxx pin definitions Pin number WLCSP144 LQFP100 LQFP144 UFBGA144 WLCSP144_SMPS WLCSP144 UFBGA169 Pin name (function after reset) Pin type I/O structure Notes Alternate functions Additional functions - - - - M11 M11 - - - - - M11 VSS S - - - - - - - - - - C1 C1 - - - - - C1 VDD S - - - - - - - - - - C3 C3 - - - - - C3 PI11 I/O FT - OCTOSPIM_P2_IO0, EVENTOUT - - TRACECK, TIM3_ETR, SAI1_CK1, TSC_G7_IO1, LCD_R0, FMC_A23, SAI1_MCLK_A, EVENTOUT - - TRACED0, TIM3_CH1, OCTOSPIM_P1_DQS, TSC_G7_IO2, LCD_R1, FMC_A19, SAI1_SD_B, EVENTOUT - 1 2 B2 A1 B2 A1 1 2 1 2 B11 C11 D3 D2 UFBGA169 LQFP144 - UFBGA169_SMPS LQFP144_SMPS - D3 D2 1 2 1 2 C3 B3 B11 B11 C11 C11 D3 D2 PE2 PE3 I/O I/O FT_l FT_l 77/307 Pinouts and pin description BGA132 DS12023 Rev 5 UBGA132_SMPS STM32L4R9xxx LQFP100 STM32L4R5xxx, STM32L4R7xxx STM32L4R5xx, STM32L4R7xx and STM32L4R9xx XXX 3 4 D9 D1 E4 D1 E4 3 4 3 4 D3 C2 C12 C12 D9 D9 D1 E4 PE4 PE5 I/O I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 C12 FT FT Additional functions 4 LQFP144 LQFP144_SMPS BGA132 C2 3 Alternate functions C2 B1 Notes 4 B1 STM32L4R9xxx - TRACED1, TIM3_CH2, SAI1_D2, DFSDM1_DATIN3, TSC_G7_IO3, DCMI_D4, LCD_B0, FMC_A20, SAI1_FS_A, EVENTOUT - - TRACED2, TIM3_CH3, SAI1_CK2, DFSDM1_CKIN3, TSC_G7_IO4, DCMI_D6, LCD_G0, FMC_A21, SAI1_SCK_A, EVENTOUT - RTC_TAMP3,W KUP3 - 5 D2 D2 5 5 D10 E3 E3 5 5 D4 D10 D10 E3 PE6 I/O FT - TRACED3, TIM3_CH4, SAI1_D1, DCMI_D7, LCD_G1, FMC_A22, SAI1_SD_A, EVENTOUT 6 E2 E2 6 6 E10 E2 E2 6 6 B1 E10 E10 E2 VBAT S - - - STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 3 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number Pinouts and pin description 78/307 Table 15. STM32L4Rxxx pin definitions (continued) Pin number LQFP144 UFBGA144 WLCSP144_SMPS E1 7 7 E4 D11 D11 E1 PC13 I/O FT (1) Additional functions LQFP100 E1 Alternate functions UFBGA169 D11 Notes UFBGA169_SMPS 7 I/O structure WLCSP144 7 Pin type LQFP144 C1 Pin name (function after reset) LQFP144_SMPS C1 UFBGA169 BGA132 7 WLCSP144 UBGA132_SMPS STM32L4R9xxx LQFP100 STM32L4R5xxx, STM32L4R7xxx EVENTOUT RTC_TAMP1/RT C_TS/RTC_OUT ,WKUP2 EVENTOUT OSC32_IN (2) EVENTOUT OSC32_OUT - DS12023 Rev 5 8 D1 D1 8 8 E11 F1 F1 8 8 D1 E11 E11 F1 PC14OSC32 I/O _IN (PC14) FT PC15OSC32 I/O _OUT (PC15) FT (2) (1) (2) (1) E1 E1 9 9 E12 G1 G1 9 9 D2 E12 E12 G1 - D6 D6 10 10 E9 F5 F5 - 10 E3 E9 E9 F5 PF0 I/O FT_f - I2C2_SDA, OCTOSPIM_P2_IO0, FMC_A0, EVENTOUT - - D5 D5 11 11 F8 F4 F4 - 11 E2 F8 F8 F4 PF1 I/O FT_f - I2C2_SCL, OCTOSPIM_P2_IO1, FMC_A1, EVENTOUT - - D4 D4 12 12 F12 F3 F3 - 12 E1 F12 F12 F3 PF2 I/O FT - I2C2_SMBA, OCTOSPIM_P2_IO2, FMC_A2, EVENTOUT - - E4 E4 13 13 F11 G3 G3 - 13 E5 F11 F11 G3 PF3 I/O FT - OCTOSPIM_P2_IO3, FMC_A3, EVENTOUT - 79/307 Pinouts and pin description 9 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) Pin number BGA132 LQFP144_SMPS LQFP144 WLCSP144 UFBGA169_SMPS UFBGA169 LQFP100 LQFP144 UFBGA144 WLCSP144_SMPS WLCSP144 UFBGA169 Pin name (function after reset) Pin type I/O structure Notes Alternate functions Additional functions - F3 F3 14 14 F10 G4 G4 - 14 F3 F10 F10 G4 PF4 I/O FT - OCTOSPIM_P2_CLK, FMC_A4, EVENTOUT - - F4 F4 15 15 F9 G5 G5 - 15 F4 F9 F9 G5 PF5 I/O FT - FMC_A5, EVENTOUT - 10 F2 F2 16 16 G11 F2 F2 10 16 L6 G11 G11 F2 VSS S - - - - 11 G2 G2 17 17 G12 G2 G2 11 17 G1 G12 G12 G2 VDD S - - - - - TIM5_ETR, TIM5_CH1, OCTOSPIM_P1_IO3, SAI1_SD_B, EVENTOUT - - TIM5_CH2, OCTOSPIM_P1_IO2, SAI1_MCLK_B, EVENTOUT - (3) TIM5_CH3, OCTOSPIM_P1_IO0, SAI1_SCK_B, EVENTOUT - (3) TIM5_CH4, OCTOSPIM_P1_IO1, SAI1_FS_B, TIM15_CH1, EVENTOUT - - - - - - - - - - - - - 18 19 20 21 18 19 20 21 G10 G9 NC NC - - - - - - - - - - - - 18 19 - - F2 F5 F1 G4 G10 G10 G9 NC NC G9 NC NC - - - - PF6 PF7 PF8 PF9 I/O I/O I/O I/O FT FT FT FT - STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 UBGA132_SMPS STM32L4R9xxx LQFP100 STM32L4R5xxx, STM32L4R7xxx Pinouts and pin description 80/307 Table 15. STM32L4Rxxx pin definitions (continued) Alternate functions Additional functions - H1 PH0OSC_I I/O N (PH0) FT - EVENTOUT OSC_IN PH1OSC_O I/O UT (PH1) FT - EVENTOUT OSC_OUT RST - - - - LPTIM1_IN1, I2C3_SCL, DFSDM1_DATIN4, LPUART1_RX, SAI2_FS_A, LPTIM2_IN1, EVENTOUT ADC1_IN1 - 22 22 H10 H4 H4 - 20 G3 H10 H10 H4 12 F1 F1 23 23 H12 H1 H1 12 21 H1 H12 H12 13 G1 G1 24 24 J12 J1 J1 13 22 H2 J12 J12 J1 14 H2 H2 25 25 H11 H3 H3 14 23 J1 H11 H11 H3 15 H1 H1 26 26 J11 J2 J2 15 24 H3 J11 J11 J2 PF10 NRST PC0 I-O I/O I/O structure - - Pin type FT - FT_fla 81/307 Pinouts and pin description Notes DS12023 Rev 5 I/O OCTOSPIM_P1_CLK, DFSDM1_CKOUT, DCMI_D11, SAI1_D3, TIM15_CH2, EVENTOUT UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 STM32L4R9xxx UFBGA169 UFBGA169_SMPS WLCSP144 LQFP144 LQFP144_SMPS BGA132 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) 27 28 H9 J3 J4 J3 J4 16 17 25 26 J2 H4 K12 K12 H9 H9 J3 J4 PC1 PC2 I/O I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 K12 FT_fla FT_la Additional functions 28 LQFP144 LQFP144_SMPS BGA132 J3 27 Alternate functions J3 J2 Notes 17 J2 STM32L4R9xxx - TRACED0, LPTIM1_OUT, SPI2_MOSI, I2C3_SDA, DFSDM1_CKIN4, LPUART1_TX, OCTOSPIM_P1_IO4, SAI1_SD_A, EVENTOUT ADC1_IN2 - LPTIM1_IN2, SPI2_MISO, DFSDM1_CKOUT, OCTOSPIM_P1_IO5, EVENTOUT ADC1_IN3 ADC1_IN4 18 K2 K2 29 29 J10 K1 K1 18 27 J3 J10 J10 K1 PC3 I/O FT_a - LPTIM1_ETR, SAI1_D1, SPI2_MOSI, OCTOSPIM_P1_IO6, SAI1_SD_A, LPTIM2_ETR, EVENTOUT 19 - - 30 30 - - - - - - - - - VSSA S - - - - 20 - - 31 31 - - - - - - - - - VREF- S - - - - - J1 J1 - - K11 K2 K2 19 28 K1 K11 K11 K2 VSSA/V REF- S - - - - STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 16 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number Pinouts and pin description 82/307 Table 15. STM32L4Rxxx pin definitions (continued) Pin number BGA132 LQFP144_SMPS LQFP144 WLCSP144 UFBGA169_SMPS UFBGA169 LQFP100 LQFP144 UFBGA144 WLCSP144_SMPS WLCSP144 UFBGA169 Pin name (function after reset) Pin type I/O structure Notes Alternate functions Additional functions DS12023 Rev 5 UBGA132_SMPS STM32L4R9xxx LQFP100 STM32L4R5xxx, STM32L4R7xxx 21 L1 L1 32 32 L11 L1 L1 - 29 K2 L11 L11 L1 VREF+ S - - - VREFBUF_OUT 22 M1 M1 33 33 L12 L2 L2 - 30 L1 L12 L12 L2 VDDA S - - - - - - - - - - - - 20 - - - - - VDDA/ VREF+ S - - - - OPAMP1_VINP, ADC1_IN5, RTC_TAMP2,W KUP1 - L2 L2 34 34 J9 K3 K3 21 31 K3 J9 J9 K3 PA0 I/O FT_a - - M3 M3 - - - M1 M1 - - - - - - OPAMP 1_VINM I TT - - 24 M2 M2 35 35 K10 N2 N2 22 32 L2 K10 K10 M1 PA1 I/O FT_la - 83/307 TIM2_CH2, TIM5_CH2, I2C1_SMBA, SPI1_SCK, OPAMP1_VINM, USART2_RTS_DE, ADC1_IN6 UART4_RX, OCTOSPIM_P1_DQS, TIM15_CH1N, EVENTOUT Pinouts and pin description 23 TIM2_CH1, TIM5_CH1, TIM8_ETR, USART2_CTS_NSS, UART4_TX, SAI1_EXTCLK, TIM2_ETR, EVENTOUT STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) N1 N1 23 33 L3 H8 H8 N1 PA2 I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 H8 FT_la Additional functions 36 Alternate functions 36 LQFP144 LQFP144_SMPS BGA132 K3 Notes K3 STM32L4R9xxx - TIM2_CH3, TIM5_CH3, USART2_TX, LPUART1_TX, OCTOSPIM_P1_NCS, SAI2_EXTCLK, TIM15_CH1, EVENTOUT ADC1_IN7, WKUP4/LSCO TIM2_CH4, TIM5_CH4, SAI1_CK1, USART2_RX, OPAMP1_VOUT, LPUART1_RX, ADC1_IN8 OCTOSPIM_P1_CLK, SAI1_MCLK_A, TIM15_CH2, EVENTOUT 26 L3 L3 37 37 L10 M2 M2 24 34 M3 L10 L10 M2 PA3 I/O TT_a - 27 E3 E3 38 38 M12 H2 H2 25 35 G2 M12 M12 H2 VSS S - - - - 28 H3 H3 39 39 M11 N3 N3 26 36 M2 M11 M11 N3 VDD S - - - - STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 25 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number Pinouts and pin description 84/307 Table 15. STM32L4Rxxx pin definitions (continued) 42 41 42 K9 G8 J8 L3 K4 M4 L3 K4 M4 27 28 29 37 38 39 K4 L4 J4 K9 G8 J8 K9 G8 J8 N2 L3 L4 PA4 PA5 PA6 I/O I/O I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 LQFP144 LQFP144_SMPS BGA132 L4 41 40 TT_a TT_a FT_a Additional functions L4 K4 40 - OCTOSPIM_P1_NCS, SPI1_NSS, SPI3_NSS, USART2_CK, DCMI_HSYNC, SAI1_FS_B, LPTIM2_OUT, EVENTOUT ADC1_IN9, DAC1_OUT1 - TIM2_CH1, TIM2_ETR, TIM8_CH1N, SPI1_SCK, LPTIM2_ETR, EVENTOUT ADC1_IN10, DAC1_OUT2 - TIM1_BKIN, TIM3_CH1, TIM8_BKIN, DCMI_PIXCLK, SPI1_MISO, USART3_CTS_NSS, LPUART1_CTS, OCTOSPIM_P1_IO3, TIM16_CH1, EVENTOUT OPAMP2_VINP, ADC1_IN11 85/307 Pinouts and pin description 31 K4 J4 Alternate functions 30 J4 STM32L4R9xxx Notes DS12023 Rev 5 29 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) UFBGA169_SMPS UFBGA169 LQFP100 LQFP144 UFBGA144 WLCSP144_SMPS WLCSP144 UFBGA169 - - N4 N4 - - - - - - J5 J5 43 43 M10 L4 L4 30 40 M4 33 K5 K5 44 44 L9 H5 H5 31 41 L5 L9 34 L5 L5 45 45 K8 J5 J5 - - K5 K8 35 M5 M5 46 46 M9 K5 K5 32 42 M5 I TT - - - M4 PA7 I/O FT_fla - TIM1_CH1N, TIM3_CH2, TIM8_CH1N, I2C3_SCL, SPI1_MOSI, OCTOSPIM_P1_IO2, TIM17_CH1, EVENTOUT L9 K4 PC4 I/O FT_a - USART3_TX, OCTOSPIM_P1_IO7, EVENTOUT COMP1_INM, ADC1_IN13 K8 - PC5 I/O FT_a - SAI1_D3, USART3_RX, EVENTOUT COMP1_INP, ADC1_IN14, WKUP5 - TIM1_CH2N, TIM3_CH3, TIM8_CH2N, SPI1_NSS, USART3_CK, OCTOSPIM_P1_IO1, COMP1_OUT, SAI1_EXTCLK, EVENTOUT OPAMP2_VOUT, ADC1_IN15 M10 M10 M9 OPAMP 2_VINM M9 N4 PB0 I/O TT_la OPAMP2_VINM, ADC1_IN12 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 32 Additional functions WLCSP144 - Alternate functions LQFP144 M4 Notes LQFP144_SMPS M4 I/O structure BGA132 - Pin type UBGA132_SMPS STM32L4R9xxx LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number Pinouts and pin description 86/307 Table 15. STM32L4Rxxx pin definitions (continued) 47 L5 L5 33 43 J5 H7 H7 L5 PB1 I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 H7 FT_a Additional functions 47 LQFP144 LQFP144_SMPS BGA132 M6 Alternate functions M6 STM32L4R9xxx Notes DS12023 Rev 5 36 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number - TIM1_CH3N, TIM3_CH4, TIM8_CH3N, DFSDM1_DATIN0, USART3_RTS_DE, LPUART1_RTS_DE, OCTOSPIM_P1_IO0, LPTIM2_IN1, EVENTOUT COMP1_INM, ADC1_IN16 COMP1_INP L6 L6 48 48 J7 N5 N5 34 44 H5 J7 J7 N5 PB2 I/O FT_a - - K6 K6 49 49 K7 M5 M5 - 45 K6 K7 K7 M5 PF11 I/O FT - LCD_DE, DCMI_D12, DSI_TE, EVENTOUT - - J7 J7 50 50 L8 N6 N6 - 46 G5 L8 L8 N6 PF12 I/O FT - OCTOSPIM_P2_DQS, LCD_B0, FMC_A6, EVENTOUT - - - - 51 51 M8 - - - 47 M1 M8 M8 - VSS S - - - - - - - 52 52 L7 N7 N7 - 48 M6 L7 L7 N7 VDD S - - - - 87/307 Pinouts and pin description 37 RTC_OUT, LPTIM1_OUT, I2C3_SMBA, DFSDM1_CKIN0, OCTOSPIM_P1_DQS, LCD_B1, EVENTOUT STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) - H9 G9 H9 G9 55 56 57 54 55 56 57 M7 G7 J6 K6 L6 M6 L6 K6 J6 H6 M6 L6 K6 J6 H6 - - - - - 49 50 51 52 53 J6 M7 H6 L7 M8 M7 G7 J6 K6 L6 M7 G7 J6 K6 L6 M6 L6 K5 J5 H5 PF13 PF14 PF15 PG0 PG1 I/O I/O I/O I/O I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 LQFP144 LQFP144_SMPS BGA132 J9 54 53 FT FT_f FT_f FT FT Additional functions - J9 J8 53 Alternate functions - J8 K7 - I2C4_SMBA, DFSDM1_DATIN6, LCD_B1, FMC_A7, EVENTOUT - - I2C4_SCL, DFSDM1_CKIN6, TSC_G8_IO1, LCD_G0, FMC_A8, EVENTOUT - - I2C4_SDA, TSC_G8_IO2, LCD_G1, FMC_A9, EVENTOUT - - OCTOSPIM_P2_IO4, TSC_G8_IO3, FMC_A10, EVENTOUT - - OCTOSPIM_P2_IO5, TSC_G8_IO4, FMC_A11, EVENTOUT - STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 - K7 STM32L4R9xxx Notes - UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number Pinouts and pin description 88/307 Table 15. STM32L4Rxxx pin definitions (continued) 59 58 59 M6 H6 L7 K7 L7 K7 35 36 54 55 G6 K7 M6 H6 M6 H6 L7 K6 PE7 PE8 I/O I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 LQFP144 LQFP144_SMPS BGA132 L7 58 FT FT Additional functions L7 M7 Alternate functions DS12023 Rev 5 39 M7 STM32L4R9xxx Notes 38 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number - TIM1_ETR, DFSDM1_DATIN2, LCD_B6, FMC_D4, SAI1_SD_B, EVENTOUT - - TIM1_CH1N, DFSDM1_CKIN2, LCD_B7, FMC_D5, SAI1_SCK_B, EVENTOUT - - M8 M8 60 60 G6 J7 J7 37 56 J7 G6 G6 J6 PE9 I/O FT - - F6 F6 61 61 - M7 M7 - 57 C1 - - M7 VSS S - - - - - G6 G6 62 62 - - - - 58 - - - - VDD S - - - - - TIM1_CH2N, DFSDM1_DATIN4, TSC_G5_IO1, OCTOSPIM_P1_CLK, LCD_G3, FMC_D7, SAI1_MCLK_B, EVENTOUT - 41 L8 L8 63 63 K5 H7 H7 38 59 L8 K5 K5 H6 PE10 I/O FT 89/307 Pinouts and pin description 40 TIM1_CH1, DFSDM1_CKOUT, LCD_G2, FMC_D6, SAI1_FS_B, EVENTOUT STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) 65 66 65 66 L5 M5 J5 N8 M8 L8 N8 M8 L8 39 40 41 60 61 62 H7 M9 J8 L5 M5 J5 L5 M5 J5 N8 M8 L8 PE11 PE12 PE13 I/O I/O I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 LQFP144 64 FT FT FT Additional functions M10 M10 LQFP144_SMPS BGA132 L9 64 Alternate functions 44 L9 M9 - TIM1_CH2, DFSDM1_CKIN4, TSC_G5_IO2, OCTOSPIM_P1_NCS, LCD_G4, FMC_D8, EVENTOUT - - TIM1_CH3N, SPI1_NSS, DFSDM1_DATIN5, TSC_G5_IO3, OCTOSPIM_1_IO0, LCD_G5, FMC_D9, EVENTOUT - - TIM1_CH3, SPI1_SCK, DFSDM1_CKIN5, TSC_G5_IO4, OCTOSPIM_P1_IO1, LCD_G6, FMC_D10, EVENTOUT - STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 43 M9 STM32L4R9xxx Notes 42 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number Pinouts and pin description 90/307 Table 15. STM32L4Rxxx pin definitions (continued) 69 69 K4 L4 K8 J8 N9 K8 J8 N9 42 43 44 63 64 65 M10 K8 L9 H5 K4 L4 H5 K4 L4 K7 J7 N9 PE14 PE15 PB10 I/O I/O I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 LQFP144 LQFP144_SMPS BGA132 L10 68 H5 FT FT FT_fl Additional functions L10 68 67 - TIM1_CH4, TIM1_BKIN2, SPI1_MISO, OCTOSPIM_P1_IO2, LCD_G7, FMC_D11, EVENTOUT - - TIM1_BKIN, SPI1_MOSI, OCTOSPIM_P1_IO3, LCD_R2, FMC_D12, EVENTOUT - - TIM2_CH3, I2C4_SCL, I2C2_SCL, SPI2_SCK, DFSDM1_DATIN7, USART3_TX, LPUART1_RX, TSC_SYNC, OCTOSPIM_P1_CLK, COMP1_OUT, SAI1_SCK_A, EVENTOUT - 91/307 Pinouts and pin description 47 M12 M12 67 Alternate functions DS12023 Rev 5 46 M11 M11 STM32L4R9xxx Notes 45 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) Additional functions FT_fl - - - - - - - - K9 K9 - - - - - K8 PH4 I/O FT_f - I2C2_SCL, OCTOSPIM_P2_DQS, EVENTOUT - - - - - - - L9 L9 - - - - - L9 PH5 I/O FT_f - I2C2_SDA, DCMI_PIXCLK, EVENTOUT - - I2C3_SDA, OCTOSPIM_P2_IO3, DCMI_HSYNC, EVENTOUT - - TIM5_CH1, OCTOSPIM_P2_IO5, DCMI_D1, EVENTOUT - DS12023 Rev 5 - - - - - - - - - - - - N10 N10 M9 M9 - - - - - - - - - - N10 M9 PH8 PH10 I/O I/O I/O structure I/O Pin type PB11 UFBGA169 H7 WLCSP144 M4 WLCSP144_SMPS NC UFBGA144 K9 LQFP144 66 LQFP100 45 UFBGA169 H8 UFBGA169_SMPS H8 WLCSP144 M4 LQFP144 70 LQFP144_SMPS NC BGA132 L11 UBGA132_SMPS NC LQFP100 48 TIM2_CH4, I2C4_SDA, I2C2_SDA, DFSDM1_CKIN7, USART3_RX, LPUART1_TX, OCTOSPIM_P1_NCS, DSI_TE, COMP2_OUT, EVENTOUT FT_f FT STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Alternate functions STM32L4R9xxx Notes STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number Pinouts and pin description 92/307 Table 15. STM32L4Rxxx pin definitions (continued) Additional functions FT - - - - - - - - C2 C2 - - - - - C2 VSS S - - - - - L11 - 70 - - M10 - - - - M3 - - VDD12 S - - - - 49 F12 F12 71 71 M3 A7 A7 46 67 M12 M4 M3 A7 VSS S - - - - 50 G12 G12 72 72 M1 N11 N11 47 68 L11 M1 M1 N11 VDD S - - - - - TIM1_BKIN, I2C2_SMBA, SPI2_NSS, DFSDM1_DATIN1, USART3_CK, LPUART1_RTS_DE, TSC_G1_IO1, SAI2_FS_A, TIM15_BKIN, EVENTOUT - DS12023 Rev 5 51 L12 L12 73 73 J4 N12 N12 48 69 L10 J4 J4 N12 PB12 I/O I/O structure I/O Pin type PH11 UFBGA169 M10 WLCSP144 - WLCSP144_SMPS - UFBGA144 - LQFP144 - LQFP100 - UFBGA169 M10 UFBGA169_SMPS NC WLCSP144 - LQFP144 - LQFP144_SMPS - BGA132 - UBGA132_SMPS - LQFP100 - TIM5_CH2, OCTOSPIM_P2_IO6, DCMI_D2, EVENTOUT FT 93/307 Pinouts and pin description Alternate functions STM32L4R9xxx Notes STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) 75 H3 N13 N13 M13 M13 49 50 70 71 M11 K10 H4 H3 H4 H3 N13 M12 PB13 PB14 I/O I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 H4 FT_fl FT_fl Additional functions 75 LQFP144 LQFP144_SMPS BGA132 K11 74 Alternate functions K11 74 Notes 53 K12 K12 STM32L4R9xxx - TIM1_CH1N, I2C2_SCL, SPI2_SCK, DFSDM1_CKIN1, USART3_CTS_NSS, LPUART1_CTS, TSC_G1_IO2, SAI2_SCK_A, TIM15_CH1N, EVENTOUT - - TIM1_CH2N, TIM8_CH2N, I2C2_SDA, SPI2_MISO, DFSDM1_DATIN2, USART3_RTS_DE, TSC_G1_IO3, SAI2_MCLK_A, TIM15_CH1, EVENTOUT - STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 52 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number Pinouts and pin description 94/307 Table 15. STM32L4Rxxx pin definitions (continued) J3 M12 M12 PB15 I/O FT - - I/O structure L10 Pin type J3 UFBGA169 J3 WLCSP144 J9 WLCSP144_SMPS 72 UFBGA144 51 LQFP144 Additional functions 76 Alternate functions 76 RTC_REFIN, TIM1_CH3N, TIM8_CH3N, SPI2_MOSI, DFSDM1_CKIN2, TSC_G1_IO4, SAI2_SD_A, TIM15_CH2, EVENTOUT LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 LQFP144 LQFP144_SMPS BGA132 K10 K10 STM32L4R9xxx Notes DS12023 Rev 5 54 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number - - - - M2 L12 L12 - - - M2 M2 - VDD S - - - - - - - - - - - - 52 73 - - - M13 VDDDS I S - - - - - - - - - - L13 L13 - - - - - - VSS S - - - - - - - - - - - - 53 74 L12 L3 L3 L13 VCAPD SI S - - - - - - - - - - - - 54 75 K11 L1 L1 L11 DSI_D0 I/O P - (3) - - - - - - - - - - 55 76 K12 L2 L2 L12 DSI_D0 I/O N - (3) - - - - - - - - - - 56 77 - - - - - - - - - - - - - - - 57 78 J11 K1 K1 - (3) - - J13 VSSDSI K11 S DSI_CK I/O P Pinouts and pin description 95/307 - STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) Alternate functions Additional functions DSI_D1 I/O N - (3) - - S - - - - VSS S - - - - - NC - - - - - - - NC - - - - - - - - NC - - - - - - - - - NC - - - - - - - - - - NC - - - - - - - - - - - NC - - - - - - - - - - - NC - - - - - - - - - - - - 58 79 J12 K2 K2 K12 - - - - - - - - 59 80 - - - - - - - - - - - - - - H11 J2 J2 J11 - - - - - - - - - - H12 J1 J1 J12 - - - - - - - - - - J10 K3 K3 K13 VSSDSI - - - - - K3 - - - - - - - - - - - - - L3 - - - - - - - - - - - - L1 - - - - - - - - - - - L2 - - - - - - - - - - K1 - - - - - - - - - K2 - - - - - - - - J2 - - - - - - - J1 - - Pin type - UFBGA169 - WLCSP144 (3) WLCSP144_SMPS - UFBGA144 DSI_D1 I/O P LQFP144 - LQFP100 - UFBGA169 - UFBGA169_SMPS - WLCSP144 VDD12 DSI LQFP144 - LQFP144_SMPS - BGA132 (3) UBGA132_SMPS - LQFP100 DSI_CK I/O N - S STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 Notes STM32L4R9xxx I/O structure STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number Pinouts and pin description 96/307 Table 15. STM32L4Rxxx pin definitions (continued) 78 77 78 H2 H1 J12 J12 79 79 G5 - - - - - - 58 J11 J11 80 80 G4 L11 L10 J13 L10 J13 H13 H13 K12 K12 60 61 81 82 H10 H9 H2 H1 H2 H1 K10 K9 PD8 PD9 I/O I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 L11 FT FT - USART3_TX, DCMI_HSYNC, LCD_R3, FMC_D13, EVENTOUT - - USART3_RX, DCMI_PIXCLK, LCD_R4, FMC_D14, SAI2_MCLK_A, EVENTOUT - - 62 83 H8 G5 G5 J10 PD10 I/O FT - USART3_CK, TSC_G6_IO1, LCD_R5, FMC_D15, SAI2_SCK_A, EVENTOUT - - - - - - VDD S - - - - - I2C4_SMBA, USART3_CTS_NSS, TSC_G6_IO2, LCD_R6, FMC_A16, SAI2_SD_A, LPTIM2_ETR, EVENTOUT - - 84 G11 G4 G4 J9 PD11 I/O FT 97/307 Pinouts and pin description 57 UFBGA169_SMPS WLCSP144 LQFP144 LQFP144_SMPS BGA132 K8 77 Additional functions K8 K9 Alternate functions DS12023 Rev 5 56 K9 STM32L4R9xxx Notes 55 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) 81 K11 K11 - 85 G9 F4 F4 J8 PD12 I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 F4 FT_fl - 60 H12 H12 - 82 82 G3 K13 K13 - 86 G10 G3 G3 H8 PD13 I/O FT_fl - TIM4_CH2, I2C4_SDA, TSC_G6_IO4, FMC_A18, LPTIM2_OUT, EVENTOUT - - - 83 83 G1 H12 H12 - 87 - G1 G1 H12 VSS S - - - - - - - 84 84 G2 G13 G13 - 88 G12 G2 G2 H13 VDD S - - - - 61 H11 H11 85 85 F3 K10 K10 63 89 G8 F3 F3 H11 PD14 I/O FT - TIM4_CH3, LCD_B2, FMC_D0, EVENTOUT - 62 H10 H10 86 86 F1 H11 H11 64 90 G7 F1 F1 H10 PD15 I/O FT - TIM4_CH4, LCD_B3, FMC_D1, EVENTOUT - - G10 G10 87 87 F2 J12 - 91 F12 F2 F2 H9 PG2 I/O FT_s - SPI1_SCK, FMC_A12, SAI2_SCK_B, EVENTOUT - J12 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx - TIM4_CH1, I2C4_SCL, USART3_RTS_DE, TSC_G6_IO3, LCD_R7, FMC_A17, SAI2_FS_A, LPTIM2_IN1, EVENTOUT DS12023 Rev 5 Additional functions 81 LQFP144 LQFP144_SMPS BGA132 J10 Alternate functions J10 STM32L4R9xxx Notes 59 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number Pinouts and pin description 98/307 Table 15. STM32L4Rxxx pin definitions (continued) - G4 H4 G4 H4 90 91 92 89 90 91 92 F5 F6 F7 E5 E1 J11 J10 J9 J11 J10 J9 G11 G11 H10 H10 - - - - - 92 93 94 95 96 F7 F10 F8 F9 E11 F5 F6 F7 E5 E1 F5 F6 F7 E5 E1 G8 G7 G9 G12 G10 PG3 PG4 PG5 PG6 PG7 I/O I/O I/O I/O I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 LQFP144 LQFP144_SMPS BGA132 E9 89 88 FT_s FT_s FT_s FT_s FT_fs 99/307 - SPI1_MISO, FMC_A13, SAI2_FS_B, EVENTOUT - - SPI1_MOSI, FMC_A14, SAI2_MCLK_B, EVENTOUT - - SPI1_NSS, LPUART1_CTS, FMC_A15, SAI2_SD_B, EVENTOUT - - OCTOSPIM_P1_DQS, I2C3_SMBA, LPUART1_RTS_DE, LCD_R1, DSI_TE, EVENTOUT - - SAI1_CK1, I2C3_SCL, OCTOSPIM_P2_DQS, DFSDM1_CKOUT, LPUART1_TX, FMC_INT, SAI1_MCLK_A, EVENTOUT - Pinouts and pin description - E9 F10 88 Additional functions - F10 F9 Alternate functions DS12023 Rev 5 - F9 STM32L4R9xxx Notes - UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) Pin number Pin name (function after reset) Pin type I/O structure Notes Alternate functions Additional functions - - - - - E12 VDDIO 2 S - - - - - TIM3_CH1, TIM8_CH1, DFSDM1_CKIN3, SDMMC1_D0DIR, TSC_G4_IO1, DCMI_D0, LCD_R0, SDMMC1_D6, SAI2_MCLK_A, EVENTOUT - - TIM3_CH2, TIM8_CH2, DFSDM1_DATIN3, SDMMC1_D123DIR, TSC_G4_IO2, DCMI_D1, LCD_R1, SDMMC1_D7, SAI2_MCLK_B, EVENTOUT - WLCSP144_SMPS S UFBGA144 VSS LQFP144 F11 D12 D12 F13 LQFP100 - UFBGA169 - UFBGA169_SMPS I2C3_SDA, LPUART1_RX, EVENTOUT WLCSP144 - LQFP144 FT_fs LQFP144_SMPS I/O BGA132 PG8 UBGA132_SMPS F10 LQFP100 E2 - J6 J6 93 93 E2 H9 H9 - 97 E8 E2 - - - 94 94 D12 F13 F13 - - - - 95 95 E3 F12 - 63 64 E12 E12 E11 E11 96 97 96 97 E4 E6 F12 F11 F11 G12 G12 65 66 98 99 D12 E9 E3 E4 E6 E3 E4 E6 F12 F11 G11 PC6 PC7 I/O I/O FT FT STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 UFBGA169 STM32L4R9xxx WLCSP144 STM32L4R5xxx, STM32L4R7xxx Pinouts and pin description 100/307 Table 15. STM32L4Rxxx pin definitions (continued) G10 G10 67 100 E10 D1 D1 F9 PC8 I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 D1 FT - - TRACED0, TIM8_BKIN2, TIM3_CH4, TIM8_CH4, DCMI_D3, I2C3_SDA, TSC_G4_IO4, OTG_FS_NOE, SDMMC1_D1, SAI2_EXTCLK, EVENTOUT 66 67 D12 D12 D11 D11 99 100 99 100 D2 D3 G9 G8 G9 G8 68 69 101 C12 102 D11 D2 D3 D2 D3 G13 E11 PC9 PA8 I/O I/O FT_fl - - MCO, TIM1_CH1, SAI1_CK2, USART1_CK, OTG_FS_SOF, SAI1_SCK_A, LPTIM2_OUT, EVENTOUT FT_f - 101/307 Pinouts and pin description - TIM3_CH3, TIM8_CH3, TSC_G4_IO3, DCMI_D2, SDMMC1_D0, EVENTOUT DS12023 Rev 5 Additional functions 98 Alternate functions 98 LQFP144 LQFP144_SMPS BGA132 E10 E10 STM32L4R9xxx Notes 65 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) 103 C1 F9 F10 F9 E13 E13 70 71 72 103 D10 104 C10 105 B12 D4 D5 C1 D4 D5 C1 E12 D11 E13 PA9 PA10 PA11 I/O I/O I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 D5 F10 FT_flu FT_flu FT_u Additional functions 103 LQFP144 LQFP144_SMPS BGA132 B12 B12 102 D4 Alternate functions 70 C12 C12 102 101 - TIM1_CH2, SPI2_SCK, DCMI_D0, USART1_TX, SAI1_FS_A, TIM15_BKIN, EVENTOUT OTG_FS_VBUS - TIM1_CH3, SAI1_D1, DCMI_D1, USART1_RX, OTG_FS_ID, SAI1_SD_A, TIM17_BKIN, EVENTOUT - - TIM1_CH4, TIM1_BKIN2, SPI1_MISO, USART1_CTS_NSS, CAN1_RX, OTG_FS_DM, EVENTOUT - STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 69 D10 D10 101 STM32L4R9xxx Notes 68 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number Pinouts and pin description 102/307 Table 15. STM32L4Rxxx pin definitions (continued) D13 D13 73 106 B11 C2 PA12 I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 C2 FT_u DS12023 Rev 5 Additional functions 104 Alternate functions 104 LQFP144 LQFP144_SMPS BGA132 A12 A12 STM32L4R9xxx Notes 71 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number - TIM1_ETR, SPI1_MOSI, USART1_RTS_DE, CAN1_TX, OTG_FS_DP, EVENTOUT - - C2 D13 FT (4) JTMS/SWDIO, IR_OUT, OTG_FS_NOE, SAI1_SD_B, EVENTOUT A11 A11 105 105 B3 A11 A11 74 107 B10 B3 B3 73 C11 C11 106 106 B2 E12 E12 75 108 C11 B2 B2 D12 VDDUS B S - - - - 74 F11 107 107 A1 C12 C12 76 109 A12 A1 A1 C12 VSS S - - - - 75 G11 G11 108 108 B1 C13 C13 77 110 A11 B1 B1 C13 VDD S - - - - - - F11 - - - - - - - E11 E11 - - - - - - PH6 I/O FT - I2C2_SMBA, OCTOSPIM_P2_CLK, DCMI_D8, EVENTOUT - - - - - - D12 D12 - - - - - - PH7 I/O FT_f - I2C3_SCL, DCMI_D9, EVENTOUT 103/307 Pinouts and pin description 72 PA13 (JTMS/ A11 I/O SWDIO ) STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) - D11 D11 - - - - - C11 PH9 I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 - FT - I2C3_SMBA, OCTOSPIM_P2_IO4, DCMI_D0, EVENTOUT - - - - - - - - B13 B13 - - - - - B13 PH12 I/O FT - TIM5_CH3, OCTOSPIM_P2_IO7, DCMI_D3, EVENTOUT - - - - - - A13 A13 - - - - - A13 PH14 I/O FT - TIM8_CH2N, DCMI_D4, EVENTOUT - - TIM8_CH3N, OCTOSPIM_P2_IO6, DCMI_D11, EVENTOUT - - - - - - - - - B12 B12 - - - - - B12 PH15 I/O FT - - - - - - A12 A12 - - - - - A12 PI0 I/O FT - TIM5_CH4, OCTOSPIM_P1_IO5, SPI2_NSS, DCMI_D13, EVENTOUT - - - - - - C11 C11 - - - - - - PI8 I/O FT - OCTOSPIM_P2_NCS, DCMI_D12, EVENTOUT STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 Additional functions - LQFP144 LQFP144_SMPS BGA132 - Alternate functions - STM32L4R9xxx Notes - UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number Pinouts and pin description 104/307 Table 15. STM32L4Rxxx pin definitions (continued) Pin number UBGA132_SMPS BGA132 LQFP144_SMPS LQFP144 WLCSP144 UFBGA169_SMPS UFBGA169 LQFP100 LQFP144 UFBGA144 WLCSP144_SMPS WLCSP144 UFBGA169 Pin name (function after reset) Pin type I/O structure Notes Alternate functions Additional functions STM32L4R9xxx LQFP100 STM32L4R5xxx, STM32L4R7xxx - - - - - - B11 B11 - - - - - B11 PI1 I/O FT - SPI2_SCK, DCMI_D8, EVENTOUT - DS12023 Rev 5 - - - - - - B10 B10 - - - - - B10 PI2 I/O FT - TIM8_CH4, SPI2_MISO, DCMI_D9, EVENTOUT - - - - - - - C10 C10 - - - - - C10 PI3 I/O FT - - - - - - - D10 D10 - - - - - D10 PI4 I/O FT - TIM8_BKIN, DCMI_D5, EVENTOUT - - 105/307 - - - - - - E10 E10 - - - - - E10 PI5 I/O FT - TIM8_CH1, OCTOSPIM_P2_NCS, DCMI_VSYNC, EVENTOUT - - - - - - C9 - - - - - C9 PH13 I/O FT - TIM8_CH1N, CAN1_TX, EVENTOUT - - TIM8_CH2, OCTOSPIM_P2_CLK, DCMI_D6, EVENTOUT - - - - - - - B9 C9 B9 - - - - - B9 PI6 I/O FT Pinouts and pin description - TIM8_ETR, SPI2_MOSI, DCMI_D10, EVENTOUT STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) A10 A10 78 111 A10 A2 A2 78 A9 B11 A9 B11 110 111 110 111 A3 C3 A9 D9 A9 D9 79 80 112 113 B9 C9 A3 C3 A3 C3 A9 D9 PA15 (JTDI) PC10 I/O I/O structure Pin type I/O FT FT FT (4) JTCK/SWCLK, LPTIM1_OUT, I2C1_SMBA, I2C4_SMBA, OTG_FS_SOF, SAI1_FS_B, EVENTOUT - (4) JTDI, TIM2_CH1, TIM2_ETR, USART2_RX, SPI1_NSS, SPI3_NSS, USART3_RTS_DE, UART4_RTS_DE, TSC_G3_IO1, SAI2_FS_B, EVENTOUT - - TRACED1, SPI3_SCK, USART3_TX, UART4_TX, TSC_G3_IO2, DCMI_D8, SDMMC1_D2, SAI2_SCK_B, EVENTOUT - STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 77 UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 A2 Additional functions 109 PA14 (JTCK/ A10 I/O SWCLK ) Alternate functions 109 LQFP144 LQFP144_SMPS BGA132 A10 A10 STM32L4R9xxx Notes 76 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number Pinouts and pin description 106/307 Table 15. STM32L4Rxxx pin definitions (continued) 114 114 B4 A4 E9 F8 B8 E9 F8 B8 81 82 83 114 115 116 A9 D9 C8 C4 B4 A4 C4 B4 A4 E9 F8 B8 PC11 PC12 PD0 I/O I/O I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 LQFP144 LQFP144_SMPS BGA132 C9 113 C4 FT FT FT Additional functions C9 113 112 - DCMI_D2, OCTOSPIM_P1_NCS, SPI3_MISO, USART3_RX, UART4_RX, TSC_G3_IO3, DCMI_D4, SDMMC1_D3, SAI2_MCLK_B, EVENTOUT - - TRACED3, SPI3_MOSI, USART3_CK, UART5_TX, TSC_G3_IO4, DCMI_D9, SDMMC1_CK, SAI2_SD_B, EVENTOUT - - SPI2_NSS, DFSDM1_DATIN7, CAN1_RX, LCD_B4, FMC_D2, EVENTOUT - 107/307 Pinouts and pin description 81 B10 B10 112 Alternate functions 80 C10 C10 STM32L4R9xxx Notes DS12023 Rev 5 79 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) B7 B7 117 118 116 117 118 C5 B5 D6 C6 C8 D8 E8 C7 C8 D8 E8 C7 84 85 86 87 117 118 119 120 B8 D8 A8 C7 C5 B5 D6 C6 C5 B5 D6 C6 C8 D8 E8 C7 PD1 PD2 PD3 PD4 I/O I/O I/O I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 LQFP144 LQFP144_SMPS BGA132 B8 116 115 FT FT FT FT Additional functions 85 B8 C8 115 Alternate functions 84 C8 B9 - SPI2_SCK, DFSDM1_CKIN7, CAN1_TX, LCD_B5, FMC_D3, EVENTOUT - - TRACED2, TIM3_ETR, USART3_RTS_DE, UART5_RX, TSC_SYNC, DCMI_D11, SDMMC1_CMD, EVENTOUT - - SPI2_SCK, DCMI_D5, SPI2_MISO, DFSDM1_DATIN0, USART2_CTS_NSS, OCTOSPIM_P2_NCS, LCD_CLK, FMC_CLK, EVENTOUT - - SPI2_MOSI, DFSDM1_CKIN0, USART2_RTS_DE, OCTOSPIM_P1_IO4, FMC_NOE, EVENTOUT - STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 83 B9 STM32L4R9xxx Notes 82 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number Pinouts and pin description 108/307 Table 15. STM32L4Rxxx pin definitions (continued) Additional functions FT - - - - - 120 120 B6 M3 M3 - 122 - B6 B6 M3 VSS S - - - - - - - 121 121 A6 A8 A8 - 123 - A6 A6 A8 VDD S - - - - - SAI1_D1, DCMI_D10, SPI3_MOSI, DFSDM1_DATIN1, USART2_RX, OCTOSPIM_P1_IO6, LCD_DE, FMC_NWAIT, SAI1_SD_A, EVENTOUT - - DFSDM1_CKIN1, USART2_CK, OCTOSPIM_P1_IO7, FMC_NCE/FMC_NE1, EVENTOUT - DS12023 Rev 5 87 88 B6 A5 B6 A5 122 123 122 123 E7 D7 E7 F7 E7 F7 89 90 124 125 B7 E7 E7 D7 E7 D7 E7 F7 PD6 PD7 I/O I/O I/O structure I/O Pin type PD5 UFBGA169 D7 WLCSP144 A5 WLCSP144_SMPS A5 UFBGA144 D7 LQFP144 121 LQFP100 88 UFBGA169 D7 UFBGA169_SMPS D7 WLCSP144 A5 LQFP144 119 LQFP144_SMPS 119 BGA132 A6 UBGA132_SMPS A6 LQFP100 86 USART2_TX, OCTOSPIM_P1_IO5, FMC_NWE, EVENTOUT FT FT 109/307 Pinouts and pin description Alternate functions STM32L4R9xxx Notes STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) 124 B7 B7 - 126 F6 C7 C7 B7 PG9 I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 C7 FT_s - - LPTIM1_IN1, OCTOSPIM_P2_IO7, SPI3_MISO, USART1_RX, FMC_NE3, SAI2_FS_A, TIM15_CH1, EVENTOUT - - D8 G3 D8 G3 125 126 125 126 B7 - D6 E6 D6 E6 - - 127 128 E6 - B7 - B7 - D6 E6 PG10 PG11 I/O I/O FT_s - - LPTIM1_IN2, OCTOSPIM_P1_IO5, SPI3_MOSI, USART1_CTS_NSS, SAI2_MCLK_A, TIM15_CH2, EVENTOUT FT_s - STM32L4R5xx, STM32L4R7xx and STM32L4R9xx - OCTOSPIM_P2_IO6, SPI3_SCK, USART1_TX, FMC_NCE/FMC_NE2, SAI2_SCK_A, TIM15_CH1N, EVENTOUT DS12023 Rev 5 Additional functions 124 LQFP144 LQFP144_SMPS BGA132 D9 Alternate functions D9 STM32L4R9xxx Notes - UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number Pinouts and pin description 110/307 Table 15. STM32L4Rxxx pin definitions (continued) 127 F6 F6 - 129 D6 A7 A7 F6 PG12 I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 A7 FT_s DS12023 Rev 5 Additional functions 127 LQFP144 LQFP144_SMPS BGA132 D7 Alternate functions D7 STM32L4R9xxx Notes - UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number - LPTIM1_ETR, OCTOSPIM_P2_NCS, SPI3_NSS, USART1_RTS_DE, FMC_NE4, SAI2_SD_A, EVENTOUT - - C7 C7 128 128 D8 G7 G7 - - C6 NC D8 G6 PG13 I/O FT_fs - - NC C6 129 129 - G6 G6 - - - - - - PG14 I/O FT_fs - I2C1_SCL, LCD_R1, FMC_A25, EVENTOUT - - F7 F7 130 130 - - - - 130 A7 - - - VSS S - - - - - G7 G7 131 131 A8 B6 B6 - 131 A6 A8 A8 B6 VDDIO 2 S - - - - - LPTIM1_OUT, I2C1_SMBA, OCTOSPIM_P2_DQS, DCMI_D13, EVENTOUT - - K1 K1 NC 132 - NC C6 - 132 - - - C6 PG15 I/O FT_s 111/307 Pinouts and pin description - I2C1_SDA, USART1_CK, LCD_R0, FMC_A24, EVENTOUT STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) 133 134 C8 A6 A5 A6 A5 91 92 133 134 B6 A5 B8 C8 B8 C8 A6 A5 PB4 (NJTRS I/O T) I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 B8 FT_la FT_fa Additional functions 133 LQFP144 LQFP144_SMPS BGA132 A7 132 Alternate functions A7 A8 PB3 (JTDO/ I/O TRACE SWO) Notes 90 A8 STM32L4R9xxx - JTDO/TRACESWO, TIM2_CH2, SPI1_SCK, SPI3_SCK, USART1_RTS_DE, OTG_FS_CRS_SYNC , SAI1_SCK_B, EVENTOUT COMP2_INM (4) NJTRST, TIM3_CH1, I2C3_SDA, SPI1_MISO, SPI3_MISO, USART1_CTS_NSS, UART5_RTS_DE, TSC_G2_IO1, DCMI_D12, SAI1_MCLK_B, TIM17_BKIN, EVENTOUT COMP2_INP STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 89 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number Pinouts and pin description 112/307 Table 15. STM32L4Rxxx pin definitions (continued) 135 136 C9 B5 C5 B5 C5 93 94 135 136 B5 D5 E8 C9 E8 C9 B5 C5 PB5 PB6 I/O I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 E8 FT_la FT_fa Additional functions 135 LQFP144 LQFP144_SMPS BGA132 B5 134 Alternate functions B5 C5 - LPTIM1_IN1, TIM3_CH2, I2C1_SMBA, SPI1_MOSI, SPI3_MOSI, USART1_CK, UART5_CTS, TSC_G2_IO2, DCMI_D10, COMP2_OUT, SAI1_SD_B, TIM16_BKIN, EVENTOUT - - LPTIM1_ETR, TIM4_CH1, TIM8_BKIN2, I2C1_SCL, I2C4_SCL, DFSDM1_DATIN5, USART1_TX, TSC_G2_IO3, DCMI_D5, SAI1_FS_B, TIM16_CH1N, EVENTOUT COMP2_INP 113/307 Pinouts and pin description 92 C5 STM32L4R9xxx Notes DS12023 Rev 5 91 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) 137 A9 D5 D5 95 137 C5 A9 A9 D5 94 A4 A4 137 138 B9 E5 E5 96 138 A4 B9 B9 E5 95 A3 A3 138 139 C10 C4 C4 97 139 B4 C10 C10 C4 PB7 I/O PH3I/O BOOT0 PB8 I/O FT_fla - COMP2_INM, PVD_IN FT - EVENTOUT - - TIM4_CH3, SAI1_CK1, I2C1_SCL, DFSDM1_CKOUT, DFSDM1_DATIN6, SDMMC1_CKIN, CAN1_RX, DCMI_D6, LCD_B1, SDMMC1_D4, SAI1_MCLK_A, TIM16_CH1, EVENTOUT - I/O structure Additional functions 136 Alternate functions B4 Notes B4 LPTIM1_IN2, TIM4_CH2, TIM8_BKIN, I2C1_SDA, I2C4_SDA, DFSDM1_CKIN5, USART1_RX, UART4_CTS, TSC_G2_IO4, DCMI_VSYNC, DSI_TE, FMC_NL, TIM17_CH1N, EVENTOUT FT_fl STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 93 Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 STM32L4R9xxx UFBGA169 UFBGA169_SMPS WLCSP144 LQFP144 LQFP144_SMPS BGA132 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number Pinouts and pin description 114/307 Table 15. STM32L4Rxxx pin definitions (continued) 140 140 141 B10 A10 D4 A4 D4 A4 98 - 140 141 A3 A2 B10 B10 A10 A10 D4 A4 PB9 PE0 I/O I/O I/O structure Pin type UFBGA169 WLCSP144 WLCSP144_SMPS UFBGA144 LQFP144 LQFP100 UFBGA169 UFBGA169_SMPS WLCSP144 LQFP144 LQFP144_SMPS BGA132 C3 139 FT_fl FT - IR_OUT, TIM4_CH4, SAI1_D2, I2C1_SDA, SPI2_NSS, DFSDM1_CKIN6, SDMMC1_CDIR, CAN1_TX, DCMI_D7, SDMMC1_D5, SAI1_FS_A, TIM17_CH1, EVENTOUT - - TIM4_ETR, DCMI_D2, LCD_HSYNC, FMC_NBL0, TIM16_CH1, EVENTOUT - - 115/307 98 A2 A2 141 142 A11 B4 B4 - 142 C4 D8 A11 B4 PE1 I/O FT - DCMI_D3, LCD_VSYNC, FMC_NBL1, TIM17_CH1, EVENTOUT - C6 - 142 - - C6 - - - - A11 - - VDD12 - - - - - 99 D3 D3 143 143 A12 B3 B3 99 143 A1 A12 A12 B3 VSS S - - - - 100 C4 C4 144 144 B12 A3 A3 100 144 B2 B12 B12 A3 VDD S - - - - Pinouts and pin description Additional functions C3 B3 Alternate functions 97 B3 STM32L4R9xxx Notes DS12023 Rev 5 96 UBGA132_SMPS LQFP100 STM32L4R5xxx, STM32L4R7xxx Pin name (function after reset) Pin number STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 15. STM32L4Rxxx pin definitions (continued) Pin number BGA132 LQFP144_SMPS LQFP144 WLCSP144 UFBGA169_SMPS UFBGA169 LQFP100 LQFP144 UFBGA144 WLCSP144_SMPS WLCSP144 UFBGA169 Pin name (function after reset) Pin type I/O structure Notes Alternate functions Additional functions - - - - - - A2 A2 - - - - - A2 PH2 I/O FT - OCTOSPIM_P1_IO4, EVENTOUT - - - - - - - B2 B2 - - - - - B2 PI7 I/O FT - TIM8_CH3, DCMI_D7, EVENTOUT - - - - - - - B1 B1 - - - - - B1 PI9 I/O FT - OCTOSPIM_P2_IO2, CAN1_RX, EVENTOUT - - - - - - - A1 A1 - - - - - A1 PI10 I/O FT - OCTOSPIM_P2_IO1, EVENTOUT - 1. PC13, PC14 and PC15 are supplied through the power switch. Since the switch only sinks a limited amount of current (3 mA), the use of GPIOs PC13 to PC15 in output mode is limited: - The speed should not exceed 2 MHz with a maximum load of 30 pF - These GPIOs must not be used as current sources (for example to drive a LED). 2. After a Backup domain power-up, PC13, PC14 and PC15 operate as GPIOs. Their function then depends on the content of the RTC registers which are not reset by the system reset. For details on how to manage these GPIOs, refer to the Backup domain and RTC register descriptions in the RM0432 reference manual. 3. NC (not-connected) balls must be left unconnected. However, non connected (NC) GPIOS are not bonded. They must be configured by software to output push-pull and forced to 0 in the output data register to avoid extra current consumption in low-power modes. 4. After reset, these pins are configured as JTAG/SW debug alternate functions, and the internal pull-up on PA15, PA13, PB4 pins and the internal pull-down on PA14 pin are activated. STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 UBGA132_SMPS STM32L4R9xxx LQFP100 STM32L4R5xxx, STM32L4R7xxx Pinouts and pin description 116/307 Table 15. STM32L4Rxxx pin definitions (continued) AF0 Port DS12023 Rev 5 Port A AF1 OTG_FS/ TIM1/2/5/8/L SYS_AF PTIM1 AF2 TIM1/2/3/4/ 5 AF3 AF4 AF5 AF6 SPI2/SAI1/I2C4/U SPI1/2/3/I2C4/DFS SPI3/I2C3/DFS SART2/OTG_FS/T I2C1/2/3/4/DC DM1/DCMI/OCTOS DM1/COMP1/O IM1/8/OCTOSPIM MI PIM_P1/2 CTOSPIM_P2 _P1 AF7 USART1/2/3 - TIM2_CH1 TIM5_CH1 TIM8_ETR - - - USART2_CTS_NSS PA1 - TIM2_CH2 TIM5_CH2 - I2C1_SMBA SPI1_SCK - USART2_RTS_DE PA2 - TIM2_CH3 TIM5_CH3 - - - - USART2_TX PA3 - TIM2_CH4 TIM5_CH4 SAI1_CK1 - - - USART2_RX PA4 - - - OCTOSPIM_P1_NC S - SPI1_NSS SPI3_NSS USART2_CK PA5 - TIM2_CH1 TIM2_ETR TIM8_CH1N - SPI1_SCK - - PA6 - TIM1_BKIN TIM3_CH1 TIM8_BKIN DCMI_PIXCLK SPI1_MISO - USART3_CTS_NSS PA7 - TIM1_CH1N TIM3_CH2 TIM8_CH1N I2C3_SCL SPI1_MOSI - - PA8 MCO TIM1_CH1 - SAI1_CK2 - - - USART1_CK PA9 - TIM1_CH2 - SPI2_SCK - DCMI_D0 - USART1_TX PA10 - TIM1_CH3 - SAI1_D1 - DCMI_D1 - USART1_RX PA11 - TIM1_CH4 TIM1_BKIN2 - - SPI1_MISO - USART1_CTS_NSS PA12 - TIM1_ETR - - - SPI1_MOSI - USART1_RTS_DE PA13 JTMS/SW DIO IR_OUT - - - - - - PA14 JTCK/SW CLK LPTIM1_OUT - - I2C1_SMBA I2C4_SMBA - - PA15 JTDI TIM2_CH1 TIM2_ETR USART2_RX - SPI1_NSS SPI3_NSS USART3_RTS_DE Pinouts and pin description 117/307 PA0 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 16. Alternate function AF0 to AF7(1) AF0 Port OTG_FS/ TIM1/2/5/8/L SYS_AF PTIM1 AF2 TIM1/2/3/4/ 5 AF3 AF4 AF5 AF6 SPI2/SAI1/I2C4/U SPI1/2/3/I2C4/DFS SPI3/I2C3/DFS SART2/OTG_FS/T I2C1/2/3/4/DC DM1/DCMI/OCTOS DM1/COMP1/O IM1/8/OCTOSPIM MI PIM_P1/2 CTOSPIM_P2 _P1 AF7 USART1/2/3 PB0 - TIM1_CH2N TIM3_CH3 TIM8_CH2N - SPI1_NSS - USART3_CK PB1 - TIM1_CH3N TIM3_CH4 TIM8_CH3N - - DFSDM1_DATIN0 USART3_RTS_DE PB2 RTC_OUT LPTIM1_OUT - - I2C3_SMBA - DFSDM1_CKIN0 - PB3 JTDO/TRA CESWO TIM2_CH2 - - - SPI1_SCK SPI3_SCK USART1_RTS_DE PB4 NJTRST - TIM3_CH1 - I2C3_SDA SPI1_MISO SPI3_MISO USART1_CTS_NSS PB5 - LPTIM1_IN1 TIM3_CH2 - I2C1_SMBA SPI1_MOSI SPI3_MOSI USART1_CK PB6 - LPTIM1_ETR TIM4_CH1 TIM8_BKIN2 I2C1_SCL I2C4_SCL DFSDM1_DATIN5 USART1_TX PB7 - LPTIM1_IN2 TIM4_CH2 TIM8_BKIN I2C1_SDA I2C4_SDA DFSDM1_CKIN5 USART1_RX PB8 - - TIM4_CH3 SAI1_CK1 I2C1_SCL DFSDM1_CKOUT DFSDM1_DATIN6 - PB9 - IR_OUT TIM4_CH4 SAI1_D2 I2C1_SDA SPI2_NSS DFSDM1_CKIN6 - PB10 - TIM2_CH3 - I2C4_SCL I2C2_SCL SPI2_SCK DFSDM1_DATIN7 USART3_TX PB11 - TIM2_CH4 - I2C4_SDA I2C2_SDA - DFSDM1_CKIN7 USART3_RX PB12 - TIM1_BKIN - TIM1_BKIN I2C2_SMBA SPI2_NSS DFSDM1_DATIN1 USART3_CK PB13 - TIM1_CH1N - - I2C2_SCL SPI2_SCK DFSDM1_CKIN1 USART3_CTS_NSS PB14 - TIM1_CH2N - TIM8_CH2N I2C2_SDA SPI2_MISO DFSDM1_DATIN2 USART3_RTS_DE PB15 RTC_ REFIN TIM1_CH3N - TIM8_CH3N - SPI2_MOSI DFSDM1_CKIN2 - STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 Port B AF1 Pinouts and pin description 118/307 Table 16. Alternate function AF0 to AF7(1) (continued) AF0 Port DS12023 Rev 5 Port C AF1 OTG_FS/ TIM1/2/5/8/L SYS_AF PTIM1 AF2 TIM1/2/3/4/ 5 AF3 AF4 AF5 AF6 SPI2/SAI1/I2C4/U SPI1/2/3/I2C4/DFS SPI3/I2C3/DFS SART2/OTG_FS/T I2C1/2/3/4/DC DM1/DCMI/OCTOS DM1/COMP1/O IM1/8/OCTOSPIM MI PIM_P1/2 CTOSPIM_P2 _P1 AF7 USART1/2/3 - LPTIM1_IN1 - - I2C3_SCL - DFSDM1_DATIN4 - PC1 TRACED0 LPTIM1_OUT - SPI2_MOSI I2C3_SDA - DFSDM1_CKIN4 - PC2 - LPTIM1_IN2 - - - SPI2_MISO DFSDM1_CKOUT - PC3 - LPTIM1_ETR - SAI1_D1 - SPI2_MOSI - - PC4 - - - - - - - USART3_TX PC5 - - - SAI1_D3 - - - USART3_RX PC6 - - TIM3_CH1 TIM8_CH1 - - DFSDM1_CKIN3 - PC7 - - TIM3_CH2 TIM8_CH2 - - DFSDM1_DATIN3 - PC8 - - TIM3_CH3 TIM8_CH3 - - - - PC9 TRACED0 TIM8_BKIN2 TIM3_CH4 TIM8_CH4 DCMI_D3 - I2C3_SDA - PC10 TRACED1 - - - - - SPI3_SCK USART3_TX PC11 - - - DCMI_D2 OCTOSPIM_P1_NCS SPI3_MISO USART3_RX PC12 TRACED3 - - - - - SPI3_MOSI USART3_CK PC13 - - - - - - - - PC14 - - - - - - - - PC15 - - - - - - - - - 119/307 Pinouts and pin description PC0 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 16. Alternate function AF0 to AF7(1) (continued) AF0 Port OTG_FS/ TIM1/2/5/8/L SYS_AF PTIM1 AF2 TIM1/2/3/4/ 5 AF3 AF4 AF5 AF6 SPI2/SAI1/I2C4/U SPI1/2/3/I2C4/DFS SPI3/I2C3/DFS SART2/OTG_FS/T I2C1/2/3/4/DC DM1/DCMI/OCTOS DM1/COMP1/O IM1/8/OCTOSPIM MI PIM_P1/2 CTOSPIM_P2 _P1 AF7 USART1/2/3 PD0 - - - - - SPI2_NSS DFSDM1_DATIN7 - PD1 - - - - - SPI2_SCK DFSDM1_CKIN7 - PD2 TRACED2 - TIM3_ETR - - - - USART3_RTS_DE PD3 - - - SPI2_SCK DCMI_D5 SPI2_MISO DFSDM1_DATIN0 USART2_CTS_NSS PD4 - - - - - SPI2_MOSI DFSDM1_CKIN0 USART2_RTS_DE PD5 - - - - - - - USART2_TX PD6 - - - SAI1_D1 DCMI_D10 SPI3_MOSI DFSDM1_DATIN1 USART2_RX PD7 - - - - - - DFSDM1_CKIN1 USART2_CK PD8 - - - - - - - USART3_TX PD9 - - - - - - - USART3_RX PD10 - - - - - - - USART3_CK PD11 - - - - I2C4_SMBA - - USART3_CTS_NSS PD12 - - TIM4_CH1 - I2C4_SCL - - USART3_RTS_DE PD13 - - TIM4_CH2 - I2C4_SDA - - - PD14 - - TIM4_CH3 - - - - - PD15 - - TIM4_CH4 - - - - - STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 Port D AF1 Pinouts and pin description 120/307 Table 16. Alternate function AF0 to AF7(1) (continued) AF0 Port DS12023 Rev 5 Port E AF1 OTG_FS/ TIM1/2/5/8/L SYS_AF PTIM1 AF2 TIM1/2/3/4/ 5 AF3 AF4 AF5 AF6 SPI2/SAI1/I2C4/U SPI1/2/3/I2C4/DFS SPI3/I2C3/DFS SART2/OTG_FS/T I2C1/2/3/4/DC DM1/DCMI/OCTOS DM1/COMP1/O IM1/8/OCTOSPIM MI PIM_P1/2 CTOSPIM_P2 _P1 AF7 USART1/2/3 - - TIM4_ETR - - - - - PE1 - - - - - - - - PE2 TRACECK - TIM3_ETR SAI1_CK1 - - - - PE3 TRACED0 - TIM3_CH1 OCTOSPIM_P1_DQ S - - - - PE4 TRACED1 - TIM3_CH2 SAI1_D2 - - DFSDM1_DATIN3 - PE5 TRACED2 - TIM3_CH3 SAI1_CK2 - - DFSDM1_CKIN3 - PE6 TRACED3 - TIM3_CH4 SAI1_D1 - - - - PE7 - TIM1_ETR - - - - DFSDM1_DATIN2 - PE8 - TIM1_CH1N - - - - DFSDM1_CKIN2 - PE9 - TIM1_CH1 - - - - DFSDM1_CKOUT - PE10 - TIM1_CH2N - - - - DFSDM1_DATIN4 - PE11 - TIM1_CH2 - - - - DFSDM1_CKIN4 - PE12 - TIM1_CH3N - - - SPI1_NSS DFSDM1_DATIN5 - PE13 - TIM1_CH3 - - - SPI1_SCK DFSDM1_CKIN5 - PE14 - TIM1_CH4 TIM1_BKIN2 TIM1_BKIN2 - SPI1_MISO - - PE15 - TIM1_BKIN - TIM1_BKIN - SPI1_MOSI - - 121/307 Pinouts and pin description PE0 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 16. Alternate function AF0 to AF7(1) (continued) AF0 Port OTG_FS/ TIM1/2/5/8/L SYS_AF PTIM1 AF2 TIM1/2/3/4/ 5 AF3 AF4 AF5 AF6 SPI2/SAI1/I2C4/U SPI1/2/3/I2C4/DFS SPI3/I2C3/DFS SART2/OTG_FS/T I2C1/2/3/4/DC DM1/DCMI/OCTOS DM1/COMP1/O IM1/8/OCTOSPIM MI PIM_P1/2 CTOSPIM_P2 _P1 AF7 USART1/2/3 PF0 - - - - I2C2_SDA OCTOSPIM_P2_IO0 - - PF1 - - - - I2C2_SCL OCTOSPIM_P2_IO1 - - PF2 - - - - I2C2_SMBA OCTOSPIM_P2_IO2 - - PF3 - - - - - OCTOSPIM_P2_IO3 - - PF4 - - - - - OCTOSPIM_P2_CLK - - PF5 - - - - - - - - PF6 - TIM5_ETR TIM5_CH1 - - - - - PF7 - - TIM5_CH2 - - - - - PF8 - - TIM5_CH3 - - - - - PF9 - - TIM5_CH4 - - - - - PF10 - - - OCTOSPIM_P1_CLK - - DFSDM1_CKOUT - PF11 - - - - - - - - PF12 - - - - - OCTOSPIM_P2_DQS - - PF13 - - - - I2C4_SMBA - DFSDM1_DATIN6 - PF14 - - - - I2C4_SCL - DFSDM1_CKIN6 - PF15 - - - - I2C4_SDA - - - STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 Port F AF1 Pinouts and pin description 122/307 Table 16. Alternate function AF0 to AF7(1) (continued) AF0 Port DS12023 Rev 5 Port G AF1 OTG_FS/ TIM1/2/5/8/L SYS_AF PTIM1 AF2 TIM1/2/3/4/ 5 AF3 AF4 AF5 AF6 SPI2/SAI1/I2C4/U SPI1/2/3/I2C4/DFS SPI3/I2C3/DFS SART2/OTG_FS/T I2C1/2/3/4/DC DM1/DCMI/OCTOS DM1/COMP1/O IM1/8/OCTOSPIM MI PIM_P1/2 CTOSPIM_P2 _P1 AF7 USART1/2/3 - - - - - OCTOSPIM_P2_IO4 - - PG1 - - - - - OCTOSPIM_P2_IO5 - - PG2 - - - - - SPI1_SCK - - PG3 - - - - - SPI1_MISO - - PG4 - - - - - SPI1_MOSI - - PG5 - - - - - SPI1_NSS - - PG6 - - - OCTOSPIM_P1_DQ S I2C3_SMBA - - - PG7 - - - SAI1_CK1 I2C3_SCL PG8 - - - - I2C3_SDA - - - PG9 - - - - - OCTOSPIM_P2_IO6 SPI3_SCK USART1_TX PG10 - LPTIM1_IN1 - - - OCTOSPIM_P2_IO7 SPI3_MISO USART1_RX PG11 - LPTIM1_IN2 - OCTOSPIM_P1_IO5 - - SPI3_MOSI USART1_CTS_NSS PG12 - LPTIM1_ETR - - - OCTOSPIM_P2_NCS SPI3_NSS USART1_RTS_DE PG13 - - - - I2C1_SDA - - USART1_CK PG14 - - - - I2C1_SCL - - - PG15 - LPTIM1_OUT - - I2C1_SMBA OCTOSPIM_P2_DQS - - OCTOSPIM_P2_DQS DFSDM1_CKOUT - 123/307 Pinouts and pin description PG0 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 16. Alternate function AF0 to AF7(1) (continued) AF0 Port OTG_FS/ TIM1/2/5/8/L SYS_AF PTIM1 AF2 TIM1/2/3/4/ 5 AF3 AF4 AF5 AF6 SPI2/SAI1/I2C4/U SPI1/2/3/I2C4/DFS SPI3/I2C3/DFS SART2/OTG_FS/T I2C1/2/3/4/DC DM1/DCMI/OCTOS DM1/COMP1/O IM1/8/OCTOSPIM MI PIM_P1/2 CTOSPIM_P2 _P1 AF7 USART1/2/3 PH0 - - - - - - - - PH1 - - - - - - - - PH2 - - - OCTOSPIM_P1_IO4 - - - - PH3 - - - - - - - - PH4 - - - - I2C2_SCL OCTOSPIM_P2_DQS - - PH5 - - - - I2C2_SDA - - - PH6 - - - - I2C2_SMBA OCTOSPIM_P2_CLK - - PH7 - - - - I2C3_SCL - - - PH8 - - - - I2C3_SDA OCTOSPIM_P2_IO3 - - PH9 - - - - I2C3_SMBA OCTOSPIM_P2_IO4 - - PH10 - - TIM5_CH1 - - OCTOSPIM_P2_IO5 - - PH11 - - TIM5_CH2 - - OCTOSPIM_P2_IO6 - - PH12 - - TIM5_CH3 - - OCTOSPIM_P2_IO7 - - PH13 - - - TIM8_CH1N - - - - PH14 - - - TIM8_CH2N - - - - PH15 - - - TIM8_CH3N - OCTOSPIM_P2_IO6 - - STM32L4R5xx, STM32L4R7xx and STM32L4R9xx DS12023 Rev 5 Port H AF1 Pinouts and pin description 124/307 Table 16. Alternate function AF0 to AF7(1) (continued) AF0 Port DS12023 Rev 5 Port I AF1 OTG_FS/ TIM1/2/5/8/L SYS_AF PTIM1 AF2 TIM1/2/3/4/ 5 AF3 AF4 AF5 AF6 SPI2/SAI1/I2C4/U SPI1/2/3/I2C4/DFS SPI3/I2C3/DFS SART2/OTG_FS/T I2C1/2/3/4/DC DM1/DCMI/OCTOS DM1/COMP1/O IM1/8/OCTOSPIM MI PIM_P1/2 CTOSPIM_P2 _P1 AF7 USART1/2/3 PI0 - - TIM5_CH4 OCTOSPIM_P1_IO5 - SPI2_NSS - - PI1 - - - - - SPI2_SCK - - PI2 - - - TIM8_CH4 - SPI2_MISO - - PI3 - - - TIM8_ETR - SPI2_MOSI - - PI4 - - - TIM8_BKIN - - - - PI5 - - - TIM8_CH1 - OCTOSPIM_P2_NCS - - PI6 - - - TIM8_CH2 - OCTOSPIM_P2_CLK - - PI7 - - - TIM8_CH3 - - - - PI8 - - - - - OCTOSPIM_P2_NCS - - PI9 - - - - - OCTOSPIM_P2_IO2 - - PI10 - - - - - OCTOSPIM_P2_IO1 - - PI11 - - - - - OCTOSPIM_P2_IO0 - - STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 16. Alternate function AF0 to AF7(1) (continued) 1. Refer to Table 17 for AF8 to AF15. Pinouts and pin description 125/307 AF9 AF10 AF11 AF12 AF13 AF14 AF15 UART4/5/ LPUART1/ CAN2 CAN1/TSC OTG_FS/DCMI/ OCTOSPI_P1/P2 LCD SDMMC/ COMP1/2/ FMC SAI1/2 TIM2/15/16/17/ LPTIM2 EVENOUT PA0 UART4_TX - - - - SAI1_EXTCLK TIM2_ETR EVENTOUT PA1 UART4_RX - OCTOSPIM_P1_DQS - - - TIM15_CH1N EVENTOUT PA2 LPUART1_TX - OCTOSPIM_P1_NCS - - SAI2_EXTCLK TIM15_CH1 EVENTOUT PA3 LPUART1_RX - OCTOSPIM_P1_CLK - - SAI1_MCLK_A TIM15_CH2 EVENTOUT PA4 - - DCMI_HSYNC - - SAI1_FS_B LPTIM2_OUT EVENTOUT PA5 - - - - - - LPTIM2_ETR EVENTOUT PA6 LPUART1_CT S - OCTOSPIM_P1_IO3 - TIM1_BKIN TIM8_BKIN TIM16_CH1 EVENTOUT PA7 - - OCTOSPIM_P1_IO2 - - - TIM17_CH1 EVENTOUT PA8 - - OTG_FS_SOF - - SAI1_SCK_A LPTIM2_OUT EVENTOUT PA9 - - - - - SAI1_FS_A TIM15_BKIN EVENTOUT PA10 - - OTG_FS_ID - - SAI1_SD_A TIM17_BKIN EVENTOUT PA11 - CAN1_RX OTG_FS_DM - TIM1_BKIN2 - - EVENTOUT PA12 - CAN1_TX OTG_FS_DP - - - - EVENTOUT PA13 - - OTG_FS_NOE - - SAI1_SD_B - EVENTOUT PA14 - - OTG_FS_SOF - - SAI1_FS_B - EVENTOUT - - - SAI2_FS_B - EVENTOUT Port DS12023 Rev 5 Port A PA15 UART4_RTS_ TSC_G3_IO1 DE STM32L4R5xx, STM32L4R7xx and STM32L4R9xx AF8 Pinouts and pin description 126/307 Table 17. Alternate function AF8 to AF15(1) AF8 AF9 AF10 AF11 AF12 AF13 AF14 AF15 UART4/5/ LPUART1/ CAN2 CAN1/TSC OTG_FS/DCMI/ OCTOSPI_P1/P2 LCD SDMMC/ COMP1/2/ FMC SAI1/2 TIM2/15/16/17/ LPTIM2 EVENOUT PB0 - - OCTOSPIM_P1_IO1 - COMP1_OUT SAI1_EXTCLK - EVENTOUT PB1 LPUART1_ RTS_DE - OCTOSPIM_P1_IO0 - - - LPTIM2_IN1 EVENTOUT PB2 - - OCTOSPIM_P1_DQS LCD_B1 - - - EVENTOUT PB3 - - OTG_FS_CRS_SYNC - - SAI1_SCK_B - EVENTOUT Port DS12023 Rev 5 Port B UART5_RTS_ TSC_G2_IO1 DE DCMI_D12 - - SAI1_MCLK_B TIM17_BKIN EVENTOUT PB5 UART5_CTS TSC_G2_IO2 DCMI_D10 - COMP2_OUT SAI1_SD_B TIM16_BKIN EVENTOUT PB6 - TSC_G2_IO3 DCMI_D5 - TIM8_BKIN2 SAI1_FS_B TIM16_CH1N EVENTOUT PB7 UART4_CTS TSC_G2_IO4 DCMI_VSYNC DSI_TE FMC_NL TIM8_BKIN TIM17_CH1N EVENTOUT PB8 SDMMC1_ CKIN CAN1_RX DCMI_D6 LCD_B1 SDMMC1_D4 SAI1_MCLK_A TIM16_CH1 EVENTOUT PB9 SDMMC1_ CDIR CAN1_TX DCMI_D7 - SDMMC1_D5 SAI1_FS_A TIM17_CH1 EVENTOUT PB10 LPUART1_RX TSC_SYNC OCTOSPIM_P1_CLK - COMP1_OUT SAI1_SCK_A - EVENTOUT PB11 LPUART1_TX - OCTOSPIM_P1_NCS DSI_TE COMP2_OUT - - EVENTOUT PB12 LPUART1_RT TSC_G1_IO1 S_DE - - - SAI2_FS_A TIM15_BKIN EVENTOUT PB13 LPUART1_CT TSC_G1_IO2 S - - - SAI2_SCK_A TIM15_CH1N EVENTOUT 127/307 PB14 - TSC_G1_IO3 - - - SAI2_MCLK_A TIM15_CH1 EVENTOUT PB15 - TSC_G1_IO4 - - - SAI2_SD_A TIM15_CH2 EVENTOUT Pinouts and pin description PB4 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 17. Alternate function AF8 to AF15(1) (continued) AF9 AF10 AF11 AF12 AF13 AF14 AF15 UART4/5/ LPUART1/ CAN2 CAN1/TSC OTG_FS/DCMI/ OCTOSPI_P1/P2 LCD SDMMC/ COMP1/2/ FMC SAI1/2 TIM2/15/16/17/ LPTIM2 EVENOUT PC0 LPUART1_RX - - - - SAI2_FS_A LPTIM2_IN1 EVENTOUT PC1 LPUART1_TX - OCTOSPIM_P1_IO4 - - SAI1_SD_A - EVENTOUT PC2 - - OCTOSPIM_P1_IO5 - - - - EVENTOUT PC3 - - OCTOSPIM_P1_IO6 - - SAI1_SD_A LPTIM2_ETR EVENTOUT PC4 - - OCTOSPIM_P1_IO7 - - - - EVENTOUT PC5 - - - - - - - EVENTOUT PC6 SDMMC1_ D0DIR TSC_G4_IO1 DCMI_D0 LCD_R0 SDMMC1_D6 SAI2_MCLK_A - EVENTOUT PC7 SDMMC1_ D123DIR TSC_G4_IO2 DCMI_D1 LCD_R1 SDMMC1_D7 SAI2_MCLK_B - EVENTOUT PC8 - TSC_G4_IO3 DCMI_D2 - SDMMC1_D0 - - EVENTOUT PC9 - TSC_G4_IO4 OTG_FS_NOE - SDMMC1_D1 SAI2_EXTCLK TIM8_BKIN2 EVENTOUT PC10 UART4_TX TSC_G3_IO2 DCMI_D8 - SDMMC1_D2 SAI2_SCK_B - EVENTOUT PC11 UART4_RX TSC_G3_IO3 DCMI_D4 - SDMMC1_D3 SAI2_MCLK_B - EVENTOUT PC12 UART5_TX TSC_G3_IO4 DCMI_D9 - SDMMC1_CK SAI2_SD_B - EVENTOUT PC13 - - - - - - - EVENTOUT PC14 - - - - - - - EVENTOUT PC15 - - - - - - - EVENTOUT Port DS12023 Rev 5 Port C STM32L4R5xx, STM32L4R7xx and STM32L4R9xx AF8 Pinouts and pin description 128/307 Table 17. Alternate function AF8 to AF15(1) (continued) AF9 AF10 AF11 AF12 AF13 AF14 AF15 UART4/5/ LPUART1/ CAN2 CAN1/TSC OTG_FS/DCMI/ OCTOSPI_P1/P2 LCD SDMMC/ COMP1/2/ FMC SAI1/2 TIM2/15/16/17/ LPTIM2 EVENOUT PD0 - CAN1_RX - LCD_B4 FMC_D2 - - EVENTOUT PD1 - CAN1_TX - LCD_B5 FMC_D3 - - EVENTOUT PD2 UART5_RX TSC_SYNC DCMI_D11 - SDMMC1_CM D - - EVENTOUT PD3 - - OCTOSPIM_P2_NCS LCD_CLK FMC_CLK - - EVENTOUT PD4 - - OCTOSPIM_P1_IO4 - FMC_NOE - - EVENTOUT PD5 - - OCTOSPIM_P1_IO5 - FMC_NWE - - EVENTOUT PD6 - - OCTOSPIM_P1_IO6 LCD_DE FMC_NWAIT SAI1_SD_A - EVENTOUT PD7 - - OCTOSPIM_P1_IO7 - FMC_NCE/FM C_NE1 - - EVENTOUT PD8 - - DCMI_HSYNC LCD_R3 FMC_D13 - - EVENTOUT PD9 - - DCMI_PIXCLK LCD_R4 FMC_D14 SAI2_MCLK_A - EVENTOUT PD10 - TSC_G6_IO1 - LCD_R5 FMC_D15 SAI2_SCK_A - EVENTOUT PD11 - TSC_G6_IO2 - LCD_R6 FMC_A16 SAI2_SD_A LPTIM2_ETR EVENTOUT PD12 - TSC_G6_IO3 - LCD_R7 FMC_A17 SAI2_FS_A LPTIM2_IN1 EVENTOUT PD13 - TSC_G6_IO4 - - FMC_A18 - LPTIM2_OUT EVENTOUT PD14 - - - LCD_B2 FMC_D0 - - EVENTOUT PD15 - - - LCD_B3 FMC_D1 - - EVENTOUT Port DS12023 Rev 5 Port D 129/307 Pinouts and pin description AF8 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 17. Alternate function AF8 to AF15(1) (continued) AF9 AF10 AF11 AF12 AF13 AF14 AF15 UART4/5/ LPUART1/ CAN2 CAN1/TSC OTG_FS/DCMI/ OCTOSPI_P1/P2 LCD SDMMC/ COMP1/2/ FMC SAI1/2 TIM2/15/16/17/ LPTIM2 EVENOUT PE0 - - DCMI_D2 LCD_HSYNC FMC_NBL0 - TIM16_CH1 EVENTOUT PE1 - - DCMI_D3 LCD_VSYNC FMC_NBL1 - TIM17_CH1 EVENTOUT PE2 - TSC_G7_IO1 - LCD_R0 FMC_A23 SAI1_MCLK_A - EVENTOUT PE3 - TSC_G7_IO2 - LCD_R1 FMC_A19 SAI1_SD_B - EVENTOUT PE4 - TSC_G7_IO3 DCMI_D4 LCD_B0 FMC_A20 SAI1_FS_A - EVENTOUT PE5 - TSC_G7_IO4 DCMI_D6 LCD_G0 FMC_A21 SAI1_SCK_A - EVENTOUT PE6 - - DCMI_D7 LCD_G1 FMC_A22 SAI1_SD_A - EVENTOUT PE7 - - - LCD_B6 FMC_D4 SAI1_SD_B - EVENTOUT PE8 - - - LCD_B7 FMC_D5 SAI1_SCK_B - EVENTOUT PE9 - - - LCD_G2 FMC_D6 SAI1_FS_B - EVENTOUT PE10 - TSC_G5_IO1 OCTOSPIM_P1_CLK LCD_G3 FMC_D7 SAI1_MCLK_B - EVENTOUT PE11 - TSC_G5_IO2 OCTOSPIM_P1_NCS LCD_G4 FMC_D8 - - EVENTOUT PE12 - TSC_G5_IO3 OCTOSPIM_1_IO0 LCD_G5 FMC_D9 - - EVENTOUT PE13 - TSC_G5_IO4 OCTOSPIM_P1_IO1 LCD_G6 FMC_D10 - - EVENTOUT PE14 - - OCTOSPIM_P1_IO2 LCD_G7 FMC_D11 - - EVENTOUT PE15 - - OCTOSPIM_P1_IO3 LCD_R2 FMC_D12 - - EVENTOUT Port DS12023 Rev 5 Port E STM32L4R5xx, STM32L4R7xx and STM32L4R9xx AF8 Pinouts and pin description 130/307 Table 17. Alternate function AF8 to AF15(1) (continued) AF9 AF10 AF11 AF12 AF13 AF14 AF15 UART4/5/ LPUART1/ CAN2 CAN1/TSC OTG_FS/DCMI/ OCTOSPI_P1/P2 LCD SDMMC/ COMP1/2/ FMC SAI1/2 TIM2/15/16/17/ LPTIM2 EVENOUT PF0 - - - - FMC_A0 - - EVENTOUT PF1 - - - - FMC_A1 - - EVENTOUT PF2 - - - - FMC_A2 - - EVENTOUT PF3 - - - - FMC_A3 - - EVENTOUT PF4 - - - - FMC_A4 - - EVENTOUT PF5 - - - - FMC_A5 - - EVENTOUT PF6 - - OCTOSPIM_P1_IO3 - - SAI1_SD_B - EVENTOUT PF7 - - OCTOSPIM_P1_IO2 - - SAI1_MCLK_B - EVENTOUT PF8 - - OCTOSPIM_P1_IO0 - - SAI1_SCK_B - EVENTOUT PF9 - - OCTOSPIM_P1_IO1 - - SAI1_FS_B TIM15_CH1 EVENTOUT PF10 - - DCMI_D11 - - SAI1_D3 TIM15_CH2 EVENTOUT PF11 - LCD_DE DCMI_D12 DSI_TE - - - EVENTOUT PF12 - - - LCD_B0 FMC_A6 - - EVENTOUT PF13 - - - LCD_B1 FMC_A7 - - EVENTOUT PF14 - TSC_G8_IO1 - LCD_G0 FMC_A8 - - EVENTOUT PF15 - TSC_G8_IO2 - LCD_G1 FMC_A9 - - EVENTOUT Port DS12023 Rev 5 Port F 131/307 Pinouts and pin description AF8 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 17. Alternate function AF8 to AF15(1) (continued) AF9 AF10 AF11 AF12 AF13 AF14 AF15 UART4/5/ LPUART1/ CAN2 CAN1/TSC OTG_FS/DCMI/ OCTOSPI_P1/P2 LCD SDMMC/ COMP1/2/ FMC SAI1/2 TIM2/15/16/17/ LPTIM2 EVENOUT PG0 - TSC_G8_IO3 - - FMC_A10 - - EVENTOUT PG1 - TSC_G8_IO4 - - FMC_A11 - - EVENTOUT PG2 - - - - FMC_A12 SAI2_SCK_B - EVENTOUT PG3 - - - - FMC_A13 SAI2_FS_B - EVENTOUT PG4 - - - - FMC_A14 SAI2_MCLK_B - EVENTOUT PG5 LPUART1_CT S - - - FMC_A15 SAI2_SD_B - EVENTOUT PG6 LPUART1_RT S_DE LCD_R1 - DSI_TE - - - EVENTOUT PG7 LPUART1_TX - - - FMC_INT SAI1_MCLK_A - EVENTOUT PG8 LPUART1_RX - - - - - - EVENTOUT PG9 - - - - FMC_NCE/FM C_NE2 SAI2_SCK_A TIM15_CH1N EVENTOUT PG10 - - - - FMC_NE3 SAI2_FS_A TIM15_CH1 EVENTOUT PG11 - - - - - SAI2_MCLK_A TIM15_CH2 EVENTOUT PG12 - - - - FMC_NE4 SAI2_SD_A - EVENTOUT PG13 - - - LCD_R0 FMC_A24 - - EVENTOUT PG14 - - - LCD_R1 FMC_A25 - - EVENTOUT PG15 - - DCMI_D13 - - - - EVENTOUT Port DS12023 Rev 5 Port G STM32L4R5xx, STM32L4R7xx and STM32L4R9xx AF8 Pinouts and pin description 132/307 Table 17. Alternate function AF8 to AF15(1) (continued) AF9 AF10 AF11 AF12 AF13 AF14 AF15 UART4/5/ LPUART1/ CAN2 CAN1/TSC OTG_FS/DCMI/ OCTOSPI_P1/P2 LCD SDMMC/ COMP1/2/ FMC SAI1/2 TIM2/15/16/17/ LPTIM2 EVENOUT PH0 - - - - - - - EVENTOUT PH1 - - - - - - - EVENTOUT PH2 - - - - - - - EVENTOUT PH3 - - - - - - - EVENTOUT PH4 - - - - - - - EVENTOUT PH5 - - DCMI_PIXCLK - - - - EVENTOUT PH6 - - DCMI_D8 - - - - EVENTOUT PH7 - - DCMI_D9 - - - - EVENTOUT PH8 - - DCMI_HSYNC - - - - EVENTOUT PH9 - - DCMI_D0 - - - - EVENTOUT PH10 - - DCMI_D1 - - - - EVENTOUT PH11 - - DCMI_D2 - - - - EVENTOUT PH12 - - DCMI_D3 - - - - EVENTOUT PH13 - CAN1_TX - - - - - EVENTOUT PH14 - - DCMI_D4 - - - - EVENTOUT PH15 - - DCMI_D11 - - - - EVENTOUT Port DS12023 Rev 5 Port H 133/307 Pinouts and pin description AF8 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Table 17. Alternate function AF8 to AF15(1) (continued) AF9 AF10 AF11 AF12 AF13 AF14 AF15 UART4/5/ LPUART1/ CAN2 CAN1/TSC OTG_FS/DCMI/ OCTOSPI_P1/P2 LCD SDMMC/ COMP1/2/ FMC SAI1/2 TIM2/15/16/17/ LPTIM2 EVENOUT PI0 - - DCMI_D13 - - - - EVENTOUT PI1 - - DCMI_D8 - - - - EVENTOUT PI2 - - DCMI_D9 - - - - EVENTOUT PI3 - - DCMI_D10 - - - - EVENTOUT PI4 - - DCMI_D5 - - - - EVENTOUT PI5 - - DCMI_VSYNC - - - - EVENTOUT PI6 - - DCMI_D6 - - - - EVENTOUT PI7 - - DCMI_D7 - - - - EVENTOUT PI8 - - DCMI_D12 - - - - EVENTOUT PI9 - CAN1_RX - - - - - EVENTOUT PI10 - - - - - - - EVENTOUT PI11 - - - - - - - EVENTOUT Port Port I DS12023 Rev 5 1. Refer to Table 16 for AF0 to AF7. STM32L4R5xx, STM32L4R7xx and STM32L4R9xx AF8 Pinouts and pin description 134/307 Table 17. Alternate function AF8 to AF15(1) (continued) STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 5 Memory mapping Memory mapping For memory map and peripheral register boundary addresses refer to the corresponding section of reference manual RM0432. DS12023 Rev 5 135/307 135 Electrical characteristics STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 6 Electrical characteristics 6.1 Parameter conditions Unless otherwise specified, all voltages are referenced to VSS. 6.1.1 Minimum and maximum values Unless otherwise specified, the minimum and maximum values are guaranteed in the worst conditions of ambient temperature, supply voltage and frequencies by tests in production on 100% of the devices with an ambient temperature at TA = 25 °C and TA = TAmax (given by the selected temperature range). Data based on characterization results, design simulation and/or technology characteristics are indicated in the table footnotes and are not tested in production. Based on characterization, the minimum and maximum values refer to sample tests and represent the mean value plus or minus three times the standard deviation (mean ±3σ). 6.1.2 Typical values Unless otherwise specified, typical data are based on TA = 25 °C, VDD = VDDA = 3 V. They are given only as design guidelines and are not tested. Typical ADC accuracy values are determined by characterization of a batch of samples from a standard diffusion lot over the full temperature range, where 95% of the devices have an error less than or equal to the value indicated (mean ±2σ). 6.1.3 Typical curves Unless otherwise specified, all typical curves are given only as design guidelines and are not tested. 6.1.4 Loading capacitor The loading conditions used for pin parameter measurement are shown in Figure 23. 6.1.5 Pin input voltage The input voltage measurement on a pin of the device is described in Figure 24. Figure 23. Pin loading conditions Figure 24. Pin input voltage MCU pin MCU pin C = 50 pF VIN MS19210V1 136/307 DS12023 Rev 5 MS19211V1 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 6.1.6 Electrical characteristics Power supply scheme Figure 25. Power supply scheme VBAT Backup circuitry (LSE, RTC, Backup registers) 1.55 – 3.6 V Power switch 2 x VDD12 1.05 – 1.32 V VDD VCORE n x VDD Regulator n x 100 nF GPIOs IN +1 x 4.7 μF Level shifter OUT IO logic Level shifter VDDIO1 IO logic Kernel logic (CPU, Digital & Memories) n x VSS VDDIO2 m x VDDIO2 VDDIO2 OUT m x100 nF +4.7 μF GPIOs IN m x VSS VDD VDDDSI DSI Voltage regulator VCAPDSI VDD12DSI DSI PHY 2.2 uF VDDA VDDA VREF 10 nF +1 μF 100 nF +1 μF VREF+ VREF- ADCs/ DACs/ OPAMPs/ COMPs/ VREFBUF VSSA MSv47759V1 Caution: Each power supply pair (VDD/VSS, VDDA/VSSA etc.) must be decoupled with filtering ceramic capacitors as shown above. These capacitors must be placed as close as possible to, or below, the appropriate pins on the underside of the PCB to ensure the good functionality of the device. DS12023 Rev 5 137/307 280 Electrical characteristics 6.1.7 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Current consumption measurement Figure 26. Current consumption measurement IDD_USB IDD_VBAT IDD VDDUSB VBAT VDD VDDIO2 IDDA VDDA MSv47746V1 The IDD_ALL parameters given in Table 25 to Table 39 represent the total MCU consumption including the current supplying VDD, VDDIO2, VDDA, VDDUSB and VBAT. 6.2 Absolute maximum ratings Stresses above the absolute maximum ratings listed in Table 18: Voltage characteristics, Table 19: Current characteristics and Table 20: Thermal characteristics may cause permanent damage to the device. These are stress ratings only and functional operation of the device at these conditions is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability. Exposure to maximum rating conditions for extended periods may affect device reliability. Device mission profile (application conditions) is compliant with JEDEC JESD47 qualification standard, extended mission profiles are available on demand. 138/307 DS12023 Rev 5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Electrical characteristics Table 18. Voltage characteristics(1) Symbol Ratings Min Max VDDX - VSS External main supply voltage (including VDD, VDDA, VDDIO2, VDDUSB, VBAT, VREF+) -0.3 4.0 VDD12 - VSS External SMPS supply voltage Range 1 -0.3 Range 2 -0.3 VIN(2) |VSSx-VSS| 1.4 Input voltage on FT_xxx pins VSS-0.3 min (VDD, VDDA, VDDIO2, VDDUSB) + 4.0(3)(4) Input voltage on TT_xx pins VSS-0.3 4.0 Input voltage on BOOT0 pin VSS 9.0 VSS-0.3 4.0 Variations between different VDDX power pins of the same domain - 50 Variations between all the different ground pins(5) - 50 - 0.4 Input voltage on any other pins |ΔVDDx| Unit V mV VREF+ - VDDA Allowed voltage difference for VREF+ > VDDA V 1. All main power (VDD, VDDA, VDDIO2, VDDUSB, VBAT) and ground (VSS, VSSA) pins must always be connected to the external power supply, in the permitted range. 2. VIN maximum must always be respected. Refer to Table 19: Current characteristics for the maximum allowed injected current values. 3. This formula has to be applied only on the power supplies related to the IO structure described in the pin definition table. 4. To sustain a voltage higher than 4 V the internal pull-up/pull-down resistors must be disabled. 5. Include VREF- pin. Table 19. Current characteristics Symbol Ratings Max ∑IVDD Total current into sum of all VDD power lines (source)(1) (2) 200 ∑IVSS Total current out of sum of all VSS ground lines (sink)(1) (2) 200 IVDD(PIN) Maximum current into each VDD power pin (source)(1) 100 IVSS(PIN) (1) 100 IIO(PIN) ∑IIO(PIN) IINJ(PIN)(4) ∑|IINJ(PIN)| Maximum current out of each VSS ground pin (sink) Output current sunk by any I/O and control pin except FT_f 20 Output current sunk by any FT_f pin 20 Output current sourced by any I/O and control pin 20 Total output current sunk by sum of all I/Os and control pins(3) Unit mA 100 (3) Total output current sourced by sum of all I/Os and control pins 100 Injected current on FT_xxx, TT_xx, RST and B pins, except PA4, PA5 -5/+0(5) Injected current on PA4, PA5 Total injected current (sum of all I/Os and control -5/0 pins)(6) 25 1. All main power (VDD, VDDA, VDDIO2, VDDUSB, VBAT) and ground (VSS, VSSA) pins must always be connected to the external power supplies, in the permitted range. DS12023 Rev 5 139/307 280 Electrical characteristics STM32L4R5xx, STM32L4R7xx and STM32L4R9xx 2. Valid also for VDD12 on SMPS package. 3. This current consumption must be correctly distributed over all I/Os and control pins. The total output current must not be sunk/sourced between two consecutive power supply pins referring to high pin count QFP packages. 4. Positive injection (when VIN > VDDIOx) is not possible on these I/Os and does not occur for input voltages lower than the specified maximum value. 5. A negative injection is induced by VIN < VSS. IINJ(PIN) must never be exceeded. Refer also to Table 18: Voltage characteristics for the minimum allowed input voltage values. 6. When several inputs are submitted to a current injection, the maximum ∑|IINJ(PIN)| is the absolute sum of the negative injected currents (instantaneous values). Table 20. Thermal characteristics Symbol TSTG TJ Ratings Storage temperature range Maximum junction temperature 6.3 Operating conditions 6.3.1 General operating conditions Value Unit –65 to +150 °C 150 °C Table 21. General operating conditions Symbol Parameter Conditions Min Max fHCLK Internal AHB clock frequency - 0 120 fPCLK1 Internal APB1 clock frequency - 0 120 fPCLK2 Internal APB2 clock frequency - 0 120 VDD Standard operating voltage - VDD12 Standard operating voltage (1) 3.6 Up to 120 MHz 1.14 1.32 Up to 80 MHz 1.08 1.32 1.05 Up to 26 MHz VDDIO2 VDDA VBAT 140/307 At least one I/O in PG[15:2] used PG[15:2] I/Os supply voltage PG[15:2] not used Analog supply voltage 1.71 (2) 1.32 1.08 3.6 0 3.6 1.62 DAC or OPAMP used 1.8 VREFBUF used 2.4 ADC, DAC, OPAMP, COMP, VREFBUF not used 0 - 1.55 DS12023 Rev 5 MHz V ADC or COMP used Backup operating voltage Unit 3.6 3.6 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Electrical characteristics Table 21. General operating conditions (continued) Symbol Parameter Conditions USB used VDDUSB USB supply voltage USB not used TT_xx I/O BOOT0 VIN PD PD Max 3.0 3.6 0 3.6 -0.3 VDDIOx+0.3 0 9 -0.3 MIN(MIN(VDD, VDDA, VDDIO2, VDDUSB, VLCD)+3.6 V, 5.5 V)(3)(4) I/O input voltage All I/O except BOOT0 and TT_xx Power dissipation at TA = 85 °C for suffix 6(5) Power dissipation at TA = 125 °C for suffix 3(5) LQFP144 - - 625 LQFP100 - - 476 UFBGA169 - - 385 UFBGA132 - - 364 WLCSP144 - - 664 LQFP144 - - 156 LQFP100 - - 119 UFBGA169 - - 96 UFBGA132 - - 91 WLCSP144 - - 831 –40 85 –40 105 Ambient temperature for the suffix 6 version Maximum power dissipation Ambient temperature for the suffix 3 version Maximum power dissipation –40 125 Low-power dissipation(6) –40 130 Suffix 6 version –40 105 Suffix 3 version –40 130 TA TJ Min Junction temperature range Low-power dissipation(6) Unit V mW mW °C °C 1. When RESET is released functionality is guaranteed down to VBOR0 Min. 2. For Flash erase and program operation, VDD12 min must be 1.08 V. 3. This formula has to be applied only on the power supplies related to the IO structure described by the pin definition table. Maximum I/O input voltage is the smallest value between MIN(VDD, VDDA, VDDIO2, VDDUSB)+3.6 V and 5.5V. 4. For operation with voltage higher than Min (VDD, VDDA, VDDIO2, VDDUSB) +0.3 V, the internal Pull-up and Pull-Down resistors must be disabled. 5. If TA is lower, higher PD values are allowed as long as TJ does not exceed TJmax (see Section 7.7: Thermal characteristics). 6. In low-power dissipation state, TA can be extended to this range as long as TJ does not exceed TJmax (see Section 7.7: Thermal characteristics). DS12023 Rev 5 141/307 280 Electrical characteristics 6.3.2 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Operating conditions at power-up / power-down The parameters given in Table 22 are derived from tests performed under the ambient temperature condition summarized in Table 21. Table 22. Operating conditions at power-up / power-down(1) Symbol Parameter VDD rise time rate tVDD VDDA rise time rate VDDUSB rise time rate 6.3.3 0 ∞ 10 ∞ 0 ∞ 10 ∞ 0 ∞ 10 ∞ 0 ∞ 10 ∞ - VDDUSB fall time rate VDDIO2 rise time rate tVDDIO2 Max - VDDA fall time rate tVDDUSB Min - VDD fall time rate tVDDA 1. Conditions - VDDIO2 fall time rate Unit µs/V µs/V µs/V µs/V At power-up, the VDD12 voltage should not be forced externally. Embedded reset and power control block characteristics The parameters given in Table 23 are derived from tests performed under the ambient temperature conditions summarized in Table 21: General operating conditions. Table 23. Embedded reset and power control block characteristics Symbol tRSTTEMPO(2) 142/307 Parameter Reset temporization after BOR0 is detected VBOR0(2) Brown-out reset threshold 0 VBOR1 Brown-out reset threshold 1 VBOR2 Brown-out reset threshold 2 VBOR3 Brown-out reset threshold 3 VBOR4 Brown-out reset threshold 4 VPVD0 Programmable voltage detector threshold 0 VPVD1 PVD threshold 1 Conditions(1) Min Typ Max Unit - 250 400 μs Rising edge 1.62 1.66 1.7 Falling edge 1.6 1.64 1.69 Rising edge 2.06 2.1 2.14 Falling edge 1.96 2 2.04 Rising edge 2.26 2.31 2.35 Falling edge 2.16 2.20 2.24 Rising edge 2.56 2.61 2.66 Falling edge 2.47 2.52 2.57 Rising edge 2.85 2.90 2.95 Falling edge 2.76 2.81 2.86 Rising edge 2.1 2.15 2.19 Falling edge 2 2.05 2.1 Rising edge 2.26 2.31 2.36 Falling edge 2.15 2.20 2.25 VDD rising DS12023 Rev 5 V V V V V V V STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Electrical characteristics Table 23. Embedded reset and power control block characteristics (continued) Conditions(1) Min Typ Max Rising edge 2.41 2.46 2.51 Falling edge 2.31 2.36 2.41 Rising edge 2.56 2.61 2.66 Falling edge 2.47 2.52 2.57 Rising edge 2.69 2.74 2.79 Falling edge 2.59 2.64 2.69 Rising edge 2.85 2.91 2.96 Falling edge 2.75 2.81 2.86 Rising edge 2.92 2.98 3.04 Falling edge 2.84 2.90 2.96 Hysteresis in continuous Hysteresis voltage of BORH0 mode - 20 - Hysteresis in other mode - 30 - Symbol Parameter VPVD2 PVD threshold 2 VPVD3 PVD threshold 3 VPVD4 PVD threshold 4 VPVD5 PVD threshold 5 VPVD6 PVD threshold 6 Vhyst_BORH0 Unit V V V V V mV Hysteresis voltage of BORH (except BORH0) and PVD - - 100 - mV BOR(3) (except BOR0) and IDD (BOR_PVD)(2) PVD consumption from VDD - - 1.1 1.6 µA - 1.18 1.22 1.26 V Vhyst_BOR_PVD VPVM1 VDDUSB peripheral voltage monitoring VPVM3 VDDA peripheral voltage monitoring Rising edge 1.61 1.65 1.69 Falling edge 1.6 1.64 1.68 VPVM4 VDDA peripheral voltage monitoring Rising edge 1.78 1.82 1.86 Falling edge 1.77 1.81 1.85 V V Vhyst_PVM3 PVM3 hysteresis - - 10 - mV Vhyst_PVM4 PVM4 hysteresis - - 10 - mV IDD PVM1 and PVM2 (PVM1/PVM2) consumption from VDD (2) - - 0.2 - µA IDD PVM3 and PVM4 (PVM3/PVM4) consumption from VDD (2) - - 2 - µA 1. Continuous mode means Run/Sleep modes, or temperature sensor enable in Low-power run/Low-power sleep modes. 2. Guaranteed by design. 3. BOR0 is enabled in all modes (except shutdown) and its consumption is therefore included in the supply current characteristics tables. DS12023 Rev 5 143/307 280 Electrical characteristics 6.3.4 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Embedded voltage reference The parameters given in Table 24 are derived from tests performed under the ambient temperature and supply voltage conditions summarized in Table 21: General operating conditions. Table 24. Embedded internal voltage reference Symbol Parameter VREFINT Internal reference voltage Conditions –40 °C < TA < +130 °C Min Typ 1.182 1.212 Unit 1.232 V ADC sampling time when reading the internal reference voltage - 4(2) - - µs Start time of reference voltage buffer when ADC is enable - - 8 12(2) µs VREFINT buffer consumption from VDD IDD(VREFINTBUF) when converted by ADC - - 12.5 20(2) µA tS_vrefint (1) tstart_vrefint ∆VREFINT Internal reference voltage spread over the temperature range VDD = 3 V - 5 7.5(2) mV TCoeff Average temperature coefficient –40°C < TA < +130°C - 30 50(2) ppm/°C ACoeff Long term stability 1000 hours, T = 25°C - 300 Average voltage coefficient 3.0 V < VDD < 3.6 V - 250 24 25 26 49 50 51 74 75 76 VDDCoeff VREFINT_DIV1 1/4 reference voltage VREFINT_DIV2 1/2 reference voltage VREFINT_DIV3 3/4 reference voltage - 1. The shortest sampling time can be determined in the application by multiple iterations. 2. Guaranteed by design. 144/307 Max DS12023 Rev 5 1000(2 ) 1200(2 ) ppm ppm/V % VREFINT STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Electrical characteristics Figure 27. VREFINT versus temperature V 1.235 1.23 1.225 1.22 1.215 1.21 1.205 1.2 1.195 1.19 1.185 -40 -20 0 20 40 Mean 60 Min 80 100 120 °C Max MSv40169V2 DS12023 Rev 5 145/307 280 Electrical characteristics 6.3.5 STM32L4R5xx, STM32L4R7xx and STM32L4R9xx Supply current characteristics The current consumption is a function of several parameters and factors such as the operating voltage, ambient temperature, I/O pin loading, device software configuration, operating frequencies, I/O pin switching rate, program location in memory and executed binary code The current consumption is measured as described in Figure 26: Current consumption measurement. Typical and maximum current consumption The MCU is placed under the following conditions: • All I/O pins are in analog input mode • All peripherals are disabled except when explicitly mentioned • The Flash memory access time is adjusted with the minimum wait states number, depending on the fHCLK frequency (refer to the table “Number of wait states according to CPU clock (HCLK) frequency” available in the RM0432 reference manual). • When the peripherals are enabled fPCLK = fHCLK • The voltage scaling Range 1 is adjusted to fHCLK frequency as follows: – Voltage Range 1 Boost mode for 80 MHz < fHCLK
STM32L4R9I-DISCO 价格&库存

很抱歉,暂时无法提供与“STM32L4R9I-DISCO”相匹配的价格&库存,您可以联系我们找货

免费人工找货