RM0517-STM32H5E4-5F4-5E5-5F5
This document is addressed to application developers. It provides complete information on how to use the STM32H5Exxx and STM32H5Fxxx microcontrollers memory and peripherals.
For ordering information, mechanical, and electrical device characteristics, refer to the corresponding datasheets.
For information on the Arm® Cortex®-M33 core, refer to the corresponding Arm® Technical Reference Manuals available on http://infocenter.arm.com.
The STM32H5Exxx and STM32H5Fxxx microcontrollers include ST state-of-the-art patented technology.
Related documents
- • STM32H5Exxx data brief (DS14971)
- • STM32H5Fxxx data brief (DS14972)
- • STM32H5Exxx/H5Fxxx errata sheet (ES0639)
- • STM32 Cortex®-M33 MCUs programming manual (PM0264)
Contents
| 1 | Documentation conventions | 128 |
| 1.1 | General information | 128 |
| 1.2 | List of abbreviations for registers | 128 |
| 1.3 | Register reset value | 129 |
| 1.4 | Glossary | 129 |
| 2 | Memory and bus architecture | 130 |
| 2.1 | System architecture | 130 |
| 2.1.1 | Fast C-bus | 131 |
| 2.1.2 | Slow C-bus | 131 |
| 2.1.3 | S-bus | 131 |
| 2.1.4 | DCACHE S-bus | 132 |
| 2.1.5 | GPDMA1 and GPDMA2 buses | 132 |
| 2.1.6 | SDMMC1 and SDMMC2 controllers DMA buses | 132 |
| 2.1.7 | OTG_HS bus | 132 |
| 2.1.8 | LTDC bus | 132 |
| 2.1.9 | Bus matrix | 132 |
| 2.1.10 | AHB/APB bridges | 132 |
| 2.1.11 | Ethernet MAC | 133 |
| 2.2 | TrustZone® security architecture | 133 |
| 2.2.1 | Default TrustZone® security state | 133 |
| 2.2.2 | TrustZone® peripheral classification | 134 |
| 2.3 | Memory organization | 140 |
| 2.3.1 | Introduction | 140 |
| 2.3.2 | Memory map and register boundary addresses | 141 |
| 2.3.3 | Embedded SRAMs | 151 |
| 2.3.4 | Flash memory overview | 151 |
| 2.3.5 | Boot modes | 151 |
| 3 | System security | 153 |
| 3.1 | Key security features | 153 |
| 3.2 | Secure install | 154 |
| 3.3 | Secure boot | 155 |
| 3.3.1 | Unique boot entry ..... | 155 |
| 3.3.2 | Immutable root of trust in system flash memory ..... | 156 |
| 3.4 | Secure update ..... | 156 |
| 3.5 | Resource isolation using hide protection levels ..... | 156 |
| 3.6 | Resource isolation using TrustZone ..... | 157 |
| 3.6.1 | TrustZone security architecture ..... | 157 |
| 3.6.2 | ArmV8-M security extension of Cortex-M33 ..... | 158 |
| 3.6.3 | Memory and peripheral allocation using IDAU/SAU ..... | 158 |
| 3.6.4 | Memory and peripheral allocation using GTZC ..... | 161 |
| 3.6.5 | Managing security in TrustZone-aware peripherals ..... | 164 |
| 3.6.6 | Activating TrustZone security ..... | 171 |
| 3.6.7 | Deactivating TrustZone security ..... | 171 |
| 3.7 | Other resources isolation ..... | 172 |
| 3.7.1 | Temporal isolation using secure hide protection (HDP) ..... | 172 |
| 3.7.2 | Resource isolation using Cortex privileged mode ..... | 172 |
| 3.8 | Secure execution ..... | 176 |
| 3.8.1 | Memory protection unit (MPU) ..... | 176 |
| 3.8.2 | Embedded flash memory write protection ..... | 177 |
| 3.8.3 | Tamper detection and response ..... | 177 |
| 3.9 | Secure storage ..... | 179 |
| 3.9.1 | Hardware secret key management ..... | 180 |
| 3.9.2 | Unique ID ..... | 181 |
| 3.10 | Crypto engines ..... | 181 |
| 3.10.1 | Crypto engines features ..... | 181 |
| 3.10.2 | Secure AES coprocessor (SAES) ..... | 182 |
| 3.10.3 | On-the-fly decryption engine (OTFDEC1, OTFDEC2) ..... | 183 |
| 3.11 | Product life cycle ..... | 184 |
| 3.11.1 | Product configurations and security services ..... | 185 |
| 3.11.2 | Life cycle management ..... | 186 |
| 3.11.3 | Recommended product settings ..... | 189 |
| 3.12 | Software intellectual property protection and collaborative development ..... | 189 |
| 3.12.1 | Software intellectual property protection ..... | 191 |
| 3.12.2 | Software intellectual property protection with OTFDEC ..... | 191 |
| 3.12.3 | Other software intellectual property protections ..... | 193 |
| 4 | Boot modes | 194 |
| 4.1 | STM32H5Ex boot modes | 195 |
| 4.2 | STM32H5Fx boot modes | 196 |
| 5 | Global TrustZone® controller (GTZC) | 197 |
| 5.1 | Introduction | 197 |
| 5.2 | GTZC main features | 197 |
| 5.3 | GTZC implementation | 199 |
| 5.4 | GTZC functional description | 201 |
| 5.4.1 | GTZC block diagram | 201 |
| 5.4.2 | Illegal access definition | 202 |
| 5.4.3 | TrustZone security controller (TZSC) | 203 |
| 5.4.4 | Memory protection controller - block based (MPCBB) | 204 |
| 5.4.5 | TrustZone illegal access controller (TZIC) | 205 |
| 5.4.6 | Power-on/reset state | 205 |
| 5.5 | GTZC interrupts | 205 |
| 5.6 | GTZC1 TZSC registers | 206 |
| 5.6.1 | GTZC1 TZSC control register (GTZC1_TZSC_CR) | 206 |
| 5.6.2 | GTZC1 TZSC secure configuration register 1 (GTZC1_TZSC_SECCFGR1) | 206 |
| 5.6.3 | GTZC1 TZSC secure configuration register 2 (GTZC1_TZSC_SECCFGR2) | 209 |
| 5.6.4 | GTZC1 TZSC secure configuration register 3 (GTZC1_TZSC_SECCFGR3) | 211 |
| 5.6.5 | GTZC1 TZSC privilege configuration register 1 (GTZC1_TZSC_PRIVCFGR1) | 214 |
| 5.6.6 | GTZC1 TZSC privilege configuration register 2 (GTZC1_TZSC_PRIVCFGR2) | 217 |
| 5.6.7 | GTZC1 TZSC privilege configuration register 3 (GTZC1_TZSC_PRIVCFGR3) | 219 |
| 5.6.8 | GTZC1 TZSC memory x subregion z watermark configuration register (GTZC1_TZSC_MPCWMxACFGR) | 222 |
| 5.6.9 | GTZC1 TZSC memory x subregion z watermark configuration register (GTZC1_TZSC_MPCWMxBCFGR) | 223 |
| 5.6.10 | GTZC1 TZSC memory x subregion A watermark register (GTZC1_TZSC_MPCWMxAR) | 224 |
| 5.6.11 | GTZC1 TZSC memory x subregion B watermark register (GTZC1_TZSC_MPCWMxBR) | 225 |
| 5.6.12 | GTZC1 TZSC register map | 226 |
| 5.7 | GTZC1 TZIC registers | 228 |
| 5.7.1 | GTZC1 TZIC interrupt enable register 1 (GTZC1_TZIC_IER1) | 228 |
| 5.7.2 | GTZC1 TZIC interrupt enable register 2 (GTZC1_TZIC_IER2) | 230 |
| 5.7.3 | GTZC1 TZIC interrupt enable register 3 (GTZC1_TZIC_IER3) | 233 |
| 5.7.4 | GTZC1 TZIC interrupt enable register 4 (GTZC1_TZIC_IER4) | 235 |
| 5.7.5 | GTZC1 TZIC status register 1 (GTZC1_TZIC_SR1) | 238 |
| 5.7.6 | GTZC1 TZIC status register 2 (GTZC1_TZIC_SR2) | 240 |
| 5.7.7 | GTZC1 TZIC status register 3 (GTZC1_TZIC_SR3) | 242 |
| 5.7.8 | GTZC1 TZIC status register 4 (GTZC1_TZIC_SR4) | 245 |
| 5.7.9 | GTZC1 TZIC flag clear register 1 (GTZC1_TZIC_FCR1) | 247 |
| 5.7.10 | GTZC1 TZIC flag clear register 2 (GTZC1_TZIC_FCR2) | 250 |
| 5.7.11 | GTZC1 TZIC flag clear register 3 (GTZC1_TZIC_FCR3) | 252 |
| 5.7.12 | GTZC1 TZIC flag clear register 4 (GTZC1_TZIC_FCR4) | 255 |
| 5.7.13 | GTZC1 TZIC register map | 258 |
| 5.8 | GTZC1 MPCBBz registers (z = 1 to 3) | 260 |
| 5.8.1 | GTZC1 SRAMz MPCBB control register (GTZC1_MPCBBz_CR) (z = 1 to 3) | 260 |
| 5.8.2 | GTZC1 SRAMz MPCBB configuration lock register 1 (GTZC1_MPCBBz_CFGLOCK1) (z = 1 to 3) | 261 |
| 5.8.3 | GTZC1 SRAM1 MPCBB security configuration for super-block x register (GTZC1_MPCBB1_SECCFGRx) | 261 |
| 5.8.4 | GTZC1 SRAM2 MPCBB security configuration for super-block x register (GTZC1_MPCBB2_SECCFGRx) | 262 |
| 5.8.5 | GTZC1 SRAM3 MPCBB security configuration for super-block x register (GTZC1_MPCBB3_SECCFGRx) | 262 |
| 5.8.6 | GTZC1 SRAM1 MPCBB privileged configuration for super-block x register (GTZC1_MPCBB1_PRIVCFGRx) | 263 |
| 5.8.7 | GTZC1 SRAM2 MPCBB privileged configuration for super-block x register (GTZC1_MPCBB2_PRIVCFGRx) | 263 |
| 5.8.8 | GTZC1 SRAM3 MPCBB privileged configuration for super-block x register (GTZC1_MPCBB3_PRIVCFGRx) | 264 |
| 5.8.9 | GTZC1 MPCBBz register map (z = 1 to 3) | 264 |
| 6 | RAMs configuration controller (RAMCFG) | 265 |
| 6.1 | RAMCFG introduction | 265 |
| 6.2 | RAMCFG main features | 265 |
| 6.3 | RAMCFG functional description | 265 |
| 6.3.1 | Internal SRAM features | 265 |
| 6.3.2 | Error code correction (SRAM2, SRAM3, BKPSRAM) | 266 |
| 6.3.3 | Write protection (SRAM2) ..... | 268 |
| 6.3.4 | Software erase ..... | 268 |
| 6.4 | RAMCFG low-power modes ..... | 269 |
| 6.5 | RAMCFG interrupts ..... | 269 |
| 6.6 | RAMCFG registers ..... | 269 |
| 6.6.1 | RAMCFG memory x control register (RAMCFG_MxCR) ..... | 269 |
| 6.6.2 | RAMCFG memory x interrupt enable register (RAMCFG_MxIER) ... | 270 |
| 6.6.3 | RAMCFG memory interrupt status register (RAMCFG_MxISR) .... | 271 |
| 6.6.4 | RAMCFG memory x ECC single error address register (RAMCFG_MxSEAR) ..... | 271 |
| 6.6.5 | RAMCFG memory x ECC double error address register (RAMCFG_MxDEAR) ..... | 272 |
| 6.6.6 | RAMCFG memory x interrupt clear register x (RAMCFG_MxICR) ..... | 272 |
| 6.6.7 | RAMCFG memory 2 write protection register 1 (RAMCFG_M2WPR1) ..... | 273 |
| 6.6.8 | RAMCFG memory 2 write protection register 2 (RAMCFG_M2WPR2) ..... | 273 |
| 6.6.9 | RAMCFG memory x ECC key register (RAMCFG_MxECCKEYR) ..... | 273 |
| 6.6.10 | RAMCFG memory x erase key register (RAMCFG_MxERKEYR) ..... | 274 |
| 6.6.11 | RAMCFG memory 2 write protection register 3 (RAMCFG_M2WPR3) ..... | 274 |
| 6.6.12 | RAMCFG memory 2 write protection register 4 (RAMCFG_M2WPR4) ..... | 275 |
| 6.6.13 | RAMCFG register map ..... | 276 |
| 7 | Embedded flash memory (FLASH) ..... | 277 |
| 7.1 | FLASH introduction ..... | 277 |
| 7.2 | FLASH main features ..... | 277 |
| 7.3 | FLASH functional description ..... | 278 |
| 7.3.1 | FLASH block diagram ..... | 278 |
| 7.3.2 | FLASH signals ..... | 279 |
| 7.3.3 | Flash memory architecture and usage ..... | 280 |
| 7.3.4 | FLASH read operations ..... | 282 |
| 7.3.5 | FLASH program operations ..... | 284 |
| 7.3.6 | FLASH erase operations ..... | 287 |
| 7.3.7 | FLASH parallel operations ..... | 291 |
| 7.3.8 | FLASH error protections | 291 |
| 7.3.9 | OTP and RO memory access | 292 |
| 7.3.10 | Flash high-cycle data | 294 |
| 7.3.11 | Flash bank swapping | 296 |
| 7.3.12 | FLASH reset and clocks | 298 |
| 7.4 | FLASH option bytes | 300 |
| 7.4.1 | About option bytes | 300 |
| 7.4.2 | Option bytes loading | 300 |
| 7.4.3 | Option byte modification | 300 |
| 7.4.4 | Description of user and system option bytes | 304 |
| 7.4.5 | Description of data protection option bytes | 305 |
| 7.4.6 | Description of boot address option bytes | 305 |
| 7.4.7 | Specific rules for modifying option bytes | 306 |
| 7.5 | Option byte key management | 308 |
| 7.5.1 | OBK loading | 308 |
| 7.5.2 | OBK access per HDPL level | 308 |
| 7.5.3 | OBK programming sequence | 309 |
| 7.5.4 | OBK programming finite state machine | 311 |
| 7.5.5 | OBK swap sector | 312 |
| 7.5.6 | OBK alternate sector erase | 314 |
| 7.6 | FLASH security and protections | 314 |
| 7.6.1 | TrustZone security protection | 315 |
| 7.6.2 | Hide protection (HDP) | 317 |
| 7.6.3 | Block-based secure flash memory area protection | 319 |
| 7.6.4 | Block-based privileged flash memory area protection | 320 |
| 7.6.5 | Flash memory register privileged and unprivileged modes | 321 |
| 7.6.6 | Flash memory banks attributes in case of bank swap | 322 |
| 7.6.7 | Flash memory configuration protection | 323 |
| 7.6.8 | Write protection | 324 |
| 7.6.9 | Flash high-cycle data protections | 324 |
| 7.6.10 | Life cycle management | 326 |
| 7.6.11 | Product state transitions | 327 |
| 7.6.12 | OBK protection | 330 |
| 7.6.13 | One-time-programmable and read-only memory protections | 331 |
| 7.7 | System memory | 332 |
| 7.7.1 | Introduction | 332 |
| 7.7.2 | RSS user functions | 332 |
| 7.8 | FLASH low-power modes . . . . . | 338 |
| 7.9 | FLASH error management . . . . . | 339 |
| 7.9.1 | Introduction . . . . . | 339 |
| 7.9.2 | Nonsecure write protection error (WRPERR) . . . . . | 340 |
| 7.9.3 | Secure write protection error (WRPERR) . . . . . | 341 |
| 7.9.4 | Nonsecure programming sequence error (PGSERR) . . . . . | 341 |
| 7.9.5 | Secure programming sequence error (PGSERR) . . . . . | 343 |
| 7.9.6 | Nonsecure strobe error (STRBERR) . . . . . | 344 |
| 7.9.7 | Secure strobe error (STRBERR) . . . . . | 344 |
| 7.9.8 | Nonsecure inconsistency error (INCERR) . . . . . | 344 |
| 7.9.9 | Secure inconsistency error (INCERR) . . . . . | 345 |
| 7.9.10 | Error correction code error (ECCC, ECCD) . . . . . | 345 |
| 7.9.11 | Illegal access (ILAFM/ILAP) . . . . . | 346 |
| 7.9.12 | Option byte change error (OPTCHANGEERR) . . . . . | 347 |
| 7.9.13 | Miscellaneous HardFault errors . . . . . | 347 |
| 7.9.14 | OBK error cases (OBKERR, OBKWERR) . . . . . | 348 |
| 7.10 | FLASH interrupts . . . . . | 348 |
| 7.11 | FLASH registers . . . . . | 350 |
| 7.11.1 | FLASH access control register (FLASH_ACR) . . . . . | 350 |
| 7.11.2 | FLASH nonsecure key register (FLASH_NSKEYR) . . . . . | 351 |
| 7.11.3 | FLASH secure key register (FLASH_SECKEYR) . . . . . | 351 |
| 7.11.4 | FLASH option key register (FLASH_OPTKEYR) . . . . . | 352 |
| 7.11.5 | FLASH nonsecure OBK key register (FLASH_NSOBKKEYR) . . . . . | 352 |
| 7.11.6 | FLASH secure OBK key register (FLASH_SECOBKKEYR) . . . . . | 353 |
| 7.11.7 | FLASH operation status register (FLASH_OPSR) . . . . . | 353 |
| 7.11.8 | FLASH option control register (FLASH_OPTCR) . . . . . | 354 |
| 7.11.9 | FLASH nonsecure status register (FLASH_NSSR) . . . . . | 355 |
| 7.11.10 | FLASH secure status register (FLASH_SECSR) . . . . . | 357 |
| 7.11.11 | FLASH nonsecure control register (FLASH_NSCR) . . . . . | 359 |
| 7.11.12 | FLASH secure control register (FLASH_SECCR) . . . . . | 361 |
| 7.11.13 | FLASH nonsecure clear control register (FLASH_NSCCR) . . . . . | 364 |
| 7.11.14 | FLASH secure clear control register (FLASH_SECCCR) . . . . . | 365 |
| 7.11.15 | FLASH privilege configuration register (FLASH_PRIVCFGR) . . . . . | 366 |
| 7.11.16 | FLASH nonsecure OBK configuration register (FLASH_NSOBKCFGR) . . . . . | 366 |
| 7.11.17 | FLASH secure OBK configuration register (FLASH_SECOBKCFGR) . . . . . | 367 |
| 7.11.18 | FLASH HDP extension register (FLASH_HDPEXTR) . . . . . | 369 |
| 7.11.19 | FLASH option status register (FLASH_OPTSR_CUR) ..... | 369 |
| 7.11.20 | FLASH option status register (FLASH_OPTSR_PRG) ..... | 371 |
| 7.11.21 | FLASH nonsecure EPOCH register (FLASH_NSEPOCHR_CUR) ... | 373 |
| 7.11.22 | FLASH secure EPOCH register (FLASH_SECEPOCHR_CUR) .... | 373 |
| 7.11.23 | FLASH option status register 2 (FLASH_OPTSR2_CUR) ..... | 374 |
| 7.11.24 | FLASH option status register 2 (FLASH_OPTSR2_PRG) ..... | 375 |
| 7.11.25 | FLASH nonsecure boot register (FLASH_NSBOOTR_CUR) ..... | 376 |
| 7.11.26 | FLASH nonsecure boot register (FLASH_NSBOOTR_PRG) ..... | 376 |
| 7.11.27 | FLASH secure boot register (FLASH_SECBOOTR_CUR) ..... | 378 |
| 7.11.28 | FLASH secure boot register (FLASH_BOOTR_PRG) ..... | 378 |
| 7.11.29 | FLASH nonsecure OTP block lock (FLASH_OTPBLR_CUR) ..... | 379 |
| 7.11.30 | FLASH nonsecure OTP block lock (FLASH_OTPBLR_PRG) ..... | 379 |
| 7.11.31 | FLASH write sector group 2 protection for bank1 (FLASH_WRP12R_CUR) ..... | 380 |
| 7.11.32 | FLASH write sector group 2 protection for bank1 (FLASH_WRP12R_PRG) ..... | 380 |
| 7.11.33 | FLASH secure block based register for bank1 (FLASH_SECBB1Rx) . | 381 |
| 7.11.34 | FLASH privilege block based register for bank1 (FLASH_PRIVBB1Rx) ..... | 381 |
| 7.11.35 | FLASH security watermark for bank1 (FLASH_SECWM1R_CUR) ..... | 382 |
| 7.11.36 | FLASH security watermark for bank1 (FLASH_SECWM1R_PRG) ... | 382 |
| 7.11.37 | FLASH write sector group 1 protection for bank1 (FLASH_WRP11R_CUR) ..... | 383 |
| 7.11.38 | FLASH write sector group 1 protection for bank1 (FLASH_WRP11R_PRG) ..... | 383 |
| 7.11.39 | FLASH data sector configuration bank1 (FLASH_EDATA1R_CUR) .. | 384 |
| 7.11.40 | FLASH data sector configuration bank1 (FLASH_EDATA1R_PRG) .. | 384 |
| 7.11.41 | FLASH HDP bank1 configuration (FLASH_HDP1R_CUR) ..... | 385 |
| 7.11.42 | FLASH HDP bank1 configuration (FLASH_HDP1R_PRG) ..... | 385 |
| 7.11.43 | FLASH ECC correction register (FLASH_ECCCORR) ..... | 386 |
| 7.11.44 | FLASH ECC detection register (FLASH_ECCDETR) ..... | 387 |
| 7.11.45 | FLASH ECC data (FLASH_ECCDR) ..... | 388 |
| 7.11.46 | FLASH write sector group 2 protection for bank2 (FLASH_WRP22R_CUR) ..... | 389 |
| 7.11.47 | FLASH write sector group 2 protection for bank2 (FLASH_WRP22R_PRG) ..... | 389 |
| 7.11.48 | FLASH secure block-based register for bank2 (FLASH_SECBB2Rx) | 390 |
| 7.11.49 | FLASH privilege block-based register for bank2 (FLASH_PRIVBB2Rx) ..... | 390 |
| 7.11.50 | FLASH security watermark for bank2 (FLASH_SECWM2R_CUR) . . . | 391 |
| 7.11.51 | FLASH security watermark for bank2 (FLASH_SECWM2R_PRG) . . . | 391 |
| 7.11.52 | FLASH write sector group 1 protection for bank2 (FLASH_WRP21R_CUR) . . . . . | 392 |
| 7.11.53 | FLASH write sector group 1 protection for bank2 (FLASH_WRP21R_PRG) . . . . . | 392 |
| 7.11.54 | FLASH data sectors configuration bank2 (FLASH_EDATA2R_CUR) . | 393 |
| 7.11.55 | FLASH data sector configuration bank2 (FLASH_EDATA2R_PRG) . . | 394 |
| 7.11.56 | FLASH HDP bank2 configuration (FLASH_HDP2R_CUR) . . . . . | 394 |
| 7.11.57 | FLASH HDP bank2 configuration (FLASH_HDP2R_PRG) . . . . . | 395 |
| 7.12 | FLASH register map and reset values . . . . . | 396 |
| 8 | Instruction cache (ICACHE) . . . . . | 402 |
| 8.1 | ICACHE introduction . . . . . | 402 |
| 8.2 | ICACHE main features . . . . . | 402 |
| 8.3 | ICACHE implementation . . . . . | 403 |
| 8.4 | ICACHE functional description . . . . . | 403 |
| 8.4.1 | ICACHE block diagram . . . . . | 404 |
| 8.4.2 | ICACHE reset and clocks . . . . . | 404 |
| 8.4.3 | ICACHE TAG memory . . . . . | 405 |
| 8.4.4 | Direct-mapped ICACHE (1-way cache) . . . . . | 406 |
| 8.4.5 | ICACHE enable . . . . . | 407 |
| 8.4.6 | Cacheable and noncacheable traffic . . . . . | 407 |
| 8.4.7 | Address remapping . . . . . | 408 |
| 8.4.8 | Cacheable accesses . . . . . | 410 |
| 8.4.9 | Dual-master cache . . . . . | 411 |
| 8.4.10 | ICACHE security . . . . . | 411 |
| 8.4.11 | ICACHE maintenance . . . . . | 411 |
| 8.4.12 | ICACHE performance monitoring . . . . . | 412 |
| 8.4.13 | ICACHE boot . . . . . | 412 |
| 8.5 | ICACHE low-power modes . . . . . | 412 |
| 8.6 | ICACHE error management and interrupts . . . . . | 413 |
| 8.7 | ICACHE registers . . . . . | 413 |
| 8.7.1 | ICACHE control register (ICACHE_CR) . . . . . | 413 |
| 8.7.2 | ICACHE status register (ICACHE_SR) . . . . . | 414 |
| 8.7.3 | ICACHE interrupt enable register (ICACHE_IER) . . . . . | 415 |
| 8.7.4 | ICACHE flag clear register (ICACHE_FCR) . . . . . | 415 |
| 8.7.5 | ICACHE hit monitor register (ICACHE_HMONR) | 416 |
| 8.7.6 | ICACHE miss monitor register (ICACHE_MMONR) | 416 |
| 8.7.7 | ICACHE region x configuration register (ICACHE_CRRx) | 416 |
| 8.7.8 | ICACHE register map | 417 |
| 9 | Data cache (DCACHE) | 419 |
| 9.1 | DCACHE introduction | 419 |
| 9.2 | DCACHE main features | 419 |
| 9.3 | DCACHE implementation | 420 |
| 9.4 | DCACHE functional description | 420 |
| 9.4.1 | DCACHE block diagram | 421 |
| 9.4.2 | DCACHE reset and clocks | 421 |
| 9.4.3 | DCACHE TAG memory | 422 |
| 9.4.4 | DCACHE enable | 424 |
| 9.4.5 | Cacheable and noncacheable traffic | 424 |
| 9.4.6 | Cacheable accesses | 425 |
| 9.4.7 | DCACHE security | 427 |
| 9.4.8 | DCACHE maintenance | 427 |
| 9.4.9 | DCACHE performance monitoring | 429 |
| 9.4.10 | DCACHE boot | 429 |
| 9.5 | DCACHE low-power modes | 430 |
| 9.6 | DCACHE error management and interrupts | 430 |
| 9.7 | DCACHE registers | 431 |
| 9.7.1 | DCACHE control register (DCACHE_CR) | 431 |
| 9.7.2 | DCACHE status register (DCACHE_SR) | 432 |
| 9.7.3 | DCACHE interrupt enable register (DCACHE_IER) | 433 |
| 9.7.4 | DCACHE flag clear register (DCACHE_FCR) | 434 |
| 9.7.5 | DCACHE read-hit monitor register (DCACHE_RHMONR) | 434 |
| 9.7.6 | DCACHE read-miss monitor register (DCACHE_RMMONR) | 435 |
| 9.7.7 | DCACHE write-hit monitor register (DCACHE_WHMONR) | 435 |
| 9.7.8 | DCACHE write-miss monitor register (DCACHE_WMMONR) | 435 |
| 9.7.9 | DCACHE command range start address register (DCACHE_CMDRSADDR) | 436 |
| 9.7.10 | DCACHE command range end address register (DCACHE_CMDREADDR) | 436 |
| 9.7.11 | DCACHE register map | 436 |
| 10 | Power control (PWR) . . . . . | 438 |
| 10.1 | PWR introduction . . . . . | 438 |
| 10.2 | PWR main features . . . . . | 438 |
| 10.3 | PWR pins and internal signals . . . . . | 438 |
| 10.4 | PWR power supplies and supply domains . . . . . | 440 |
| 10.4.1 | External power supplies . . . . . | 441 |
| 10.4.2 | Internal regulators . . . . . | 443 |
| 10.4.3 | Power-up and power-down power sequences . . . . . | 444 |
| 10.4.4 | Independent analog peripherals supply . . . . . | 444 |
| 10.4.5 | Independent I/O supply rail . . . . . | 445 |
| 10.4.6 | Independent USB transceivers supply . . . . . | 445 |
| 10.4.7 | Backup domain . . . . . | 445 |
| 10.5 | PWR system supply voltage regulation . . . . . | 447 |
| 10.5.1 | SMPS and LDO embedded regulators . . . . . | 447 |
| 10.5.2 | VCORE supply versus reset, voltage scaling, and low-power modes . . . . . | 447 |
| 10.5.3 | Embedded voltage regulator operating modes . . . . . | 447 |
| 10.6 | PWR power supply and temperature supervision . . . . . | 448 |
| 10.6.1 | Power-on reset (POR)/power-down reset (PDR) . . . . . | 448 |
| 10.6.2 | Brownout reset (BOR) . . . . . | 449 |
| 10.6.3 | Programmable voltage detector (PVD) . . . . . | 450 |
| 10.6.4 | Analog voltage detector (AVD) . . . . . | 451 |
| 10.6.5 | VDDIO2 voltage monitor (IO2VM) . . . . . | 452 |
| 10.6.6 | VDDUSB voltage monitor (UVM) . . . . . | 452 |
| 10.6.7 | Backup domain voltage monitoring . . . . . | 452 |
| 10.6.8 | Temperature monitoring . . . . . | 453 |
| 10.7 | PWR management . . . . . | 454 |
| 10.7.1 | Voltage scaling . . . . . | 454 |
| 10.7.2 | Power management examples . . . . . | 455 |
| 10.8 | Power modes . . . . . | 456 |
| 10.8.1 | Slowing down system clocks . . . . . | 460 |
| 10.8.2 | Peripheral clock gating . . . . . | 460 |
| 10.8.3 | Low-power modes . . . . . | 460 |
| 10.8.4 | Sleep mode . . . . . | 461 |
| 10.8.5 | Stop mode . . . . . | 462 |
| 10.8.6 | Standby mode . . . . . | 465 |
| 10.8.7 | Power modes output pins . . . . . | 467 |
| 10.9 | PWR security and privileged protection | 468 |
| 10.9.1 | PWR security protection | 468 |
| 10.9.2 | PWR privileged protection | 469 |
| 10.10 | PWR interrupts | 470 |
| 10.11 | PWR registers | 470 |
| 10.11.1 | PWR power mode control register (PWR_PMCR) | 470 |
| 10.11.2 | PWR status register (PWR_PMSR) | 472 |
| 10.11.3 | PWR voltage scaling control register (PWR_VOSCR) | 473 |
| 10.11.4 | PWR voltage scaling status register (PWR_VOSSR) | 474 |
| 10.11.5 | PWR backup domain control register (PWR_BDCR) | 474 |
| 10.11.6 | PWR backup domain control register (PWR_DBPCR) | 476 |
| 10.11.7 | PWR backup domain status register (PWR_BDSR) | 476 |
| 10.11.8 | PWR USB Type-C® power delivery register (PWR_UCPDR) | 477 |
| 10.11.9 | PWR supply configuration control register (PWR_SCCR) | 478 |
| 10.11.10 | PWR voltage monitor status register (PWR_VMCR) | 478 |
| 10.11.11 | PWR USB supply control register (PWR_USBSCR) | 479 |
| 10.11.12 | PWR voltage monitor status register (PWR_VMSR) | 480 |
| 10.11.13 | PWR wake-up status clear register (PWR_WUSCR) | 481 |
| 10.11.14 | PWR wake-up status register (PWR_WUSR) | 481 |
| 10.11.15 | PWR wake-up configuration register (PWR_WUCR) | 482 |
| 10.11.16 | PWR I/O retention register (PWR_IORETR) | 483 |
| 10.11.17 | PWR security configuration register (PWR_SECCFGR) | 484 |
| 10.11.18 | PWR privilege configuration register (PWR_PRIVCFGR) | 485 |
| 10.11.19 | PWR register map | 485 |
| 11 | Reset and clock control (RCC) | 488 |
| 11.1 | RCC introduction | 488 |
| 11.2 | RCC pins and internal signals | 488 |
| 11.3 | RCC reset functional description | 488 |
| 11.3.1 | Power reset | 488 |
| 11.3.2 | System reset | 489 |
| 11.3.3 | Backup domain reset | 490 |
| 11.3.4 | Reset source identification | 490 |
| 11.4 | RCC clock functional description | 491 |
| 11.4.1 | HSE clock | 493 |
| 11.4.2 | HSI clock | 494 |
| 11.4.3 | CSI oscillator | 495 |
| 11.4.4 | HSI48 clock | 496 |
| 11.4.5 | PLL description | 496 |
| 11.4.6 | LSE clock | 500 |
| 11.4.7 | LSI clock | 501 |
| 11.4.8 | System clock (SYSCLK) selection | 501 |
| 11.4.9 | Handling clock generators in Stop and Standby modes | 502 |
| 11.4.10 | Clock security system (CSS) | 503 |
| 11.4.11 | Clock output generation (MCO1/MCO2) | 504 |
| 11.4.12 | Kernel clock selection | 504 |
| 11.4.13 | RTC and TAMP clock | 513 |
| 11.4.14 | Timer clock | 514 |
| 11.4.15 | Watchdog clock | 514 |
| 11.4.16 | Peripheral clock gating and autonomous mode | 514 |
| 11.5 | RCC security and privilege functional description | 515 |
| 11.5.1 | RCC TrustZone security protection modes | 515 |
| 11.5.2 | RCC privilege protection modes | 518 |
| 11.6 | RCC low-power modes | 518 |
| 11.7 | RCC interrupts | 519 |
| 11.8 | RCC registers | 521 |
| 11.8.1 | RCC clock control register (RCC_CR) | 521 |
| 11.8.2 | RCC HSI calibration register (RCC_HSICFGR) | 524 |
| 11.8.3 | RCC clock recovery RC register (RCC_CRRCR) | 525 |
| 11.8.4 | RCC CSI calibration register (RCC_CSICFGR) | 525 |
| 11.8.5 | RCC clock configuration register1 (RCC_CFGR1) | 526 |
| 11.8.6 | RCC CPU domain clock configuration register 2 (RCC_CFGR2) | 528 |
| 11.8.7 | RCC PLL clock source selection register (RCC_PLL1CFGR) | 530 |
| 11.8.8 | RCC PLL clock source selection register (RCC_PLL2CFGR) | 532 |
| 11.8.9 | RCC PLL clock source selection register (RCC_PLL3CFGR) | 534 |
| 11.8.10 | RCC PLL1 dividers register (RCC_PLL1DIVR) | 535 |
| 11.8.11 | RCC PLL1 fractional divider register (RCC_PLL1FRACR) | 537 |
| 11.8.12 | RCC PLL1 dividers register (RCC_PLL2DIVR) | 537 |
| 11.8.13 | RCC PLL2 fractional divider register (RCC_PLL2FRACR) | 538 |
| 11.8.14 | RCC PLL3 dividers register (RCC_PLL3DIVR) | 539 |
| 11.8.15 | RCC PLL3 fractional divider register (RCC_PLL3FRACR) | 540 |
| 11.8.16 | RCC clock source interrupt enable register (RCC_CIER) | 541 |
| 11.8.17 | RCC clock source interrupt flag register (RCC_CIFR) | 542 |
| 11.8.18 | RCC clock source interrupt clear register (RCC_CICR) ..... | 544 |
| 11.8.19 | RCC AHB1 reset register (RCC_AHB1RSTR) ..... | 545 |
| 11.8.20 | RCC AHB2 peripheral reset register (RCC_AHB2RSTR) ..... | 546 |
| 11.8.21 | RCC AHB4 peripheral reset register (RCC_AHB4RSTR) ..... | 549 |
| 11.8.22 | RCC APB1 peripheral low reset register (RCC_APB1LRSTR) ..... | 550 |
| 11.8.23 | RCC APB1 peripheral high reset register (RCC_APB1HRSTR) ..... | 553 |
| 11.8.24 | RCC APB2 peripheral reset register (RCC_APB2RSTR) ..... | 554 |
| 11.8.25 | RCC APB3 peripheral reset register (RCC_APB3RSTR) ..... | 556 |
| 11.8.26 | RCC AHB1 peripheral clock register (RCC_AHB1ENR) ..... | 557 |
| 11.8.27 | RCC AHB2 peripheral clock register (RCC_AHB2ENR) ..... | 559 |
| 11.8.28 | RCC AHB4 peripheral clock register (RCC_AHB4ENR) ..... | 562 |
| 11.8.29 | RCC APB1 peripheral clock register (RCC_APB1LENR) ..... | 563 |
| 11.8.30 | RCC APB1 peripheral clock register (RCC_APB1HENR) ..... | 566 |
| 11.8.31 | RCC APB2 peripheral clock register (RCC_APB2ENR) ..... | 567 |
| 11.8.32 | RCC APB3 peripheral clock register (RCC_APB3ENR) ..... | 569 |
| 11.8.33 | RCC AHB1 sleep clock register (RCC_AHB1LPENR) ..... | 570 |
| 11.8.34 | RCC AHB2 sleep clock register (RCC_AHB2LPENR) ..... | 573 |
| 11.8.35 | RCC AHB4 sleep clock register (RCC_AHB4LPENR) ..... | 576 |
| 11.8.36 | RCC APB1 sleep clock register (RCC_APB1LLPENR) ..... | 577 |
| 11.8.37 | RCC APB1 sleep clock register (RCC_APB1HLPENR) ..... | 580 |
| 11.8.38 | RCC APB2 sleep clock register (RCC_APB2LPENR) ..... | 581 |
| 11.8.39 | RCC APB3 sleep clock register (RCC_APB3LPENR) ..... | 582 |
| 11.8.40 | RCC kernel clock configuration register (RCC_CCIPR1) ..... | 584 |
| 11.8.41 | RCC kernel clock configuration register (RCC_CCIPR2) ..... | 586 |
| 11.8.42 | RCC kernel clock configuration register (RCC_CCIPR3) ..... | 588 |
| 11.8.43 | RCC kernel clock configuration register (RCC_CCIPR4) ..... | 590 |
| 11.8.44 | RCC kernel clock configuration register (RCC_CCIPR5) ..... | 592 |
| 11.8.45 | RCC backup domain control register (RCC_BDCR) ..... | 594 |
| 11.8.46 | RCC reset status register (RCC_RSR) ..... | 597 |
| 11.8.47 | RCC secure configuration register (RCC_SECCFGR) ..... | 598 |
| 11.8.48 | RCC privilege configuration register (RCC_PRIVCFGR) ..... | 600 |
| 11.8.49 | RCC register map ..... | 600 |
| 12 | Clock recovery system (CRS) ..... | 606 |
| 12.1 | CRS introduction ..... | 606 |
| 12.2 | CRS main features ..... | 606 |
| 12.3 | CRS implementation ..... | 606 |
| 12.4 | CRS functional description | 607 |
| 12.4.1 | CRS block diagram | 607 |
| 12.4.2 | CRS internal signals | 607 |
| 12.4.3 | Synchronization input | 608 |
| 12.4.4 | Frequency error measurement | 608 |
| 12.4.5 | Frequency error evaluation and automatic trimming | 609 |
| 12.4.6 | CRS initialization and configuration | 610 |
| 12.5 | CRS in low-power modes | 611 |
| 12.6 | CRS interrupts | 611 |
| 12.7 | CRS registers | 611 |
| 12.7.1 | CRS control register (CRS_CR) | 611 |
| 12.7.2 | CRS configuration register (CRS_CFGR) | 613 |
| 12.7.3 | CRS interrupt and status register (CRS_ISR) | 614 |
| 12.7.4 | CRS interrupt flag clear register (CRS_ICR) | 616 |
| 12.7.5 | CRS register map | 616 |
| 13 | General-purpose I/Os (GPIO) | 618 |
| 13.1 | Introduction | 618 |
| 13.2 | GPIO main features | 618 |
| 13.3 | GPIO functional description | 618 |
| 13.3.1 | General-purpose I/O (GPIO) | 620 |
| 13.3.2 | I/O pin alternate function multiplexer and mapping | 621 |
| 13.3.3 | I/O port control registers | 622 |
| 13.3.4 | I/O port data registers | 622 |
| 13.3.5 | I/O data bitwise handling | 622 |
| 13.3.6 | GPIO locking mechanism | 622 |
| 13.3.7 | I/O alternate function input/output | 623 |
| 13.3.8 | External interrupt/wakeup lines | 623 |
| 13.3.9 | Input configuration | 623 |
| 13.3.10 | Output configuration | 624 |
| 13.3.11 | Alternate function configuration | 624 |
| 13.3.12 | Analog configuration | 625 |
| 13.3.13 | Using the HSE or LSE oscillator pins as GPIOs | 625 |
| 13.3.14 | Using the GPIO pins in the RTC supply domain | 626 |
| 13.3.15 | I/Os state retention during standby mode | 626 |
| 13.3.16 | TrustZone security | 626 |
| 13.3.17 | Privileged and unprivileged modes ..... | 627 |
| 13.3.18 | High-speed low-voltage mode (HSLV) ..... | 627 |
| 13.3.19 | I/O compensation cell ..... | 628 |
| 13.4 | GPIO registers ..... | 628 |
| 13.4.1 | GPIO port mode register (GPIOx_MODER) (x = A to K) ..... | 628 |
| 13.4.2 | GPIO port output type register (GPIOx_OTYPER) (x = A to K) ..... | 629 |
| 13.4.3 | GPIO port output speed register (GPIOx_OSPEEDR) (x = A to K) ..... | 629 |
| 13.4.4 | GPIO port pull-up/pull-down register (GPIOx_PUPDR) (x = A to K) ..... | 630 |
| 13.4.5 | GPIO port input data register (GPIOx_IDR) (x = A to K) ..... | 630 |
| 13.4.6 | GPIO port output data register (GPIOx_ODR) (x = A to K) ..... | 631 |
| 13.4.7 | GPIO port bit set/reset register (GPIOx_BSRR) (x = A to K) ..... | 631 |
| 13.4.8 | GPIO port configuration lock register (GPIOx_LCKR) (x = A to K) ..... | 632 |
| 13.4.9 | GPIO alternate function low register (GPIOx_AFRL) (x = A to K) ..... | 633 |
| 13.4.10 | GPIO alternate function high register (GPIOx_AFRH) (x = A to K) ..... | 633 |
| 13.4.11 | GPIO port bit reset register (GPIOx_BRR) (x = A to K) ..... | 634 |
| 13.4.12 | GPIO high-speed low-voltage register (GPIOx_HSLVR) (x = A to K) ..... | 635 |
| 13.4.13 | GPIO secure configuration register (GPIOx_SECCFGR) (x = A to K) ..... | 635 |
| 13.4.14 | GPIO register map ..... | 636 |
| 14 | System configuration, boot, and security (SBS) ..... | 638 |
| 14.1 | SBS introduction ..... | 638 |
| 14.2 | SBS main features ..... | 638 |
| 14.3 | SBS functional description ..... | 639 |
| 14.3.1 | SBS block diagram ..... | 639 |
| 14.3.2 | SBS signals ..... | 640 |
| 14.3.3 | SBS reset and clocks ..... | 641 |
| 14.3.4 | SBS system configuration ..... | 641 |
| 14.3.5 | SBS boot control ..... | 643 |
| 14.3.6 | SBS debug control ..... | 645 |
| 14.3.7 | SBS hardware secure storage control ..... | 648 |
| 14.4 | SBS interrupts ..... | 649 |
| 14.5 | SBS registers ..... | 649 |
| 14.5.1 | SBS temporal isolation control register (SBS_HDPLCR) ..... | 649 |
| 14.5.2 | SBS temporal isolation status register (SBS_HDPLSR) ..... | 650 |
| 14.5.3 | SBS next HDPL control register (SBS_NEXTHDPLCR) ..... | 650 |
| 14.5.4 | SBS debug control register (SBS_DBGCR) ..... | 651 |
| 14.5.5 | SBS debug lock register (SBS_DBGLOCKR) . . . . . | 651 |
| 14.5.6 | SBS RSS command register (SBS_RSSCMDR) . . . . . | 652 |
| 14.5.7 | SBS EPOCH selection control register (SBS_EPOCHSELCR) . . . . . | 652 |
| 14.5.8 | SBS security mode configuration control register (SBS_SECCFGR) . . . . . | 653 |
| 14.5.9 | SBS product mode and configuration register (SBS_PMCR) . . . . . | 654 |
| 14.5.10 | SBS FPU interrupt mask register (SBS_FPUIMR) . . . . . | 655 |
| 14.5.11 | SBS memory erase status register (SBS_MESR) . . . . . | 656 |
| 14.5.12 | SBS compensation cell for I/Os control and status register (SBS_CCCSR) . . . . . | 656 |
| 14.5.13 | SBS compensation cell for I/Os value register (SBS_CCVALR) . . . . . | 657 |
| 14.5.14 | SBS compensation cell for I/Os software code register (SBS_CCWCR) . . . . . | 658 |
| 14.5.15 | SBS Class B register (SBS_CFGR2) . . . . . | 659 |
| 14.5.16 | SBS CPU nonsecure lock register (SBS_CNSLCKR) . . . . . | 660 |
| 14.5.17 | SBS CPU secure lock register (SBS_CSLCKR) . . . . . | 661 |
| 14.5.18 | SBS flift ECC NMI mask register (SBS_ECCNMIR) . . . . . | 662 |
| 14.5.19 | SBS OTG_HS PHY tune register 2 (SBS_OTGHSPHYTUNER2) . . . . . | 662 |
| 14.5.20 | SBS register map . . . . . | 663 |
| 15 | Peripherals interconnect matrix . . . . . | 666 |
| 15.1 | Interconnect matrix introduction . . . . . | 666 |
| 15.2 | Connection summary . . . . . | 666 |
| 15.3 | Interconnection details . . . . . | 668 |
| 15.3.1 | Master to slave interconnection for timers . . . . . | 668 |
| 15.3.2 | Triggers to ADCs . . . . . | 668 |
| 15.3.3 | ADC analog watchdogs as triggers to timers and PLAY1 . . . . . | 669 |
| 15.3.4 | Triggers to DAC . . . . . | 670 |
| 15.3.5 | Clock sources to timers . . . . . | 670 |
| 15.3.6 | Triggers to low-power timers . . . . . | 671 |
| 15.3.7 | RTC wake-up as input to timers . . . . . | 672 |
| 15.3.8 | System errors as break signals to timers . . . . . | 672 |
| 15.3.9 | I3C as trigger to timers . . . . . | 673 |
| 15.3.10 | Triggers to GPDMA1/2 . . . . . | 673 |
| 15.3.11 | Internal analog signals to analog peripherals . . . . . | 674 |
| 15.3.12 | Clock source for the DAC sample and hold mode . . . . . | 674 |
| 15.3.13 | Internal tamper sources . . . . . | 674 |
| 15.3.14 | Output from tamper to RTC . . . . . | 674 |
| 15.3.15 | Timer break from MDF1 . . . . . | 675 |
| 15.3.16 | Comparators as inputs, trigger, or break signals to timers1 . . . . . | 675 |
| 15.3.17 | Triggers on MDF1 or ADF1 . . . . . | 676 |
| 15.3.18 | Blanking sources to comparators . . . . . | 677 |
| 15.3.19 | OTG_FS/OTG_HS SOF as trigger to timers . . . . . | 677 |
| 15.3.20 | Ethernet as trigger to timers . . . . . | 678 |
| 15.3.21 | Timers as trigger to Ethernet . . . . . | 678 |
| 15.3.22 | PLAY1 as input to timers . . . . . | 678 |
| 15.3.23 | ADC data filtering by the MDF1/ADF1 . . . . . | 679 |
| 15.3.24 | Inputs to PLAY1 . . . . . | 679 |
| 15.3.25 | Triggers to DTS . . . . . | 680 |
| 15.3.26 | Encryption keys to AES/SAES . . . . . | 680 |
| 16 | General purpose direct memory access controller (GPDMA) . . . . . | 681 |
| 16.1 | GPDMA introduction . . . . . | 681 |
| 16.2 | GPDMA main features . . . . . | 681 |
| 16.3 | GPDMA implementation . . . . . | 682 |
| 16.3.1 | GPDMA instances . . . . . | 682 |
| 16.3.2 | GPDMA channels . . . . . | 682 |
| 16.3.3 | GPDMA in low-power modes . . . . . | 683 |
| 16.3.4 | GPDMA requests . . . . . | 683 |
| 16.3.5 | GPDMA block requests . . . . . | 688 |
| 16.3.6 | GPDMA channels with peripheral early termination . . . . . | 688 |
| 16.3.7 | GPDMA triggers . . . . . | 689 |
| 16.4 | GPDMA functional description . . . . . | 692 |
| 16.4.1 | GPDMA block diagram . . . . . | 692 |
| 16.4.2 | GPDMA channel state and direct programming without any linked-list . . . . . | 692 |
| 16.4.3 | GPDMA channel suspend and resume . . . . . | 693 |
| 16.4.4 | GPDMA channel abort and restart . . . . . | 694 |
| 16.4.5 | GPDMA linked-list data structure . . . . . | 695 |
| 16.4.6 | Linked-list item transfer execution . . . . . | 698 |
| 16.4.7 | GPDMA channel state and linked-list programming in run-to-completion mode . . . . . | 698 |
| 16.4.8 | GPDMA channel state and linked-list programming in link step mode . . . . . | 702 |
| 16.4.9 | GPDMA channel state and linked-list programming . . . . . | 709 |
| 16.4.10 | GPDMA FIFO-based transfers . . . . . | 711 |
| 16.4.11 | GPDMA transfer request and arbitration . . . . . | 718 |
| 16.4.12 | GPDMA triggered transfer | 722 |
| 16.4.13 | GPDMA circular buffering with linked-list programming | 723 |
| 16.4.14 | GPDMA transfer in peripheral flow-control mode | 725 |
| 16.4.15 | GPDMA secure/nonsecure channel | 726 |
| 16.4.16 | GPDMA privileged/unprivileged channel | 727 |
| 16.4.17 | GPDMA error management | 727 |
| 16.5 | GPDMA in debug mode | 729 |
| 16.6 | GPDMA in low-power modes | 729 |
| 16.7 | GPDMA interrupts | 730 |
| 16.8 | GPDMA registers | 731 |
| 16.8.1 | GPDMA secure configuration register (GPDMA_SECCFGR) | 731 |
| 16.8.2 | GPDMA privileged configuration register (GPDMA_PRIVCFGR) | 732 |
| 16.8.3 | GPDMA configuration lock register (GPDMA_RCFGLOCKR) | 732 |
| 16.8.4 | GPDMA nonsecure masked interrupt status register (GPDMA_MISR) | 733 |
| 16.8.5 | GPDMA secure masked interrupt status register (GPDMA_SMISR) | 734 |
| 16.8.6 | GPDMA channel x linked-list base address register (GPDMA_CxLBAR) | 734 |
| 16.8.7 | GPDMA channel x flag clear register (GPDMA_CxFCR) | 735 |
| 16.8.8 | GPDMA channel x status register (GPDMA_CxSR) | 736 |
| 16.8.9 | GPDMA channel x control register (GPDMA_CxCR) | 737 |
| 16.8.10 | GPDMA channel x transfer register 1 (GPDMA_CxTR1) | 739 |
| 16.8.11 | GPDMA channel x transfer register 2 (GPDMA_CxTR2) | 743 |
| 16.8.12 | GPDMA channel x block register 1 (GPDMA_CxBR1) | 747 |
| 16.8.13 | GPDMA channel x alternate block register 1 (GPDMA_CxBR1) | 748 |
| 16.8.14 | GPDMA channel x source address register (GPDMA_CxSAR) | 751 |
| 16.8.15 | GPDMA channel x destination address register (GPDMA_CxDAR) | 752 |
| 16.8.16 | GPDMA channel x transfer register 3 (GPDMA_CxTR3) | 753 |
| 16.8.17 | GPDMA channel x block register 2 (GPDMA_CxBR2) | 754 |
| 16.8.18 | GPDMA channel x linked-list address register (GPDMA_CxLLR) | 755 |
| 16.8.19 | GPDMA channel x alternate linked-list address register (GPDMA_CxLLR) | 757 |
| 16.8.20 | GPDMA register map | 758 |
| 17 | Chrom-ART2 accelerator controller (DMA2D) | 761 |
| 17.1 | DMA2D introduction | 761 |
| 17.2 | DMA2D main features | 762 |
| 17.3 | DMA2D functional description | 763 |
| 17.3.1 | General description | 763 |
| 17.3.2 | DMA2D internal signals | 763 |
| 17.3.3 | DMA2D pipeline | 765 |
| 17.3.4 | DMA2D control and global operating mode | 767 |
| 17.3.5 | DMA2D fetching stage | 767 |
| 17.3.6 | DMA2D input pixel format conversion stage | 770 |
| 17.3.7 | DMA2D foreground and background CLUT interface | 772 |
| 17.3.8 | DMA2D pixel skipper stage | 773 |
| 17.3.9 | DMA2D stenciling stage (pre-blend or post-blend) | 774 |
| 17.3.10 | DMA2D scaling stage (pre-blend or post-blend) | 775 |
| 17.3.11 | DMA2D buffer/rotate stage | 776 |
| 17.3.12 | DMA2D YCbCr PFC stage / JPEG decoding | 780 |
| 17.3.13 | DMA2D blender stage | 781 |
| 17.3.14 | DMA2D output PFC stage | 782 |
| 17.3.15 | DMA2D write stage | 782 |
| 17.3.16 | DMA2D output FIFO byte reordering | 783 |
| 17.3.17 | Watermark | 785 |
| 17.3.18 | DMA2D AHB master port timer | 785 |
| 17.3.19 | DMA2D configuration | 785 |
| 17.3.20 | DMA2D configuration error detection | 788 |
| 17.3.21 | DMA2D transfer control (start, suspend, abort, and completion) | 791 |
| 17.3.22 | DMA2D error management | 791 |
| 17.3.23 | General purpose flags | 792 |
| 17.3.24 | Command list management | 793 |
| 17.4 | DMA2D interrupts | 800 |
| 17.5 | DMA2D registers | 801 |
| 17.5.1 | DMA2D control register (DMA2D_CR) | 801 |
| 17.5.2 | DMA2D interrupt status register (DMA2D_ISR) | 802 |
| 17.5.3 | DMA2D interrupt enable register (DMA2D_IER) | 804 |
| 17.5.4 | DMA2D interrupt flag clear register (DMA2D_IFCR) | 806 |
| 17.5.5 | DMA2D foreground memory address register (DMA2D_FGMAR) | 807 |
| 17.5.6 | DMA2D foreground offset register (DMA2D_FGOR) | 808 |
| 17.5.7 | DMA2D foreground memory skip register (DMA2D_FGMSR) | 808 |
| 17.5.8 | DMA2D foreground PFC control register (DMA2D_FGPFCCR) | 809 |
| 17.5.9 | DMA2D foreground color register (DMA2D_FGCOLR) | 811 |
| 17.5.10 | DMA2D foreground CLUT memory address register (DMA2D_FGCMAR) ..... | 812 |
| 17.5.11 | DMA2D background memory address register (DMA2D_BGMAR) .. | 812 |
| 17.5.12 | DMA2D background offset register (DMA2D_BGOR) ..... | 813 |
| 17.5.13 | DMA2D background memory skip register (DMA2D_BGMSR) ..... | 813 |
| 17.5.14 | DMA2D background PFC control register (DMA2D_BGPFCCR) .... | 814 |
| 17.5.15 | DMA2D background color register (DMA2D_BGCOLR) ..... | 816 |
| 17.5.16 | DMA2D background CLUT memory address register (DMA2D_BGCMAR) ..... | 816 |
| 17.5.17 | DMA2D output PFC control register (DMA2D_OPFCCR) ..... | 817 |
| 17.5.18 | DMA2D output color register (DMA2D_OCOLR) ..... | 818 |
| 17.5.19 | DMA2D output memory address register (DMA2D_OMAR) ..... | 819 |
| 17.5.20 | DMA2D output offset register (DMA2D_OOR) ..... | 819 |
| 17.5.21 | DMA2D number of line register (DMA2D_NLR) ..... | 820 |
| 17.5.22 | DMA2D line watermark register (DMA2D_LWR) ..... | 820 |
| 17.5.23 | DMA2D AHB master timer configuration register (DMA2D_AMTCR) ..... | 821 |
| 17.5.24 | DMA2D stencil buffer configuration register (DMA2D_SBCR) ..... | 821 |
| 17.5.25 | DMA2D stencil buffer memory address register (DMA2D_SBMAR) .. | 822 |
| 17.5.26 | DMA2D stencil buffer offset register (DMA2D_SBOR) ..... | 822 |
| 17.5.27 | DMA2D stencil buffer memory skip register (DMA2D_SBMSR) .... | 823 |
| 17.5.28 | DMA2D tile buffer configuration register (DMA2D_TBCR) ..... | 824 |
| 17.5.29 | DMA2D scaler configuration register (DMA2D_SCR) ..... | 825 |
| 17.5.30 | DMA2D scaler number of line register (DMA2D_SNLR) ..... | 825 |
| 17.5.31 | DMA2D scaler step register (DMA2D_SSR) ..... | 826 |
| 17.5.32 | DMA2D scaler phase register (DMA2D_SPR) ..... | 826 |
| 17.5.33 | DMA2D general purpose flag configuration register (DMA2D_GPFCR) ..... | 827 |
| 17.5.34 | DMA2D general purpose flag register (DMA2D_GPFR) ..... | 828 |
| 17.5.35 | DMA2D general purpose flag set register (DMA2D_GPFSR) ..... | 829 |
| 17.5.36 | DMA2D general purpose flag reset register (DMA2D_GPFRR) .... | 829 |
| 17.5.37 | DMA2D command list configuration register (DMA2D_CLCR) ..... | 830 |
| 17.5.38 | DMA2D command list status register (DMA2D_CLSR) ..... | 831 |
| 17.5.39 | DMA2D ring buffer base address register (DMA2D_RBBAR) ..... | 833 |
| 17.5.40 | DMA2D ring buffer head pointer register (DMA2D_RBHPR) ..... | 833 |
| 17.5.41 | DMA2D ring buffer write pointer register (DMA2D_RBWPR) ..... | 834 |
| 17.5.42 | DMA2D linear buffer current base address register (DMA2D_LBCBAR) ..... | 834 |
| 17.5.43 | DMA2D linear buffer current size register (DMA2D_LBCSR) . . . . . | 834 |
| 17.5.44 | DMA2D linear buffer current address register (DMA2D_LBCAR) . . . . . | 835 |
| 17.5.45 | DMA2D foreground CLUTx (DMA2D_FGCLUTx) . . . . . | 835 |
| 17.5.46 | DMA2D background CLUTx (DMA2D_BGCLUTx) . . . . . | 836 |
| 17.5.47 | DMA2D register map . . . . . | 837 |
| 18 | Graphic timer (GFXTIM) . . . . . | 841 |
| 18.1 | GFXTIM introduction . . . . . | 841 |
| 18.2 | GFXTIM main features . . . . . | 841 |
| 18.3 | GFXTIM functional description . . . . . | 841 |
| 18.3.1 | Block diagram . . . . . | 841 |
| 18.3.2 | GFXTIM pins and internal signals . . . . . | 842 |
| 18.3.3 | Clock generator . . . . . | 843 |
| 18.3.4 | Example of clock generator configuration . . . . . | 845 |
| 18.3.5 | Absolute timers . . . . . | 849 |
| 18.3.6 | Relative timers . . . . . | 850 |
| 18.3.7 | Tearing-effect detection . . . . . | 851 |
| 18.3.8 | Event generator . . . . . | 851 |
| 18.3.9 | Watchdog timer . . . . . | 852 |
| 18.4 | GFXTIM interrupts . . . . . | 853 |
| 18.5 | GFXTIM registers . . . . . | 854 |
| 18.5.1 | GFXTIM configuration register (GFXTIM_CR) . . . . . | 854 |
| 18.5.2 | GFXTIM clock generator configuration register (GFXTIM_CGCR) . . . . . | 855 |
| 18.5.3 | GFXTIM timers configuration register (GFXTIM_TCR) . . . . . | 857 |
| 18.5.4 | GFXTIM timers disable register (GFXTIM_TDR) . . . . . | 858 |
| 18.5.5 | GFXTIM events control register (GFXTIM_EVCR) . . . . . | 859 |
| 18.5.6 | GFXTIM events selection register (GFXTIM_EVSR) . . . . . | 859 |
| 18.5.7 | GFXTIM watchdog timer configuration register (GFXTIM_WDGTCR) . . . . . | 861 |
| 18.5.8 | GFXTIM interrupt status register (GFXTIM_ISR) . . . . . | 863 |
| 18.5.9 | GFXTIM interrupt clear register (GFXTIM_ICR) . . . . . | 864 |
| 18.5.10 | GFXTIM interrupt enable register (GFXTIM_IER) . . . . . | 866 |
| 18.5.11 | GFXTIM timers status register (GFXTIM_TSR) . . . . . | 868 |
| 18.5.12 | GFXTIM line-clock counter reload register (GFXTIM_LCCRR) . . . . . | 869 |
| 18.5.13 | GFXTIM frame-clock counter reload register (GFXTIM_FCCRR) . . . . . | 869 |
| 18.5.14 | GFXTIM absolute time register (GFXTIM_ATR) . . . . . | 869 |
| 18.5.15 | GFXTIM absolute frame counter register (GFXTIM_AFCR) . . . . . | 870 |
| 18.5.16 | GFXTIM absolute line counter register (GFXTIM_ALCR) . . . . . | 870 |
| 18.5.17 | GFXTIM absolute frame counter compare 1 register (GFXTIM_AFCC1R) . . . . . | 871 |
| 18.5.18 | GFXTIM absolute line counter compare 1 register (GFXTIM_ALCC1R) . . . . . | 871 |
| 18.5.19 | GFXTIM absolute line counter compare 2 register (GFXTIM_ALCC2R) . . . . . | 871 |
| 18.5.20 | GFXTIM relative frame counter 1 register (GFXTIM_RFC1R) . . . . . | 872 |
| 18.5.21 | GFXTIM relative frame counter 1 reload register (GFXTIM_RFC1RR) . . . . . | 872 |
| 18.5.22 | GFXTIM relative frame counter 2 register (GFXTIM_RFC2R) . . . . . | 873 |
| 18.5.23 | GFXTIM relative frame counter 2 reload register (GFXTIM_RFC2RR) . . . . . | 873 |
| 18.5.24 | GFXTIM watchdog counter register (GFXTIM_WDGCR) . . . . . | 873 |
| 18.5.25 | GFXTIM watchdog reload register (GFXTIM_WDGRR) . . . . . | 874 |
| 18.5.26 | GFXTIM watchdog pre-alarm register (GFXTIM_WDGPAR) . . . . . | 874 |
| 18.5.27 | GFXTIM register map . . . . . | 874 |
| 19 | Nested vectored interrupt controller (NVIC) . . . . . | 877 |
| 19.1 | NVIC main features . . . . . | 877 |
| 19.2 | SysTick calibration value register . . . . . | 877 |
| 19.3 | Interrupt and exception vectors . . . . . | 878 |
| 20 | Extended interrupts and event controller (EXTI) . . . . . | 884 |
| 20.1 | EXTI main features . . . . . | 884 |
| 20.2 | EXTI block diagram . . . . . | 885 |
| 20.2.1 | EXTI connections between peripherals and CPU . . . . . | 886 |
| 20.2.2 | EXTI interrupt/event mapping . . . . . | 886 |
| 20.3 | EXTI functional description . . . . . | 888 |
| 20.3.1 | EXTI configurable event input wake-up . . . . . | 889 |
| 20.3.2 | EXTI direct event input wake-up . . . . . | 890 |
| 20.3.3 | EXTI multiplexer selection . . . . . | 890 |
| 20.4 | EXTI functional behavior . . . . . | 891 |
| 20.5 | EXTI event protection . . . . . | 891 |
| 20.5.1 | EXTI security protection . . . . . | 892 |
| 20.5.2 | EXTI privilege protection . . . . . | 892 |
| 20.6 | EXTI registers . . . . . | 893 |
| 20.6.1 | EXTI rising trigger selection register (EXTI_RTSR1) . . . . . | 893 |
| 20.6.2 | EXTI falling trigger selection register (EXTI_FTSR1) . . . . . | 894 |
| 20.6.3 | EXTI software interrupt event register (EXTI_SWIER1) . . . . . | 894 |
| 20.6.4 | EXTI rising edge pending register (EXTI_RPR1) . . . . . | 895 |
| 20.6.5 | EXTI falling edge pending register (EXTI_FPR1) . . . . . | 896 |
| 20.6.6 | EXTI security configuration register (EXTI_SECCFGR1) . . . . . | 896 |
| 20.6.7 | EXTI privilege configuration register (EXTI_PRIVCFGR1) . . . . . | 897 |
| 20.6.8 | EXTI rising trigger selection register 2 (EXTI_RTSR2) . . . . . | 897 |
| 20.6.9 | EXTI falling trigger selection register 2 (EXTI_FTSR2) . . . . . | 899 |
| 20.6.10 | EXTI software interrupt event register 2 (EXTI_SWIER2) . . . . . | 901 |
| 20.6.11 | EXTI rising edge pending register 2 (EXTI_RPR2) . . . . . | 904 |
| 20.6.12 | EXTI falling edge pending register 2 (EXTI_FPR2) . . . . . | 906 |
| 20.6.13 | EXTI security configuration register 2 (EXTI_SECCFGR2) . . . . . | 908 |
| 20.6.14 | EXTI privilege configuration register 2 (EXTI_PRIVCFGR2) . . . . . | 909 |
| 20.6.15 | EXTI rising trigger selection register 3 (EXTI_RTSR3) . . . . . | 909 |
| 20.6.16 | EXTI falling trigger selection register 3 (EXTI_FTSR3) . . . . . | 910 |
| 20.6.17 | EXTI software interrupt event register 3 (EXTI_SWIER3) . . . . . | 911 |
| 20.6.18 | EXTI rising edge pending register 3 (EXTI_RPR3) . . . . . | 912 |
| 20.6.19 | EXTI falling edge pending register 3 (EXTI_FPR3) . . . . . | 913 |
| 20.6.20 | EXTI security configuration register 3 (EXTI_SECCFGR3) . . . . . | 914 |
| 20.6.21 | EXTI privilege configuration register 3 (EXTI_PRIVCFGR3) . . . . . | 915 |
| 20.6.22 | EXTI external interrupt selection register (EXTI_EXTICR1) . . . . . | 915 |
| 20.6.23 | EXTI external interrupt selection register (EXTI_EXTICR2) . . . . . | 918 |
| 20.6.24 | EXTI external interrupt selection register (EXTI_EXTICR3) . . . . . | 920 |
| 20.6.25 | EXTI external interrupt selection register (EXTI_EXTICR4) . . . . . | 923 |
| 20.6.26 | EXTI lock register (EXTI_LOCKR) . . . . . | 925 |
| 20.6.27 | EXTI CPU wake-up with interrupt mask register (EXTI_IMR1) . . . . . | 926 |
| 20.6.28 | EXTI CPU wake-up with event mask register (EXTI_EMR1) . . . . . | 926 |
| 20.6.29 | EXTI CPU wake-up with interrupt mask register 2 (EXTI_IMR2) . . . . . | 927 |
| 20.6.30 | EXTI CPU wake-up with event mask register 2 (EXTI_EMR2) . . . . . | 928 |
| 20.6.31 | EXTI CPU wake-up with interrupt mask register 3 (EXTI_IMR3) . . . . . | 929 |
| 20.6.32 | EXTI CPU wake-up with event mask register 3 (EXTI_EMR3) . . . . . | 930 |
| 20.6.33 | EXTI register map . . . . . | 930 |
| 21 | Cyclic redundancy check calculation unit (CRC) . . . . . | 934 |
| 21.1 | CRC introduction . . . . . | 934 |
| 21.2 | CRC main features . . . . . | 934 |
| 21.3 | CRC functional description . . . . . | 935 |
| 21.3.1 | CRC block diagram | 935 |
| 21.3.2 | CRC internal signals | 935 |
| 21.3.3 | CRC operation | 935 |
| 21.4 | CRC registers | 937 |
| 21.4.1 | CRC data register (CRC_DR) | 937 |
| 21.4.2 | CRC independent data register (CRC_IDR) | 937 |
| 21.4.3 | CRC control register (CRC_CR) | 938 |
| 21.4.4 | CRC initial value (CRC_INIT) | 939 |
| 21.4.5 | CRC polynomial (CRC_POL) | 939 |
| 21.4.6 | CRC register map | 940 |
| 22 | CORDIC coprocessor (CORDIC) | 941 |
| 22.1 | CORDIC introduction | 941 |
| 22.2 | CORDIC main features | 941 |
| 22.3 | CORDIC functional description | 941 |
| 22.3.1 | General description | 941 |
| 22.3.2 | CORDIC functions | 941 |
| 22.3.3 | Fixed point representation | 948 |
| 22.3.4 | Scaling factor | 948 |
| 22.3.5 | Precision | 949 |
| 22.3.6 | Zero-overhead mode | 952 |
| 22.3.7 | Polling mode | 953 |
| 22.3.8 | Interrupt mode | 954 |
| 22.3.9 | DMA mode | 954 |
| 22.4 | CORDIC registers | 955 |
| 22.4.1 | CORDIC control/status register (CORDIC_CSR) | 955 |
| 22.4.2 | CORDIC argument register (CORDIC_WDATA) | 957 |
| 22.4.3 | CORDIC result register (CORDIC_RDATA) | 958 |
| 22.4.4 | CORDIC register map | 958 |
| 23 | Filter math accelerator (FMAC) | 959 |
| 23.1 | FMAC introduction | 959 |
| 23.2 | FMAC main features | 959 |
| 23.3 | FMAC functional description | 960 |
| 23.3.1 | General description | 960 |
| 23.3.2 | Local memory and buffers | 961 |
| 23.3.3 | Input buffers ..... | 961 |
| 23.3.4 | Output buffer ..... | 964 |
| 23.3.5 | Initialization functions ..... | 966 |
| 23.3.6 | Filter functions ..... | 967 |
| 23.3.7 | Fixed point representation ..... | 971 |
| 23.3.8 | Implementing FIR filters with the FMAC ..... | 971 |
| 23.3.9 | Implementing IIR filters with the FMAC ..... | 973 |
| 23.3.10 | Examples of filter initialization ..... | 975 |
| 23.3.11 | Examples of filter operation ..... | 976 |
| 23.3.12 | Filter design tips ..... | 978 |
| 23.4 | FMAC registers ..... | 979 |
| 23.4.1 | FMAC X1 buffer configuration register (FMAC_X1BUFCFG) ..... | 979 |
| 23.4.2 | FMAC X2 buffer configuration register (FMAC_X2BUFCFG) ..... | 979 |
| 23.4.3 | FMAC Y buffer configuration register (FMAC_YBUFCFG) ..... | 980 |
| 23.4.4 | FMAC parameter register (FMAC_PARAM) ..... | 981 |
| 23.4.5 | FMAC control register (FMAC_CR) ..... | 982 |
| 23.4.6 | FMAC status register (FMAC_SR) ..... | 983 |
| 23.4.7 | FMAC write data register (FMAC_WDATA) ..... | 984 |
| 23.4.8 | FMAC read data register (FMAC_RDATA) ..... | 985 |
| 23.4.9 | FMAC register map ..... | 985 |
| 24 | Programmable logic array (PLAY) ..... | 987 |
| 24.1 | PLAY introduction ..... | 987 |
| 24.2 | PLAY main features ..... | 987 |
| 24.3 | PLAY functional description ..... | 987 |
| 24.3.1 | PLAY block diagram ..... | 988 |
| 24.3.2 | PLAY pins and internal signals ..... | 988 |
| 24.3.3 | PLAY reset and clocks ..... | 991 |
| 24.3.4 | Input selection ..... | 991 |
| 24.3.5 | Input filtering and edge detection ..... | 992 |
| 24.3.6 | Software programmable inputs ..... | 994 |
| 24.3.7 | Logic elements ..... | 994 |
| 24.3.8 | Input interconnect ..... | 998 |
| 24.3.9 | Output interconnect ..... | 1003 |
| 24.3.10 | Flags ..... | 1004 |
| 24.3.11 | Miscellaneous status bits ..... | 1005 |
| 24.4 | PLAY in low-power modes ..... | 1005 |
| 24.5 | PLAY interrupts | 1005 |
| 24.6 | PLAY registers | 1006 |
| 24.6.1 | PLAY configuration control register (PLAY_CFGCR) | 1007 |
| 24.6.2 | PLAY security attributes configuration register (PLAY_SECCFGR) | 1007 |
| 24.6.3 | PLAY privilege attributes configuration register (PLAY_PRIVCFGR) | 1008 |
| 24.6.4 | PLAY filter x configuration register (PLAY_FILTxCFG) | 1009 |
| 24.6.5 | PLAY logic element x configuration register 1 (PLAY_LExCFG1) | 1010 |
| 24.6.6 | PLAY logic element x configuration register 2 (PLAY_LExCFG2) | 1010 |
| 24.6.7 | PLAY output x configuration register (PLAY_OUTxCFG) | 1011 |
| 24.6.8 | PLAY software input status register (PLAY_SWIN) | 1012 |
| 24.6.9 | PLAY software input set register (PLAY_SWINSET) | 1012 |
| 24.6.10 | PLAY software input clear register (PLAY_SWINCLR) | 1013 |
| 24.6.11 | PLAY output status register (PLAY_OSR) | 1014 |
| 24.6.12 | PLAY flag status register (PLAY_FLSTAT) | 1014 |
| 24.6.13 | PLAY flag set register (PLAY_FLSET) | 1015 |
| 24.6.14 | PLAY flag clear register (PLAY_FLCLR) | 1016 |
| 24.6.15 | PLAY flag interrupt enable register (PLAY_FLIER) | 1016 |
| 24.6.16 | PLAY flag control register (PLAY_FLCTL) | 1017 |
| 24.6.17 | PLAY miscellaneous status register (PLAY_MSR) | 1018 |
| 24.6.18 | PLAY interrupt status register (PLAY_ISR) | 1018 |
| 24.6.19 | PLAY interrupt clear register (PLAY_ICR) | 1019 |
| 24.6.20 | PLAY interrupt enable register (PLAY_IER) | 1020 |
| 24.7 | PLAY register map | 1020 |
| 25 | Flexible memory controller (FMC) | 1023 |
| 25.1 | FMC introduction | 1023 |
| 25.2 | FMC main features | 1023 |
| 25.3 | FMC block diagram | 1024 |
| 25.4 | AHB interface | 1025 |
| 25.4.1 | Supported memories and transactions | 1026 |
| 25.5 | External device address mapping | 1027 |
| 25.5.1 | NOR/PSRAM address mapping | 1028 |
| 25.5.2 | NAND flash memory address mapping | 1028 |
| 25.5.3 | SDRAM address mapping | 1029 |
| 25.6 | NOR flash/PSRAM controller | 1032 |
| 25.6.1 | External memory interface signals | 1034 |
| 25.6.2 | Supported memories and transactions ..... | 1036 |
| 25.6.3 | General timing rules ..... | 1037 |
| 25.6.4 | NOR flash/PSRAM controller asynchronous transactions ..... | 1037 |
| 25.6.5 | Synchronous transactions ..... | 1055 |
| 25.6.6 | NOR/PSRAM controller registers ..... | 1062 |
| 25.7 | NAND flash controller ..... | 1070 |
| 25.7.1 | External memory interface signals ..... | 1070 |
| 25.7.2 | NAND flash supported memories and transactions ..... | 1071 |
| 25.7.3 | Timing diagrams for NAND flash memory ..... | 1072 |
| 25.7.4 | NAND flash operations ..... | 1073 |
| 25.7.5 | NAND flash prewait functionality ..... | 1073 |
| 25.7.6 | Computation of the error correction code (ECC) in NAND flash memory ..... | 1074 |
| 25.7.7 | NAND flash controller registers ..... | 1075 |
| 25.8 | SDRAM controller ..... | 1081 |
| 25.8.1 | SDRAM controller main features ..... | 1081 |
| 25.8.2 | SDRAM External memory interface signals ..... | 1081 |
| 25.8.3 | SDRAM controller functional description ..... | 1082 |
| 25.8.4 | Low-power modes ..... | 1088 |
| 25.8.5 | SDRAM controller registers ..... | 1092 |
| 25.8.6 | FMC register map ..... | 1098 |
| 26 | Extended-SPI interface (OCTOSPI) ..... | 1101 |
| 26.1 | OCTOSPI introduction ..... | 1101 |
| 26.2 | OCTOSPI main features ..... | 1101 |
| 26.3 | OCTOSPI implementation ..... | 1102 |
| 26.4 | OCTOSPI functional description ..... | 1103 |
| 26.4.1 | OCTOSPI block diagram ..... | 1103 |
| 26.4.2 | OCTOSPI pins and internal signals ..... | 1104 |
| 26.4.3 | OCTOSPI interface to memory modes ..... | 1105 |
| 26.4.4 | OCTOSPI regular-command protocol ..... | 1105 |
| 26.4.5 | OCTOSPI regular-command protocol signal interface ..... | 1109 |
| 26.4.6 | HyperBus protocol ..... | 1112 |
| 26.4.7 | Specific features ..... | 1116 |
| 26.4.8 | OCTOSPI operating mode introduction ..... | 1117 |
| 26.4.9 | OCTOSPI indirect mode ..... | 1118 |
| 26.4.10 | OCTOSPI automatic status-polling mode ..... | 1119 |
| 26.4.11 | OCTOSPI memory-mapped mode . . . . . | 1120 |
| 26.4.12 | OCTOSPI configuration introduction . . . . . | 1121 |
| 26.4.13 | OCTOSPI system configuration . . . . . | 1121 |
| 26.4.14 | OCTOSPI device configuration . . . . . | 1122 |
| 26.4.15 | OCTOSPI regular-command mode configuration . . . . . | 1124 |
| 26.4.16 | OCTOSPI HyperBus protocol configuration . . . . . | 1127 |
| 26.4.17 | OCTOSPI error management . . . . . | 1127 |
| 26.4.18 | OCTOSPI BUSY and ABORT . . . . . | 1128 |
| 26.4.19 | OCTOSPI reconfiguration or deactivation . . . . . | 1128 |
| 26.4.20 | NCS behavior . . . . . | 1129 |
| 26.4.21 | Software control of two external memories . . . . . | 1129 |
| 26.4.22 | Hardware-controlled extended memory support . . . . . | 1130 |
| 26.5 | Address alignment and data number . . . . . | 1131 |
| 26.6 | OCTOSPI interrupts . . . . . | 1132 |
| 26.7 | OCTOSPI registers . . . . . | 1133 |
| 26.7.1 | OCTOSPI control register (OCTOSPI_CR) . . . . . | 1133 |
| 26.7.2 | OCTOSPI device configuration register 1 (OCTOSPI_DCR1) . . . . . | 1136 |
| 26.7.3 | OCTOSPI device configuration register 2 (OCTOSPI_DCR2) . . . . . | 1138 |
| 26.7.4 | OCTOSPI device configuration register 3 (OCTOSPI_DCR3) . . . . . | 1139 |
| 26.7.5 | OCTOSPI device configuration register 4 (OCTOSPI_DCR4) . . . . . | 1140 |
| 26.7.6 | OCTOSPI status register (OCTOSPI_SR) . . . . . | 1140 |
| 26.7.7 | OCTOSPI flag clear register (OCTOSPI_FCR) . . . . . | 1141 |
| 26.7.8 | OCTOSPI data length register (OCTOSPI_DLR) . . . . . | 1142 |
| 26.7.9 | OCTOSPI address register (OCTOSPI_AR) . . . . . | 1143 |
| 26.7.10 | OCTOSPI data register (OCTOSPI_DR) . . . . . | 1143 |
| 26.7.11 | OCTOSPI polling status mask register (OCTOSPI_PSMKR) . . . . . | 1144 |
| 26.7.12 | OCTOSPI polling status match register (OCTOSPI_PSMAR) . . . . . | 1144 |
| 26.7.13 | OCTOSPI polling interval register (OCTOSPI_PIR) . . . . . | 1145 |
| 26.7.14 | OCTOSPI communication configuration register (OCTOSPI_CCR) . . . . . | 1145 |
| 26.7.15 | OCTOSPI timing configuration register (OCTOSPI_TCR) . . . . . | 1147 |
| 26.7.16 | OCTOSPI instruction register (OCTOSPI_IR) . . . . . | 1148 |
| 26.7.17 | OCTOSPI alternate bytes register (OCTOSPI_ABR) . . . . . | 1148 |
| 26.7.18 | OCTOSPI low-power timeout register (OCTOSPI_LPTR) . . . . . | 1149 |
| 26.7.19 | OCTOSPI wrap communication configuration register (OCTOSPI_WPCCR) . . . . . | 1149 |
| 26.7.20 | OCTOSPI wrap timing configuration register (OCTOSPI_WPTCR) . . . . . | 1151 |
| 26.7.21 | OCTOSPI wrap instruction register (OCTOSPI_WPIR) . . . . . | 1152 |
| 26.7.22 | OCTOSPI wrap alternate bytes register (OCTOSPI_WPABR) . . . . . | 1152 |
| 26.7.23 | OCTOSPI write communication configuration register (OCTOSPI_WCCR) . . . . . | 1153 |
| 26.7.24 | OCTOSPI write timing configuration register (OCTOSPI_WTCR) . . . | 1155 |
| 26.7.25 | OCTOSPI write instruction register (OCTOSPI_WIR) . . . . . | 1155 |
| 26.7.26 | OCTOSPI write alternate bytes register (OCTOSPI_WABR) . . . . . | 1156 |
| 26.7.27 | OCTOSPI HyperBus latency configuration register (OCTOSPI_HLCR) . . . . . | 1156 |
| 26.7.28 | OCTOSPI register map . . . . . | 1157 |
| 27 | Extended-SPI I/O manager (OCTOSPIM) . . . . . | 1160 |
| 27.1 | Introduction . . . . . | 1160 |
| 27.2 | OCTOSPIM main features . . . . . | 1160 |
| 27.3 | OCTOSPIM implementation . . . . . | 1160 |
| 27.4 | OCTOSPIM functional description . . . . . | 1160 |
| 27.4.1 | OCTOSPIM block diagram . . . . . | 1160 |
| 27.4.2 | OCTOSPIM input/output pins . . . . . | 1161 |
| 27.4.3 | OCTOSPIM matrix . . . . . | 1161 |
| 27.4.4 | OCTOSPIM multiplexed mode . . . . . | 1162 |
| 27.5 | Use cases description . . . . . | 1162 |
| 27.5.1 | Two OCTOSPIs direct mode . . . . . | 1163 |
| 27.5.2 | OCTOSPI swapped mode . . . . . | 1163 |
| 27.5.3 | Two OCTOSPIs multiplexed mode to Port 1 accessing two external memories . . . . . | 1164 |
| 27.5.4 | Two OCTOSPIs multiplexed mode to Port 2 accessing two external memories . . . . . | 1165 |
| 27.5.5 | OCTOSPI1 and OCTOSPI2 drive a single external memory . . . . . | 1166 |
| 27.5.6 | A single OCTOSPI drives two external memories . . . . . | 1166 |
| 27.6 | OCTOSPIM registers . . . . . | 1168 |
| 27.6.1 | OCTOSPIM control register (OCTOSPIM_CR) . . . . . | 1168 |
| 27.6.2 | OCTOSPIM register map . . . . . | 1169 |
| 28 | Secure digital input/output MultiMediaCard interface (SDMMC) . . | 1170 |
| 28.1 | SDMMC main features . . . . . | 1170 |
| 28.2 | SDMMC implementation . . . . . | 1170 |
| 28.3 | SDMMC bus topology . . . . . | 1171 |
| 28.4 | SDMMC operation modes . . . . . | 1173 |
| 28.5 | SDMMC functional description | 1174 |
| 28.5.1 | SDMMC block diagram | 1174 |
| 28.5.2 | SDMMC pins and internal signals | 1174 |
| 28.5.3 | General description | 1175 |
| 28.5.4 | SDMMC adapter | 1177 |
| 28.5.5 | SDMMC AHB slave interface | 1199 |
| 28.5.6 | SDMMC AHB master interface | 1200 |
| 28.5.7 | AHB and SDMMC_CK clock relation | 1203 |
| 28.6 | Card functional description | 1203 |
| 28.6.1 | SD I/O mode | 1203 |
| 28.6.2 | CMD12 send timing | 1211 |
| 28.6.3 | Sleep (CMD5) | 1215 |
| 28.6.4 | Interrupt mode (Wait-IRQ) | 1216 |
| 28.6.5 | Boot operation | 1217 |
| 28.6.6 | Response R1b handling | 1220 |
| 28.6.7 | Reset and card cycle power | 1221 |
| 28.7 | Hardware flow control | 1222 |
| 28.8 | Ultra-high-speed phase I (UHS-I) voltage switch | 1222 |
| 28.9 | SDMMC interrupts | 1226 |
| 28.10 | SDMMC registers | 1227 |
| 28.10.1 | SDMMC power control register (SDMMC_POWER) | 1227 |
| 28.10.2 | SDMMC clock control register (SDMMC_CLKCR) | 1228 |
| 28.10.3 | SDMMC argument register (SDMMC_ARGR) | 1230 |
| 28.10.4 | SDMMC command register (SDMMC_CMDR) | 1230 |
| 28.10.5 | SDMMC command response register (SDMMC_RESPCMDR) | 1232 |
| 28.10.6 | SDMMC response x register (SDMMC_RESPxR) | 1233 |
| 28.10.7 | SDMMC data timer register (SDMMC_DTIMER) | 1233 |
| 28.10.8 | SDMMC data length register (SDMMC_DLENR) | 1234 |
| 28.10.9 | SDMMC data control register (SDMMC_DCTRL) | 1235 |
| 28.10.10 | SDMMC data counter register (SDMMC_DCNTR) | 1236 |
| 28.10.11 | SDMMC status register (SDMMC_STAR) | 1237 |
| 28.10.12 | SDMMC interrupt clear register (SDMMC_ICR) | 1240 |
| 28.10.13 | SDMMC mask register (SDMMC_MASKR) | 1242 |
| 28.10.14 | SDMMC acknowledgment timer register (SDMMC_ACKTIMER) | 1245 |
| 28.10.15 | SDMMC DMA control register (SDMMC_IDMACTRLR) | 1245 |
| 28.10.16 | SDMMC IDMA buffer size register (SDMMC_IDMABSIZER) | 1246 |
| 28.10.17 | SDMMC IDMA buffer base address register (SDMMC_IDMABASER) ..... | 1247 |
| 28.10.18 | SDMMC IDMA linked list address register (SDMMC_IDMALAR) ... | 1247 |
| 28.10.19 | SDMMC IDMA linked list memory base register (SDMMC_IDMABAR) ..... | 1248 |
| 28.10.20 | SDMMC data FIFO registers x (SDMMC_FIFORx) ..... | 1249 |
| 28.10.21 | SDMMC register map ..... | 1249 |
| 29 | Delay block (DLYB) ..... | 1252 |
| 29.1 | DLYB introduction ..... | 1252 |
| 29.2 | DLYB main features ..... | 1252 |
| 29.3 | DLYB implementation ..... | 1252 |
| 29.4 | DLYB functional description ..... | 1252 |
| 29.4.1 | DLYB diagram ..... | 1252 |
| 29.4.2 | DLYB pins and internal signals ..... | 1253 |
| 29.4.3 | General description ..... | 1253 |
| 29.4.4 | Delay line length configuration procedure ..... | 1254 |
| 29.4.5 | Output clock phase configuration procedure ..... | 1255 |
| 29.5 | DLYB registers ..... | 1255 |
| 29.5.1 | DLYB control register (DLYB_CR) ..... | 1255 |
| 29.5.2 | DLYB configuration register (DLYB_CFGR) ..... | 1256 |
| 29.5.3 | DLYB register map ..... | 1257 |
| 30 | Analog-to-digital converters (ADC1/2/3) ..... | 1258 |
| 30.1 | ADC introduction ..... | 1258 |
| 30.2 | ADC main features ..... | 1258 |
| 30.3 | ADC implementation ..... | 1260 |
| 30.4 | ADC functional description ..... | 1261 |
| 30.4.1 | ADC block diagram ..... | 1261 |
| 30.4.2 | ADC pins and internal signals ..... | 1262 |
| 30.4.3 | ADC clocks ..... | 1265 |
| 30.4.4 | ADC connectivity ..... | 1267 |
| 30.4.5 | Slave AHB interface ..... | 1270 |
| 30.4.6 | ADC Deep-power-down mode (DEEPPWD) and ADC voltage regulator (ADVREGEN) ..... | 1270 |
| 30.4.7 | Single-ended and differential input channels ..... | 1271 |
| 30.4.8 | Calibration (ADCAL, ADCALDIF, ADC_CALFACT) ..... | 1271 |
| 30.4.9 | ADC on-off control (ADEN, ADDIS, ADRDY) . . . . . | 1274 |
| 30.4.10 | Constraints when writing the ADC control bits . . . . . | 1275 |
| 30.4.11 | Channel selection (ADC_SQRy, ADC_JSQR) . . . . . | 1276 |
| 30.4.12 | Channel-wise programmable sampling time (SMPR1, SMPR2) . . . . . | 1277 |
| 30.4.13 | Single conversion mode (CONT = 0) . . . . . | 1279 |
| 30.4.14 | Continuous conversion mode (CONT = 1) . . . . . | 1279 |
| 30.4.15 | Starting conversions (ADSTART, JADSTART) . . . . . | 1280 |
| 30.4.16 | ADC timing . . . . . | 1281 |
| 30.4.17 | Stopping an ongoing conversion (ADSTP, JADSTP) . . . . . | 1282 |
| 30.4.18 | Conversion on external trigger and trigger polarity (EXTSEL, EXTEN, JEXTSEL, JEXTEN) . . . . . | 1283 |
| 30.4.19 | Injected channel management . . . . . | 1285 |
| 30.4.20 | Discontinuous mode (DISCEN, DISCNUM, JDISCEN) . . . . . | 1286 |
| 30.4.21 | Queue of context for injected conversions . . . . . | 1287 |
| 30.4.22 | Programmable resolution (RES) - fast conversion mode . . . . . | 1295 |
| 30.4.23 | End of conversion, end of sampling phase (EOC, JEOC, EOSMP) . . . . . | 1296 |
| 30.4.24 | End of conversion sequence (EOS, JEOS) . . . . . | 1296 |
| 30.4.25 | Timing diagrams example (single/continuous modes, hardware/software triggers) . . . . . | 1297 |
| 30.4.26 | Data management . . . . . | 1299 |
| 30.4.27 | Managing conversions using the ADF/MDF . . . . . | 1305 |
| 30.4.28 | Dynamic low-power features . . . . . | 1306 |
| 30.4.29 | Analog window watchdog (AWD1EN, JAWD1EN, AWD1SGL, AWD1CH, AWD2CH, AWD3CH, AWD_HTx, AWD_LTx, AWDx) . . . . . | 1311 |
| 30.4.30 | Oversampler . . . . . | 1315 |
| 30.4.31 | Dual ADC modes . . . . . | 1322 |
| 30.4.32 | Temperature sensor . . . . . | 1335 |
| 30.4.33 | VBAT supply monitoring . . . . . | 1337 |
| 30.4.34 | Monitoring the internal voltage reference . . . . . | 1338 |
| 30.4.35 | Monitoring the supply voltage . . . . . | 1339 |
| 30.5 | ADC interrupts . . . . . | 1340 |
| 30.6 | ADC registers (for each ADC) . . . . . | 1341 |
| 30.6.1 | ADC interrupt and status register (ADC_ISR) . . . . . | 1341 |
| 30.6.2 | ADC interrupt enable register (ADC_IER) . . . . . | 1343 |
| 30.6.3 | ADC control register (ADC_CR) . . . . . | 1345 |
| 30.6.4 | ADC configuration register (ADC_CFGR) . . . . . | 1348 |
| 30.6.5 | ADC configuration register 2 (ADC_CFGR2) . . . . . | 1353 |
| 30.6.6 | ADC sample time register 1 (ADC_SMPR1) . . . . . | 1355 |
| 30.6.7 | ADC sample time register 2 (ADC_SMPR2) . . . . . | 1356 |
| 30.6.8 | ADC watchdog threshold register 1 (ADC_TR1) . . . . . | 1357 |
| 30.6.9 | ADC watchdog threshold register 2 (ADC_TR2) . . . . . | 1358 |
| 30.6.10 | ADC watchdog threshold register 3 (ADC_TR3) . . . . . | 1359 |
| 30.6.11 | ADC regular sequence register 1 (ADC_SQR1) . . . . . | 1359 |
| 30.6.12 | ADC regular sequence register 2 (ADC_SQR2) . . . . . | 1360 |
| 30.6.13 | ADC regular sequence register 3 (ADC_SQR3) . . . . . | 1361 |
| 30.6.14 | ADC regular sequence register 4 (ADC_SQR4) . . . . . | 1362 |
| 30.6.15 | ADC regular data register (ADC_DR) . . . . . | 1363 |
| 30.6.16 | ADC injected sequence register (ADC_JSQR) . . . . . | 1363 |
| 30.6.17 | ADC offset y register (ADC_OFRy) . . . . . | 1366 |
| 30.6.18 | ADC injected channel y data register (ADC_JDRy) . . . . . | 1367 |
| 30.6.19 | ADC analog watchdog 2 configuration register (ADC_AWD2CR) . . . | 1368 |
| 30.6.20 | ADC analog watchdog 3 configuration register (ADC_AWD3CR) . . . | 1368 |
| 30.6.21 | ADC Differential mode selection register (ADC_DIFSEL) . . . . . | 1369 |
| 30.6.22 | ADC calibration factors (ADC_CALFACT) . . . . . | 1370 |
| 30.6.23 | ADC option register (ADC_OR) . . . . . | 1370 |
| 30.7 | ADC common registers . . . . . | 1371 |
| 30.7.1 | ADC common status register (ADC_CSR) . . . . . | 1371 |
| 30.7.2 | ADC common control register (ADC_CCR) . . . . . | 1373 |
| 30.7.3 | ADC common regular data register for dual mode (ADC_CDR) . . . . | 1376 |
| 30.8 | ADC register map . . . . . | 1377 |
| 31 | Digital temperature sensor (DTS) . . . . . | 1381 |
| 31.1 | DTS introduction . . . . . | 1381 |
| 31.2 | DTS main features . . . . . | 1381 |
| 31.3 | DTS functional description . . . . . | 1382 |
| 31.3.1 | DTS block diagram . . . . . | 1382 |
| 31.3.2 | DTS internal signals . . . . . | 1382 |
| 31.3.3 | DTS block operation . . . . . | 1383 |
| 31.3.4 | Operating modes . . . . . | 1383 |
| 31.3.5 | Calibration . . . . . | 1383 |
| 31.3.6 | Prescaler . . . . . | 1383 |
| 31.3.7 | Temperature measurement principles . . . . . | 1384 |
| 31.3.8 | Sampling time . . . . . | 1385 |
| 31.3.9 | Quick measurement mode . . . . . | 1385 |
| 31.3.10 | Trigger input . . . . . | 1386 |
| 31.3.11 | On-off control and ready flag | 1386 |
| 31.3.12 | Temperature measurement sequence | 1387 |
| 31.4 | DTS low-power modes | 1388 |
| 31.5 | DTS interrupts | 1388 |
| 31.5.1 | Temperature window comparator | 1388 |
| 31.5.2 | Synchronous interrupt | 1388 |
| 31.5.3 | Asynchronous wake-up | 1388 |
| 31.6 | DTS registers | 1389 |
| 31.6.1 | Temperature sensor configuration register 1 (DTS_CFGR1) | 1389 |
| 31.6.2 | Temperature sensor T0 value register 1 (DTS_T0VALR1) | 1391 |
| 31.6.3 | Temperature sensor ramp value register (DTS_RAMPVALR) | 1391 |
| 31.6.4 | Temperature sensor interrupt threshold register 1 (DTS_ITR1) | 1392 |
| 31.6.5 | Temperature sensor data register (DTS_DR) | 1392 |
| 31.6.6 | Temperature sensor status register (DTS_SR) | 1393 |
| 31.6.7 | Temperature sensor interrupt enable register (DTS_ITENR) | 1394 |
| 31.6.8 | Temperature sensor clear interrupt flag register (DTS_ICIFR) | 1395 |
| 31.6.9 | Temperature sensor option register (DTS_OR) | 1396 |
| 31.6.10 | DTS register map | 1397 |
| 32 | Digital-to-analog converter (DAC) | 1399 |
| 32.1 | DAC introduction | 1399 |
| 32.2 | DAC main features | 1399 |
| 32.3 | DAC implementation | 1400 |
| 32.4 | DAC functional description | 1401 |
| 32.4.1 | DAC block diagram | 1401 |
| 32.4.2 | DAC pins and internal signals | 1402 |
| 32.4.3 | DAC clocks | 1403 |
| 32.4.4 | DAC channel enable | 1403 |
| 32.4.5 | DAC data format | 1404 |
| 32.4.6 | DAC conversion | 1405 |
| 32.4.7 | DAC output voltage | 1407 |
| 32.4.8 | DAC trigger selection | 1407 |
| 32.4.9 | DMA requests | 1407 |
| 32.4.10 | Noise generation | 1408 |
| 32.4.11 | Triangle-wave generation | 1410 |
| 32.4.12 | DAC channel modes | 1411 |
| 32.4.13 | DAC channel buffer calibration | 1414 |
| 32.4.14 | DAC channel conversion modes | 1415 |
| 32.4.15 | Dual DAC channel conversion modes (if dual channels are available) | 1416 |
| 32.5 | DAC in low-power modes | 1420 |
| 32.6 | DAC interrupts | 1420 |
| 32.7 | DAC registers | 1421 |
| 32.7.1 | DAC control register (DAC_CR) | 1421 |
| 32.7.2 | DAC software trigger register (DAC_SWTRGR) | 1424 |
| 32.7.3 | DAC channel1 12-bit right-aligned data holding register (DAC_DHR12R1) | 1425 |
| 32.7.4 | DAC channel1 12-bit left aligned data holding register (DAC_DHR12L1) | 1426 |
| 32.7.5 | DAC channel1 8-bit right aligned data holding register (DAC_DHR8R1) | 1426 |
| 32.7.6 | DAC channel2 12-bit right aligned data holding register (DAC_DHR12R2) | 1427 |
| 32.7.7 | DAC channel2 12-bit left aligned data holding register (DAC_DHR12L2) | 1427 |
| 32.7.8 | DAC channel2 8-bit right-aligned data holding register (DAC_DHR8R2) | 1428 |
| 32.7.9 | Dual DAC 12-bit right-aligned data holding register (DAC_DHR12RD) | 1428 |
| 32.7.10 | Dual DAC 12-bit left aligned data holding register (DAC_DHR12LD) | 1429 |
| 32.7.11 | Dual DAC 8-bit right aligned data holding register (DAC_DHR8RD) | 1429 |
| 32.7.12 | DAC channel1 data output register (DAC_DOR1) | 1430 |
| 32.7.13 | DAC channel2 data output register (DAC_DOR2) | 1430 |
| 32.7.14 | DAC status register (DAC_SR) | 1431 |
| 32.7.15 | DAC calibration control register (DAC_CCR) | 1432 |
| 32.7.16 | DAC mode control register (DAC_MCR) | 1433 |
| 32.7.17 | DAC channel1 sample and hold sample time register (DAC_SHSR1) | 1434 |
| 32.7.18 | DAC channel2 sample and hold sample time register (DAC_SHSR2) | 1435 |
| 32.7.19 | DAC sample and hold time register (DAC_SHHR) | 1435 |
| 32.7.20 | DAC sample and hold refresh time register (DAC_SHRR) | 1436 |
| 32.7.21 | DAC register map | 1437 |
| 33 | Voltage reference buffer (VREFBUF) ..... | 1439 |
| 33.1 | VREFBUF introduction ..... | 1439 |
| 33.2 | VREFBUF implementation ..... | 1439 |
| 33.3 | VREFBUF functional description ..... | 1439 |
| 33.4 | VREFBUF trimming ..... | 1440 |
| 33.5 | VREFBUF registers ..... | 1441 |
| 33.5.1 | VREFBUF control and status register (VREFBUF_CSR) ..... | 1441 |
| 33.5.2 | VREFBUF calibration control register (VREFBUF_CCR) ..... | 1442 |
| 33.5.3 | VREFBUF register map ..... | 1442 |
| 34 | Operational amplifiers (OPAMP) ..... | 1443 |
| 34.1 | OPAMP introduction ..... | 1443 |
| 34.2 | OPAMP main features ..... | 1443 |
| 34.3 | OPAMP functional description ..... | 1443 |
| 34.3.1 | OPAMP reset and clocks ..... | 1443 |
| 34.3.2 | Initial configuration ..... | 1444 |
| 34.3.3 | Signal routing ..... | 1444 |
| 34.3.4 | OPAMP modes ..... | 1444 |
| 34.3.5 | Calibration ..... | 1451 |
| 34.4 | OPAMP low-power modes ..... | 1453 |
| 34.5 | OPAMP PGA gain ..... | 1453 |
| 34.6 | OPAMP registers ..... | 1453 |
| 34.6.1 | OPAMP1 control/status register (OPAMP1_CSR) ..... | 1453 |
| 34.6.2 | OPAMP1 trimming register in normal mode (OPAMP1_OTR) ..... | 1455 |
| 34.6.3 | OPAMP1 trimming register in high-speed mode (OPAMP1_HSOTR) ..... | 1456 |
| 34.6.4 | OPAMP register map ..... | 1456 |
| 35 | Comparator (COMP) ..... | 1457 |
| 35.1 | Introduction ..... | 1457 |
| 35.2 | COMP main features ..... | 1457 |
| 35.3 | COMP functional description ..... | 1458 |
| 35.3.1 | COMP block diagram ..... | 1458 |
| 35.3.2 | COMP pins and internal signals ..... | 1458 |
| 35.3.3 | COMP reset and clocks ..... | 1462 |
| 35.3.4 | Comparator LOCK mechanism ..... | 1462 |
| 35.3.5 | Window comparator | 1462 |
| 35.3.6 | Hysteresis | 1463 |
| 35.3.7 | Comparator output blanking function | 1463 |
| 35.3.8 | COMP startup stabilization time | 1464 |
| 35.3.9 | COMP power and speed modes | 1464 |
| 35.4 | COMP low-power modes | 1465 |
| 35.5 | COMP interrupts | 1465 |
| 35.5.1 | Wake-up interrupt through EXTI | 1465 |
| 35.5.2 | Interrupt through EXTI | 1466 |
| 35.5.3 | Interrupt through the NVIC of the CPU | 1466 |
| 35.6 | SCALER function | 1466 |
| 35.7 | COMP registers | 1467 |
| 35.7.1 | Comparator status register (COMP_SR) | 1467 |
| 35.7.2 | Comparator interrupt clear flag register (COMP_ICFR) | 1468 |
| 35.7.3 | Comparator configuration register 1 (COMP_CFGR1) | 1468 |
| 35.7.4 | Comparator configuration register 2 (COMP_CFGR2) | 1470 |
| 35.7.5 | COMP register map | 1472 |
| 36 | Multi-function digital filter (MDF) | 1473 |
| 36.1 | MDF introduction | 1473 |
| 36.2 | MDF main features | 1474 |
| 36.3 | MDF implementation | 1474 |
| 36.4 | MDF functional description | 1476 |
| 36.4.1 | MDF block diagram | 1476 |
| 36.4.2 | MDF pins and internal signals | 1477 |
| 36.4.3 | Serial input interfaces (SITF) | 1478 |
| 36.4.4 | ADC slave interface (ADCITF) | 1484 |
| 36.4.5 | Clock generator (CKGEN) | 1485 |
| 36.4.6 | Bitstream matrix (BSMX) | 1487 |
| 36.4.7 | Short-circuit detectors (SCD) | 1488 |
| 36.4.8 | Digital filter processing (DFLT) | 1490 |
| 36.4.9 | Out-of-limit detector (OLD) | 1500 |
| 36.4.10 | Digital filter acquisition modes | 1503 |
| 36.4.11 | Start-up sequence examples | 1513 |
| 36.4.12 | Break interface | 1514 |
| 36.4.13 | Data transfer to memory | 1515 |
| 36.4.14 | Register protection ..... | 1520 |
| 36.5 | MDF low-power modes ..... | 1522 |
| 36.6 | MDF interrupts ..... | 1522 |
| 36.7 | MDF application informations ..... | 1524 |
| 36.7.1 | MDF configuration examples for audio capture ..... | 1524 |
| 36.7.2 | Programming examples ..... | 1525 |
| 36.7.3 | Connection examples ..... | 1527 |
| 36.7.4 | Global frequency response ..... | 1528 |
| 36.7.5 | Total MDF gain ..... | 1529 |
| 36.8 | MDF registers ..... | 1533 |
| 36.8.1 | MDF global control register (MDF_GCR) ..... | 1533 |
| 36.8.2 | MDF clock generator control register (MDF_CKGCR) ..... | 1534 |
| 36.8.3 | MDF serial interface control register x (MDF_SITFxCR) ..... | 1536 |
| 36.8.4 | MDF bitstream matrix control register x (MDF_BSMXxCR) ..... | 1537 |
| 36.8.5 | MDF digital filter control register x (MDF_DFLTxCr) ..... | 1538 |
| 36.8.6 | MDF digital filter configuration register x (MDF_DFLTxCICR) ..... | 1540 |
| 36.8.7 | MDF reshape filter configuration register x (MDF_DFLTxRSFR) ..... | 1542 |
| 36.8.8 | MDF integrator configuration register x (MDF_DFLTxINTR) ..... | 1543 |
| 36.8.9 | MDF out-of limit detector control register x (MDF_OLDxCr) ..... | 1543 |
| 36.8.10 | MDF OLDx low threshold register x (MDF_OLDxTHLR) ..... | 1545 |
| 36.8.11 | MDF OLDx high threshold register x (MDF_OLDxTHHR) ..... | 1545 |
| 36.8.12 | MDF delay control register x (MDF_DLYxCr) ..... | 1546 |
| 36.8.13 | MDF short circuit detector control register x (MDF_SCDxCr) ..... | 1546 |
| 36.8.14 | MDF DFLT0 interrupt enable register 0 (MDF_DFLT0IER) ..... | 1547 |
| 36.8.15 | MDF DFLTx interrupt enable register x (MDF_DFLTxIER) ..... | 1549 |
| 36.8.16 | MDF DFLT0 interrupt status register 0 (MDF_DFLT0ISR) ..... | 1550 |
| 36.8.17 | MDF DFLTx interrupt status register x (MDF_DFLTxISR) ..... | 1552 |
| 36.8.18 | MDF offset error compensation control register x (MDF_OECxCr) ..... | 1553 |
| 36.8.19 | MDF snapshot data register x (MDF_SNPSxDR) ..... | 1554 |
| 36.8.20 | MDF digital filter data register x (MDF_DFLTxDR) ..... | 1554 |
| 36.8.21 | MDF register map ..... | 1555 |
| 37 | Audio digital filter (ADF) ..... | 1557 |
| 37.1 | ADF introduction ..... | 1557 |
| 37.2 | ADF main features ..... | 1557 |
| 37.3 | ADF implementation ..... | 1558 |
| 37.4 | ADF functional description | 1559 |
| 37.4.1 | ADF block diagram | 1559 |
| 37.4.2 | ADF pins and internal signals | 1559 |
| 37.4.3 | Serial input interface (SITF) | 1560 |
| 37.4.4 | ADC slave interface (ADCITF) | 1565 |
| 37.4.5 | Clock generator (CKGEN) | 1565 |
| 37.4.6 | Bitstream matrix (BSMX) | 1567 |
| 37.4.7 | Digital filter processing (DFLT) | 1568 |
| 37.4.8 | Digital filter acquisition modes | 1578 |
| 37.4.9 | Start-up sequence examples | 1586 |
| 37.4.10 | Sound activity detection (SAD) | 1587 |
| 37.4.11 | Data transfer to memory | 1595 |
| 37.4.12 | Register protection | 1598 |
| 37.5 | ADF low-power modes | 1599 |
| 37.6 | ADF interrupts | 1599 |
| 37.7 | ADF application information | 1601 |
| 37.7.1 | ADF configuration examples for audio capture | 1601 |
| 37.7.2 | Programming examples | 1602 |
| 37.7.3 | Connection examples | 1604 |
| 37.7.4 | Global frequency response | 1605 |
| 37.7.5 | Total ADF gain | 1606 |
| 37.7.6 | How to compute SAD thresholds | 1609 |
| 37.8 | ADF registers | 1613 |
| 37.8.1 | ADF global control register (ADF_GCR) | 1613 |
| 37.8.2 | ADF clock generator control register (ADF_CKPCR) | 1613 |
| 37.8.3 | ADF serial interface control register 0 (ADF_SITF0CR) | 1615 |
| 37.8.4 | ADF bitstream matrix control register 0 (ADF_BSMX0CR) | 1617 |
| 37.8.5 | ADF digital filter control register 0 (ADF_DFLT0CR) | 1617 |
| 37.8.6 | ADF digital filter configuration register 0 (ADF_DFLT0CICR) | 1619 |
| 37.8.7 | ADF reshape filter configuration register 0 (ADF_DFLT0RSFR) | 1620 |
| 37.8.8 | ADF delay control register 0 (ADF_DLY0CR) | 1621 |
| 37.8.9 | ADF DFLT0 interrupt enable register (ADF_DFLT0IER) | 1622 |
| 37.8.10 | ADF DFLT0 interrupt status register 0 (ADF_DFLT0ISR) | 1623 |
| 37.8.11 | ADF SAD control register (ADF_SADCR) | 1624 |
| 37.8.12 | ADF SAD configuration register (ADF_SADCFGR) | 1626 |
| 37.8.13 | ADF SAD sound level register (ADF_SADSDLVR) | 1627 |
| 37.8.14 | ADF SAD ambient noise level register (ADF_SADANLVR) . . . . . | 1628 |
| 37.8.15 | ADF digital filter data register 0 (ADF_DFLT0DR) . . . . . | 1628 |
| 37.8.16 | ADF register map . . . . . | 1628 |
| 38 | Digital camera interface (DCMI) . . . . . | 1631 |
| 38.1 | DCMI introduction . . . . . | 1631 |
| 38.2 | DCMI main features . . . . . | 1631 |
| 38.3 | DCMI functional description . . . . . | 1631 |
| 38.3.1 | DCMI block diagram . . . . . | 1632 |
| 38.3.2 | DCMI pins and internal signals . . . . . | 1632 |
| 38.3.3 | DCMI clocks . . . . . | 1633 |
| 38.3.4 | DCMI DMA interface . . . . . | 1633 |
| 38.3.5 | DCMI physical interface . . . . . | 1633 |
| 38.3.6 | DCMI synchronization . . . . . | 1635 |
| 38.3.7 | DCMI capture modes . . . . . | 1637 |
| 38.3.8 | DCMI crop feature . . . . . | 1638 |
| 38.3.9 | DCMI JPEG format . . . . . | 1639 |
| 38.3.10 | DCMI FIFO . . . . . | 1639 |
| 38.3.11 | DCMI data format description . . . . . | 1640 |
| 38.4 | DCMI interrupts . . . . . | 1642 |
| 38.5 | DCMI registers . . . . . | 1642 |
| 38.5.1 | DCMI control register (DCMI_CR) . . . . . | 1642 |
| 38.5.2 | DCMI status register (DCMI_SR) . . . . . | 1645 |
| 38.5.3 | DCMI raw interrupt status register (DCMI_RIS) . . . . . | 1645 |
| 38.5.4 | DCMI interrupt enable register (DCMI_IER) . . . . . | 1646 |
| 38.5.5 | DCMI masked interrupt status register (DCMI_MIS) . . . . . | 1647 |
| 38.5.6 | DCMI interrupt clear register (DCMI_ICR) . . . . . | 1648 |
| 38.5.7 | DCMI embedded synchronization code register (DCMI_ESCR) . . . . . | 1649 |
| 38.5.8 | DCMI embedded synchronization unmask register (DCMI_ESUR) . . . . . | 1649 |
| 38.5.9 | DCMI crop window start (DCMI_CWSTRT) . . . . . | 1650 |
| 38.5.10 | DCMI crop window size (DCMI_CWSIZE) . . . . . | 1651 |
| 38.5.11 | DCMI data register (DCMI_DR) . . . . . | 1651 |
| 38.5.12 | DCMI register map . . . . . | 1652 |
| 39 | Parallel synchronous slave interface (PSSI) . . . . . | 1653 |
| 39.1 | PSSI introduction . . . . . | 1653 |
| 39.2 | PSSI main features ..... | 1653 |
| 39.3 | PSSI functional description ..... | 1653 |
| 39.3.1 | PSSI block diagram ..... | 1654 |
| 39.3.2 | PSSI pins and internal signals ..... | 1654 |
| 39.3.3 | PSSI clock ..... | 1655 |
| 39.3.4 | PSSI data management ..... | 1655 |
| 39.3.5 | PSSI optional control signals ..... | 1657 |
| 39.4 | PSSI interrupts ..... | 1660 |
| 39.5 | PSSI registers ..... | 1661 |
| 39.5.1 | PSSI control register (PSSI_CR) ..... | 1661 |
| 39.5.2 | PSSI status register (PSSI_SR) ..... | 1662 |
| 39.5.3 | PSSI raw interrupt status register (PSSI_RIS) ..... | 1663 |
| 39.5.4 | PSSI interrupt enable register (PSSI_IER) ..... | 1664 |
| 39.5.5 | PSSI masked interrupt status register (PSSI_MIS) ..... | 1664 |
| 39.5.6 | PSSI interrupt clear register (PSSI_ICR) ..... | 1665 |
| 39.5.7 | PSSI data register (PSSI_DR) ..... | 1665 |
| 39.5.8 | PSSI register map ..... | 1666 |
| 40 | LCD-TFT display controller (LTDC) ..... | 1667 |
| 40.1 | Introduction ..... | 1667 |
| 40.2 | LTDC main features ..... | 1667 |
| 40.3 | LTDC functional description ..... | 1668 |
| 40.3.1 | LTDC block diagram ..... | 1668 |
| 40.3.2 | LTDC pins and internal signals ..... | 1668 |
| 40.3.3 | LTDC reset and clocks ..... | 1669 |
| 40.4 | LTDC programmable parameters ..... | 1671 |
| 40.4.1 | LTDC global configuration parameters ..... | 1671 |
| 40.4.2 | Layer programmable parameters ..... | 1673 |
| 40.5 | LTDC interrupts ..... | 1677 |
| 40.6 | LTDC programming procedure ..... | 1678 |
| 40.7 | LTDC registers ..... | 1679 |
| 40.7.1 | LTDC synchronization size configuration register (LTDC_SSCR) ... | 1679 |
| 40.7.2 | LTDC back porch configuration register (LTDC_BPCR) ..... | 1679 |
| 40.7.3 | LTDC active width configuration register (LTDC_AWCR) ..... | 1680 |
| 40.7.4 | LTDC total width configuration register (LTDC_TWCR) ..... | 1681 |
| 40.7.5 | LTDC global control register (LTDC_GCR) ..... | 1681 |
| 40.7.6 | LTDC shadow reload configuration register (LTDC_SRCR) . . . . . | 1683 |
| 40.7.7 | LTDC background color configuration register (LTDC_BCCR) . . . . . | 1683 |
| 40.7.8 | LTDC interrupt enable register (LTDC_IER) . . . . . | 1684 |
| 40.7.9 | LTDC interrupt status register (LTDC_ISR) . . . . . | 1685 |
| 40.7.10 | LTDC interrupt clear register (LTDC_ICR) . . . . . | 1685 |
| 40.7.11 | LTDC line interrupt position configuration register (LTDC_LIPCR) . . . | 1686 |
| 40.7.12 | LTDC current position status register (LTDC_CPSR) . . . . . | 1686 |
| 40.7.13 | LTDC current display status register (LTDC_CDSR) . . . . . | 1687 |
| 40.7.14 | LTDC layer x control register (LTDC_LxCR) . . . . . | 1687 |
| 40.7.15 | LTDC layer x window horizontal position configuration register (LTDC_LxWHPCR) . . . . . | 1688 |
| 40.7.16 | LTDC layer x window vertical position configuration register (LTDC_LxWVPCR) . . . . . | 1689 |
| 40.7.17 | LTDC layer x color keying configuration register (LTDC_LxCKCR) . . . . . | 1690 |
| 40.7.18 | LTDC layer x pixel format configuration register (LTDC_LxPFCR) . . . . . | 1690 |
| 40.7.19 | LTDC layer x constant alpha configuration register (LTDC_LxCACR) . . . . . | 1691 |
| 40.7.20 | LTDC layer x default color configuration register (LTDC_LxDCCR) . . . . . | 1691 |
| 40.7.21 | LTDC layer x blending factors configuration register (LTDC_LxBFCR) . . . . . | 1692 |
| 40.7.22 | LTDC layer x color frame buffer address register (LTDC_LxCFBAR) . . . . . | 1693 |
| 40.7.23 | LTDC layer x color frame buffer length register (LTDC_LxCFBLR) . . . . . | 1693 |
| 40.7.24 | LTDC layer x color frame buffer line number register (LTDC_LxCFBLNR) . . . . . | 1694 |
| 40.7.25 | LTDC layer x CLUT write register (LTDC_LxCLUTWR) . . . . . | 1694 |
| 40.7.26 | LTDC register map . . . . . | 1695 |
| 41 | JPEG codec (JPEG) . . . . . | 1698 |
| 41.1 | JPEG introduction . . . . . | 1698 |
| 41.2 | JPEG codec main features . . . . . | 1698 |
| 41.3 | JPEG codec block functional description . . . . . | 1699 |
| 41.3.1 | General description . . . . . | 1699 |
| 41.3.2 | JPEG internal signals . . . . . | 1699 |
| 41.3.3 | JPEG decoding procedure . . . . . | 1700 |
| 41.3.4 | JPEG encoding procedure . . . . . | 1702 |
| 41.4 | JPEG codec interrupts | 1705 |
| 41.5 | JPEG codec registers | 1705 |
| 41.5.1 | JPEG codec control register (JPEG_CONFR0) | 1705 |
| 41.5.2 | JPEG codec configuration register 1 (JPEG_CONFR1) | 1706 |
| 41.5.3 | JPEG codec configuration register 2 (JPEG_CONFR2) | 1707 |
| 41.5.4 | JPEG codec configuration register 3 (JPEG_CONFR3) | 1707 |
| 41.5.5 | JPEG codec configuration register x (JPEG_CONFRx) | 1708 |
| 41.5.6 | JPEG control register (JPEG_CR) | 1709 |
| 41.5.7 | JPEG status register (JPEG_SR) | 1710 |
| 41.5.8 | JPEG clear flag register (JPEG_CFR) | 1711 |
| 41.5.9 | JPEG data input register (JPEG_DIR) | 1712 |
| 41.5.10 | JPEG data output register (JPEG_DOR) | 1712 |
| 41.5.11 | JPEG quantization memory x (JPEG_QMEMx_y) | 1713 |
| 41.5.12 | JPEG Huffman min (JPEG_HUFFMINx_y) | 1713 |
| 41.5.13 | JPEG Huffman min x (JPEG_HUFFMINx_y) | 1714 |
| 41.5.14 | JPEG Huffman base (JPEG_HUFFBASEx) | 1714 |
| 41.5.15 | JPEG Huffman symbol (JPEG_HUFFSYMBx) | 1715 |
| 41.5.16 | JPEG DHT memory (JPEG_DHTMEMx) | 1716 |
| 41.5.17 | JPEG Huffman encoder ACx (JPEG_HUFFENC_ACx_y) | 1716 |
| 41.5.18 | JPEG Huffman encoder DCx (JPEG_HUFFENC_DCx_y) | 1717 |
| 41.5.19 | JPEG codec register map | 1718 |
| 42 | Coupling and chaining bridge (CCB) | 1720 |
| 42.1 | CCB introduction | 1720 |
| 42.2 | CCB main features | 1720 |
| 42.3 | CCB implementation | 1721 |
| 42.4 | CCB functional description | 1721 |
| 42.4.1 | CCB block diagram | 1721 |
| 42.4.2 | CCB internal signals | 1722 |
| 42.4.3 | CCB reset and clocks | 1722 |
| 42.4.4 | CCB coupling and chaining | 1722 |
| 42.4.5 | CCB error management | 1725 |
| 42.5 | CCB coupling and chaining operations | 1725 |
| 42.5.1 | Preliminary steps before any protected operation | 1727 |
| 42.5.2 | ECDSA signature | 1728 |
| 42.5.3 | ECC scalar multiplication | 1735 |
| 42.5.4 | RSA modular exponentiation . . . . . | 1738 |
| 42.6 | CCB interrupts . . . . . | 1740 |
| 42.7 | CCB registers . . . . . | 1741 |
| 42.7.1 | CCB control register (CCB_CR) . . . . . | 1741 |
| 42.7.2 | CCB status register (CCB_SR) . . . . . | 1742 |
| 42.7.3 | CCB reference tag register (CCB_REFTAGRx) . . . . . | 1744 |
| 42.7.4 | CCB register map . . . . . | 1745 |
| 43 | True random number generator (RNG) . . . . . | 1746 |
| 43.1 | RNG introduction . . . . . | 1746 |
| 43.2 | RNG main features . . . . . | 1746 |
| 43.3 | RNG functional description . . . . . | 1747 |
| 43.3.1 | RNG block diagram . . . . . | 1747 |
| 43.3.2 | RNG internal signals . . . . . | 1747 |
| 43.3.3 | Random number generation . . . . . | 1748 |
| 43.3.4 | RNG initialization . . . . . | 1750 |
| 43.3.5 | RNG operation . . . . . | 1751 |
| 43.3.6 | RNG clocking . . . . . | 1753 |
| 43.3.7 | Error management . . . . . | 1753 |
| 43.3.8 | RNG low-power use . . . . . | 1755 |
| 43.4 | RNG interrupts . . . . . | 1755 |
| 43.5 | RNG processing time . . . . . | 1756 |
| 43.6 | RNG entropy source validation . . . . . | 1756 |
| 43.6.1 | Introduction . . . . . | 1756 |
| 43.6.2 | Validation conditions . . . . . | 1756 |
| 43.7 | RNG registers . . . . . | 1758 |
| 43.7.1 | RNG control register (RNG_CR) . . . . . | 1758 |
| 43.7.2 | RNG status register (RNG_SR) . . . . . | 1760 |
| 43.7.3 | RNG data register (RNG_DR) . . . . . | 1761 |
| 43.7.4 | RNG noise source control register (RNG_NSCR) . . . . . | 1762 |
| 43.7.5 | RNG health test control register x (RNG_HTCRx) . . . . . | 1762 |
| 43.7.6 | RNG health test status register 0 (RNG_HTSR0) . . . . . | 1763 |
| 43.7.7 | RNG health test status register 1 (RNG_HTSR1) . . . . . | 1763 |
| 43.7.8 | RNG noise source mask register (RNG_NSMR) . . . . . | 1764 |
| 43.7.9 | RNG register map . . . . . | 1765 |
| 44 | AES hardware accelerator (AES) | 1766 |
| 44.1 | AES introduction | 1766 |
| 44.2 | AES main features | 1766 |
| 44.3 | AES implementation | 1767 |
| 44.4 | AES functional description | 1767 |
| 44.4.1 | AES block diagram | 1767 |
| 44.4.2 | AES internal signals | 1768 |
| 44.4.3 | AES reset and clocks | 1768 |
| 44.4.4 | AES symmetric cipher implementation | 1768 |
| 44.4.5 | AES encryption or decryption typical usage | 1769 |
| 44.4.6 | AES authenticated encryption, decryption, and cipher-based message authentication | 1771 |
| 44.4.7 | AES ciphertext stealing and data padding | 1771 |
| 44.4.8 | AES suspend and resume operations | 1772 |
| 44.4.9 | AES basic chaining modes (ECB, CBC) | 1773 |
| 44.4.10 | AES counter (CTR) mode | 1776 |
| 44.4.11 | AES Galois/counter mode (GCM) | 1779 |
| 44.4.12 | AES Galois message authentication code (GMAC) | 1783 |
| 44.4.13 | AES counter with CBC-MAC (CCM) | 1784 |
| 44.4.14 | AES key sharing with secure AES co-processor | 1789 |
| 44.4.15 | AES data registers and data swapping | 1790 |
| 44.4.16 | AES key registers | 1792 |
| 44.4.17 | AES initialization vector registers | 1792 |
| 44.4.18 | AES error management | 1793 |
| 44.5 | AES interrupts | 1794 |
| 44.6 | AES DMA requests | 1794 |
| 44.7 | AES processing latency | 1795 |
| 44.8 | AES registers | 1797 |
| 44.8.1 | AES control register (AES_CR) | 1797 |
| 44.8.2 | AES status register (AES_SR) | 1799 |
| 44.8.3 | AES data input register (AES_DINR) | 1800 |
| 44.8.4 | AES data output register (AES_DOUTR) | 1801 |
| 44.8.5 | AES key register 0 (AES_KEYR0) | 1801 |
| 44.8.6 | AES key register 1 (AES_KEYR1) | 1802 |
| 44.8.7 | AES key register 2 (AES_KEYR2) | 1802 |
| 44.8.8 | AES key register 3 (AES_KEYR3) | 1802 |
| 44.8.9 | AES initialization vector register 0 (AES_IVR0) . . . . . | 1803 |
| 44.8.10 | AES initialization vector register 1 (AES_IVR1) . . . . . | 1803 |
| 44.8.11 | AES initialization vector register 2 (AES_IVR2) . . . . . | 1803 |
| 44.8.12 | AES initialization vector register 3 (AES_IVR3) . . . . . | 1804 |
| 44.8.13 | AES key register 4 (AES_KEYR4) . . . . . | 1804 |
| 44.8.14 | AES key register 5 (AES_KEYR5) . . . . . | 1804 |
| 44.8.15 | AES key register 6 (AES_KEYR6) . . . . . | 1805 |
| 44.8.16 | AES key register 7 (AES_KEYR7) . . . . . | 1805 |
| 44.8.17 | AES suspend registers (AES_SUSPRx) . . . . . | 1805 |
| 44.8.18 | AES interrupt enable register (AES_IER) . . . . . | 1806 |
| 44.8.19 | AES interrupt status register (AES_ISR) . . . . . | 1807 |
| 44.8.20 | AES interrupt clear register (AES_ICR) . . . . . | 1808 |
| 44.8.21 | AES register map . . . . . | 1808 |
| 45 | Secure AES coprocessor (SAES) . . . . . | 1811 |
| 45.1 | SAES introduction . . . . . | 1811 |
| 45.2 | SAES main features . . . . . | 1811 |
| 45.3 | SAES implementation . . . . . | 1812 |
| 45.4 | SAES functional description . . . . . | 1812 |
| 45.4.1 | SAES block diagram . . . . . | 1812 |
| 45.4.2 | SAES internal signals . . . . . | 1813 |
| 45.4.3 | SAES reset and clocks . . . . . | 1814 |
| 45.4.4 | SAES symmetric cipher implementation . . . . . | 1814 |
| 45.4.5 | SAES encryption or decryption typical usage . . . . . | 1815 |
| 45.4.6 | SAES authenticated encryption, decryption, and cipher-based message authentication . . . . . | 1817 |
| 45.4.7 | SAES ciphertext stealing and data padding . . . . . | 1818 |
| 45.4.8 | SAES suspend and resume operations . . . . . | 1818 |
| 45.4.9 | SAES basic chaining modes (ECB, CBC) . . . . . | 1819 |
| 45.4.10 | SAES counter (CTR) mode . . . . . | 1823 |
| 45.4.11 | SAES Galois/counter mode (GCM) . . . . . | 1825 |
| 45.4.12 | SAES Galois message authentication code (GMAC) . . . . . | 1829 |
| 45.4.13 | SAES counter with CBC-MAC (CCM) . . . . . | 1831 |
| 45.4.14 | SAES operation with wrapped keys . . . . . | 1836 |
| 45.4.15 | SAES operation with shared keys . . . . . | 1840 |
| 45.4.16 | SAES data registers and data swapping . . . . . | 1841 |
| 45.4.17 | SAES key registers . . . . . | 1844 |
| 45.4.18 | SAES initialization vector registers | 1845 |
| 45.4.19 | SAES error management | 1846 |
| 45.5 | SAES interrupts | 1848 |
| 45.6 | SAES DMA requests | 1848 |
| 45.7 | SAES processing latency | 1849 |
| 45.8 | SAES registers | 1851 |
| 45.8.1 | SAES control register (SAES_CR) | 1851 |
| 45.8.2 | SAES status register (SAES_SR) | 1854 |
| 45.8.3 | SAES data input register (SAES_DINR) | 1855 |
| 45.8.4 | SAES data output register (SAES_DOUTR) | 1856 |
| 45.8.5 | SAES key register 0 (SAES_KEYR0) | 1856 |
| 45.8.6 | SAES key register 1 (SAES_KEYR1) | 1857 |
| 45.8.7 | SAES key register 2 (SAES_KEYR2) | 1857 |
| 45.8.8 | SAES key register 3 (SAES_KEYR3) | 1857 |
| 45.8.9 | SAES initialization vector register 0 (SAES_IVR0) | 1858 |
| 45.8.10 | SAES initialization vector register 1 (SAES_IVR1) | 1858 |
| 45.8.11 | SAES initialization vector register 2 (SAES_IVR2) | 1858 |
| 45.8.12 | SAES initialization vector register 3 (SAES_IVR3) | 1859 |
| 45.8.13 | SAES key register 4 (SAES_KEYR4) | 1859 |
| 45.8.14 | SAES key register 5 (SAES_KEYR5) | 1859 |
| 45.8.15 | SAES key register 6 (SAES_KEYR6) | 1860 |
| 45.8.16 | SAES key register 7 (SAES_KEYR7) | 1860 |
| 45.8.17 | SAES suspend registers (SAES_SUSPRx) | 1860 |
| 45.8.18 | SAES interrupt enable register (SAES_IER) | 1861 |
| 45.8.19 | SAES interrupt status register (SAES_ISR) | 1862 |
| 45.8.20 | SAES interrupt clear register (SAES_ICR) | 1863 |
| 45.8.21 | SAES register map | 1864 |
| 46 | Hash processor (HASH) | 1866 |
| 46.1 | HASH introduction | 1866 |
| 46.2 | HASH main features | 1866 |
| 46.3 | HASH implementation | 1867 |
| 46.4 | HASH functional description | 1867 |
| 46.4.1 | HASH block diagram | 1867 |
| 46.4.2 | HASH internal signals | 1868 |
| 46.4.3 | About secure hash algorithms | 1868 |
| 46.4.4 | Message data feeding ..... | 1869 |
| 46.4.5 | Message digest computing ..... | 1870 |
| 46.4.6 | Message padding ..... | 1873 |
| 46.4.7 | HMAC operation ..... | 1874 |
| 46.4.8 | HASH suspend/resume operations ..... | 1876 |
| 46.4.9 | HASH DMA interface ..... | 1878 |
| 46.4.10 | HASH error management ..... | 1879 |
| 46.4.11 | HASH processing time ..... | 1879 |
| 46.5 | HASH interrupts ..... | 1879 |
| 46.6 | HASH registers ..... | 1880 |
| 46.6.1 | HASH control register (HASH_CR) ..... | 1880 |
| 46.6.2 | HASH data input register (HASH_DIN) ..... | 1882 |
| 46.6.3 | HASH start register (HASH_STR) ..... | 1883 |
| 46.6.4 | HASH digest registers ..... | 1884 |
| 46.6.5 | HASH interrupt enable register (HASH_IMR) ..... | 1886 |
| 46.6.6 | HASH status register (HASH_SR) ..... | 1886 |
| 46.6.7 | HASH context swap registers ..... | 1888 |
| 46.6.8 | HASH register map ..... | 1888 |
| 47 | Public key accelerator (PKA) ..... | 1890 |
| 47.1 | PKA introduction ..... | 1890 |
| 47.2 | PKA main features ..... | 1890 |
| 47.3 | PKA functional description ..... | 1891 |
| 47.3.1 | PKA block diagram ..... | 1891 |
| 47.3.2 | PKA internal signals ..... | 1891 |
| 47.3.3 | PKA reset and clocks ..... | 1892 |
| 47.3.4 | PKA public key acceleration ..... | 1892 |
| 47.3.5 | Typical applications for PKA ..... | 1894 |
| 47.3.6 | PKA procedure to perform an operation ..... | 1896 |
| 47.3.7 | Private keys protection using CCB ..... | 1897 |
| 47.3.8 | PKA error management ..... | 1901 |
| 47.4 | PKA operating modes ..... | 1901 |
| 47.4.1 | Introduction ..... | 1901 |
| 47.4.2 | Montgomery parameter computation ..... | 1903 |
| 47.4.3 | Modular addition ..... | 1903 |
| 47.4.4 | Modular subtraction ..... | 1904 |
| 47.4.5 | Modular and Montgomery multiplication | 1904 |
| 47.4.6 | Modular exponentiation | 1905 |
| 47.4.7 | Modular inversion | 1907 |
| 47.4.8 | Modular reduction | 1907 |
| 47.4.9 | Arithmetic addition | 1908 |
| 47.4.10 | Arithmetic subtraction | 1908 |
| 47.4.11 | Arithmetic multiplication | 1909 |
| 47.4.12 | Arithmetic comparison | 1909 |
| 47.4.13 | RSA CRT exponentiation | 1909 |
| 47.4.14 | Point on elliptic curve \(F_p\) check | 1910 |
| 47.4.15 | ECC \(F_p\) scalar multiplication | 1911 |
| 47.4.16 | ECDSA sign | 1912 |
| 47.4.17 | ECDSA verification | 1914 |
| 47.4.18 | ECC complete addition | 1915 |
| 47.4.19 | ECC double base ladder | 1915 |
| 47.4.20 | ECC projective to affine | 1916 |
| 47.5 | Example of configurations and processing times | 1917 |
| 47.5.1 | Supported elliptic curves | 1917 |
| 47.5.2 | Computation times | 1919 |
| 47.6 | PKA interrupts | 1921 |
| 47.7 | PKA registers | 1922 |
| 47.7.1 | PKA control register (PKA_CR) | 1922 |
| 47.7.2 | PKA status register (PKA_SR) | 1924 |
| 47.7.3 | PKA clear flag register (PKA_CLRFR) | 1926 |
| 47.7.4 | PKA RAM | 1927 |
| 47.7.5 | PKA register map | 1928 |
| 48 | On-the-fly decryption engine (OTFDEC) | 1929 |
| 48.1 | OTFDEC introduction | 1929 |
| 48.2 | OTFDEC main features | 1929 |
| 48.3 | OTFDEC functional description | 1930 |
| 48.3.1 | OTFDEC block diagram | 1930 |
| 48.3.2 | OTFDEC internal signals | 1930 |
| 48.3.3 | OTFDEC on-the-fly decryption | 1931 |
| 48.3.4 | OTFDEC usage of AES in counter mode decryption | 1932 |
| 48.3.5 | Flow control management | 1933 |
| 48.3.6 | OTFDEC error management | 1933 |
| 48.4 | OTFDEC interrupts | 1934 |
| 48.5 | OTFDEC application information | 1934 |
| 48.5.1 | OTFDEC initialization process | 1934 |
| 48.5.2 | OTFDEC and power management | 1936 |
| 48.5.3 | Encrypting for OTFDEC | 1936 |
| 48.5.4 | OTFDEC key CRC source code | 1937 |
| 48.6 | OTFDEC registers | 1938 |
| 48.6.1 | OTFDEC control register (OTFDEC_CR) | 1938 |
| 48.6.2 | OTFDEC privileged access control configuration register (OTFDEC_PRIVCFGR) | 1939 |
| 48.6.3 | OTFDEC region x configuration register (OTFDEC_RxCFGR) | 1939 |
| 48.6.4 | OTFDEC region x start address register (OTFDEC_RxSTARTADDR) | 1941 |
| 48.6.5 | OTFDEC region x end address register (OTFDEC_RxENDADDR) | 1941 |
| 48.6.6 | OTFDEC region x nonce register 0 (OTFDEC_RxNONCER0) | 1942 |
| 48.6.7 | OTFDEC region x nonce register 1 (OTFDEC_RxNONCER1) | 1943 |
| 48.6.8 | OTFDEC region x key register 0 (OTFDEC_RxKEYR0) | 1943 |
| 48.6.9 | OTFDEC region x key register 1 (OTFDEC_RxKEYR1) | 1944 |
| 48.6.10 | OTFDEC region x key register 2 (OTFDEC_RxKEYR2) | 1944 |
| 48.6.11 | OTFDEC region x key register 3 (OTFDEC_RxKEYR3) | 1945 |
| 48.6.12 | OTFDEC interrupt status register (OTFDEC_ISR) | 1945 |
| 48.6.13 | OTFDEC interrupt clear register (OTFDEC_ICR) | 1946 |
| 48.6.14 | OTFDEC interrupt enable register (OTFDEC_IER) | 1947 |
| 48.6.15 | OTFDEC register map | 1948 |
| 49 | Advanced-control timers (TIM1/TIM8) | 1952 |
| 49.1 | TIM1/TIM8 introduction | 1952 |
| 49.2 | TIM1/TIM8 main features | 1952 |
| 49.3 | TIM1/TIM8 functional description | 1953 |
| 49.3.1 | Block diagram | 1953 |
| 49.3.2 | TIM1/TIM8 pins and internal signals | 1954 |
| 49.3.3 | Time-base unit | 1958 |
| 49.3.4 | Counter modes | 1961 |
| 49.3.5 | Repetition counter | 1973 |
| 49.3.6 | External trigger input | 1974 |
| 49.3.7 | Clock selection | 1975 |
| 49.3.8 | Capture/compare channels ..... | 1979 |
| 49.3.9 | Input capture mode ..... | 1982 |
| 49.3.10 | PWM input mode ..... | 1983 |
| 49.3.11 | Forced output mode ..... | 1984 |
| 49.3.12 | Output compare mode ..... | 1984 |
| 49.3.13 | PWM mode ..... | 1986 |
| 49.3.14 | Asymmetric PWM mode ..... | 1994 |
| 49.3.15 | Combined PWM mode ..... | 1995 |
| 49.3.16 | Combined 3-phase PWM mode ..... | 1996 |
| 49.3.17 | Complementary outputs and dead-time insertion ..... | 1997 |
| 49.3.18 | Using the break function ..... | 2000 |
| 49.3.19 | Bidirectional break inputs ..... | 2006 |
| 49.3.20 | Clearing the tim_ocxref signal on an external event ..... | 2007 |
| 49.3.21 | 6-step PWM generation ..... | 2009 |
| 49.3.22 | One-pulse mode ..... | 2010 |
| 49.3.23 | Retriggerable One-pulse mode ..... | 2012 |
| 49.3.24 | Pulse on compare mode ..... | 2013 |
| 49.3.25 | Encoder interface mode ..... | 2015 |
| 49.3.26 | Direction bit output ..... | 2032 |
| 49.3.27 | UIF bit remapping ..... | 2033 |
| 49.3.28 | Timer input XOR function ..... | 2033 |
| 49.3.29 | Interfacing with Hall sensors ..... | 2033 |
| 49.3.30 | Timer synchronization ..... | 2035 |
| 49.3.31 | ADC triggers ..... | 2040 |
| 49.3.32 | DMA burst mode ..... | 2040 |
| 49.3.33 | TIM1/TIM8 DMA requests ..... | 2041 |
| 49.3.34 | Debug mode ..... | 2041 |
| 49.4 | TIM1/TIM8 low-power modes ..... | 2042 |
| 49.5 | TIM1/TIM8 interrupts ..... | 2042 |
| 49.6 | TIM1/TIM8 registers ..... | 2043 |
| 49.6.1 | TIMx control register 1 (TIMx_CR1)(x = 1, 8) ..... | 2043 |
| 49.6.2 | TIMx control register 2 (TIMx_CR2)(x = 1, 8) ..... | 2044 |
| 49.6.3 | TIMx slave mode control register (TIMx_SMCR)(x = 1, 8) ..... | 2048 |
| 49.6.4 | TIMx DMA/interrupt enable register (TIMx_DIER)(x = 1, 8) ..... | 2052 |
| 49.6.5 | TIMx status register (TIMx_SR)(x = 1, 8) ..... | 2053 |
| 49.6.6 | TIMx event generation register (TIMx_EGR)(x = 1, 8) ..... | 2056 |
| 49.6.7 | TIMx capture/compare mode register 1 (TIMx_CCMR1) (x = 1, 8) ..... | 2057 |
| 49.6.8 | TIMx capture/compare mode register 1 [alternate] (TIMx_CCMR1)(x = 1, 8) ..... | 2059 |
| 49.6.9 | TIMx capture/compare mode register 2 (TIMx_CCMR2) (x = 1, 8) ..... | 2062 |
| 49.6.10 | TIMx capture/compare mode register 2 [alternate] (TIMx_CCMR2)(x = 1, 8) ..... | 2063 |
| 49.6.11 | TIMx capture/compare enable register (TIMx_CCER)(x = 1, 8) .... | 2066 |
| 49.6.12 | TIMx counter (TIMx_CNT)(x = 1, 8) ..... | 2070 |
| 49.6.13 | TIMx prescaler (TIMx_PSC)(x = 1, 8) ..... | 2070 |
| 49.6.14 | TIMx autoreload register (TIMx_ARR)(x = 1, 8) ..... | 2071 |
| 49.6.15 | TIMx repetition counter register (TIMx_RCR)(x = 1, 8) ..... | 2071 |
| 49.6.16 | TIMx capture/compare register 1 (TIMx_CCR1)(x = 1, 8) ..... | 2072 |
| 49.6.17 | TIMx capture/compare register 2 (TIMx_CCR2)(x = 1, 8) ..... | 2072 |
| 49.6.18 | TIMx capture/compare register 3 (TIMx_CCR3)(x = 1, 8) ..... | 2073 |
| 49.6.19 | TIMx capture/compare register 4 (TIMx_CCR4)(x = 1, 8) ..... | 2074 |
| 49.6.20 | TIMx break and dead-time register (TIMx_BDTR)(x = 1, 8) ..... | 2075 |
| 49.6.21 | TIMx capture/compare register 5 (TIMx_CCR5)(x = 1, 8) ..... | 2079 |
| 49.6.22 | TIMx capture/compare register 6 (TIMx_CCR6)(x = 1, 8) ..... | 2080 |
| 49.6.23 | TIMx capture/compare mode register 3 (TIMx_CCMR3) (x = 1, 8) ..... | 2081 |
| 49.6.24 | TIMx timer deadtime register 2 (TIMx_DTR2)(x = 1, 8) ..... | 2082 |
| 49.6.25 | TIMx timer encoder control register (TIMx_ECR)(x = 1, 8) ..... | 2083 |
| 49.6.26 | TIMx timer input selection register (TIMx_TISEL)(x = 1, 8) ..... | 2084 |
| 49.6.27 | TIMx alternate function option register 1 (TIMx_AF1)(x = 1, 8) .... | 2085 |
| 49.6.28 | TIMx alternate function register 2 (TIMx_AF2)(x = 1, 8) ..... | 2088 |
| 49.6.29 | TIMx DMA control register (TIMx_DCR)(x = 1, 8) ..... | 2090 |
| 49.6.30 | TIMx DMA address for full transfer (TIMx_DMAR)(x = 1, 8) ..... | 2092 |
| 49.6.31 | TIMx register map ..... | 2092 |
| 50 | General-purpose timers (TIM2/TIM3/TIM4/TIM5) ..... | 2095 |
| 50.1 | TIM2/TIM3/TIM4/TIM5 introduction ..... | 2095 |
| 50.2 | TIM2/TIM3/TIM4/TIM5 main features ..... | 2095 |
| 50.3 | TIM2/TIM3/TIM4/TIM5 implementation ..... | 2096 |
| 50.4 | TIM2/TIM3/TIM4/TIM5 functional description ..... | 2097 |
| 50.4.1 | Block diagram ..... | 2097 |
| 50.4.2 | TIM2/TIM3/TIM4/TIM5 pins and internal signals ..... | 2098 |
| 50.4.3 | Time-base unit ..... | 2102 |
| 50.4.4 | Counter modes ..... | 2104 |
| 50.4.5 | Clock selection ..... | 2115 |
| 50.4.6 | Capture/compare channels ..... | 2119 |
| 50.4.7 | Input capture mode ..... | 2121 |
| 50.4.8 | PWM input mode ..... | 2122 |
| 50.4.9 | Forced output mode ..... | 2123 |
| 50.4.10 | Output compare mode ..... | 2123 |
| 50.4.11 | PWM mode ..... | 2125 |
| 50.4.12 | Asymmetric PWM mode ..... | 2133 |
| 50.4.13 | Combined PWM mode ..... | 2134 |
| 50.4.14 | Clearing the tim_ocxref signal on an external event ..... | 2135 |
| 50.4.15 | One-pulse mode ..... | 2137 |
| 50.4.16 | Retriggerable one-pulse mode ..... | 2138 |
| 50.4.17 | Pulse on compare mode ..... | 2139 |
| 50.4.18 | Encoder interface mode ..... | 2141 |
| 50.4.19 | Direction bit output ..... | 2159 |
| 50.4.20 | UIF bit remapping ..... | 2160 |
| 50.4.21 | Timer input XOR function ..... | 2160 |
| 50.4.22 | Timers and external trigger synchronization ..... | 2160 |
| 50.4.23 | Timer synchronization ..... | 2164 |
| 50.4.24 | ADC triggers ..... | 2169 |
| 50.4.25 | DMA burst mode ..... | 2170 |
| 50.4.26 | TIM2/TIM3/TIM4/TIM5 DMA requests ..... | 2171 |
| 50.4.27 | Debug mode ..... | 2171 |
| 50.4.28 | TIM2/TIM3/TIM4/TIM5 low-power modes ..... | 2171 |
| 50.4.29 | TIM2/TIM3/TIM4/TIM5 interrupts ..... | 2172 |
| 50.5 | TIM2/TIM3/TIM4/TIM5 registers ..... | 2173 |
| 50.5.1 | TIMx control register 1 (TIMx_CR1)(x = 2 to 5) ..... | 2173 |
| 50.5.2 | TIMx control register 2 (TIMx_CR2)(x = 2 to 5) ..... | 2174 |
| 50.5.3 | TIMx slave mode control register (TIMx_SMCR)(x = 2 to 5) ..... | 2176 |
| 50.5.4 | TIMx DMA/Interrupt enable register (TIMx_DIER)(x = 2 to 5) ..... | 2180 |
| 50.5.5 | TIMx status register (TIMx_SR)(x = 2 to 5) ..... | 2181 |
| 50.5.6 | TIMx event generation register (TIMx_EGR)(x = 2 to 5) ..... | 2183 |
| 50.5.7 | TIMx capture/compare mode register 1 (TIMx_CCMR1)(x = 2 to 5) .. | 2184 |
| 50.5.8 | TIMx capture/compare mode register 1 [alternate] (TIMx_CCMR1)(x = 2 to 5) ..... | 2186 |
| 50.5.9 | TIMx capture/compare mode register 2 (TIMx_CCMR2)(x = 2 to 5) . | 2188 |
| 50.5.10 | TIMx capture/compare mode register 2 [alternate] (TIMx_CCMR2)(x = 2 to 5) . . . . . | 2189 |
| 50.5.11 | TIMx capture/compare enable register (TIMx_CCER)(x = 2 to 5) . . . | 2192 |
| 50.5.12 | TIMx counter (TIMx_CNT)(x = 3, 4) . . . . . | 2193 |
| 50.5.13 | TIMx counter (TIMx_CNT)(x = 2, 5) . . . . . | 2194 |
| 50.5.14 | TIMx prescaler (TIMx_PSC)(x = 2 to 5) . . . . . | 2194 |
| 50.5.15 | TIMx autoreload register (TIMx_ARR)(x = 3, 4) . . . . . | 2195 |
| 50.5.16 | TIMx autoreload register (TIMx_ARR)(x = 2, 5) . . . . . | 2195 |
| 50.5.17 | TIMx capture/compare register 1 (TIMx_CCR1)(x = 3, 4) . . . . . | 2196 |
| 50.5.18 | TIMx capture/compare register 1 (TIMx_CCR1)(x = 2, 5) . . . . . | 2197 |
| 50.5.19 | TIMx capture/compare register 2 (TIMx_CCR2)(x = 3, 4) . . . . . | 2197 |
| 50.5.20 | TIMx capture/compare register 2 (TIMx_CCR2)(x = 2, 5) . . . . . | 2198 |
| 50.5.21 | TIMx capture/compare register 3 (TIMx_CCR3)(x = 3, 4) . . . . . | 2199 |
| 50.5.22 | TIMx capture/compare register 3 (TIMx_CCR3)(x = 2, 5) . . . . . | 2200 |
| 50.5.23 | TIMx capture/compare register 4 (TIMx_CCR4)(x = 3, 4) . . . . . | 2201 |
| 50.5.24 | TIMx capture/compare register 4 (TIMx_CCR4)(x = 2, 5) . . . . . | 2202 |
| 50.5.25 | TIMx timer encoder control register (TIMx_ECR)(x = 2 to 5) . . . . . | 2203 |
| 50.5.26 | TIMx timer input selection register (TIMx_TISEL)(x = 2 to 5) . . . . . | 2204 |
| 50.5.27 | TIMx alternate function register 1 (TIMx_AF1)(x = 2 to 5) . . . . . | 2205 |
| 50.5.28 | TIMx alternate function register 2 (TIMx_AF2)(x = 2 to 5) . . . . . | 2206 |
| 50.5.29 | TIMx DMA control register (TIMx_DCR)(x = 2 to 5) . . . . . | 2207 |
| 50.5.30 | TIMx DMA address for full transfer (TIMx_DMAR)(x = 2 to 5) . . . . . | 2208 |
| 50.5.31 | TIMx register map . . . . . | 2209 |
| 51 | Basic timers (TIM6/TIM7) . . . . . | 2212 |
| 51.1 | TIM6/TIM7 introduction . . . . . | 2212 |
| 51.2 | TIM6/TIM7 main features . . . . . | 2212 |
| 51.3 | TIM6/TIM7 functional description . . . . . | 2213 |
| 51.3.1 | TIM6/TIM7 block diagram . . . . . | 2213 |
| 51.3.2 | TIM6/TIM7 internal signals . . . . . | 2213 |
| 51.3.3 | TIM6/TIM7 clocks . . . . . | 2214 |
| 51.3.4 | Time-base unit . . . . . | 2214 |
| 51.3.5 | Counting mode . . . . . | 2216 |
| 51.3.6 | UIF bit remapping . . . . . | 2223 |
| 51.3.7 | ADC triggers . . . . . | 2224 |
| 51.3.8 | TIM6/TIM7 DMA requests . . . . . | 2224 |
| 51.3.9 | Debug mode | 2224 |
| 51.3.10 | TIM6/TIM7 low-power modes | 2224 |
| 51.3.11 | TIM6/TIM7 interrupts | 2224 |
| 51.4 | TIM6/TIM7 registers | 2225 |
| 51.4.1 | TIMx control register 1 (TIMx_CR1)(x = 6 to 7) | 2225 |
| 51.4.2 | TIMx control register 2 (TIMx_CR2)(x = 6 to 7) | 2227 |
| 51.4.3 | TIMx DMA/Interrupt enable register (TIMx_DIER)(x = 6 to 7) | 2227 |
| 51.4.4 | TIMx status register (TIMx_SR)(x = 6 to 7) | 2228 |
| 51.4.5 | TIMx event generation register (TIMx_EGR)(x = 6 to 7) | 2228 |
| 51.4.6 | TIMx counter (TIMx_CNT)(x = 6 to 7) | 2228 |
| 51.4.7 | TIMx prescaler (TIMx_PSC)(x = 6 to 7) | 2229 |
| 51.4.8 | TIMx autoreload register (TIMx_ARR)(x = 6 to 7) | 2229 |
| 51.4.9 | TIMx register map | 2230 |
| 52 | General-purpose timers (TIM12/TIM13/TIM14) | 2231 |
| 52.1 | TIM12/TIM13/TIM14 introduction | 2231 |
| 52.2 | TIM12 main features | 2231 |
| 52.3 | TIM13/TIM14 main features | 2232 |
| 52.4 | TIM12/TIM13/TIM14 functional description | 2233 |
| 52.4.1 | Block diagram | 2233 |
| 52.4.2 | TIM12/TIM13/TIM14 pins and internal signals | 2234 |
| 52.4.3 | Time-base unit | 2237 |
| 52.4.4 | Counter modes | 2239 |
| 52.4.5 | Clock selection | 2242 |
| 52.4.6 | Capture/compare channels | 2244 |
| 52.4.7 | Input capture mode | 2246 |
| 52.4.8 | PWM input mode (TIM12 only) | 2247 |
| 52.4.9 | Forced output mode | 2248 |
| 52.4.10 | Output compare mode | 2249 |
| 52.4.11 | PWM mode | 2250 |
| 52.4.12 | Combined PWM mode (TIM12 only) | 2255 |
| 52.4.13 | One-pulse mode | 2256 |
| 52.4.14 | Retriggerable one pulse mode (TIM12 only) | 2258 |
| 52.4.15 | UIF bit remapping | 2259 |
| 52.4.16 | Timer input XOR function | 2259 |
| 52.4.17 | TIM12 external trigger synchronization | 2259 |
| 52.4.18 | Slave mode – combined reset + trigger mode | 2262 |
| 52.4.19 | Slave mode – combined reset + gated mode | 2262 |
| 52.4.20 | Timer synchronization (TIM12 only) | 2262 |
| 52.4.21 | Using timer output as trigger for other timers (TIM13/TIM14 only) | 2262 |
| 52.4.22 | ADC triggers (TIM12 only) | 2262 |
| 52.4.23 | Debug mode | 2262 |
| 52.5 | TIM12/TIM13/TIM14 low-power modes | 2263 |
| 52.6 | TIM12/TIM13/TIM14 interrupts | 2263 |
| 52.7 | TIM12 registers | 2263 |
| 52.7.1 | TIM12 control register 1 (TIM12_CR1) | 2263 |
| 52.7.2 | TIM12 control register 2 (TIM12_CR2) | 2265 |
| 52.7.3 | TIM12 slave mode control register (TIM12_SMCR) | 2265 |
| 52.7.4 | TIM12 interrupt enable register (TIM12_DIER) | 2267 |
| 52.7.5 | TIM12 status register (TIM12_SR) | 2268 |
| 52.7.6 | TIM12 event generation register (TIM12_EGR) | 2269 |
| 52.7.7 | TIM12 capture/compare mode register 1 (TIM12_CCMR1) | 2270 |
| 52.7.8 | TIM12 capture/compare mode register 1 [alternate] (TIM12_CCMR1) | 2271 |
| 52.7.9 | TIM12 capture/compare enable register (TIM12_CCER) | 2274 |
| 52.7.10 | TIM12 counter (TIM12_CNT) | 2275 |
| 52.7.11 | TIM12 prescaler (TIM12_PSC) | 2276 |
| 52.7.12 | TIM12 autoreload register (TIM12_ARR) | 2276 |
| 52.7.13 | TIM12 capture/compare register 1 (TIM12_CCR1) | 2277 |
| 52.7.14 | TIM12 capture/compare register 2 (TIM12_CCR2) | 2277 |
| 52.7.15 | TIM12 timer input selection register (TIM12_TISEL) | 2278 |
| 52.7.16 | TIM12 register map | 2279 |
| 52.8 | TIM13/TIM14 registers | 2281 |
| 52.8.1 | TIMx control register 1 (TIMx_CR1)(x = 13, 14) | 2281 |
| 52.8.2 | TIMx interrupt enable register (TIMx_DIER)(x = 13, 14) | 2282 |
| 52.8.3 | TIMx status register (TIMx_SR)(x = 13, 14) | 2282 |
| 52.8.4 | TIMx event generation register (TIMx_EGR)(x = 13, 14) | 2283 |
| 52.8.5 | TIMx capture/compare mode register 1 (TIMx_CCMR1)(x = 13, 14) | 2284 |
| 52.8.6 | TIMx capture/compare mode register 1 [alternate] (TIMx_CCMR1)(x = 13, 14) | 2285 |
| 52.8.7 | TIMx capture/compare enable register (TIMx_CCER)(x = 13, 14) | 2287 |
| 52.8.8 | TIMx counter (TIMx_CNT)(x = 13, 14) | 2288 |
| 52.8.9 | TIMx prescaler (TIMx_PSC)(x = 13, 14) ..... | 2289 |
| 52.8.10 | TIMx autoreload register (TIMx_ARR)(x = 13, 14) ..... | 2289 |
| 52.8.11 | TIMx capture/compare register 1 (TIMx_CCR1)(x = 13, 14) ..... | 2290 |
| 52.8.12 | TIMx timer input selection register (TIMx_TISEL)(x = 13, 14) ..... | 2290 |
| 52.8.13 | TIM13/TIM14 register map ..... | 2291 |
| 53 | General purpose timers (TIM15/TIM16/TIM17) ..... | 2293 |
| 53.1 | TIM15/TIM16/TIM17 introduction ..... | 2293 |
| 53.2 | TIM15 main features ..... | 2293 |
| 53.3 | TIM16/TIM17 main features ..... | 2294 |
| 53.4 | TIM15/TIM16/TIM17 functional description ..... | 2295 |
| 53.4.1 | Block diagram ..... | 2295 |
| 53.4.2 | TIM15/TIM16/TIM17 pins and internal signals ..... | 2296 |
| 53.4.3 | Time-base unit ..... | 2300 |
| 53.4.4 | Counter modes ..... | 2302 |
| 53.4.5 | Repetition counter ..... | 2306 |
| 53.4.6 | Clock selection ..... | 2307 |
| 53.4.7 | Capture/compare channels ..... | 2309 |
| 53.4.8 | Input capture mode ..... | 2311 |
| 53.4.9 | PWM input mode (only for TIM15) ..... | 2313 |
| 53.4.10 | Forced output mode ..... | 2314 |
| 53.4.11 | Output compare mode ..... | 2314 |
| 53.4.12 | PWM mode ..... | 2316 |
| 53.4.13 | Combined PWM mode (TIM15 only) ..... | 2321 |
| 53.4.14 | Complementary outputs and dead-time insertion ..... | 2322 |
| 53.4.15 | Using the break function ..... | 2325 |
| 53.4.16 | Bidirectional break input ..... | 2329 |
| 53.4.17 | Clearing the tim_ocxref signal on an external event ..... | 2330 |
| 53.4.18 | 6-step PWM generation ..... | 2331 |
| 53.4.19 | One-pulse mode ..... | 2333 |
| 53.4.20 | Retriggerable one pulse mode (TIM15 only) ..... | 2334 |
| 53.4.21 | UIF bit remapping ..... | 2335 |
| 53.4.22 | Timer input XOR function (TIM15 only) ..... | 2335 |
| 53.4.23 | External trigger synchronization (TIM15 only) ..... | 2335 |
| 53.4.24 | Slave mode – combined reset + trigger mode (TIM15 only) ..... | 2338 |
| 53.4.25 | Slave mode – combined reset + gated mode (TIM15 only) ..... | 2338 |
| 53.4.26 | Timer synchronization (TIM15 only) ..... | 2339 |
| 53.4.27 | Using timer output as trigger for other timers (TIM16/TIM17 only) . . . | 2339 |
| 53.4.28 | ADC triggers (TIM15 only) . . . . . | 2339 |
| 53.4.29 | DMA burst mode . . . . . | 2339 |
| 53.4.30 | TIM15/TIM16/TIM17 DMA requests . . . . . | 2340 |
| 53.4.31 | Debug mode . . . . . | 2340 |
| 53.5 | TIM15/TIM16/TIM17 low-power modes . . . . . | 2341 |
| 53.6 | TIM15/TIM16/TIM17 interrupts . . . . . | 2341 |
| 53.7 | TIM15 registers . . . . . | 2341 |
| 53.7.1 | TIM15 control register 1 (TIM15_CR1) . . . . . | 2342 |
| 53.7.2 | TIM15 control register 2 (TIM15_CR2) . . . . . | 2343 |
| 53.7.3 | TIM15 slave mode control register (TIM15_SMCR) . . . . . | 2345 |
| 53.7.4 | TIM15 DMA/interrupt enable register (TIM15_DIER) . . . . . | 2347 |
| 53.7.5 | TIM15 status register (TIM15_SR) . . . . . | 2348 |
| 53.7.6 | TIM15 event generation register (TIM15_EGR) . . . . . | 2350 |
| 53.7.7 | TIM15 capture/compare mode register 1 (TIM15_CCMR1) . . . . . | 2351 |
| 53.7.8 | TIM15 capture/compare mode register 1 [alternate] (TIM15_CCMR1) . . . . . | 2352 |
| 53.7.9 | TIM15 capture/compare enable register (TIM15_CCER) . . . . . | 2355 |
| 53.7.10 | TIM15 counter (TIM15_CNT) . . . . . | 2358 |
| 53.7.11 | TIM15 prescaler (TIM15_PSC) . . . . . | 2358 |
| 53.7.12 | TIM15 autoreload register (TIM15_ARR) . . . . . | 2359 |
| 53.7.13 | TIM15 repetition counter register (TIM15_RCR) . . . . . | 2359 |
| 53.7.14 | TIM15 capture/compare register 1 (TIM15_CCR1) . . . . . | 2360 |
| 53.7.15 | TIM15 capture/compare register 2 (TIM15_CCR2) . . . . . | 2361 |
| 53.7.16 | TIM15 break and dead-time register (TIM15_BDTR) . . . . . | 2361 |
| 53.7.17 | TIM15 timer deadtime register 2 (TIM15_DTR2) . . . . . | 2364 |
| 53.7.18 | TIM15 input selection register (TIM15_TISEL) . . . . . | 2365 |
| 53.7.19 | TIM15 alternate function register 1 (TIM15_AF1) . . . . . | 2366 |
| 53.7.20 | TIM15 alternate function register 2 (TIM15_AF2) . . . . . | 2368 |
| 53.7.21 | TIM15 DMA control register (TIM15_DCR) . . . . . | 2369 |
| 53.7.22 | TIM15 DMA address for full transfer (TIM15_DMAR) . . . . . | 2370 |
| 53.7.23 | TIM15 register map . . . . . | 2370 |
| 53.8 | TIM16/TIM17 registers . . . . . | 2373 |
| 53.8.1 | TIMx control register 1 (TIMx_CR1)(x = 16 to 17) . . . . . | 2373 |
| 53.8.2 | TIMx control register 2 (TIMx_CR2)(x = 16 to 17) . . . . . | 2374 |
| 53.8.3 | TIMx DMA/interrupt enable register (TIMx_DIER)(x = 16 to 17) . . . . | 2375 |
| 53.8.4 | TIMx status register (TIMx_SR)(x = 16 to 17) . . . . . | 2376 |
| 53.8.5 | TIMx event generation register (TIMx_EGR)(x = 16 to 17) . . . . . | 2377 |
| 53.8.6 | TIMx capture/compare mode register 1 (TIMx_CCMR1) (x = 16 to 17) . . . . . | 2378 |
| 53.8.7 | TIMx capture/compare mode register 1 [alternate] (TIMx_CCMR1)(x = 16 to 17) . . . . . | 2379 |
| 53.8.8 | TIMx capture/compare enable register (TIMx_CCER)(x = 16 to 17) . . . . . | 2381 |
| 53.8.9 | TIMx counter (TIMx_CNT)(x = 16 to 17) . . . . . | 2384 |
| 53.8.10 | TIMx prescaler (TIMx_PSC)(x = 16 to 17) . . . . . | 2384 |
| 53.8.11 | TIMx auto-reautoreload register (TIMx_ARR)(x = 16 to 17) . . . . . | 2385 |
| 53.8.12 | TIMx repetition counter register (TIMx_RCR)(x = 16 to 17) . . . . . | 2385 |
| 53.8.13 | TIMx capture/compare register 1 (TIMx_CCR1)(x = 16 to 17) . . . . . | 2386 |
| 53.8.14 | TIMx break and dead-time register (TIMx_BDTR)(x = 16 to 17) . . . . . | 2387 |
| 53.8.15 | TIMx timer deadtime register 2 (TIMx_DTR2)(x = 16 to 17) . . . . . | 2390 |
| 53.8.16 | TIMx input selection register (TIMx_TISEL)(x = 16 to 17) . . . . . | 2391 |
| 53.8.17 | TIMx alternate function register 1 (TIMx_AF1)(x = 16 to 17) . . . . . | 2391 |
| 53.8.18 | TIMx alternate function register 2 (TIMx_AF2)(x = 16 to 17) . . . . . | 2394 |
| 53.8.19 | TIM17 option register 1 (TIM17_OR1) . . . . . | 2394 |
| 53.8.20 | TIMx DMA control register (TIMx_DCR)(x = 16 to 17) . . . . . | 2395 |
| 53.8.21 | TIM16/TIM17 DMA address for full transfer (TIMx_DMAR)(x = 16 to 17) . . . . . | 2396 |
| 53.8.22 | TIM16/TIM17 register map . . . . . | 2397 |
| 54 | Low-power timer (LPTIM) . . . . . | 2400 |
| 54.1 | LPTIM introduction . . . . . | 2400 |
| 54.2 | LPTIM main features . . . . . | 2400 |
| 54.3 | LPTIM implementation . . . . . | 2401 |
| 54.4 | LPTIM functional description . . . . . | 2402 |
| 54.4.1 | LPTIM block diagram . . . . . | 2402 |
| 54.4.2 | LPTIM pins and internal signals . . . . . | 2403 |
| 54.4.3 | LPTIM input and trigger mapping . . . . . | 2405 |
| 54.4.4 | LPTIM reset and clocks . . . . . | 2406 |
| 54.4.5 | Glitch filter . . . . . | 2407 |
| 54.4.6 | Prescaler . . . . . | 2408 |
| 54.4.7 | Trigger multiplexer . . . . . | 2408 |
| 54.4.8 | Operating mode . . . . . | 2409 |
| 54.4.9 | Timeout function . . . . . | 2411 |
| 54.4.10 | Waveform generation . . . . . | 2411 |
| 54.4.11 | Register update . . . . . | 2412 |
| 54.4.12 | Counter mode | 2413 |
| 54.4.13 | Timer enable | 2413 |
| 54.4.14 | Timer counter reset | 2414 |
| 54.4.15 | Encoder mode | 2414 |
| 54.4.16 | Repetition counter | 2416 |
| 54.4.17 | Capture/compare channels | 2417 |
| 54.4.18 | Input capture mode | 2418 |
| 54.4.19 | PWM mode | 2420 |
| 54.4.20 | DMA requests | 2422 |
| 54.4.21 | Debug mode | 2423 |
| 54.5 | LPTIM low-power modes | 2423 |
| 54.6 | LPTIM interrupts | 2423 |
| 54.7 | LPTIM registers | 2424 |
| 54.7.1 | LPTIM4 interrupt and status register (LPTIM4_ISR) | 2425 |
| 54.7.2 | LPTIMx interrupt and status register [alternate] (LPTIMx_ISR) (x = 1 to 3, 5, 6) | 2426 |
| 54.7.3 | LPTIMx interrupt and status register [alternate] (LPTIMx_ISR) (x = 1 to 3, 5, 6) | 2428 |
| 54.7.4 | LPTIM4 interrupt clear register (LPTIM4_ICR) | 2430 |
| 54.7.5 | LPTIMx interrupt clear register [alternate] (LPTIMx_ICR) (x = 1 to 3, 5, 6) | 2431 |
| 54.7.6 | LPTIMx interrupt clear register [alternate] (LPTIMx_ICR) (x = 1 to 3, 5, 6) | 2432 |
| 54.7.7 | LPTIM4 interrupt enable register (LPTIM4_DIER) | 2433 |
| 54.7.8 | LPTIMx interrupt enable register [alternate] (LPTIMx_DIER) (x = 1 to 3, 5, 6) | 2435 |
| 54.7.9 | LPTIMx interrupt enable register [alternate] (LPTIMx_DIER) (x = 1 to 3, 5, 6) | 2436 |
| 54.7.10 | LPTIM configuration register (LPTIM_CFGR) | 2438 |
| 54.7.11 | LPTIM control register (LPTIM_CR) | 2441 |
| 54.7.12 | LPTIM compare register 1 (LPTIM_CCR1) | 2442 |
| 54.7.13 | LPTIM autoreload register (LPTIM_ARR) | 2443 |
| 54.7.14 | LPTIM counter register (LPTIM_CNT) | 2443 |
| 54.7.15 | LPTIM configuration register 2 (LPTIM_CFGR2) | 2444 |
| 54.7.16 | LPTIM repetition register (LPTIM_RCR) | 2445 |
| 54.7.17 | LPTIM capture/compare mode register 1 (LPTIM_CCMR1) | 2445 |
| 54.7.18 | LPTIM compare register 2 (LPTIM_CCR2) | 2448 |
| 54.7.19 | LPTIM register map | 2448 |
| 55 | Independent watchdog (IWDG) . . . . . | 2451 |
| 55.1 | IWDG introduction . . . . . | 2451 |
| 55.2 | IWDG main features . . . . . | 2451 |
| 55.3 | IWDG implementation . . . . . | 2451 |
| 55.4 | IWDG functional description . . . . . | 2452 |
| 55.4.1 | IWDG block diagram . . . . . | 2452 |
| 55.4.2 | IWDG internal signals . . . . . | 2453 |
| 55.4.3 | Software and hardware watchdog modes . . . . . | 2453 |
| 55.4.4 | Window option . . . . . | 2454 |
| 55.4.5 | Debug . . . . . | 2457 |
| 55.4.6 | Register access protection . . . . . | 2457 |
| 55.5 | IWDG low power modes . . . . . | 2458 |
| 55.6 | IWDG interrupts . . . . . | 2458 |
| 55.7 | IWDG registers . . . . . | 2460 |
| 55.7.1 | IWDG key register (IWDG_KR) . . . . . | 2461 |
| 55.7.2 | IWDG prescaler register (IWDG_PR) . . . . . | 2461 |
| 55.7.3 | IWDG reload register (IWDG_RLR) . . . . . | 2462 |
| 55.7.4 | IWDG status register (IWDG_SR) . . . . . | 2462 |
| 55.7.5 | IWDG window register (IWDG_WINR) . . . . . | 2464 |
| 55.7.6 | IWDG early wake-up interrupt register (IWDG_EWCR) . . . . . | 2464 |
| 55.7.7 | IWDG register map . . . . . | 2466 |
| 56 | System window watchdog (WWDG) . . . . . | 2467 |
| 56.1 | WWDG introduction . . . . . | 2467 |
| 56.2 | WWDG main features . . . . . | 2467 |
| 56.3 | WWDG implementation . . . . . | 2467 |
| 56.4 | WWDG functional description . . . . . | 2468 |
| 56.4.1 | WWDG block diagram . . . . . | 2468 |
| 56.4.2 | WWDG internal signals . . . . . | 2468 |
| 56.4.3 | Enabling the watchdog . . . . . | 2469 |
| 56.4.4 | Controlling the down-counter . . . . . | 2469 |
| 56.4.5 | How to program the watchdog timeout . . . . . | 2469 |
| 56.4.6 | Debug mode . . . . . | 2470 |
| 56.5 | WWDG interrupts . . . . . | 2471 |
| 56.6 | WWDG registers . . . . . | 2471 |
| 56.6.1 | WWDG control register (WWDG_CR) ..... | 2471 |
| 56.6.2 | WWDG configuration register (WWDG_CFR) ..... | 2472 |
| 56.6.3 | WWDG status register (WWDG_SR) ..... | 2473 |
| 56.6.4 | WWDG register map ..... | 2473 |
| 57 | Real-time clock (RTC) ..... | 2474 |
| 57.1 | RTC introduction ..... | 2474 |
| 57.2 | RTC main features ..... | 2474 |
| 57.3 | RTC functional description ..... | 2475 |
| 57.3.1 | RTC block diagram ..... | 2475 |
| 57.3.2 | RTC pins and internal signals ..... | 2477 |
| 57.3.3 | GPIOs controlled by the RTC and TAMP ..... | 2478 |
| 57.3.4 | RTC secure protection modes ..... | 2482 |
| 57.3.5 | RTC privilege protection modes ..... | 2484 |
| 57.3.6 | Clock and prescalers ..... | 2485 |
| 57.3.7 | Real-time clock and calendar ..... | 2486 |
| 57.3.8 | Calendar ultra-low power mode ..... | 2486 |
| 57.3.9 | Programmable alarms ..... | 2487 |
| 57.3.10 | Periodic auto-wake-up ..... | 2487 |
| 57.3.11 | RTC initialization and configuration ..... | 2488 |
| 57.3.12 | Reading the calendar ..... | 2491 |
| 57.3.13 | Resetting the RTC ..... | 2492 |
| 57.3.14 | RTC synchronization ..... | 2492 |
| 57.3.15 | RTC reference clock detection ..... | 2492 |
| 57.3.16 | RTC smooth digital calibration ..... | 2493 |
| 57.3.17 | Timestamp function ..... | 2495 |
| 57.3.18 | Calibration clock output ..... | 2496 |
| 57.3.19 | Tamper and alarm output ..... | 2497 |
| 57.4 | RTC low-power modes ..... | 2497 |
| 57.5 | RTC interrupts ..... | 2498 |
| 57.6 | RTC registers ..... | 2499 |
| 57.6.1 | RTC time register (RTC_TR) ..... | 2499 |
| 57.6.2 | RTC date register (RTC_DR) ..... | 2500 |
| 57.6.3 | RTC subsecond register (RTC_SSR) ..... | 2501 |
| 57.6.4 | RTC initialization control and status register (RTC_ICSR) ..... | 2502 |
| 57.6.5 | RTC prescaler register (RTC_PRER) ..... | 2504 |
| 57.6.6 | RTC wake-up timer register (RTC_WUTR) ..... | 2505 |
| 57.6.7 | RTC control register (RTC_CR) ..... | 2505 |
| 57.6.8 | RTC privilege mode control register (RTC_PRIVCFGR) ..... | 2509 |
| 57.6.9 | RTC secure configuration register (RTC_SECCFGR) ..... | 2511 |
| 57.6.10 | RTC write protection register (RTC_WPR) ..... | 2512 |
| 57.6.11 | RTC calibration register (RTC_CALR) ..... | 2513 |
| 57.6.12 | RTC shift control register (RTC_SHIFTR) ..... | 2514 |
| 57.6.13 | RTC timestamp time register (RTC_TSTR) ..... | 2515 |
| 57.6.14 | RTC timestamp date register (RTC_TSDR) ..... | 2516 |
| 57.6.15 | RTC timestamp subsecond register (RTC_TSSSR) ..... | 2517 |
| 57.6.16 | RTC alarm A register (RTC_ALRMAR) ..... | 2517 |
| 57.6.17 | RTC alarm A subsecond register (RTC_ALRMASSR) ..... | 2519 |
| 57.6.18 | RTC alarm B register (RTC_ALRMBR) ..... | 2520 |
| 57.6.19 | RTC alarm B subsecond register (RTC_ALRMBSSR) ..... | 2521 |
| 57.6.20 | RTC status register (RTC_SR) ..... | 2522 |
| 57.6.21 | RTC nonsecure masked interrupt status register (RTC_MISR) ..... | 2523 |
| 57.6.22 | RTC secure masked interrupt status register (RTC_SMISR) ..... | 2524 |
| 57.6.23 | RTC status clear register (RTC_SCR) ..... | 2525 |
| 57.6.24 | RTC option register (RTC_OR) ..... | 2526 |
| 57.6.25 | RTC alarm A binary mode register (RTC_ALRABINR) ..... | 2527 |
| 57.6.26 | RTC alarm B binary mode register (RTC_ALRBBINR) ..... | 2527 |
| 57.6.27 | RTC register map ..... | 2529 |
| 58 | Tamper and backup registers (TAMP) ..... | 2532 |
| 58.1 | TAMP introduction ..... | 2532 |
| 58.2 | TAMP main features ..... | 2533 |
| 58.3 | TAMP functional description ..... | 2534 |
| 58.3.1 | TAMP block diagram ..... | 2534 |
| 58.3.2 | TAMP pins and internal signals ..... | 2535 |
| 58.3.3 | GPIOs controlled by the RTC and TAMP ..... | 2538 |
| 58.3.4 | TAMP register write protection ..... | 2538 |
| 58.3.5 | TAMP secure protection modes ..... | 2538 |
| 58.3.6 | Backup registers protection zones ..... | 2539 |
| 58.3.7 | TAMP privilege protection modes ..... | 2539 |
| 58.3.8 | Boot hardware key (BHK) ..... | 2540 |
| 58.3.9 | Tamper detection ..... | 2540 |
| 58.3.10 | TAMP backup registers and other device secrets erase ..... | 2540 |
| 58.3.11 | Tamper detection configuration and initialization | 2542 |
| 58.4 | TAMP low-power modes | 2549 |
| 58.5 | TAMP interrupts | 2549 |
| 58.6 | TAMP registers | 2549 |
| 58.6.1 | TAMP control register 1 (TAMP_CR1) | 2550 |
| 58.6.2 | TAMP control register 2 (TAMP_CR2) | 2552 |
| 58.6.3 | TAMP control register 3 (TAMP_CR3) | 2554 |
| 58.6.4 | TAMP filter control register (TAMP_FLTCR) | 2555 |
| 58.6.5 | TAMP active tamper control register 1 (TAMP_ATCR1) | 2557 |
| 58.6.6 | TAMP active tamper seed register (TAMP_ATSEEDR) | 2559 |
| 58.6.7 | TAMP active tamper output register (TAMP_ATOM) | 2559 |
| 58.6.8 | TAMP active tamper control register 2 (TAMP_ATCR2) | 2560 |
| 58.6.9 | TAMP secure configuration register (TAMP_SECCFGR) | 2563 |
| 58.6.10 | TAMP privilege configuration register (TAMP_PRIVCFGR) | 2565 |
| 58.6.11 | TAMP interrupt enable register (TAMP_IER) | 2566 |
| 58.6.12 | TAMP status register (TAMP_SR) | 2568 |
| 58.6.13 | TAMP nonsecure masked interrupt status register (TAMP_MISR) | 2570 |
| 58.6.14 | TAMP secure masked interrupt status register (TAMP_SMISR) | 2571 |
| 58.6.15 | TAMP status clear register (TAMP_SCR) | 2573 |
| 58.6.16 | TAMP monotonic counter 1 register (TAMP_COUNT1R) | 2575 |
| 58.6.17 | TAMP option register (TAMP_OR) | 2575 |
| 58.6.18 | TAMP resources protection configuration register (TAMP_RPCFGR) | 2576 |
| 58.6.19 | TAMP backup x register (TAMP_BKPxR) | 2577 |
| 58.6.20 | TAMP register map | 2578 |
| 59 | Inter-integrated circuit interface (I2C) | 2580 |
| 59.1 | I2C introduction | 2580 |
| 59.2 | I2C main features | 2580 |
| 59.3 | I2C implementation | 2581 |
| 59.4 | I2C functional description | 2581 |
| 59.4.1 | I2C block diagram | 2582 |
| 59.4.2 | I2C pins and internal signals | 2582 |
| 59.4.3 | I2C clock requirements | 2583 |
| 59.4.4 | I2C mode selection | 2583 |
| 59.4.5 | I2C initialization | 2584 |
| 59.4.6 | I2C reset | 2588 |
| 59.4.7 | I2C data transfer | 2589 |
| 59.4.8 | I2C target mode | 2591 |
| 59.4.9 | I2C controller mode | 2600 |
| 59.4.10 | I2C_TIMINGR register configuration examples | 2611 |
| 59.4.11 | SMBus specific features | 2613 |
| 59.4.12 | SMBus initialization | 2615 |
| 59.4.13 | SMBus I2C_TIMEOUTR register configuration examples | 2617 |
| 59.4.14 | SMBus target mode | 2618 |
| 59.4.15 | SMBus controller mode | 2621 |
| 59.4.16 | Wake-up from Stop mode on address match | 2624 |
| 59.4.17 | Error conditions | 2625 |
| 59.5 | I2C in low-power modes | 2627 |
| 59.6 | I2C interrupts | 2627 |
| 59.7 | I2C DMA requests | 2628 |
| 59.7.1 | Transmission using DMA | 2628 |
| 59.7.2 | Reception using DMA | 2628 |
| 59.8 | I2C debug modes | 2628 |
| 59.9 | I2C registers | 2629 |
| 59.9.1 | I2C control register 1 (I2C_CR1) | 2629 |
| 59.9.2 | I2C control register 2 (I2C_CR2) | 2632 |
| 59.9.3 | I2C own address 1 register (I2C_OAR1) | 2634 |
| 59.9.4 | I2C own address 2 register (I2C_OAR2) | 2634 |
| 59.9.5 | I2C timing register (I2C_TIMINGR) | 2635 |
| 59.9.6 | I2C timeout register (I2C_TIMEOUTR) | 2636 |
| 59.9.7 | I2C interrupt and status register (I2C_ISR) | 2637 |
| 59.9.8 | I2C interrupt clear register (I2C_ICR) | 2640 |
| 59.9.9 | I2C PEC register (I2C_PECR) | 2641 |
| 59.9.10 | I2C receive data register (I2C_RXDR) | 2641 |
| 59.9.11 | I2C transmit data register (I2C_TXDR) | 2642 |
| 59.9.12 | I2C register map | 2643 |
| 60 | Improved inter-integrated circuit (I3C) | 2644 |
| 60.1 | I3C introduction | 2644 |
| 60.2 | I3C main features | 2644 |
| 60.3 | I3C implementation | 2646 |
| 60.3.1 | I3C instantiation | 2646 |
| 60.3.2 | I3C wake-up from low-power mode(s) . . . . . | 2646 |
| 60.3.3 | I3C FIFOs . . . . . | 2646 |
| 60.3.4 | I3C triggers . . . . . | 2646 |
| 60.3.5 | I3C interrupt(s) . . . . . | 2646 |
| 60.3.6 | I3C MIPI® support . . . . . | 2647 |
| 60.4 | I3C block diagram . . . . . | 2648 |
| 60.5 | I3C pins and internal signals . . . . . | 2648 |
| 60.6 | I3C reset and clocks . . . . . | 2649 |
| 60.6.1 | I3C reset . . . . . | 2649 |
| 60.6.2 | I3C clocks and requirements . . . . . | 2649 |
| 60.7 | I3C peripheral state and programming . . . . . | 2651 |
| 60.7.1 | I3C peripheral state . . . . . | 2651 |
| 60.7.2 | I3C controller state and programming sequence . . . . . | 2652 |
| 60.7.3 | I3C target state and programming sequence . . . . . | 2657 |
| 60.8 | I3C registers and programming . . . . . | 2661 |
| 60.8.1 | I3C register set, as controller/target . . . . . | 2661 |
| 60.8.2 | I3C registers and fields use versus peripheral state, as controller . . . . . | 2662 |
| 60.8.3 | I3C registers and fields usage versus peripheral state, as target . . . . . | 2665 |
| 60.9 | I3C bus transfers and programming . . . . . | 2667 |
| 60.9.1 | I3C command set (CCCs), as controller/target . . . . . | 2667 |
| 60.9.2 | I3C broadcast/direct CCC transfer (except ENTDAA, RSTACT), as controller . . . . . | 2671 |
| 60.9.3 | I3C broadcast ENTDAA CCC transfer, as controller . . . . . | 2673 |
| 60.9.4 | I3C broadcast/direct RSTACT CCC transfer, as controller . . . . . | 2673 |
| 60.9.5 | I3C broadcast/direct CCC transfer (except ENTDAA, DEFTGTS, DEFGRPA), as target . . . . . | 2675 |
| 60.9.6 | I3C broadcast ENTDAA CCC transfer, as target . . . . . | 2677 |
| 60.9.7 | I3C broadcast DEFTGTS CCC transfer, as target . . . . . | 2678 |
| 60.9.8 | I3C broadcast DEFGRPA CCC transfer, as target . . . . . | 2679 |
| 60.9.9 | I3C direct GETSTATUS CCC response, as target . . . . . | 2680 |
| 60.9.10 | I3C private read/write transfer, as controller . . . . . | 2681 |
| 60.9.11 | I3C private read/write transfer, as target . . . . . | 2682 |
| 60.9.12 | Legacy I2C read/write transfer, as controller . . . . . | 2683 |
| 60.9.13 | I3C IBI transfer, as controller/target . . . . . | 2684 |
| 60.9.14 | I3C hot-join request transfer, as controller/target . . . . . | 2686 |
| 60.9.15 | I3C controller-role request transfer, as controller/target . . . . . | 2687 |
| 60.10 | I3C FIFOs management, as controller . . . . . | 2688 |
| 60.10.1 | C-FIFO management, as controller | 2688 |
| 60.10.2 | TX-FIFO management, as controller | 2689 |
| 60.10.3 | RX-FIFO management, as controller | 2692 |
| 60.10.4 | S-FIFO management, as controller | 2694 |
| 60.11 | I3C FIFOs management, as target | 2696 |
| 60.11.1 | RX-FIFO management, as target | 2696 |
| 60.11.2 | TX-FIFO management, as target | 2697 |
| 60.12 | I3C error management | 2700 |
| 60.12.1 | Controller error management | 2700 |
| 60.12.2 | Target error management | 2702 |
| 60.13 | I3C in low-power modes | 2703 |
| 60.14 | I3C interrupts | 2704 |
| 60.15 | I3C registers | 2704 |
| 60.15.1 | I3C message control register (I3C_CR) | 2704 |
| 60.15.2 | I3C message control register [alternate] (I3C_CR) | 2706 |
| 60.15.3 | I3C configuration register (I3C_CFGR) | 2708 |
| 60.15.4 | I3C receive data byte register (I3C_RDR) | 2713 |
| 60.15.5 | I3C receive data word register (I3C_RDWR) | 2714 |
| 60.15.6 | I3C transmit data byte register (I3C_TDR) | 2715 |
| 60.15.7 | I3C transmit data word register (I3C_TDWR) | 2716 |
| 60.15.8 | I3C IBI payload data register (I3C_IBIDR) | 2717 |
| 60.15.9 | I3C target transmit configuration register (I3C_TGTTDR) | 2718 |
| 60.15.10 | I3C status register (I3C_SR) | 2719 |
| 60.15.11 | I3C status error register (I3C_SER) | 2720 |
| 60.15.12 | I3C received message register (I3C_RMR) | 2722 |
| 60.15.13 | I3C event register (I3C_EVR) | 2723 |
| 60.15.14 | I3C interrupt enable register (I3C_IER) | 2727 |
| 60.15.15 | I3C clear event register (I3C_CEV) | 2729 |
| 60.15.16 | I3C masked interrupt status register (I3C_MISR) | 2731 |
| 60.15.17 | I3C own device characteristics register (I3C_DEVR0) | 2732 |
| 60.15.18 | I3C device x characteristics register (I3C_DEVRx) | 2734 |
| 60.15.19 | I3C maximum read length register (I3C_MAXRLR) | 2736 |
| 60.15.20 | I3C maximum write length register (I3C_MAXWLR) | 2737 |
| 60.15.21 | I3C timing register 0 (I3C_TIMINGR0) | 2738 |
| 60.15.22 | I3C timing register 1 (I3C_TIMINGR1) | 2739 |
| 60.15.23 | I3C timing register 2 (I3C_TIMINGR2) | 2741 |
| 60.15.24 | I3C bus characteristics register (I3C_BCR) ..... | 2742 |
| 60.15.25 | I3C device characteristics register (I3C_DCR) ..... | 2743 |
| 60.15.26 | I3C get capability register (I3C_GETCAPR) ..... | 2744 |
| 60.15.27 | I3C controller-role capability register (I3C_CRCAPR) ..... | 2745 |
| 60.15.28 | I3C get max data speed register (I3C_GETMXDSR) ..... | 2746 |
| 60.15.29 | I3C extended provisioned ID register (I3C_EPIDR) ..... | 2748 |
| 60.15.30 | I3C register map ..... | 2749 |
| 61 | Universal synchronous/asynchronous receiver transmitter (USART/UART) ..... | 2752 |
| 61.1 | USART introduction ..... | 2752 |
| 61.2 | USART main features ..... | 2752 |
| 61.3 | USART extended features ..... | 2753 |
| 61.4 | USART implementation ..... | 2753 |
| 61.5 | USART functional description ..... | 2755 |
| 61.5.1 | USART block diagram ..... | 2755 |
| 61.5.2 | USART pins and internal signals ..... | 2755 |
| 61.5.3 | USART clocks ..... | 2757 |
| 61.5.4 | USART character description ..... | 2757 |
| 61.5.5 | USART FIFOs and thresholds ..... | 2760 |
| 61.5.6 | USART transmitter ..... | 2760 |
| 61.5.7 | USART receiver ..... | 2763 |
| 61.5.8 | USART baud rate generation ..... | 2770 |
| 61.5.9 | Tolerance of the USART receiver to clock deviation ..... | 2772 |
| 61.5.10 | USART auto baud rate detection ..... | 2773 |
| 61.5.11 | USART multiprocessor communication ..... | 2775 |
| 61.5.12 | USART Modbus communication ..... | 2777 |
| 61.5.13 | USART parity control ..... | 2778 |
| 61.5.14 | USART LIN (local interconnection network) mode ..... | 2779 |
| 61.5.15 | USART synchronous mode ..... | 2781 |
| 61.5.16 | USART single-wire half-duplex communication ..... | 2785 |
| 61.5.17 | USART receiver timeout ..... | 2785 |
| 61.5.18 | USART smartcard mode ..... | 2786 |
| 61.5.19 | USART IrDA SIR ENDEC block ..... | 2790 |
| 61.5.20 | Continuous communication using USART and DMA ..... | 2793 |
| 61.5.21 | RS232 hardware flow control and RS485 driver enable ..... | 2795 |
| 61.5.22 | USART low-power management ..... | 2798 |
| 61.6 | USART in low-power modes | 2801 |
| 61.7 | USART interrupts | 2801 |
| 61.8 | USART registers | 2804 |
| 61.8.1 | USART control register 1 (USART_CR1) | 2804 |
| 61.8.2 | USART control register 1 [alternate] (USART_CR1) | 2808 |
| 61.8.3 | USART control register 2 (USART_CR2) | 2811 |
| 61.8.4 | USART control register 3 (USART_CR3) | 2815 |
| 61.8.5 | USART control register 3 [alternate] (USART_CR3) | 2819 |
| 61.8.6 | USART baud rate register (USART_BRR) | 2822 |
| 61.8.7 | USART guard time and prescaler register (USART_GTPR) | 2823 |
| 61.8.8 | USART receiver timeout register (USART_RTOR) | 2824 |
| 61.8.9 | USART request register (USART_RQR) | 2825 |
| 61.8.10 | USART interrupt and status register (USART_ISR) | 2826 |
| 61.8.11 | USART interrupt and status register [alternate] (USART_ISR) | 2832 |
| 61.8.12 | USART interrupt flag clear register (USART_ICR) | 2837 |
| 61.8.13 | USART receive data register (USART_RDR) | 2838 |
| 61.8.14 | USART transmit data register (USART_TDR) | 2839 |
| 61.8.15 | USART prescaler register (USART_PRESC) | 2839 |
| 61.8.16 | USART register map | 2840 |
| 62 | Low-power universal asynchronous receiver transmitter (LPUART) | 2842 |
| 62.1 | LPUART introduction | 2842 |
| 62.2 | LPUART main features | 2842 |
| 62.3 | LPUART implementation | 2843 |
| 62.4 | LPUART functional description | 2845 |
| 62.4.1 | LPUART block diagram | 2845 |
| 62.4.2 | LPUART pins and internal signals | 2846 |
| 62.4.3 | LPUART clocks | 2847 |
| 62.4.4 | LPUART character description | 2847 |
| 62.4.5 | LPUART FIFOs and thresholds | 2849 |
| 62.4.6 | LPUART transmitter | 2849 |
| 62.4.7 | LPUART receiver | 2853 |
| 62.4.8 | LPUART baud rate generation | 2857 |
| 62.4.9 | Tolerance of the LPUART receiver to clock deviation | 2858 |
| 62.4.10 | LPUART multiprocessor communication | 2859 |
| 62.4.11 | LPUART parity control | 2861 |
| 62.4.12 | LPUART single-wire half-duplex communication . . . . . | 2862 |
| 62.4.13 | Continuous communication using DMA and LPUART . . . . . | 2862 |
| 62.4.14 | RS232 hardware flow control and RS485 driver enable . . . . . | 2865 |
| 62.4.15 | LPUART low-power management . . . . . | 2867 |
| 62.5 | LPUART in low-power modes . . . . . | 2870 |
| 62.6 | LPUART interrupts . . . . . | 2871 |
| 62.7 | LPUART registers . . . . . | 2872 |
| 62.7.1 | LPUART control register 1 (LPUART_CR1) . . . . . | 2872 |
| 62.7.2 | LPUART control register 1 [alternate] (LPUART_CR1) . . . . . | 2875 |
| 62.7.3 | LPUART control register 2 (LPUART_CR2) . . . . . | 2878 |
| 62.7.4 | LPUART control register 3 (LPUART_CR3) . . . . . | 2880 |
| 62.7.5 | LPUART control register 3 [alternate] (LPUART_CR3) . . . . . | 2883 |
| 62.7.6 | LPUART baud rate register (LPUART_BRR) . . . . . | 2885 |
| 62.7.7 | LPUART request register (LPUART_RQR) . . . . . | 2885 |
| 62.7.8 | LPUART interrupt and status register (LPUART_ISR) . . . . . | 2886 |
| 62.7.9 | LPUART interrupt and status register [alternate] (LPUART_ISR) . . . . . | 2891 |
| 62.7.10 | LPUART interrupt flag clear register (LPUART_ICR) . . . . . | 2894 |
| 62.7.11 | LPUART receive data register (LPUART_RDR) . . . . . | 2895 |
| 62.7.12 | LPUART transmit data register (LPUART_TDR) . . . . . | 2895 |
| 62.7.13 | LPUART prescaler register (LPUART_PRESC) . . . . . | 2896 |
| 62.7.14 | LPUART register map . . . . . | 2897 |
| 63 | Serial peripheral interface (SPI) . . . . . | 2899 |
| 63.1 | SPI introduction . . . . . | 2899 |
| 63.2 | SPI main features . . . . . | 2899 |
| 63.3 | SPI implementation . . . . . | 2900 |
| 63.4 | SPI functional description . . . . . | 2901 |
| 63.4.1 | SPI block diagram . . . . . | 2901 |
| 63.4.2 | SPI pins and internal signals . . . . . | 2902 |
| 63.4.3 | SPI communication general aspects . . . . . | 2903 |
| 63.4.4 | Communications between one master and one slave . . . . . | 2903 |
| 63.4.5 | Standard multislave communication . . . . . | 2906 |
| 63.4.6 | Multimaster communication . . . . . | 2909 |
| 63.4.7 | Slave select (NSS pin) management . . . . . | 2910 |
| 63.4.8 | Ready pin (RDY) management . . . . . | 2914 |
| 63.4.9 | Communication formats . . . . . | 2914 |
| 63.4.10 | Configuring the SPI ..... | 2916 |
| 63.4.11 | Enabling the SPI ..... | 2917 |
| 63.4.12 | SPI data transmission and reception procedures ..... | 2918 |
| 63.4.13 | Disabling the SPI ..... | 2922 |
| 63.4.14 | Communication using DMA (direct memory addressing) ..... | 2923 |
| 63.5 | SPI specific modes and control ..... | 2925 |
| 63.5.1 | TI mode ..... | 2925 |
| 63.5.2 | SPI error flags ..... | 2925 |
| 63.5.3 | CRC computation ..... | 2929 |
| 63.6 | SPI in low-power modes ..... | 2930 |
| 63.7 | SPI interrupts ..... | 2930 |
| 63.8 | I2S main features ..... | 2932 |
| 63.9 | I2S functional description ..... | 2932 |
| 63.9.1 | I2S general description ..... | 2932 |
| 63.9.2 | Pin sharing with SPI function ..... | 2933 |
| 63.9.3 | Bitfields usable in I2S/PCM mode ..... | 2933 |
| 63.9.4 | Slave and master modes ..... | 2934 |
| 63.9.5 | Supported audio protocols ..... | 2934 |
| 63.9.6 | Additional serial interface flexibility ..... | 2940 |
| 63.9.7 | Startup sequence ..... | 2942 |
| 63.9.8 | Stop sequence ..... | 2944 |
| 63.9.9 | Clock generator ..... | 2945 |
| 63.9.10 | Internal FIFOs ..... | 2947 |
| 63.9.11 | FIFO status flags ..... | 2948 |
| 63.9.12 | Handling of underrun situation ..... | 2948 |
| 63.9.13 | Handling of overrun situation ..... | 2949 |
| 63.9.14 | Frame error detection ..... | 2950 |
| 63.9.15 | DMA interface ..... | 2952 |
| 63.9.16 | Programing examples ..... | 2952 |
| 63.10 | I2S interrupts ..... | 2954 |
| 63.11 | SPI/I2S registers ..... | 2955 |
| 63.11.1 | SPI/I2S control register 1 (SPI_CR1) ..... | 2955 |
| 63.11.2 | SPI/I2S control register 2 (SPI_CR2) ..... | 2957 |
| 63.11.3 | SPI/I2S configuration register 1 (SPI_CFG1) ..... | 2957 |
| 63.11.4 | SPI/I2S configuration register 2 (SPI_CFG2) ..... | 2961 |
| 63.11.5 | SPI/I2S interrupt enable register (SPI_IER) ..... | 2963 |
| 63.11.6 | SPI/I2S status register (SPI_SR) ..... | 2964 |
| 63.11.7 | SPI/I2S interrupt/status flags clear register (SPI_IFCR) ..... | 2967 |
| 63.11.8 | SPI/I2S transmit data register (SPI_TXDR) ..... | 2968 |
| 63.11.9 | SPI/I2S receive data register (SPI_RXDR) ..... | 2968 |
| 63.11.10 | SPI/I2S polynomial register (SPI_CRCPOLY) ..... | 2969 |
| 63.11.11 | SPI/I2S transmitter CRC register (SPI_TXCRC) ..... | 2969 |
| 63.11.12 | SPI/I2S receiver CRC register (SPI_RXCRC) ..... | 2970 |
| 63.11.13 | SPI/I2S underrun data register (SPI_UDRDR) ..... | 2971 |
| 63.11.14 | SPI/I2S configuration register (SPI_I2SCFGR) ..... | 2971 |
| 63.11.15 | SPI/I2S register map ..... | 2973 |
| 64 | Serial audio interface (SAI) ..... | 2975 |
| 64.1 | SAI introduction ..... | 2975 |
| 64.2 | SAI main features ..... | 2975 |
| 64.3 | SAI implementation ..... | 2976 |
| 64.4 | SAI functional description ..... | 2977 |
| 64.4.1 | SAI block diagram ..... | 2977 |
| 64.4.2 | SAI pins and internal signals ..... | 2978 |
| 64.4.3 | Main SAI modes ..... | 2979 |
| 64.4.4 | SAI synchronization mode ..... | 2980 |
| 64.4.5 | Audio data size ..... | 2981 |
| 64.4.6 | Frame synchronization ..... | 2981 |
| 64.4.7 | Slot configuration ..... | 2984 |
| 64.4.8 | SAI clock generator ..... | 2986 |
| 64.4.9 | Internal FIFOs ..... | 2989 |
| 64.4.10 | PDM interface ..... | 2991 |
| 64.4.11 | AC'97 link controller ..... | 2999 |
| 64.4.12 | SPDIF output ..... | 3001 |
| 64.4.13 | Specific features ..... | 3004 |
| 64.4.14 | Error flags ..... | 3008 |
| 64.4.15 | Disabling the SAI ..... | 3011 |
| 64.4.16 | SAI DMA interface ..... | 3011 |
| 64.5 | SAI interrupts ..... | 3012 |
| 64.6 | SAI registers ..... | 3014 |
| 64.6.1 | SAI global configuration register (SAI_GCR) ..... | 3014 |
| 64.6.2 | SAI configuration register 1 (SAI_ACR1) ..... | 3014 |
| 64.6.3 | SAI configuration register 2 (SAI_ACR2) ..... | 3017 |
| 64.6.4 | SAI frame configuration register (SAI_AFRCR) ..... | 3019 |
| 64.6.5 | SAI slot register (SAI_ASLOTR) ..... | 3020 |
| 64.6.6 | SAI interrupt mask register (SAI_AIM) ..... | 3021 |
| 64.6.7 | SAI status register (SAI_ASR) ..... | 3023 |
| 64.6.8 | SAI clear flag register (SAI_ACLRFR) ..... | 3025 |
| 64.6.9 | SAI data register (SAI_ADR) ..... | 3026 |
| 64.6.10 | SAI configuration register 1 (SAI_BCR1) ..... | 3026 |
| 64.6.11 | SAI configuration register 2 (SAI_BCR2) ..... | 3029 |
| 64.6.12 | SAI frame configuration register (SAI_BFRCR) ..... | 3031 |
| 64.6.13 | SAI slot register (SAI_BSLOTR) ..... | 3032 |
| 64.6.14 | SAI interrupt mask register (SAI_BIM) ..... | 3033 |
| 64.6.15 | SAI status register (SAI_BSR) ..... | 3034 |
| 64.6.16 | SAI clear flag register (SAI_BCLRFR) ..... | 3036 |
| 64.6.17 | SAI data register (SAI_BDR) ..... | 3037 |
| 64.6.18 | SAI PDM control register (SAI_PDMCR) ..... | 3038 |
| 64.6.19 | SAI PDM delay register (SAI_PDMDLY) ..... | 3039 |
| 64.6.20 | SAI register map ..... | 3041 |
| 65 | FD controller area network (FDCAN) ..... | 3043 |
| 65.1 | FDCAN introduction ..... | 3043 |
| 65.2 | FDCAN main features ..... | 3045 |
| 65.3 | FDCAN functional description ..... | 3046 |
| 65.3.1 | FDCAN block diagram ..... | 3046 |
| 65.3.2 | FDCAN pins and internal signals ..... | 3047 |
| 65.3.3 | Bit timing ..... | 3048 |
| 65.3.4 | Operating modes ..... | 3049 |
| 65.3.5 | Error management ..... | 3058 |
| 65.3.6 | Message RAM ..... | 3059 |
| 65.3.7 | FIFO acknowledge handling ..... | 3068 |
| 65.3.8 | FDCAN Rx FIFO element ..... | 3068 |
| 65.3.9 | FDCAN Tx buffer element ..... | 3070 |
| 65.3.10 | FDCAN Tx event FIFO element ..... | 3072 |
| 65.3.11 | FDCAN standard message ID filter element ..... | 3073 |
| 65.3.12 | FDCAN extended message ID filter element ..... | 3074 |
| 65.4 | FDCAN registers ..... | 3076 |
| 65.4.1 | FDCAN core release register (FDCAN_CREL) ..... | 3076 |
| 65.4.2 | FDCAN endian register (FDCAN_ENDN) ..... | 3076 |
| 65.4.3 | FDCAN data bit timing and prescaler register (FDCAN_DBTP) .... | 3076 |
| 65.4.4 | FDCAN test register (FDCAN_TEST) ..... | 3077 |
| 65.4.5 | FDCAN RAM watchdog register (FDCAN_RWD) ..... | 3078 |
| 65.4.6 | FDCAN CC control register (FDCAN_CCCR) ..... | 3079 |
| 65.4.7 | FDCAN nominal bit timing and prescaler register (FDCAN_NBTP) .. | 3080 |
| 65.4.8 | FDCAN timestamp counter configuration register (FDCAN_TSCC) .. | 3082 |
| 65.4.9 | FDCAN timestamp counter value register (FDCAN_TSCV) ..... | 3082 |
| 65.4.10 | FDCAN timeout counter configuration register (FDCAN_TOCC) .... | 3083 |
| 65.4.11 | FDCAN timeout counter value register (FDCAN_TOCV) ..... | 3084 |
| 65.4.12 | FDCAN error counter register (FDCAN_ECR) ..... | 3084 |
| 65.4.13 | FDCAN protocol status register (FDCAN_PSR) ..... | 3085 |
| 65.4.14 | FDCAN transmitter delay compensation register (FDCAN_TDCR) .. | 3087 |
| 65.4.15 | FDCAN interrupt register (FDCAN_IR) ..... | 3087 |
| 65.4.16 | FDCAN interrupt enable register (FDCAN_IE) ..... | 3090 |
| 65.4.17 | FDCAN interrupt line select register (FDCAN_ILS) ..... | 3092 |
| 65.4.18 | FDCAN interrupt line enable register (FDCAN_ILE) ..... | 3093 |
| 65.4.19 | FDCAN global filter configuration register (FDCAN_RXGFC) ..... | 3093 |
| 65.4.20 | FDCAN extended ID and mask register (FDCAN_XIDAM) ..... | 3095 |
| 65.4.21 | FDCAN high-priority message status register (FDCAN_HPMS) .... | 3095 |
| 65.4.22 | FDCAN Rx FIFO 0 status register (FDCAN_RXF0S) ..... | 3096 |
| 65.4.23 | CAN Rx FIFO 0 acknowledge register (FDCAN_RXF0A) ..... | 3097 |
| 65.4.24 | FDCAN Rx FIFO 1 status register (FDCAN_RXF1S) ..... | 3097 |
| 65.4.25 | FDCAN Rx FIFO 1 acknowledge register (FDCAN_RXF1A) ..... | 3098 |
| 65.4.26 | FDCAN Tx buffer configuration register (FDCAN_TXBC) ..... | 3098 |
| 65.4.27 | FDCAN Tx FIFO/queue status register (FDCAN_TXFQS) ..... | 3099 |
| 65.4.28 | FDCAN Tx buffer request pending register (FDCAN_TXBRP) .... | 3099 |
| 65.4.29 | FDCAN Tx buffer add request register (FDCAN_TXBAR) ..... | 3100 |
| 65.4.30 | FDCAN Tx buffer cancellation request register (FDCAN_TXBCR) .. | 3101 |
| 65.4.31 | FDCAN Tx buffer transmission occurred register (FDCAN_TXBTO) .. | 3101 |
| 65.4.32 | FDCAN Tx buffer cancellation finished register (FDCAN_TXBCF) .. | 3102 |
| 65.4.33 | FDCAN Tx buffer transmission interrupt enable register (FDCAN_TXBTIE) ..... | 3102 |
| 65.4.34 | FDCAN Tx buffer cancellation finished interrupt enable register (FDCAN_TXBCIE) ..... | 3103 |
| 65.4.35 | FDCAN Tx event FIFO status register (FDCAN_TXEFS) ..... | 3103 |
| 65.4.36 | FDCAN Tx event FIFO acknowledge register (FDCAN_TXEFA) .... | 3104 |
| 65.4.37 | FDCAN CFG clock divider register (FDCAN_CKDIV) ..... | 3104 |
| 65.4.38 | FDCAN register map ..... | 3105 |
| 66 | USB on-the-go full-speed (OTG_FS) ..... | 3109 |
| 66.1 | OTG_FS introduction ..... | 3109 |
| 66.2 | OTG_FS main features ..... | 3110 |
| 66.2.1 | General features ..... | 3110 |
| 66.2.2 | Host-mode features ..... | 3111 |
| 66.2.3 | Peripheral-mode features ..... | 3111 |
| 66.3 | OTG_FS implementation ..... | 3112 |
| 66.4 | OTG_FS functional description ..... | 3113 |
| 66.4.1 | OTG_FS block diagram ..... | 3113 |
| 66.4.2 | OTG_FS pin and internal signals ..... | 3113 |
| 66.4.3 | OTG_FS core ..... | 3114 |
| 66.4.4 | Embedded full-speed OTG PHY connected to OTG_FS ..... | 3114 |
| 66.5 | OTG_FS dual role device (DRD) ..... | 3115 |
| 66.6 | OTG_FS as a USB peripheral ..... | 3115 |
| 66.6.1 | Peripheral states ..... | 3116 |
| 66.6.2 | Peripheral endpoints ..... | 3117 |
| 66.7 | OTG_FS as a USB host ..... | 3119 |
| 66.7.1 | USB host states ..... | 3120 |
| 66.7.2 | Host channels ..... | 3121 |
| 66.7.3 | Host scheduler ..... | 3122 |
| 66.8 | OTG_FS SOF trigger ..... | 3123 |
| 66.8.1 | Host SOFs ..... | 3124 |
| 66.8.2 | Peripheral SOFs ..... | 3124 |
| 66.9 | OTG_FS low-power modes ..... | 3124 |
| 66.10 | OTG_FS Dynamic update of the OTG_HFIR register ..... | 3125 |
| 66.11 | OTG_FS data FIFOs ..... | 3126 |
| 66.11.1 | Peripheral FIFO architecture ..... | 3127 |
| 66.11.2 | Host FIFO architecture ..... | 3128 |
| 66.11.3 | FIFO RAM allocation ..... | 3129 |
| 66.12 | OTG_FS system performance ..... | 3131 |
| 66.13 | OTG_FS interrupts ..... | 3131 |
| 66.14 | OTG_FS control and status registers ..... | 3133 |
| 66.14.1 | CSR memory map ..... | 3133 |
| 66.15 | OTG_FS registers | 3138 |
| 66.15.1 | OTG control and status register (OTG_GOTGCTL) | 3138 |
| 66.15.2 | OTG interrupt register (OTG_GOTGINT) | 3140 |
| 66.15.3 | OTG AHB configuration register (OTG_GAHBCFG) | 3141 |
| 66.15.4 | OTG USB configuration register (OTG_GUSBCFG) | 3142 |
| 66.15.5 | OTG reset register (OTG_GRSTCTL) | 3143 |
| 66.15.6 | OTG core interrupt register [alternate] (OTG_GINTSTS) | 3146 |
| 66.15.7 | OTG core interrupt register [alternate] (OTG_GINTSTS) | 3150 |
| 66.15.8 | OTG interrupt mask register [alternate] (OTG_GINTMSK) | 3154 |
| 66.15.9 | OTG interrupt mask register [alternate] (OTG_GINTMSK) | 3155 |
| 66.15.10 | OTG receive status debug read [alternate] (OTG_GRXSTSR) | 3157 |
| 66.15.11 | OTG receive status debug read register [alternate] (OTG_GRXSTSR) | 3158 |
| 66.15.12 | OTG status read and pop registers [alternate] (OTG_GRXSTSP) | 3159 |
| 66.15.13 | OTG status read and pop registers [alternate] (OTG_GRXSTSP) | 3160 |
| 66.15.14 | OTG receive FIFO size register (OTG_GRXFSIZ) | 3161 |
| 66.15.15 | OTG host non-periodic transmit FIFO size register [alternate] (OTG_HNPTXFSIZ) | 3162 |
| 66.15.16 | Endpoint 0 Transmit FIFO size [alternate] (OTG_DIEPTXF0) | 3162 |
| 66.15.17 | OTG non-periodic transmit FIFO/queue status register (OTG_HNPTXSTS) | 3163 |
| 66.15.18 | OTG general core configuration register (OTG_GCCFG) | 3164 |
| 66.15.19 | OTG core ID register (OTG_CID) | 3165 |
| 66.15.20 | OTG core LPM configuration register (OTG_GLPMCFG) | 3165 |
| 66.15.21 | OTG host periodic transmit FIFO size register (OTG_HPTXFSIZ) | 3170 |
| 66.15.22 | OTG device IN endpoint transmit FIFO x size register (OTG_DIEPTXFx) | 3170 |
| 66.15.23 | Host-mode registers | 3170 |
| 66.15.24 | OTG host configuration register (OTG_HCFG) | 3171 |
| 66.15.25 | OTG host frame interval register (OTG_HFIR) | 3171 |
| 66.15.26 | OTG host frame number/frame time remaining register (OTG_HFNUM) | 3172 |
| 66.15.27 | OTG_Host periodic transmit FIFO/queue status register (OTG_HPTXSTS) | 3173 |
| 66.15.28 | OTG host all channels interrupt register (OTG_HAINT) | 3174 |
| 66.15.29 | OTG host all channels interrupt mask register (OTG_HAINTMSK) | 3174 |
| 66.15.30 | OTG host port control and status register (OTG_HPRT) | 3175 |
| 66.15.31 OTG host channel x characteristics register (OTG_HCCHARx) | 3177 |
| 66.15.32 OTG host channel x interrupt register (OTG_HCINTx) | 3178 |
| 66.15.33 OTG host channel x interrupt mask register (OTG_HCINTMSKx) | 3179 |
| 66.15.34 OTG host channel x transfer size register (OTG_HCTSIZx) | 3180 |
| 66.15.35 Device-mode registers | 3181 |
| 66.15.36 OTG device configuration register (OTG_DCFG) | 3181 |
| 66.15.37 OTG device control register (OTG_DCTL) | 3182 |
| 66.15.38 OTG device status register (OTG_DSTS) | 3185 |
| 66.15.39 OTG device IN endpoint common interrupt mask register (OTG_DIEPMSK) | 3186 |
| 66.15.40 OTG device OUT endpoint common interrupt mask register (OTG_DOEPMSK) | 3187 |
| 66.15.41 OTG device all endpoints interrupt register (OTG_DAINT) | 3188 |
| 66.15.42 OTG all endpoints interrupt mask register (OTG_DAINTMSK) | 3189 |
| 66.15.43 OTG device IN endpoint FIFO empty interrupt mask register (OTG_DIEPEMPMSK) | 3189 |
| 66.15.44 OTG device each endpoint interrupt register (OTG_DEACHINT) | 3190 |
| 66.15.45 OTG device each endpoint interrupt mask register (OTG_DEACHINTMSK) | 3190 |
| 66.15.46 OTG device each IN endpoint-1 interrupt mask register (OTG_DIEPEACHM) | 3191 |
| 66.15.47 OTG device each OUT endpoint-1 interrupt mask register (OTG_DOEPEACHMSK1) | 3192 |
| 66.15.48 OTG device control IN endpoint 0 control register (OTG_DIEPCTL0) | 3193 |
| 66.15.49 OTG device IN endpoint x control register [alternate] (OTG_DIEPCTLx) | 3195 |
| 66.15.50 OTG device IN endpoint x control register [alternate] (OTG_DIEPCTLx) | 3197 |
| 66.15.51 OTG device IN endpoint x interrupt register (OTG_DIEPINTx) | 3199 |
| 66.15.52 OTG device IN endpoint 0 transfer size register (OTG_DIEPTSIZ0) | 3200 |
| 66.15.53 OTG device IN endpoint transmit FIFO status register (OTG_DTXFSTSx) | 3201 |
| 66.15.54 OTG device IN endpoint x transfer size register (OTG_DIEPTSIZx) | 3201 |
| 66.15.55 OTG device control OUT endpoint 0 control register (OTG_DOEPCTL0) | 3202 |
| 66.15.56 OTG device OUT endpoint x interrupt register (OTG_DOEPINTx) | 3204 |
| 66.15.57 OTG device OUT endpoint 0 transfer size register (OTG_DOEPTSIZ0) | 3205 |
| 66.15.58 | OTG device OUT endpoint x control register [alternate] (OTG_DOEPCTLx) | 3206 |
| 66.15.59 | OTG device OUT endpoint x control register [alternate] (OTG_DOEPCTLx) | 3208 |
| 66.15.60 | OTG device OUT endpoint x transfer size register (OTG_DOEPTSIZx) | 3210 |
| 66.15.61 | OTG power and clock gating control register (OTG_PCGCCTL) | 3211 |
| 66.15.62 | OTG power and clock gating control register 1 (OTG_PCGCCTL1) | 3212 |
| 66.15.63 | OTG_FS register map | 3213 |
| 66.16 | OTG_FS programming model | 3221 |
| 66.16.1 | Core initialization | 3221 |
| 66.16.2 | Host initialization | 3222 |
| 66.16.3 | Device initialization | 3222 |
| 66.16.4 | Host programming model | 3223 |
| 66.16.5 | Device programming model | 3244 |
| 66.16.6 | Worst case response time | 3265 |
| 66.16.7 | OTG programming model | 3267 |
| 67 | USB on-the-go high-speed (OTG_HS) | 3268 |
| 67.1 | OTG_HS introduction | 3268 |
| 67.2 | OTG_HS main features | 3269 |
| 67.2.1 | General features | 3269 |
| 67.2.2 | Host-mode features | 3270 |
| 67.2.3 | Peripheral-mode features | 3270 |
| 67.3 | OTG_HS implementation | 3270 |
| 67.4 | OTG_HS functional description | 3271 |
| 67.4.1 | OTG_HS block diagram | 3271 |
| 67.4.2 | OTG_HS pin and internal signals | 3271 |
| 67.4.3 | OTG_HS core | 3272 |
| 67.4.4 | High-speed OTG PHY connected to OTG_HS | 3272 |
| 67.4.5 | Battery charging detection | 3272 |
| 67.5 | OTG_HS dual role device (DRD) | 3273 |
| 67.6 | OTG_HS as a USB peripheral | 3273 |
| 67.6.1 | Peripheral states | 3274 |
| 67.6.2 | Peripheral endpoints | 3275 |
| 67.7 | OTG_HS as a USB host | 3277 |
| 67.7.1 | USB host states | 3278 |
| 67.7.2 | Host channels ..... | 3279 |
| 67.7.3 | Host scheduler ..... | 3280 |
| 67.8 | OTG_HS SOF trigger ..... | 3281 |
| 67.8.1 | Host SOFs ..... | 3282 |
| 67.8.2 | Peripheral SOFs ..... | 3282 |
| 67.9 | OTG_HS low-power modes ..... | 3282 |
| 67.10 | OTG_HS Dynamic update of the OTG_HFIR register ..... | 3283 |
| 67.11 | OTG_HS data FIFOs ..... | 3284 |
| 67.11.1 | Peripheral FIFO architecture ..... | 3284 |
| 67.11.2 | Host FIFO architecture ..... | 3285 |
| 67.11.3 | FIFO RAM allocation ..... | 3287 |
| 67.12 | OTG_HS interrupts ..... | 3288 |
| 67.13 | OTG_HS control and status registers ..... | 3290 |
| 67.13.1 | CSR memory map ..... | 3290 |
| 67.14 | OTG_HS registers ..... | 3295 |
| 67.14.1 | OTG control and status register (OTG_GOTGCTL) ..... | 3295 |
| 67.14.2 | OTG interrupt register (OTG_GOTGINT) ..... | 3297 |
| 67.14.3 | OTG AHB configuration register (OTG_GAHBCFG) ..... | 3298 |
| 67.14.4 | OTG USB configuration register (OTG_GUSBCFG) ..... | 3299 |
| 67.14.5 | OTG reset register (OTG_GRSTCTL) ..... | 3301 |
| 67.14.6 | OTG core interrupt register [alternate] (OTG_GINTSTS) ..... | 3304 |
| 67.14.7 | OTG core interrupt register [alternate] (OTG_GINTSTS) ..... | 3308 |
| 67.14.8 | OTG interrupt mask register [alternate] (OTG_GINTMSK) ..... | 3313 |
| 67.14.9 | OTG interrupt mask register [alternate] (OTG_GINTMSK) ..... | 3314 |
| 67.14.10 | OTG receive status debug read register [alternate] (OTG_GRXSTSR) ..... | 3316 |
| 67.14.11 | OTG receive status debug read register [alternate] (OTG_GRXSTSR) ..... | 3317 |
| 67.14.12 | OTG status read and pop registers (OTG_GRXSTSP) ..... | 3318 |
| 67.14.13 | OTG status read and pop registers [alternate] (OTG_GRXSTSP) .. | 3319 |
| 67.14.14 | OTG receive FIFO size register (OTG_GRXFSIZ) ..... | 3320 |
| 67.14.15 | OTG host non-periodic transmit FIFO size register [alternate] (OTG_HNPTXFSIZ) ..... | 3321 |
| 67.14.16 | Endpoint 0 transmit FIFO size [alternate] (OTG_DIEPTXF0) ..... | 3321 |
| 67.14.17 | OTG non-periodic transmit FIFO/queue status register (OTG_HNPTXSTS) ..... | 3322 |
| 67.14.18 | OTG general core configuration register (OTG_GCCFG) ..... | 3323 |
| 67.14.19 OTG core ID register (OTG_CID) | 3324 |
| 67.14.20 OTG core LPM configuration register (OTG_GLPMCFG) | 3325 |
| 67.14.21 OTG host periodic transmit FIFO size register (OTG_HPTXFSIZ) | 3329 |
| 67.14.22 OTG device IN endpoint transmit FIFO x size register (OTG_DIEPTXFx) | 3329 |
| 67.14.23 Host-mode registers | 3329 |
| 67.14.24 OTG host configuration register (OTG_HCFG) | 3330 |
| 67.14.25 OTG host frame interval register (OTG_HFIR) | 3330 |
| 67.14.26 OTG host frame number/frame time remaining register (OTG_HFNUM) | 3331 |
| 67.14.27 OTG_Host periodic transmit FIFO/queue status register (OTG_HPTXSTS) | 3332 |
| 67.14.28 OTG host all channels interrupt register (OTG_HAINT) | 3333 |
| 67.14.29 OTG host all channels interrupt mask register (OTG_HAINTMSK) | 3333 |
| 67.14.30 OTG host port control and status register (OTG_HPRT) | 3334 |
| 67.14.31 OTG host channel x characteristics register (OTG_HCCHARx) | 3336 |
| 67.14.32 OTG host channel x split control register (OTG_HCSPLTx) | 3337 |
| 67.14.33 OTG host channel x interrupt register (OTG_HCINTx) | 3338 |
| 67.14.34 OTG host channel x interrupt mask register (OTG_HCINTMSKx) | 3339 |
| 67.14.35 OTG host channel x transfer size register (OTG_HCTSIZx) | 3340 |
| 67.14.36 OTG host channel x DMA address register(OTG_HCDMAx) | 3341 |
| 67.14.37 Device-mode registers | 3341 |
| 67.14.38 OTG device configuration register (OTG_DCFG) | 3341 |
| 67.14.39 OTG device control register (OTG_DCTL) | 3343 |
| 67.14.40 OTG device status register (OTG_DSTS) | 3345 |
| 67.14.41 OTG device IN endpoint common interrupt mask register (OTG_DIEPMSK) | 3346 |
| 67.14.42 OTG device OUT endpoint common interrupt mask register (OTG_DOEPMSK) | 3347 |
| 67.14.43 OTG device all endpoints interrupt register (OTG_DAINT) | 3348 |
| 67.14.44 OTG all endpoints interrupt mask register (OTG_DAINTMSK) | 3349 |
| 67.14.45 OTG device threshold control register (OTG_DTHRCTL) | 3349 |
| 67.14.46 OTG device IN endpoint FIFO empty interrupt mask register (OTG_DIEPEMPMSK) | 3350 |
| 67.14.47 OTG device IN endpoint x control register [alternate] (OTG_DIEPCTLx) | 3351 |
| 67.14.48 | OTG device IN endpoint x control register [alternate] (OTG_DIEPCTLx) ..... | 3353 |
| 67.14.49 | OTG device IN endpoint x interrupt register (OTG_DIEPINTx) .... | 3355 |
| 67.14.50 | OTG device IN endpoint 0 transfer size register (OTG_DIEPTSIZ0) ..... | 3356 |
| 67.14.51 | OTG device IN endpoint x DMA address register (OTG_DIEPDMAx) ..... | 3357 |
| 67.14.52 | OTG device IN endpoint transmit FIFO status register (OTG_DTXFSTSx) ..... | 3357 |
| 67.14.53 | OTG device IN endpoint x transfer size register (OTG_DIEPTSIZx) . | 3358 |
| 67.14.54 | OTG device control OUT endpoint 0 control register (OTG_DOEPCTL0) ..... | 3358 |
| 67.14.55 | OTG device OUT endpoint x interrupt register (OTG_DOEPINTx) .. | 3360 |
| 67.14.56 | OTG device OUT endpoint 0 transfer size register (OTG_DOEPTSIZ0) ..... | 3362 |
| 67.14.57 | OTG device OUT endpoint x DMA address register (OTG_DOEPDMAx) ..... | 3363 |
| 67.14.58 | OTG device OUT endpoint x control register [alternate] (OTG_DOEPCTLx) ..... | 3363 |
| 67.14.59 | OTG device OUT endpoint x control register [alternate] (OTG_DOEPCTLx) ..... | 3365 |
| 67.14.60 | OTG device OUT endpoint x transfer size register (OTG_DOEPTSIZx) ..... | 3367 |
| 67.14.61 | OTG power and clock gating control register (OTG_PCGCCTL) ... | 3368 |
| 67.14.62 | OTG power and clock gating control register 1 (OTG_PCGCCTL1) . | 3369 |
| 67.14.63 | OTG_HS register map ..... | 3370 |
| 67.15 | OTG_HS programming model ..... | 3377 |
| 67.15.1 | Core initialization ..... | 3377 |
| 67.15.2 | Host initialization ..... | 3378 |
| 67.15.3 | Device initialization ..... | 3379 |
| 67.15.4 | DMA mode ..... | 3379 |
| 67.15.5 | Host programming model ..... | 3379 |
| 67.15.6 | Device programming model ..... | 3412 |
| 67.15.7 | Worst case response time ..... | 3432 |
| 67.15.8 | OTG programming model ..... | 3434 |
| 68 | USB Type-C®/USB Power Delivery interface (UCPD) ..... | 3435 |
| 68.1 | UCPD introduction ..... | 3435 |
| 68.2 | UCPD main features ..... | 3435 |
| 68.3 | UCPD implementation ..... | 3436 |
| 68.4 | UCPD functional description | 3436 |
| 68.4.1 | UCPD block diagram | 3437 |
| 68.4.2 | UCPD reset and clocks | 3438 |
| 68.4.3 | Physical layer protocol | 3439 |
| 68.4.4 | UCPD BMC transmitter | 3445 |
| 68.4.5 | UCPD BMC receiver | 3447 |
| 68.4.6 | UCPD Type-C pull-ups (Rp) and pull-downs (Rd) | 3448 |
| 68.4.7 | UCPD Type-C voltage monitoring and de-bouncing | 3449 |
| 68.4.8 | UCPD fast role swap (FRS) | 3449 |
| 68.4.9 | UCPD DMA Interface | 3449 |
| 68.4.10 | Wake-up from Stop mode | 3449 |
| 68.5 | UCPD programming sequences | 3450 |
| 68.5.1 | Initialization phase | 3450 |
| 68.5.2 | Type-C state machine handling | 3450 |
| 68.5.3 | USB PD transmit | 3452 |
| 68.5.4 | USB PD receive | 3453 |
| 68.6 | UCPD low-power modes | 3454 |
| 68.7 | UCPD interrupts | 3455 |
| 68.8 | UCPD registers | 3456 |
| 68.8.1 | UCPD configuration register 1 (UCPD_CFGR1) | 3456 |
| 68.8.2 | UCPD configuration register 2 (UCPD_CFGR2) | 3458 |
| 68.8.3 | UCPD control register (UCPD_CR) | 3459 |
| 68.8.4 | UCPD interrupt mask register (UCPD_IMR) | 3461 |
| 68.8.5 | UCPD status register (UCPD_SR) | 3462 |
| 68.8.6 | UCPD interrupt clear register (UCPD_ICR) | 3465 |
| 68.8.7 | UCPD Tx ordered set type register (UCPD_TX_ORDSETR) | 3466 |
| 68.8.8 | UCPD Tx payload size register (UCPD_TX_PAYSZR) | 3467 |
| 68.8.9 | UCPD Tx data register (UCPD_TXDR) | 3467 |
| 68.8.10 | UCPD Rx ordered set register (UCPD_RX_ORDSETR) | 3468 |
| 68.8.11 | UCPD Rx payload size register (UCPD_RX_PAYSZR) | 3468 |
| 68.8.12 | UCPD receive data register (UCPD_RXDR) | 3469 |
| 68.8.13 | UCPD Rx ordered set extension register 1 (UCPD_RX_ORDEXTR1) | 3469 |
| 68.8.14 | UCPD Rx ordered set extension register 2 (UCPD_RX_ORDEXTR2) | 3470 |
| 68.8.15 | UCPD register map | 3470 |
| 69 | Ethernet (ETH): media access control (MAC) with DMA controller | 3473 |
| 69.1 | Ethernet introduction | 3473 |
| 69.2 | Ethernet main features | 3473 |
| 69.2.1 | Standard compliance | 3473 |
| 69.2.2 | MAC features | 3473 |
| 69.2.3 | Transaction layer (MTL) features | 3475 |
| 69.2.4 | DMA block features | 3476 |
| 69.2.5 | Bus interface features | 3476 |
| 69.3 | Ethernet pins and internal signals | 3477 |
| 69.4 | Ethernet architecture | 3479 |
| 69.4.1 | DMA controller | 3480 |
| 69.4.2 | MTL | 3488 |
| 69.4.3 | MAC | 3488 |
| 69.5 | Ethernet functional description: MAC | 3493 |
| 69.5.1 | Double VLAN processing | 3493 |
| 69.5.2 | Source address and VLAN insertion, replacement, or deletion | 3494 |
| 69.5.3 | Packet filtering | 3496 |
| 69.5.4 | IEEE 1588 timestamp support | 3503 |
| 69.5.5 | Checksum offload engine | 3527 |
| 69.5.6 | TCP segmentation offload | 3533 |
| 69.5.7 | IPv4 ARP offload | 3539 |
| 69.5.8 | Loopback | 3540 |
| 69.5.9 | Flow control | 3541 |
| 69.5.10 | MAC management counters | 3543 |
| 69.5.11 | Interrupts generated by the MAC | 3545 |
| 69.5.12 | MAC and MMC register descriptions | 3545 |
| 69.6 | Ethernet functional description: PHY interfaces | 3546 |
| 69.6.1 | Station management agent (SMA) | 3546 |
| 69.6.2 | Media independent interface (MII) | 3553 |
| 69.6.3 | Reduced media independent interface (RMII) | 3554 |
| 69.7 | Ethernet low-power modes | 3557 |
| 69.7.1 | Low-power management | 3557 |
| 69.7.2 | Energy-efficient Ethernet (EEE) | 3563 |
| 69.8 | Ethernet interrupts | 3569 |
| 69.8.1 | DMA interrupts | 3569 |
| 69.8.2 | MTL interrupts | 3572 |
| 69.8.3 | MAC interrupts | 3572 |
| 69.9 | Ethernet programming model | 3573 |
| 69.9.1 | DMA initialization | 3574 |
| 69.9.2 | MTL initialization | 3575 |
| 69.9.3 | MAC initialization | 3575 |
| 69.9.4 | Performing normal receive and transmit operation | 3576 |
| 69.9.5 | Stopping and starting transmission | 3577 |
| 69.9.6 | Programming guidelines for switching to new descriptor list in RxDMA | 3577 |
| 69.9.7 | Programming guidelines for switching the AHB clock frequency | 3577 |
| 69.9.8 | Programming guidelines for MII link state transitions | 3578 |
| 69.9.9 | Programming guidelines for IEEE 1588 timestamping | 3579 |
| 69.9.10 | Programming guidelines for PTP offload feature | 3580 |
| 69.9.11 | Programming guidelines for Energy Efficient Ethernet (EEE) | 3584 |
| 69.9.12 | Programming guidelines for flexible pulse-per-second (PPS) output | 3586 |
| 69.9.13 | Programming guidelines for IEEE 1588 auxiliary snapshot | 3588 |
| 69.9.14 | Programming guidelines for TSO | 3588 |
| 69.9.15 | Programming guidelines to perform VLAN filtering on the receiver | 3589 |
| 69.9.16 | Programming guidelines for receive idle and receive interrupt watchdog timers | 3590 |
| 69.10 | Descriptors | 3591 |
| 69.10.1 | Descriptor overview | 3591 |
| 69.10.2 | Descriptor structure | 3591 |
| 69.10.3 | Transmit descriptor | 3595 |
| 69.10.4 | Receive descriptor | 3607 |
| 69.11 | Ethernet registers | 3620 |
| 69.11.1 | Ethernet register maps | 3620 |
| 69.11.2 | Ethernet DMA registers | 3620 |
| 69.11.3 | Ethernet MTL registers | 3642 |
| 69.11.4 | Ethernet MAC and MMC registers | 3651 |
| 70 | HDMI-CEC controller (CEC) | 3753 |
| 70.1 | HDMI-CEC introduction | 3753 |
| 70.2 | HDMI-CEC controller main features | 3753 |
| 70.3 | HDMI-CEC functional description | 3754 |
| 70.3.1 | HDMI-CEC pin and internal signals | 3754 |
| 70.3.2 | HDMI-CEC block diagram | 3755 |
| 70.3.3 | Message description | 3755 |
| 70.3.4 | Bit timing | 3756 |
| 70.4 | Arbitration | 3756 |
| 70.4.1 | SFT option bit | 3758 |
| 70.5 | Error handling | 3758 |
| 70.5.1 | Bit error | 3758 |
| 70.5.2 | Message error | 3759 |
| 70.5.3 | Bit rising error (BRE) | 3759 |
| 70.5.4 | Short bit period error (SBPE) | 3759 |
| 70.5.5 | Long bit period error (LBPE) | 3759 |
| 70.5.6 | Transmission error detection (TXERR) | 3761 |
| 70.6 | HDMI-CEC interrupts | 3762 |
| 70.7 | HDMI-CEC registers | 3763 |
| 70.7.1 | CEC control register (CEC_CR) | 3763 |
| 70.7.2 | CEC configuration register (CEC_CFGR) | 3764 |
| 70.7.3 | CEC Tx data register (CEC_TXDR) | 3766 |
| 70.7.4 | CEC Rx data register (CEC_RXDR) | 3766 |
| 70.7.5 | CEC interrupt and status register (CEC_ISR) | 3766 |
| 70.7.6 | CEC interrupt enable register (CEC_IER) | 3768 |
| 70.7.7 | HDMI-CEC register map | 3770 |
| 71 | Debug support (DBG) | 3771 |
| 71.1 | Introduction | 3771 |
| 71.2 | DBG functional description | 3772 |
| 71.2.1 | DBG block diagram | 3772 |
| 71.2.2 | DBG pins and internal signals | 3772 |
| 71.2.3 | DBG reset and clocks | 3773 |
| 71.2.4 | DBG power domains | 3773 |
| 71.2.5 | Debug and low-power modes | 3773 |
| 71.2.6 | Security | 3774 |
| 71.2.7 | Debug authentication | 3776 |
| 71.3 | Serial-wire and JTAG debug port (SWJ-DP) | 3779 |
| 71.3.1 | JTAG debug port | 3780 |
| 71.3.2 | Serial-wire debug port | 3782 |
| 71.3.3 | Debug port registers | 3784 |
| 71.3.4 | Debug port register map and reset values ..... | 3790 |
| 71.4 | Access ports ..... | 3791 |
| 71.4.1 | Access port registers ..... | 3791 |
| 71.4.2 | Access port register map ..... | 3798 |
| 71.5 | ROM tables ..... | 3799 |
| 71.5.1 | System ROM table registers ..... | 3802 |
| 71.5.2 | System ROM table register map ..... | 3806 |
| 71.5.3 | MCU ROM table registers ..... | 3807 |
| 71.5.4 | MCU ROM table register map ..... | 3811 |
| 71.5.5 | Processor ROM table registers ..... | 3812 |
| 71.5.6 | Processor ROM table register map ..... | 3816 |
| 71.6 | Data watchpoint and trace unit (DWT) ..... | 3817 |
| 71.6.1 | DWT registers ..... | 3817 |
| 71.6.2 | DWT register map ..... | 3831 |
| 71.7 | Instrumentation trace macrocell (ITM) ..... | 3834 |
| 71.7.1 | ITM registers ..... | 3834 |
| 71.7.2 | ITM register map ..... | 3842 |
| 71.8 | Breakpoint unit (BPU) ..... | 3844 |
| 71.8.1 | BPU registers ..... | 3844 |
| 71.8.2 | BPU register map ..... | 3850 |
| 71.9 | Embedded Trace Macrocell (ETM) ..... | 3851 |
| 71.9.1 | ETM registers ..... | 3851 |
| 71.9.2 | ETM register map ..... | 3876 |
| 71.10 | Trace port interface unit (TPIU) ..... | 3880 |
| 71.10.1 | TPIU registers ..... | 3881 |
| 71.10.2 | TPIU register map ..... | 3890 |
| 71.11 | Cross-trigger interface (CTI) ..... | 3892 |
| 71.11.1 | CTI registers ..... | 3893 |
| 71.11.2 | CTI register map ..... | 3903 |
| 71.12 | Microcontroller debug unit (DBGMCU) ..... | 3905 |
| 71.12.1 | Device ID ..... | 3905 |
| 71.12.2 | Low-power mode emulation ..... | 3905 |
| 71.12.3 | Peripheral clock freeze ..... | 3906 |
| 71.12.4 | DBGMCU registers ..... | 3907 |
| 71.12.5 | DBGMCU register map ..... | 3923 |
| 71.13 | References ..... | 3925 |
| 72 | Device electronic signature ..... | 3926 |
| 72.1 Unique device ID register (96 bits) ..... | 3926 | |
| 72.2 Flash size data register ..... | 3927 | |
| 72.3 Package data register ..... | 3927 | |
| 73 | Important security notice ..... | 3929 |
| 74 | Revision history ..... | 3930 |
List of tables
| Table 1. | Securable peripherals by TZSC ..... | 134 |
| Table 2. | TrustZone-aware peripherals ..... | 138 |
| Table 3. | Memory map and peripheral register addresses ..... | 142 |
| Table 4. | Configuring security attributes with IDAU and SAU ..... | 160 |
| Table 5. | MPCWMx resources ..... | 162 |
| Table 6. | MPCBBx resources ..... | 162 |
| Table 7. | DMA channel use (security) ..... | 166 |
| Table 8. | Secure alternate function between peripherals and allocated I/Os ..... | 168 |
| Table 9. | Nonsecure peripheral functions that cannot be connected to secure I/Os ..... | 169 |
| Table 10. | Nonsecure peripheral functions that can be connected to secure I/Os ..... | 169 |
| Table 11. | TrustZone-aware DBGMCU nonsecure accesses management ..... | 170 |
| Table 12. | DMA channel use (privilege) ..... | 174 |
| Table 13. | Internal tampers in TAMP ..... | 178 |
| Table 14. | Effect of low-power modes on TAMP ..... | 179 |
| Table 15. | Accelerated cryptographic operations ..... | 182 |
| Table 16. | Main product life-cycle transitions ..... | 185 |
| Table 17. | Typical product life-cycle phases ..... | 186 |
| Table 18. | Software intellectual property protection with PRODUCT_STAT ..... | 191 |
| Table 19. | STM32H5Ex Boot mode when TrustZone® is disabled (TZEN = 0xC3) ..... | 195 |
| Table 20. | STM32H5Ex Boot mode when TrustZone® is enabled (TZEN = 0xB4) ..... | 195 |
| Table 21. | STM32H5Fx Boot mode when TrustZone® is disabled (TZEN = 0xC3) ..... | 196 |
| Table 22. | STM32H5Fx Boot mode when TrustZone® is enabled (TZEN = 0xB4) ..... | 196 |
| Table 23. | GTZC features ..... | 199 |
| Table 24. | GTZC1 sub-block address offset ..... | 200 |
| Table 25. | MPCWM resource assignment ..... | 200 |
| Table 26. | MPCWM3 and MPCWM4 (subregions A and B) ..... | 200 |
| Table 27. | MPCBB resource assignment ..... | 201 |
| Table 28. | Secure properties of subregions A and B ..... | 204 |
| Table 29. | Privileged properties of subregions A and B ..... | 204 |
| Table 30. | GTZC interrupt request ..... | 205 |
| Table 31. | GTZC1 TZSC register map and reset values ..... | 226 |
| Table 32. | GTZC1 TZIC register map and reset values ..... | 258 |
| Table 33. | GTZC1 MPCBBz register map and reset values (z = 1 to 3) ..... | 264 |
| Table 34. | Features of internal SRAMs ..... | 266 |
| Table 35. | SRAM2 features ..... | 268 |
| Table 36. | Effect of low-power modes on RAMCFG ..... | 269 |
| Table 37. | RAMCFG interrupt requests ..... | 269 |
| Table 38. | RAMCFG register map and reset values ..... | 276 |
| Table 39. | Recommended number of wait states and programming delay ..... | 283 |
| Table 40. | Flash memory OTP organization ..... | 292 |
| Table 41. | Read-only public data organization ..... | 294 |
| Table 42. | Memory map and swapping data ..... | 296 |
| Table 43. | Recommended reactions to FLASH_OPSR contents ..... | 298 |
| Table 44. | Option byte organization ..... | 302 |
| Table 45. | Specific OB modifying rules ..... | 306 |
| Table 46. | OB modifiable in closed product ..... | 307 |
| Table 47. | Option byte key area ..... | 308 |
| Table 48. | Default secure watermark ..... | 315 |
| Table 49. | Flash memory TZ protection summary . . . . . | 315 |
| Table 50. | TZ protection and bank or mass erase summary . . . . . | 316 |
| Table 51. | Secure watermark-based area . . . . . | 317 |
| Table 52. | Secure hide protection . . . . . | 318 |
| Table 53. | HDP protections summary . . . . . | 319 |
| Table 54. | Secure configuration block-based registers access conditions . . . . . | 319 |
| Table 55. | Privilege protection summary . . . . . | 320 |
| Table 56. | Privilege and mass or bank erase . . . . . | 320 |
| Table 57. | Privilege configuration register access conditions (TZ enabled). . . . . | 320 |
| Table 58. | Privilege configuration register access conditions (TZ disabled) . . . . . | 321 |
| Table 59. | Flash register accesses . . . . . | 321 |
| Table 60. | Flash interface register protection summary. . . . . | 324 |
| Table 61. | High-cycle area protection summary: access to data area address range. . . . . | 325 |
| Table 62. | HDP protected definition. . . . . | 325 |
| Table 63. | Privileged sectors and data area - Access to data area address range . . . . . | 325 |
| Table 64. | Product states, debug states and debug policy . . . . . | 326 |
| Table 65. | PRODUCT_STATE transitions . . . . . | 328 |
| Table 66. | TZ OBK protection summary . . . . . | 330 |
| Table 67. | OBK protection summary with TZ disabled . . . . . | 330 |
| Table 68. | Access conditions to secure control register . . . . . | 330 |
| Table 69. | Access conditions to nonsecure control register . . . . . | 331 |
| Table 70. | OTP/RO access constraints . . . . . | 331 |
| Table 71. | Macros for RSS services . . . . . | 332 |
| Table 72. | RSS lib interface functions . . . . . | 332 |
| Table 73. | NSS lib interface functions . . . . . | 337 |
| Table 74. | Effect of low-power modes on the embedded flash memory . . . . . | 338 |
| Table 75. | Locating ECC failure. . . . . | 346 |
| Table 76. | Flash interrupt request . . . . . | 349 |
| Table 77. | Register map and reset value table . . . . . | 396 |
| Table 78. | ICACHE features for STM32H5E5/E4/F4/F5 . . . . . | 403 |
| Table 79. | TAG memory dimensioning parameters for n-way set associative operating mode (default) . . . . . | 405 |
| Table 80. | TAG memory dimensioning parameters for direct-mapped cache mode . . . . . | 406 |
| Table 81. | ICACHE cacheability for AHB transaction . . . . . | 408 |
| Table 82. | Memory configurations . . . . . | 408 |
| Table 83. | ICACHE remap region size, base address, and remap address . . . . . | 409 |
| Table 84. | ICACHE interrupts . . . . . | 413 |
| Table 85. | ICACHE register map and reset values . . . . . | 417 |
| Table 86. | DCACHE features for STM32H5E5/E4/F4/F5 . . . . . | 420 |
| Table 87. | TAG memory dimensioning parameters . . . . . | 423 |
| Table 88. | DCACHE cacheability for AHB transaction. . . . . | 425 |
| Table 89. | DCACHE interrupts. . . . . | 430 |
| Table 90. | DCACHE register map and reset values . . . . . | 436 |
| Table 91. | PWR input/output pins . . . . . | 438 |
| Table 92. | PWR internal input/output signals. . . . . | 439 |
| Table 93. | Low-power mode summary . . . . . | 457 |
| Table 94. | Functionalities depending on the working mode. . . . . | 457 |
| Table 95. | Sleep mode. . . . . | 462 |
| Table 96. | Memory shut-off block selection . . . . . | 462 |
| Table 97. | Stop mode . . . . . | 464 |
| Table 98. | Standby mode. . . . . | 467 |
| Table 99. | Power modes output states versus MCU power modes. . . . . | 467 |
| Table 100. | PWR security configuration summary. .... | 468 |
| Table 101. | PWR interrupt requests . . . . . | 470 |
| Table 102. | PWR register map and reset values . . . . . | 485 |
| Table 103. | RCC input/output signals connected to package pins or balls . . . . . | 488 |
| Table 104. | Reset source identification (RCC_RSR). . . . . | 490 |
| Table 105. | STOPWUCK and STOPKERWUCK description. . . . . | 502 |
| Table 106. | HSIKERON and CSIKERON behavior . . . . . | 503 |
| Table 107. | Kernel clock distribution overview. . . . . | 505 |
| Table 108. | RCC security configuration summary . . . . . | 516 |
| Table 109. | Interrupt sources and control . . . . . | 519 |
| Table 110. | RCC register map and reset values . . . . . | 600 |
| Table 111. | CRS features . . . . . | 606 |
| Table 112. | CRS internal input/output signals . . . . . | 607 |
| Table 113. | CRS interconnection. . . . . | 608 |
| Table 114. | Effect of low-power modes on CRS . . . . . | 611 |
| Table 115. | Interrupt control bits . . . . . | 611 |
| Table 116. | CRS register map and reset values . . . . . | 616 |
| Table 117. | Port bit configuration. . . . . | 619 |
| Table 118. | GPIO secured bits . . . . . | 627 |
| Table 119. | GPIO register map and reset values . . . . . | 636 |
| Table 120. | SBS internal input/output signals . . . . . | 640 |
| Table 121. | HDPL encoded values . . . . . | 644 |
| Table 122. | SBS boot logic . . . . . | 644 |
| Table 123. | OBK-HDPL logic. . . . . | 649 |
| Table 124. | SBS register map and reset values . . . . . | 663 |
| Table 125. | Peripherals interconnect matrix . . . . . | 666 |
| Table 126. | GPDMA1/2 channel implementation. . . . . | 683 |
| Table 127. | GPDMA1/2 wake-up in low-power modes . . . . . | 683 |
| Table 128. | Programmed GPDMA1/2 request. . . . . | 683 |
| Table 129. | Programmed GPDMA1/2 request as a block request. . . . . | 688 |
| Table 130. | GPDMA1/2 channel with peripheral early termination . . . . . | 688 |
| Table 131. | Programmed GPDMA1/2 request with peripheral early termination. . . . . | 688 |
| Table 132. | Programmed GPDMA1/2 trigger. . . . . | 689 |
| Table 133. | Programmed GPDMA source/destination burst . . . . . | 711 |
| Table 134. | Programmed data handling . . . . . | 716 |
| Table 135. | Effect of low-power modes on GPDMA . . . . . | 729 |
| Table 136. | GPDMA interrupt requests . . . . . | 730 |
| Table 137. | GPDMA register map and reset values . . . . . | 758 |
| Table 138. | DMA2D input/ouput pins. . . . . | 764 |
| Table 139. | DMA2D internal signals . . . . . | 764 |
| Table 140. | DMA2D trigger interconnections. . . . . | 764 |
| Table 141. | Pixel components order in memory . . . . . | 769 |
| Table 142. | ARGB/RGB component reordering. . . . . | 769 |
| Table 143. | Supported color mode in input . . . . . | 770 |
| Table 144. | Alpha mode configuration. . . . . | 771 |
| Table 145. | Supported CLUT color mode . . . . . | 772 |
| Table 146. | Layer size definition vs scaler mode. . . . . | 775 |
| Table 147. | Layer size definition in DMA2D_NLR vs tile buffer mode. . . . . | 777 |
| Table 148. | MCU order in memory . . . . . | 780 |
| Table 149. | Supported color mode in output . . . . . | 782 |
| Table 150. | Data order in memory. . . . . | 782 |
| Table 151. | ARGB/RGB component reordering. . . . . | 783 |
| Table 152. | Standard data order in memory ..... | 783 |
| Table 153. | Output FIFO byte reordering steps ..... | 784 |
| Table 154. | Linear command list descriptor ..... | 794 |
| Table 155. | NOP instruction coding ..... | 795 |
| Table 156. | LD instruction coding ..... | 795 |
| Table 157. | LDM instruction coding ..... | 796 |
| Table 158. | END instruction coding ..... | 797 |
| Table 159. | DMA2D interrupt requests ..... | 800 |
| Table 160. | DMA2D register map and reset values ..... | 837 |
| Table 161. | GFXTIM input/output pins ..... | 842 |
| Table 162. | GFXTIM internal signals ..... | 842 |
| Table 163. | GFXTIM trigger interconnections ..... | 843 |
| Table 164. | Graphic timer interrupt requests ..... | 853 |
| Table 165. | GFXTIM register map and reset values ..... | 874 |
| Table 166. | Interrupt vector mapping ..... | 878 |
| Table 167. | EXTI signals ..... | 885 |
| Table 168. | EVG signals ..... | 886 |
| Table 169. | EXTI line connections ..... | 886 |
| Table 170. | Masking functionality ..... | 891 |
| Table 171. | Register protection overview ..... | 892 |
| Table 172. | EXTI register map sections ..... | 893 |
| Table 173. | EXTI register map and reset values ..... | 930 |
| Table 174. | CRC internal input/output signals ..... | 935 |
| Table 175. | CRC register map and reset values ..... | 940 |
| Table 176. | CORDIC functions ..... | 942 |
| Table 177. | Cosine parameters ..... | 942 |
| Table 178. | Sine parameters ..... | 943 |
| Table 179. | Phase parameters ..... | 943 |
| Table 180. | Modulus parameters ..... | 944 |
| Table 181. | Arctangent parameters ..... | 945 |
| Table 182. | Hyperbolic cosine parameters ..... | 945 |
| Table 183. | Hyperbolic sine parameters ..... | 946 |
| Table 184. | Hyperbolic arctangent parameters ..... | 946 |
| Table 185. | Natural logarithm parameters ..... | 947 |
| Table 186. | Natural log scaling factors and corresponding ranges ..... | 947 |
| Table 187. | Square root parameters ..... | 948 |
| Table 188. | Square root scaling factors and corresponding ranges ..... | 948 |
| Table 189. | Precision vs. number of iterations ..... | 951 |
| Table 190. | CORDIC register map and reset value ..... | 958 |
| Table 191. | Valid combinations for read and write methods ..... | 972 |
| Table 192. | FMAC register map and reset values ..... | 985 |
| Table 193. | PLAY pins ..... | 988 |
| Table 194. | PLAY internal signals ..... | 988 |
| Table 195. | PLAY logic array input n signal selection ..... | 989 |
| Table 196. | PLAY output connections ..... | 990 |
| Table 197. | Truth table example 1 ..... | 995 |
| Table 198. | Truth table example 2 ..... | 997 |
| Table 199. | Logic element n LUT input selection ..... | 999 |
| Table 200. | Logic element n register clock selection ..... | 1000 |
| Table 201. | Output n source selection ..... | 1003 |
| Table 202. | PLAY register map and reset values ..... | 1020 |
| Table 203. | NOR/PSRAM bank selection ..... | 1028 |
| Table 204. | NOR/PSRAM External memory address | 1028 |
| Table 205. | NAND memory mapping and timing registers | 1028 |
| Table 206. | NAND bank selection | 1029 |
| Table 207. | SDRAM bank selection | 1029 |
| Table 208. | SDRAM address mapping | 1029 |
| Table 209. | SDRAM address mapping with 8-bit data bus width | 1030 |
| Table 210. | SDRAM address mapping with 16-bit data bus width | 1031 |
| Table 211. | SDRAM address mapping with 32-bit data bus width | 1031 |
| Table 212. | Programmable NOR/PSRAM access parameters | 1033 |
| Table 213. | Non-multiplexed I/O NOR flash memory | 1034 |
| Table 214. | 16-bit multiplexed I/O NOR flash memory | 1034 |
| Table 215. | Non-multiplexed I/Os PSRAM/SRAM | 1035 |
| Table 216. | 16-Bit multiplexed I/O PSRAM | 1035 |
| Table 217. | NOR flash/PSRAM: example of supported memories and transactions | 1036 |
| Table 218. | FMC_BCRx bitfields (mode 1) | 1039 |
| Table 219. | FMC_BTRx bitfields (mode 1) | 1039 |
| Table 220. | FMC_BCRx bitfields (mode A) | 1041 |
| Table 221. | FMC_BTRx bitfields (mode A) | 1041 |
| Table 222. | FMC_BWTRx bitfields (mode A) | 1042 |
| Table 223. | FMC_BCRx bitfields (mode 2/B) | 1044 |
| Table 224. | FMC_BTRx bitfields (mode 2/B) | 1044 |
| Table 225. | FMC_BWTRx bitfields (mode 2/B) | 1045 |
| Table 226. | FMC_BCRx bitfields (mode C) | 1046 |
| Table 227. | FMC_BTRx bitfields (mode C) | 1047 |
| Table 228. | FMC_BWTRx bitfields (mode C) | 1047 |
| Table 229. | FMC_BCRx bitfields (mode D) | 1049 |
| Table 230. | FMC_BTRx bitfields (mode D) | 1050 |
| Table 231. | FMC_BWTRx bitfields (mode D) | 1050 |
| Table 232. | FMC_BCRx bitfields (Muxed mode) | 1052 |
| Table 233. | FMC_BTRx bitfields (Muxed mode) | 1053 |
| Table 234. | FMC_BCRx bitfields (Synchronous multiplexed read mode) | 1058 |
| Table 235. | FMC_BTRx bitfields (Synchronous multiplexed read mode) | 1059 |
| Table 236. | FMC_BCRx bitfields (Synchronous multiplexed write mode) | 1060 |
| Table 237. | FMC_BTRx bitfields (Synchronous multiplexed write mode) | 1061 |
| Table 238. | Programmable NAND flash access parameters | 1070 |
| Table 239. | 8-bit NAND flash | 1070 |
| Table 240. | 16-bit NAND flash | 1071 |
| Table 241. | Supported memories and transactions | 1071 |
| Table 242. | ECC result relevant bits | 1080 |
| Table 243. | SDRAM signals | 1081 |
| Table 244. | FMC register map and reset values | 1098 |
| Table 245. | OCTOSPI implementation | 1102 |
| Table 246. | OCTOSPI input/output pins | 1104 |
| Table 247. | OCTOSPI internal signals | 1104 |
| Table 248. | Command/address phase description | 1113 |
| Table 249. | OctaRAM command address bit assignment (based on 64-Mbyte OctaRAM) | 1124 |
| Table 250. | Address alignment cases | 1131 |
| Table 251. | OCTOSPI interrupt requests | 1133 |
| Table 252. | OCTOSPI register map and reset values | 1157 |
| Table 253. | OCTOSPI implementation | 1160 |
| Table 254. | OCTOSPIM input/output pins . . . . . | 1161 |
| Table 255. | Use cases . . . . . | 1162 |
| Table 256. | OCTOSPIM register map and reset values . . . . . | 1169 |
| Table 257. | SDMMC features . . . . . | 1170 |
| Table 258. | SDMMC operation modes SD and SDIO . . . . . | 1173 |
| Table 259. | SDMMC operation modes eMMC . . . . . | 1173 |
| Table 260. | SDMMC internal input/output signals . . . . . | 1174 |
| Table 261. | SDMMC pins. . . . . | 1175 |
| Table 262. | SDMMC Command and data phase selection . . . . . | 1176 |
| Table 263. | Command token format . . . . . | 1182 |
| Table 264. | Short response with CRC token format . . . . . | 1183 |
| Table 265. | Short response without CRC token format . . . . . | 1183 |
| Table 266. | Long response with CRC token format. . . . . | 1183 |
| Table 267. | Specific Commands overview. . . . . | 1184 |
| Table 268. | Command path status flags . . . . . | 1185 |
| Table 269. | Command path error handling . . . . . | 1185 |
| Table 270. | Data token format . . . . . | 1193 |
| Table 271. | Data path status flags and clear bits. . . . . | 1193 |
| Table 272. | Data path error handling. . . . . | 1195 |
| Table 273. | Data FIFO access. . . . . | 1196 |
| Table 274. | Transmit FIFO status flags . . . . . | 1197 |
| Table 275. | Receive FIFO status flags . . . . . | 1198 |
| Table 276. | AHB and SDMMC_CK clock frequency relation . . . . . | 1203 |
| Table 277. | SDIO special operation control . . . . . | 1203 |
| Table 278. | 4-bit mode Start, interrupt, and CRC-status Signaling detection . . . . . | 1207 |
| Table 279. | CMD12 use cases . . . . . | 1212 |
| Table 280. | SDMMC interrupts . . . . . | 1226 |
| Table 281. | Response type and SDMMC_RESPxR registers . . . . . | 1233 |
| Table 282. | SDMMC register map . . . . . | 1249 |
| Table 283. | STM32H5E4/5F4 and STM32H5E5/5F5 features . . . . . | 1252 |
| Table 284. | DLYB internal input/output signals . . . . . | 1253 |
| Table 285. | Delay block control . . . . . | 1254 |
| Table 286. | DLYB register map and reset values . . . . . | 1257 |
| Table 287. | ADC features . . . . . | 1260 |
| Table 288. | ADC input/output pins. . . . . | 1262 |
| Table 289. | ADC internal input/output signals . . . . . | 1262 |
| Table 290. | ADC interconnection . . . . . | 1262 |
| Table 291. | Configuring the trigger polarity for regular external triggers . . . . . | 1283 |
| Table 292. | Configuring the trigger polarity for injected external triggers . . . . . | 1284 |
| Table 293. | TSAR timings depending on resolution . . . . . | 1296 |
| Table 294. | Offset computation versus data resolution . . . . . | 1299 |
| Table 295. | Analog watchdog channel selection . . . . . | 1311 |
| Table 296. | Analog watchdog 1 comparison . . . . . | 1312 |
| Table 297. | Analog watchdog 2 and 3 comparison . . . . . | 1312 |
| Table 298. | Maximum output results versus N and M (gray cells indicate truncation). . . . . | 1316 |
| Table 299. | Oversampler operating modes summary . . . . . | 1321 |
| Table 300. | ADC interrupts . . . . . | 1340 |
| Table 301. | DELAY bits versus ADC resolution. . . . . | 1375 |
| Table 302. | ADC global register map. . . . . | 1377 |
| Table 303. | ADC register map and reset values for each ADC (offset = 0x000 for master ADC, 0x100 for slave ADC). . . . . | 1377 |
| Table 304. | ADC register map and reset values (master and slave ADC |
| common registers) . . . . . | 1379 |
| Table 305. DTS internal input/output signals . . . . . | 1382 |
| Table 306. Sampling time configuration . . . . . | 1385 |
| Table 307. Trigger configuration . . . . . | 1386 |
| Table 308. Temperature sensor behavior in low-power modes . . . . . | 1388 |
| Table 309. Interrupt control bits . . . . . | 1389 |
| Table 310. DTS register map and reset values . . . . . | 1397 |
| Table 311. DAC features . . . . . | 1400 |
| Table 312. DAC input/output pins. . . . . | 1402 |
| Table 313. DAC internal input/output signals . . . . . | 1402 |
| Table 314. DAC interconnection. . . . . | 1403 |
| Table 315. Data format (case of 12-bit data) . . . . . | 1405 |
| Table 316. HFSEL description . . . . . | 1406 |
| Table 317. Sample and refresh timings . . . . . | 1412 |
| Table 318. Channel output modes summary . . . . . | 1413 |
| Table 319. Effect of low-power modes on DAC . . . . . | 1420 |
| Table 320. DAC interrupts . . . . . | 1420 |
| Table 321. DAC register map and reset values . . . . . | 1437 |
| Table 322. VREFBUF typical values . . . . . | 1439 |
| Table 323. VREF buffer modes . . . . . | 1440 |
| Table 324. VREFBUF register map and reset values. . . . . | 1442 |
| Table 325. Possible connections for OPAMP. . . . . | 1444 |
| Table 326. Operating modes and calibration . . . . . | 1452 |
| Table 327. Effect of low-power modes on the OPAMP . . . . . | 1453 |
| Table 328. OPAMP register map and reset values . . . . . | 1456 |
| Table 329. COMP1/2 input/output internal signals . . . . . | 1458 |
| Table 330. COMP1 non-inverting input assignment. . . . . | 1460 |
| Table 331. COMP1 inverting input assignment . . . . . | 1460 |
| Table 332. COMP2 non-inverting input assignment. . . . . | 1460 |
| Table 333. COMP2 inverting input assignment . . . . . | 1460 |
| Table 334. COMP1 blanking source assignment . . . . . | 1461 |
| Table 335. COMP2 blanking source assignment . . . . . | 1461 |
| Table 336. Comparator behavior in low-power modes . . . . . | 1465 |
| Table 337. Interrupt through EXTI control bits . . . . . | 1465 |
| Table 338. Interrupt through NVIC control bits . . . . . | 1466 |
| Table 339. Interrupt through NVIC control bits . . . . . | 1466 |
| Table 340. COMP register map and reset values. . . . . | 1472 |
| Table 341. MDF features . . . . . | 1474 |
| Table 342. MDF external pins. . . . . | 1477 |
| Table 343. MDF internal signals. . . . . | 1477 |
| Table 344. MDF trigger connections. . . . . | 1477 |
| Table 345. MDF break connections . . . . . | 1478 |
| Table 346. MDF ADC data connections . . . . . | 1478 |
| Table 347. Control of the common clock generation . . . . . | 1486 |
| Table 348. Clock constraints with respect to the incoming stream. . . . . | 1487 |
| Table 349. Data size according to CIC order and CIC decimation values . . . . . | 1494 |
| Table 350. Maximum decimation ratio versus order and input data size . . . . . | 1495 |
| Table 351. Possible gain values . . . . . | 1496 |
| Table 352. Recommended maximum gain values versus CIC decimation ratios. . . . . | 1498 |
| Table 353. Most common microphone settings . . . . . | 1498 |
| Table 354. HPF 3 dB cut-off frequencies examples . . . . . | 1500 |
| Table 355. Register protection summary . . . . . | 1520 |
| Table 356. | Effect of low-power modes on MDF | 1522 |
| Table 357. | MDF interrupt requests | 1524 |
| Table 358. | Examples of MDF settings for microphone capture | 1525 |
| Table 359. | Programming sequence | 1525 |
| Table 360. | Output signal levels | 1532 |
| Table 361. | MDF register map and reset values | 1555 |
| Table 362. | ADF features | 1558 |
| Table 363. | ADF external pins | 1559 |
| Table 364. | ADF internal signals | 1559 |
| Table 365. | ADF trigger connections | 1560 |
| Table 366. | ADF ADC data connections | 1560 |
| Table 367. | Control of the common clock generation | 1566 |
| Table 368. | Clock constraints with respect to the incoming stream | 1567 |
| Table 369. | Data size according to CIC order and CIC decimation values | 1572 |
| Table 370. | Possible gain values | 1573 |
| Table 371. | Recommended maximum gain values versus CIC decimation ratios | 1575 |
| Table 372. | Most common microphone settings | 1576 |
| Table 373. | HPF 3 dB cut-off frequency examples | 1578 |
| Table 374. | ANSLP values versus FRSIZE and sampling rates | 1591 |
| Table 375. | Threshold values according SNTHR | 1592 |
| Table 376. | Register protection summary | 1598 |
| Table 377. | Effect of low-power modes on ADF | 1599 |
| Table 378. | ADF interrupt requests | 1600 |
| Table 379. | Examples of ADF settings for microphone capture | 1601 |
| Table 380. | Programming sequence (CIC4) | 1602 |
| Table 381. | Programming sequence (CIC5) | 1603 |
| Table 382. | Output signal levels | 1608 |
| Table 383. | ADF register map and reset values | 1628 |
| Table 384. | DCMI input/output pins | 1632 |
| Table 385. | DCMI internal input/output signals | 1632 |
| Table 386. | Positioning of captured data bytes in 32-bit words (8-bit width) | 1634 |
| Table 387. | Positioning of captured data bytes in 32-bit words (10-bit width) | 1634 |
| Table 388. | Positioning of captured data bytes in 32-bit words (12-bit width) | 1634 |
| Table 389. | Positioning of captured data bytes in 32-bit words (14-bit width) | 1635 |
| Table 390. | Data storage in monochrome progressive video format | 1640 |
| Table 391. | Data storage in RGB progressive video format | 1641 |
| Table 392. | Data storage in YCbCr progressive video format | 1641 |
| Table 393. | Data storage in YCbCr progressive video format - Y extraction mode | 1641 |
| Table 394. | DCMI interrupts | 1642 |
| Table 395. | DCMI register map and reset values | 1652 |
| Table 396. | PSSI input/output pins | 1655 |
| Table 397. | PSSI internal input/output signals | 1655 |
| Table 398. | Positioning of captured data bytes in 32-bit words (8-bit width) | 1656 |
| Table 399. | Positioning of captured data bytes in 32-bit words (16-bit width) | 1657 |
| Table 400. | PSSI interrupt requests | 1660 |
| Table 401. | PSSI register map and reset values | 1666 |
| Table 402. | LTDC external pins | 1668 |
| Table 403. | LTDC internal signals | 1669 |
| Table 404. | LTDC trigger interconnection | 1669 |
| Table 405. | Clock domain for each register | 1669 |
| Table 406. | Pixel data mapping versus color format | 1674 |
| Table 407. | LTDC interrupt requests . . . . . | 1678 |
| Table 408. | LTDC register map and reset values . . . . . | 1695 |
| Table 409. | JPEG internal signals . . . . . | 1699 |
| Table 410. | JPEG trigger connections . . . . . | 1700 |
| Table 411. | JPEG codec interrupt requests . . . . . | 1705 |
| Table 412. | JPEG codec register map and reset values . . . . . | 1718 |
| Table 413. | Peripherals connected by CCB interconnect . . . . . | 1721 |
| Table 414. | CCB internal input/output signals . . . . . | 1722 |
| Table 415. | Blob creation steps for ECDSA signature (CCOP = 0b110000<i>0) . . . . . | 1729 |
| Table 416. | Blob use steps for ECDSA signature (CCOP = 0b11000011) . . . . . | 1731 |
| Table 417. | Blob use steps for signing public key computation (CCOP = 0b10000001) . . . . . | 1734 |
| Table 418. | Blob creation steps for scalar multiplication (CCOP = 0b100000<i>0) . . . . . | 1736 |
| Table 419. | Blob use steps for scalar multiplication (CCOP = 0b10000001) . . . . . | 1737 |
| Table 420. | Blob creation steps for modular exponentiation (CCOP = 0b01000100) . . . . . | 1738 |
| Table 421. | Blob use steps for modular exponentiation (CCOP = 0b01000101) . . . . . | 1739 |
| Table 422. | CCB register map and reset values . . . . . | 1745 |
| Table 423. | RNG internal input/output signals . . . . . | 1747 |
| Table 424. | RNG interrupt requests . . . . . | 1756 |
| Table 425. | RNG configurations . . . . . | 1757 |
| Table 426. | Additional health test configurations . . . . . | 1757 |
| Table 427. | Configuration selection . . . . . | 1757 |
| Table 428. | RNG register map and reset map . . . . . | 1765 |
| Table 429. | AES versus SAES features . . . . . | 1767 |
| Table 430. | AES internal input/output signals . . . . . | 1768 |
| Table 431. | AES approved symmetric key functions . . . . . | 1768 |
| Table 432. | Counter mode initialization vector definition . . . . . | 1778 |
| Table 433. | Initialization of IV registers in GCM mode . . . . . | 1780 |
| Table 434. | GCM last block definition . . . . . | 1780 |
| Table 435. | Initialization of IV registers in CCM mode . . . . . | 1787 |
| Table 436. | AES data swapping example . . . . . | 1790 |
| Table 437. | Key endianness in AES_KEYRx registers (128/256-bit keys) . . . . . | 1792 |
| Table 438. | IVI bitfield spread over AES_IVRx registers . . . . . | 1793 |
| Table 439. | AES interrupt requests . . . . . | 1794 |
| Table 440. | Processing latency for ECB, CBC and CTR . . . . . | 1795 |
| Table 441. | Processing latency for GCM and CCM (in clock cycles) . . . . . | 1796 |
| Table 442. | AES register map and reset values . . . . . | 1808 |
| Table 443. | AES versus SAES features . . . . . | 1812 |
| Table 444. | SAES internal input/output signals . . . . . | 1813 |
| Table 445. | SAES approved symmetric key functions . . . . . | 1814 |
| Table 446. | Counter mode initialization vector definition . . . . . | 1824 |
| Table 447. | Initialization of IV registers in GCM mode . . . . . | 1827 |
| Table 448. | GCM last block definition . . . . . | 1827 |
| Table 449. | Initialization of IV registers in CCM mode . . . . . | 1833 |
| Table 450. | AES data swapping example . . . . . | 1842 |
| Table 451. | Key endianness in SAES_KEYRx registers (128/256-bit keys) . . . . . | 1844 |
| Table 452. | IVI bitfield spread over SAES_IVRx registers . . . . . | 1846 |
| Table 453. | SAES interrupt requests . . . . . | 1848 |
| Table 454. | Processing latency for ECB, CBC and CTR . . . . . | 1849 |
| Table 455. | Processing latency for GCM and CCM (in SAES kernel clock cycles) . . . . . | 1849 |
| Table 456. | SAES register map and reset values . . . . . | 1864 |
| Table 457. | HASH internal input/output signals . . . . . | 1868 |
| Table 458. | Information on supported hash algorithms . . . . . | 1868 |
| Table 459. | Hash processor outputs . . . . . | 1872 |
| Table 460. | Processing time (in clock cycle) . . . . . | 1879 |
| Table 461. | HASH interrupt requests . . . . . | 1880 |
| Table 462. | HASH1 register map and reset values . . . . . | 1888 |
| Table 463. | Internal input/output signals . . . . . | 1891 |
| Table 464. | PKA integer arithmetic functions list . . . . . | 1892 |
| Table 465. | PKA prime field (Fp) elliptic curve functions list . . . . . | 1893 |
| Table 466. | Chaining mode to/from PKA . . . . . | 1898 |
| Table 467. | Integrity protected parameters list . . . . . | 1900 |
| Table 468. | Confidentiality protected parameter list . . . . . | 1900 |
| Table 469. | Example of 'a' curve coefficient for ECC Fp scalar . . . . . | 1902 |
| Table 470. | Montgomery parameter computation . . . . . | 1903 |
| Table 471. | Modular addition . . . . . | 1903 |
| Table 472. | Modular subtraction . . . . . | 1904 |
| Table 473. | Montgomery multiplication . . . . . | 1905 |
| Table 474. | Modular exponentiation (normal mode) . . . . . | 1906 |
| Table 475. | Modular exponentiation (fast mode) . . . . . | 1906 |
| Table 476. | Modular exponentiation (protected mode) . . . . . | 1907 |
| Table 477. | Modular inversion . . . . . | 1907 |
| Table 478. | Modular reduction . . . . . | 1908 |
| Table 479. | Arithmetic addition . . . . . | 1908 |
| Table 480. | Arithmetic subtraction . . . . . | 1908 |
| Table 481. | Arithmetic multiplication . . . . . | 1909 |
| Table 482. | Arithmetic comparison . . . . . | 1909 |
| Table 483. | CRT exponentiation . . . . . | 1910 |
| Table 484. | Point on elliptic curve Fp check . . . . . | 1911 |
| Table 485. | ECC Fp scalar multiplication . . . . . | 1911 |
| Table 486. | ECDSA sign - Inputs . . . . . | 1913 |
| Table 487. | ECDSA sign - Outputs . . . . . | 1913 |
| Table 488. | Extended ECDSA sign - additional outputs . . . . . | 1914 |
| Table 489. | ECDSA verification - inputs . . . . . | 1914 |
| Table 490. | ECDSA verification - outputs . . . . . | 1915 |
| Table 491. | ECC complete addition . . . . . | 1915 |
| Table 492. | ECC double base ladder . . . . . | 1916 |
| Table 493. | ECC projective to affine . . . . . | 1917 |
| Table 494. | Family of supported curves for ECC operations . . . . . | 1918 |
| Table 495. | Modular exponentiation . . . . . | 1919 |
| Table 496. | ECC scalar multiplication . . . . . | 1919 |
| Table 497. | ECDSA signature average computation time . . . . . | 1920 |
| Table 498. | ECDSA verification average computation times . . . . . | 1920 |
| Table 499. | ECC double base ladder average computation times . . . . . | 1920 |
| Table 500. | ECC projective to affine average computation times . . . . . | 1920 |
| Table 501. | ECC complete addition average computation times . . . . . | 1920 |
| Table 502. | Point on elliptic curve Fp check average computation times . . . . . | 1920 |
| Table 503. | Montgomery parameters average computation times . . . . . | 1921 |
| Table 504. | PKA interrupt requests . . . . . | 1921 |
| Table 505. | PKA register map and reset values . . . . . | 1928 |
| Table 506. | OTFDEC internal input/output signals . . . . . | 1930 |
| Table 507. | OTFDEC interrupt requests . . . . . | 1934 |
| Table 508. | OTFDEC register map and reset values . . . . . | 1948 |
| Table 509. | TIM input/output pins . . . . . | 1954 |
| Table 510. | TIM internal input/output signals . . . . . | 1954 |
| Table 511. | Interconnect to the tim_ti1 input multiplexer . . . . . | 1956 |
| Table 512. | Interconnect to the tim_ti2 input multiplexer . . . . . | 1956 |
| Table 513. | Interconnect to the tim_ti3 input multiplexer . . . . . | 1956 |
| Table 514. | Interconnect to the tim_ti4 input multiplexer . . . . . | 1956 |
| Table 515. | Internal trigger connection . . . . . | 1956 |
| Table 516. | Interconnect to the tim_etr input multiplexer . . . . . | 1957 |
| Table 517. | Timer break interconnect . . . . . | 1957 |
| Table 518. | Timer break2 interconnect . . . . . | 1958 |
| Table 519. | System break interconnect . . . . . | 1958 |
| Table 520. | Interconnect to the tim_ocref_clr input multiplexer . . . . . | 1958 |
| Table 521. | CCR and ARR register change dithering pattern . . . . . | 1992 |
| Table 522. | CCR register change dithering pattern in center-aligned PWM mode . . . . . | 1993 |
| Table 523. | Behavior of timer outputs versus tim_brk/tim_brk2 inputs . . . . . | 2005 |
| Table 524. | Break protection disarming conditions . . . . . | 2007 |
| Table 525. | Counting direction versus encoder signals (CC1P = CC2P = 0) . . . . . | 2016 |
| Table 526. | Counting direction versus encoder signals and polarity settings . . . . . | 2020 |
| Table 527. | DMA request . . . . . | 2041 |
| Table 528. | Effect of low-power modes on TIM1/TIM8 . . . . . | 2042 |
| Table 529. | Interrupt requests . . . . . | 2042 |
| Table 530. | Output control bits for complementary tim_ocx and tim_ocxn channels with break feature . . . . . | 2069 |
| Table 531. | TIMx register map and reset values . . . . . | 2092 |
| Table 532. | STM32H5E4/5F4 and STM32H5E5/5F5 general purpose timers . . . . . | 2096 |
| Table 533. | TIM input/output pins . . . . . | 2098 |
| Table 534. | TIM internal input/output signals . . . . . | 2098 |
| Table 535. | Interconnect to the tim_ti1 input multiplexer . . . . . | 2099 |
| Table 536. | Interconnect to the tim_ti2 input multiplexer . . . . . | 2099 |
| Table 537. | Interconnect to the tim_ti3 input multiplexer . . . . . | 2100 |
| Table 538. | Interconnect to the tim_ti4 input multiplexer . . . . . | 2100 |
| Table 539. | TIMx internal trigger connection . . . . . | 2100 |
| Table 540. | Interconnect to the tim_etr input multiplexer . . . . . | 2101 |
| Table 541. | Interconnect to the tim_ocref_clr input multiplexer . . . . . | 2101 |
| Table 542. | CCR and ARR register change dithering pattern . . . . . | 2132 |
| Table 543. | CCR register change dithering pattern in center-aligned PWM mode . . . . . | 2133 |
| Table 544. | Counting direction versus encoder signals(CC1P = CC2P = 0) . . . . . | 2142 |
| Table 545. | Counting direction versus encoder signals and polarity settings . . . . . | 2147 |
| Table 546. | DMA request . . . . . | 2171 |
| Table 547. | Effect of low-power modes on TIM2/TIM3/TIM4/TIM5 . . . . . | 2171 |
| Table 548. | Interrupt requests . . . . . | 2172 |
| Table 549. | Output control bit for standard tim_ocx channels . . . . . | 2193 |
| Table 550. | TIM2/TIM3/TIM4/TIM5 register map and reset values . . . . . | 2209 |
| Table 551. | TIM internal input/output signals . . . . . | 2213 |
| Table 552. | TIMx_ARR register change dithering pattern . . . . . | 2223 |
| Table 553. | DMA request . . . . . | 2224 |
| Table 554. | Effect of low-power modes on TIM6/TIM7 . . . . . | 2224 |
| Table 555. | Interrupt request . . . . . | 2224 |
| Table 556. | TIMx register map and reset values . . . . . | 2230 |
| Table 557. | TIM input/output pins . . . . . | 2234 |
| Table 558. | TIM internal input/output signals . . . . . | 2234 |
| Table 559. | Interconnect to the tim_ti1 input multiplexer . . . . . | 2236 |
| Table 560. | Interconnect to the tim_ti2 input multiplexer . . . . . | 2236 |
| Table 561. | TIMx internal trigger connection . . . . . | 2236 |
| Table 562. | CCR and ARR register change dithering pattern . . . . . | 2254 |
| Table 563. | Effect of low-power modes on TIM12/TIM13/TIM14 . . . . . | 2263 |
| Table 564. | Interrupt requests . . . . . | 2263 |
| Table 565. | Output control bit for standard tim_ocx channels . . . . . | 2275 |
| Table 566. | TIM12 register map and reset values . . . . . | 2279 |
| Table 567. | Output control bit for standard tim_ocx channels . . . . . | 2288 |
| Table 568. | TIM13/TIM14 register map and reset values . . . . . | 2291 |
| Table 569. | TIM input/output pins . . . . . | 2296 |
| Table 570. | TIM internal input/output signals . . . . . | 2297 |
| Table 571. | Interconnect to the tim_ti1 input multiplexer . . . . . | 2298 |
| Table 572. | Interconnect to the tim_ti2 input multiplexer . . . . . | 2298 |
| Table 573. | TIMx internal trigger connection . . . . . | 2298 |
| Table 574. | Timer break interconnect . . . . . | 2299 |
| Table 575. | System break interconnect . . . . . | 2299 |
| Table 576. | Interconnect to the tim_ocref_clr input multiplexer . . . . . | 2299 |
| Table 577. | CCR and ARR register change dithering pattern . . . . . | 2320 |
| Table 578. | Break protection disarming conditions . . . . . | 2329 |
| Table 579. | DMA request . . . . . | 2340 |
| Table 580. | Effect of low-power modes on TIM15/TIM16/TIM17 . . . . . | 2341 |
| Table 581. | Interrupt requests . . . . . | 2341 |
| Table 582. | Output control bits for complementary tim_ocx and tim_ocxn channels with break feature (TIM15) . . . . . | 2357 |
| Table 583. | TIM15 register map and reset values . . . . . | 2370 |
| Table 584. | Output control bits for complementary tim_oc1 and tim_oc1n channels with break feature (TIM16/TIM17) . . . . . | 2383 |
| Table 585. | TIM16/TIM17 register map and reset values . . . . . | 2397 |
| Table 586. | STM32H5E4/5F4 and STM32H5E5/5F5 LPTIM features . . . . . | 2401 |
| Table 587. | LPTIM1/2/3/5/6 input/output pins . . . . . | 2403 |
| Table 588. | LPTIM4 input/output pins . . . . . | 2403 |
| Table 589. | LPTIM1/2/3/5/6 internal signals . . . . . | 2404 |
| Table 590. | LPTIM4 internal signals . . . . . | 2404 |
| Table 591. | LPTIM1/2/3/4/5/6 external trigger connections . . . . . | 2405 |
| Table 592. | LPTIM1/2/3/4/5/6 input 1 connections . . . . . | 2405 |
| Table 593. | LPTIM1/2/3/5/6 input 2 connections . . . . . | 2405 |
| Table 594. | LPTIM1/2/3/5/6 input capture 1 connections . . . . . | 2406 |
| Table 595. | LPTIM1 input capture 2 connections . . . . . | 2406 |
| Table 596. | LPTIM2 input capture 2 connections . . . . . | 2406 |
| Table 597. | LPTIM3/5/6 input capture 2 connections . . . . . | 2406 |
| Table 598. | Prescaler division ratios . . . . . | 2408 |
| Table 599. | Encoder counting scenarios . . . . . | 2415 |
| Table 600. | Input capture Glitch filter latency (in counter step unit) . . . . . | 2419 |
| Table 601. | Effect of low-power modes on the LPTIM . . . . . | 2423 |
| Table 602. | Interrupt events . . . . . | 2424 |
| Table 603. | LPTIM register map and reset values . . . . . | 2448 |
| Table 604. | IWDG features . . . . . | 2451 |
| Table 605. | IWDG delays versus actions . . . . . | 2452 |
| Table 606. | IWDG internal input/output signals . . . . . | 2453 |
| Table 607. | Effect of low power modes on IWDG . . . . . | 2458 |
| Table 608. | IWDG interrupt request . . . . . | 2460 |
| Table 609. | IWDG register map and reset values . . . . . | 2466 |
| Table 610. | WWDG features . . . . . | 2467 |
| Table 611. | WWDG internal input/output signals . . . . . | 2468 |
| Table 612. | WWDG interrupt requests . . . . . | 2471 |
| Table 613. | WWDG register map and reset values . . . . . | 2473 |
| Table 614. | RTC input/output pins . . . . . | 2477 |
| Table 615. | RTC internal input/output signals . . . . . | 2477 |
| Table 616. | RTC interconnection . . . . . | 2478 |
| Table 617. | RTC pin PC13 configuration . . . . . | 2479 |
| Table 618. | PI8 configuration . . . . . | 2481 |
| Table 619. | RTC_OUT mapping . . . . . | 2482 |
| Table 620. | Effect of low-power modes on RTC . . . . . | 2497 |
| Table 621. | RTC pins functionality over modes . . . . . | 2497 |
| Table 622. | Nonsecure interrupt requests . . . . . | 2498 |
| Table 623. | Secure interrupt requests . . . . . | 2498 |
| Table 624. | RTC register map and reset values . . . . . | 2529 |
| Table 625. | TAMP input/output pins . . . . . | 2535 |
| Table 626. | TAMP internal input/output signals . . . . . | 2535 |
| Table 627. | TAMP interconnection . . . . . | 2536 |
| Table 628. | Device resource x tamper protection . . . . . | 2542 |
| Table 629. | Active tamper output change period . . . . . | 2545 |
| Table 630. | Minimum ATPER value . . . . . | 2546 |
| Table 631. | Active tamper filtered pulse duration . . . . . | 2547 |
| Table 632. | Effect of low-power modes on TAMP . . . . . | 2549 |
| Table 633. | TAMP pins functionality over modes . . . . . | 2549 |
| Table 634. | Interrupt requests . . . . . | 2549 |
| Table 635. | TAMP register map and reset values . . . . . | 2578 |
| Table 636. | I2C implementation . . . . . | 2581 |
| Table 637. | I2C input/output pins . . . . . | 2582 |
| Table 638. | I2C internal input/output signals . . . . . | 2583 |
| Table 639. | Comparison of analog and digital filters . . . . . | 2585 |
| Table 640. | I2C-bus and SMBus specification data setup and hold times . . . . . | 2587 |
| Table 641. | I2C configuration . . . . . | 2591 |
| Table 642. | I2C-bus and SMBus specification clock timings . . . . . | 2602 |
| Table 643. | Timing settings for fI2CCLK of 8 MHz . . . . . | 2612 |
| Table 644. | Timing settings for fI2CCLK of 16 MHz . . . . . | 2612 |
| Table 645. | SMBus timeout specifications . . . . . | 2614 |
| Table 646. | SMBus with PEC configuration . . . . . | 2616 |
| Table 647. | TIMEOUTA[11:0] for maximum tTIMEOUT of 25 ms . . . . . | 2617 |
| Table 648. | TIMEOUTB[11:0] for maximum tLOW:SEXT and tLOW:MEXT of 8 ms . . . . . | 2617 |
| Table 649. | TIMEOUTA[11:0] for maximum tIDLE of 50 μs . . . . . | 2617 |
| Table 650. | Effect of low-power modes to I2C . . . . . | 2627 |
| Table 651. | I2C interrupt requests . . . . . | 2627 |
| Table 652. | I2C register map and reset values . . . . . | 2643 |
| Table 653. | I3C instantiation . . . . . | 2646 |
| Table 654. | I3C FIFOs implementation . . . . . | 2646 |
| Table 655. | I3C interrupt(s) . . . . . | 2646 |
| Table 656. | I3C peripheral controller/target features versus MIPI v1.1 . . . . . | 2647 |
| Table 657. | I3C input/output pins . . . . . | 2648 |
| Table 658. | I3C internal input/output signals . . . . . | 2648 |
| Table 659. | I3C register usage . . . . . | 2661 |
| Table 660. | I3C registers/fields usage versus controller state . . . . . | 2662 |
| Table 661. | I3C registers/fields usage versus target state . . . . . | 2665 |
| Table 662. | List of supported I3C CCCs, as controller/target . . . . . | 2668 |
| Table 663. | I3C controller error management . . . . . | 2700 |
| Table 664. | I3C target error management . . . . . | 2702 |
| Table 665. | Effect of low-power modes . . . . . | 2703 |
| Table 666. | I3C register map and reset values . . . . . | 2749 |
| Table 667. | Instance implementation on STM32H5E4/5F4 and STM32H5E5/5F5 . . . . . | 2753 |
| Table 668. | USART/LPUART features . . . . . | 2754 |
| Table 669. | USART/UART input/output pins . . . . . | 2756 |
| Table 670. | USART internal input/output signals . . . . . | 2757 |
| Table 671. | Noise detection from sampled data . . . . . | 2769 |
| Table 672. | Tolerance of the USART receiver when BRR [3:0] = 0000. . . . . | 2773 |
| Table 673. | Tolerance of the USART receiver when BRR[3:0] is different from 0000. . . . . | 2773 |
| Table 674. | USART frame formats . . . . . | 2778 |
| Table 675. | Effect of low-power modes on the USART . . . . . | 2801 |
| Table 676. | USART interrupt requests. . . . . | 2802 |
| Table 677. | USART register map and reset values . . . . . | 2840 |
| Table 678. | Instance implementation on STM32H5E4/5F4 and STM32H5E5/5F5 . . . . . | 2843 |
| Table 679. | USART/LPUART features . . . . . | 2843 |
| Table 680. | LPUART input/output pins . . . . . | 2846 |
| Table 681. | LPUART internal input/output signals. . . . . | 2846 |
| Table 682. | Error calculation for programmed baud rates at lpuart_ker_ck_pres= 32.768 kHz . . . . . | 2857 |
| Table 683. | Tolerance of the LPUART receiver. . . . . | 2858 |
| Table 685. | Effect of low-power modes on the LPUART . . . . . | 2870 |
| Table 686. | LPUART interrupt requests. . . . . | 2871 |
| Table 687. | LPUART register map and reset values . . . . . | 2897 |
| Table 688. | SPI features . . . . . | 2900 |
| Table 689. | SPI/I2S input/output pins . . . . . | 2903 |
| Table 690. | SPI internal input/output signals . . . . . | 2903 |
| Table 691. | Effect of low-power modes on the SPI . . . . . | 2930 |
| Table 692. | SPI wake-up and interrupt requests . . . . . | 2931 |
| Table 693. | Bitfields usable in PCM/I2S mode . . . . . | 2933 |
| Table 694. | WS and CK level before SPI/I2S is enabled when AFCNTR = 1 . . . . . | 2942 |
| Table 695. | Serial data line swapping . . . . . | 2942 |
| Table 696. | CLKGEN programming examples for usual I2S frequencies . . . . . | 2946 |
| Table 697. | I2S interrupt requests . . . . . | 2955 |
| Table 698. | SPI register map and reset values . . . . . | 2973 |
| Table 699. | STM32H5E4/5F4 and STM32H5E5/5F5 SAI features . . . . . | 2976 |
| Table 700. | SAI internal input/output signals . . . . . | 2978 |
| Table 701. | SAI input/output pins. . . . . | 2978 |
| Table 702. | External synchronization selection . . . . . | 2981 |
| Table 703. | MCLK_x activation conditions. . . . . | 2986 |
| Table 704. | Clock generator programming examples . . . . . | 2989 |
| Table 705. | SAI_A configuration for TDM mode . . . . . | 2996 |
| Table 706. | TDM frame configuration examples . . . . . | 2998 |
| Table 707. | SOPD pattern . . . . . | 3002 |
| Table 708. | Parity bit calculation . . . . . | 3002 |
| Table 709. | Audio sampling frequency versus symbol rates . . . . . | 3003 |
| Table 710. | SAI interrupt sources . . . . . | 3012 |
| Table 711. | SAI register map and reset values . . . . . | 3041 |
| Table 712. | CAN subsystem I/O signals . . . . . | 3047 |
| Table 713. | CAN subsystem I/O pins. . . . . | 3047 |
| Table 714. | DLC coding in FDCAN . . . . . | 3051 |
| Table 715. | Possible configurations for frame transmission . . . . . | 3065 |
| Table 716. | Rx FIFO element . . . . . | 3068 |
| Table 717. | Rx FIFO element description . . . . . | 3068 |
| Table 718. | Tx buffer and FIFO element . . . . . | 3070 |
| Table 719. | Tx buffer element description . . . . . | 3070 |
| Table 720. | Tx event FIFO element . . . . . | 3072 |
| Table 721. | Tx event FIFO element description . . . . . | 3072 |
| Table 722. | Standard message ID filter element . . . . . | 3073 |
| Table 723. | Standard message ID filter element field description . . . . . | 3074 |
| Table 724. | Extended message ID filter element . . . . . | 3074 |
| Table 725. | Extended message ID filter element field description . . . . . | 3075 |
| Table 726. | FDCAN register map and reset values . . . . . | 3105 |
| Table 727. | OTG_FS speeds supported . . . . . | 3109 |
| Table 728. | OTG_FS implementation . . . . . | 3112 |
| Table 729. | OTG_FS input/output pins . . . . . | 3113 |
| Table 730. | OTG_FS input/output signals . . . . . | 3114 |
| Table 731. | Compatibility of STM32 low power modes with the OTG . . . . . | 3124 |
| Table 732. | Core global control and status registers (CSRs) . . . . . | 3133 |
| Table 733. | Host-mode control and status registers (CSRs) . . . . . | 3134 |
| Table 734. | Device-mode control and status registers . . . . . | 3135 |
| Table 735. | Data FIFO (DFIFO) access register map . . . . . | 3137 |
| Table 736. | Power and clock gating control and status registers . . . . . | 3137 |
| Table 737. | TRDT values . . . . . | 3143 |
| Table 738. | Minimum duration for soft disconnect . . . . . | 3184 |
| Table 739. | OTG_FS register map and reset values . . . . . | 3213 |
| Table 740. | OTG_HS speeds supported . . . . . | 3268 |
| Table 741. | OTG_HS implementation . . . . . | 3270 |
| Table 742. | OTG_HS input/output pins . . . . . | 3271 |
| Table 743. | OTG_HS input/output signals . . . . . | 3272 |
| Table 744. | Compatibility of STM32 low power modes with the OTG . . . . . | 3282 |
| Table 745. | Core global control and status registers (CSRs) . . . . . | 3290 |
| Table 746. | Host-mode control and status registers (CSRs) . . . . . | 3291 |
| Table 747. | Device-mode control and status registers . . . . . | 3292 |
| Table 748. | Data FIFO (DFIFO) access register map . . . . . | 3294 |
| Table 749. | Power and clock gating control and status registers . . . . . | 3295 |
| Table 750. | TRDT values . . . . . | 3301 |
| Table 751. | Minimum duration for soft disconnect . . . . . | 3344 |
| Table 752. | OTG_HS register map and reset values . . . . . | 3370 |
| Table 753. | UCPD implementation . . . . . | 3436 |
| Table 754. | UCPD signals on pins . . . . . | 3437 |
| Table 755. | UCPD internal signals . . . . . | 3438 |
| Table 756. | 4b5b symbol encoding table . . . . . | 3439 |
| Table 757. | Ordered sets . . . . . | 3441 |
| Table 758. | Validation of ordered sets . . . . . | 3441 |
| Table 759. | Data size . . . . . | 3442 |
| Table 760. | Coding for ANAMODE, ANASUBMODE and link with TYPEC_VSTATE_CCx . . . . . | 3450 |
| Table 761. | Type-C sequence (source: 3A); cable/sink connected (Rd on CC1; Ra on CC2) . . . . . | 3452 |
| Table 762. | Effect of low power modes on the UCPD . . . . . | 3454 |
| Table 763. | UCPD interrupt requests . . . . . | 3455 |
| Table 764. | UCPD register map and reset values . . . . . | 3470 |
| Table 765. | Ethernet peripheral pins . . . . . | 3477 |
| Table 766. | Internal Ethernet input/output signals . . . . . | 3478 |
| Table 767. | Ethernet trigger connections . . . . . | 3478 |
| Table 768. | Priority scheme for Tx DMA and Rx DMA . . . . . | 3487 |
| Table 769. | Double VLAN processing features in Tx path..... | 3493 |
| Table 770. | Double VLAN processing in Rx path ..... | 3494 |
| Table 771. | VLAN insertion or replacement based on VLTI bit ..... | 3495 |
| Table 772. | Destination address filtering ..... | 3498 |
| Table 773. | Source address filtering ..... | 3499 |
| Table 774. | VLAN match status ..... | 3500 |
| Table 775. | Ordinary clock: PTP messages for snapshot ..... | 3504 |
| Table 776. | End-to-end transparent clock: PTP messages for snapshot ..... | 3504 |
| Table 777. | Peer-to-peer transparent clock: PTP messages for snapshot..... | 3505 |
| Table 778. | Egress and ingress latency for PHY interfaces ..... | 3509 |
| Table 779. | Minimum PTP clock frequency example..... | 3509 |
| Table 780. | Message format defined in IEEE 1588-2008 ..... | 3510 |
| Table 781. | Message format defined in IEEE 1588-2008 ..... | 3511 |
| Table 782. | IPv6-UDP PTP packet fields required for control and status ..... | 3512 |
| Table 783. | Ethernet PTP packet fields required for control and status ..... | 3513 |
| Table 784. | Timestamp Snapshot Dependency on ETH_MACTSCR bits..... | 3514 |
| Table 785. | PTP message generation criteria ..... | 3520 |
| Table 786. | Common PTP message header fields ..... | 3522 |
| Table 787. | MAC transmit PTP mode and one-step timestamping operation ..... | 3525 |
| Table 788. | Transmit checksum offload engine functions for different packet types ..... | 3529 |
| Table 789. | Receive checksum offload engine functions for different packet types ..... | 3532 |
| Table 790. | TSO: TCP and IP header fields ..... | 3536 |
| Table 791. | Pause packet fields..... | 3541 |
| Table 792. | Tx MAC flow control ..... | 3542 |
| Table 793. | Rx MAC flow control ..... | 3542 |
| Table 794. | Size of the maximum receive packet ..... | 3545 |
| Table 795. | MCD clock selection ..... | 3547 |
| Table 796. | MDIO Clause 45 frame structure ..... | 3548 |
| Table 797. | MDIO Clause 22 frame structure ..... | 3549 |
| Table 798. | Remote wake-up packet filter register ..... | 3560 |
| Table 799. | Description of the remote wake-up filter fields ..... | 3560 |
| Table 800. | Remote wake-up packet and PMT interrupt generation ..... | 3562 |
| Table 801. | Transfer complete interrupt behavior ..... | 3571 |
| Table 802. | TDES0 normal descriptor (read format) ..... | 3595 |
| Table 803. | TDES1 normal descriptor (read format) ..... | 3596 |
| Table 804. | TDES2 normal descriptor (read format) ..... | 3596 |
| Table 805. | TDES3 normal descriptor (read format) ..... | 3597 |
| Table 806. | TDES0 normal descriptor (write-back format)..... | 3600 |
| Table 807. | TDES1 normal descriptor (write-back format)..... | 3600 |
| Table 808. | TDES2 normal descriptor (write-back format)..... | 3601 |
| Table 809. | TDES3 normal descriptor (write-back format)..... | 3601 |
| Table 810. | TDES0 context descriptor..... | 3605 |
| Table 811. | TDES1 context descriptor..... | 3605 |
| Table 812. | TDES2 context descriptor..... | 3605 |
| Table 813. | TDES3 context descriptor..... | 3606 |
| Table 814. | RDES0 normal descriptor (read format) ..... | 3609 |
| Table 815. | RDES1 normal descriptor (read format) ..... | 3609 |
| Table 816. | RDES2 normal descriptor (read format) ..... | 3609 |
| Table 817. | RDES3 normal descriptor (read format) ..... | 3610 |
| Table 818. | RDES0 normal descriptor (write-back format) ..... | 3611 |
| Table 819. | RDES1 normal descriptor (write-back format) ..... | 3612 |
| Table 820. | RDES2 normal descriptor (write-back format) ..... | 3614 |
| Table 821. | RDES3 normal descriptor (write-back format) . . . . . | 3615 |
| Table 822. | RDES0 context descriptor . . . . . | 3618 |
| Table 823. | RDES1 context descriptor . . . . . | 3619 |
| Table 824. | RDES2 context descriptor . . . . . | 3619 |
| Table 825. | RDES3 context descriptor . . . . . | 3619 |
| Table 826. | ETH_DMA common register map and reset values . . . . . | 3640 |
| Table 827. | ETH_DMA_CH register map and reset values . . . . . | 3640 |
| Table 828. | ETH_MTL register map and reset values . . . . . | 3650 |
| Table 829. | Giant Packet Status based on S2KP and JE Bits . . . . . | 3656 |
| Table 830. | Packet Length based on the CST and ACS bits . . . . . | 3656 |
| Table 831. | Ethernet MAC register map and reset values . . . . . | 3743 |
| Table 832. | HDMI pin . . . . . | 3754 |
| Table 833. | HDMI-CEC internal input/output signals . . . . . | 3754 |
| Table 834. | Error handling timing parameters . . . . . | 3760 |
| Table 835. | TXERR timing parameters . . . . . | 3761 |
| Table 836. | HDMI-CEC interrupts . . . . . | 3762 |
| Table 837. | HDMI-CEC register map and reset values . . . . . | 3770 |
| Table 838. | JTAG/Serial-wire debug port pins . . . . . | 3772 |
| Table 839. | Trace port pins . . . . . | 3772 |
| Table 840. | Single-wire trace port pins . . . . . | 3773 |
| Table 841. | Authentication signal states with TrustZone enabled (TZEN = 0xB4) . . . . . | 3775 |
| Table 842. | Authentication signal states with TrustZone disabled (TZEN = 0xC3) . . . . . | 3775 |
| Table 843. | Life cycle state and debug states . . . . . | 3775 |
| Table 844. | Definition of data to provision . . . . . | 3778 |
| Table 845. | Permission mask (Endianness: Little Endian) . . . . . | 3778 |
| Table 846. | JTAG-DP data registers . . . . . | 3781 |
| Table 847. | Packet request . . . . . | 3783 |
| Table 848. | ACK response . . . . . | 3783 |
| Table 849. | Data transfer . . . . . | 3783 |
| Table 850. | Debug port registers . . . . . | 3784 |
| Table 851. | Debug port register map and reset values . . . . . | 3790 |
| Table 852. | MEM-AP registers . . . . . | 3792 |
| Table 853. | Access port register map and reset values . . . . . | 3798 |
| Table 854. | System ROM table . . . . . | 3799 |
| Table 855. | MCU ROM table . . . . . | 3800 |
| Table 856. | Processor ROM table . . . . . | 3800 |
| Table 857. | System ROM table register map and reset values . . . . . | 3806 |
| Table 858. | MCU ROM table register map and reset values . . . . . | 3811 |
| Table 859. | CPU ROM table register map and reset values . . . . . | 3816 |
| Table 860. | DWT register map and reset values . . . . . | 3831 |
| Table 861. | ITM register map and reset values . . . . . | 3842 |
| Table 862. | BPU register map and reset values . . . . . | 3850 |
| Table 863. | ETM register map and reset values . . . . . | 3876 |
| Table 864. | TPIU register map and reset values . . . . . | 3890 |
| Table 865. | CTI inputs . . . . . | 3892 |
| Table 866. | CTI outputs . . . . . | 3892 |
| Table 867. | CTI register map and reset values . . . . . | 3903 |
| Table 868. | Peripheral clock freeze control bits . . . . . | 3906 |
| Table 869. | Peripheral behaviour in debug mode . . . . . | 3907 |
| Table 870. | DBGMCU register map and reset values . . . . . | 3923 |
| Table 871. | Document revision history . . . . . | 3930 |
List of figures
| Figure 1. | System architecture | 131 |
| Figure 2. | Memory map based on IDAU mapping | 141 |
| Figure 3. | Secure/nonsecure partitioning using TrustZone technology | 157 |
| Figure 4. | Sharing memory map between CPU in secure and nonsecure state | 159 |
| Figure 5. | Secure world transition and memory partitioning | 159 |
| Figure 6. | Global TrustZone framework and TrustZone awareness | 161 |
| Figure 7. | Flash memory TrustZone protections | 165 |
| Figure 8. | Flash memory secure HDP area | 172 |
| Figure 9. | Key management principle | 180 |
| Figure 10. | Device life-cycle security | 184 |
| Figure 11. | PRODUCT_STATEs (simplified TrustZone activated view) | 187 |
| Figure 12. | PRODUCT_STATEs (full TrustZone activated view) | 188 |
| Figure 13. | Collaborative development principle | 190 |
| Figure 14. | External flash memory protection using SFI | 192 |
| Figure 15. | GTZC in Armv8-M subsystem block diagram | 199 |
| Figure 16. | GTZC block diagram | 202 |
| Figure 17. | Watermark memory protection controller (region x/subregions A and B) | 203 |
| Figure 18. | MPCBB block diagram | 204 |
| Figure 19. | Memory map: SRAM2/3 | 267 |
| Figure 20. | FLASH block diagram (simplified) | 278 |
| Figure 21. | Embedded flash memory organization (4-Mbyte devices) | 280 |
| Figure 22. | Embedded flash memory usage | 281 |
| Figure 23. | Flash high-cycle data memory map on 4-Mbyte device | 295 |
| Figure 24. | Flash high-cycle area memory map on a 3-Mbyte device | 295 |
| Figure 25. | Flash bank swapping sequence | 297 |
| Figure 26. | OBK protection checks | 310 |
| Figure 27. | Key writing flow | 311 |
| Figure 28. | Swap workflow | 313 |
| Figure 29. | HDP in user flash memory | 318 |
| Figure 30. | Protection attributes in case of bank swap illustration | 323 |
| Figure 31. | ICACHE block diagram | 404 |
| Figure 32. | ICACHE TAG and data memories functional view | 406 |
| Figure 33. | ICACHE remapping address mechanism | 409 |
| Figure 34. | DCACHE block diagram | 421 |
| Figure 35. | DCACHE TAG and data memories functional view | 424 |
| Figure 36. | Power supply with SMPS | 440 |
| Figure 37. | Power supply with LDO | 441 |
| Figure 38. | System supply configurations | 443 |
| Figure 39. | Power-on (POR) / power-down (PDR) reset waveform | 449 |
| Figure 40. | BOR thresholds | 450 |
| Figure 41. | PVD thresholds | 451 |
| Figure 42. | AVD thresholds | 452 |
| Figure 43. | VBAT thresholds | 453 |
| Figure 44. | Temperature thresholds | 454 |
| Figure 45. | Dynamic voltage scaling in Run mode | 455 |
| Figure 46. | I/O states in Standby mode | 465 |
| Figure 47. | Simplified diagram of the reset circuit | 489 |
| Figure 48. | Clock tree | 492 |
| Figure 49. | HSE/LSE clock sources | 493 |
| Figure 50. | CSI calibration flow | 496 |
| Figure 51. | PLL block diagram | 497 |
| Figure 52. | PLLs initialization flow | 500 |
| Figure 53. | Kernel clock distribution for SAIs | 506 |
| Figure 54. | Clock distribution for CCB subsystem | 508 |
| Figure 55. | Kernel clock distribution for OTG_FS, OTG_HS and UCPD1 | 510 |
| Figure 56. | Clock distribution for ETH | 511 |
| Figure 57. | CRS block diagram | 607 |
| Figure 58. | CRS counter behavior | 609 |
| Figure 59. | Structure of 3- or 5-V tolerant GPIO (TT or FT) | 619 |
| Figure 60. | Input floating/pull-up/pull-down configurations | 623 |
| Figure 61. | Output configuration | 624 |
| Figure 62. | Alternate function configuration | 625 |
| Figure 63. | High-impedance analog configuration | 625 |
| Figure 64. | SBS block diagram | 639 |
| Figure 65. | Compensation cell management | 641 |
| Figure 66. | Compensation cell usage | 642 |
| Figure 67. | SBS boot control | 643 |
| Figure 68. | SBS debug control | 647 |
| Figure 69. | SBS hardware secure storage control | 648 |
| Figure 70. | GPDMA block diagram | 692 |
| Figure 71. | GPDMA channel direct programming without linked-list (GPDMA_CxLLR = 0) | 693 |
| Figure 72. | GPDMA channel suspend and resume sequence | 694 |
| Figure 73. | GPDMA channel abort and restart sequence | 695 |
| Figure 74. | Static linked-list data structure (all Uxx = 1) of a linear addressing channel x | 696 |
| Figure 75. | Static linked-list data structure (all Uxx = 1) of a 2D addressing channel x | 697 |
| Figure 76. | GPDMA dynamic linked-list data structure of a linear addressing channel x | 698 |
| Figure 77. | GPDMA dynamic linked-list data structure of a 2D addressing channel x | 698 |
| Figure 78. | GPDMA channel execution and linked-list programming in run-to-completion mode (GPDMA_CxCR.LSM = 0) | 700 |
| Figure 79. | Inserting a LLIn with an auxiliary GPDMA channel y | 702 |
| Figure 80. | GPDMA channel execution and linked-list programming in link step mode (GPDMA_CxCR.LSM = 1) | 704 |
| Figure 81. | Building LLIn+1: GPDMA dynamic linked-lists in link step mode | 705 |
| Figure 82. | Replace with a new LLIn’ in register file in link step mode | 706 |
| Figure 83. | Replace with a new LLIn’ and LLIn+1’ in memory in link step mode (option 1) | 707 |
| Figure 84. | Replace with a new LLIn’ and LLIn+1’ in memory in link step mode (option 2) | 708 |
| Figure 85. | GPDMA channel execution and linked-list programming | 710 |
| Figure 86. | Programmed 2D addressing | 713 |
| Figure 87. | GPDMA arbitration policy | 720 |
| Figure 88. | Trigger hit, memorization, and overrun waveform | 723 |
| Figure 89. | GPDMA circular buffer programming: update of the memory start address with a linear addressing channel | 724 |
| Figure 90. | Shared GPDMA channel with circular buffering: update of the memory start address with a linear addressing channel | 725 |
| Figure 91. | DMA2D block diagram | 763 |
| Figure 92. | DMA2D pipeline | 766 |
| Figure 93. | DMA2D image parameters . . . . . | 768 |
| Figure 94. | DMA2D input PFC . . . . . | 770 |
| Figure 95. | DMA2D image parameters with skipping . . . . . | 774 |
| Figure 96. | Tile buffer operations XYSEN = 0 . . . . . | 778 |
| Figure 97. | Tile buffer operations XYSEN = 1 . . . . . | 779 |
| Figure 98. | Intel 8080 16-bit mode (RGB565) . . . . . | 784 |
| Figure 99. | Intel 8080 18/24-bit mode (RGB888) . . . . . | 784 |
| Figure 100. | Ring buffer and linear command list . . . . . | 793 |
| Figure 101. | GFXTIM block diagram . . . . . | 842 |
| Figure 102. | Clock generator . . . . . | 844 |
| Figure 103. | Waveforms in standalone . . . . . | 846 |
| Figure 104. | Active counters and signals in standalone . . . . . | 846 |
| Figure 105. | Waveforms with external HSYNC and VSYNC . . . . . | 846 |
| Figure 106. | Waveforms with external HSYNC only . . . . . | 847 |
| Figure 107. | Active counters and signals with external HSYNC only . . . . . | 847 |
| Figure 108. | Waveforms with external VSYNC only . . . . . | 847 |
| Figure 109. | Active counters with external VSYNC only . . . . . | 848 |
| Figure 110. | Prescaling when external VSYNC only . . . . . | 848 |
| Figure 111. | Waveforms with external CSYNC only . . . . . | 848 |
| Figure 112. | Active counters and signals with external CSYNC only . . . . . | 849 |
| Figure 113. | Prescaling when external CSYNC only . . . . . | 849 |
| Figure 114. | Tearing-effect configurations . . . . . | 851 |
| Figure 115. | Watchdog timer . . . . . | 852 |
| Figure 116. | EXTI block diagram . . . . . | 885 |
| Figure 117. | Configurable event trigger logic CPU wake-up . . . . . | 889 |
| Figure 118. | EXTI direct events . . . . . | 890 |
| Figure 119. | EXTI multiplexer GPIO selection . . . . . | 890 |
| Figure 120. | CRC calculation unit block diagram . . . . . | 935 |
| Figure 121. | CORDIC convergence for trigonometric functions . . . . . | 949 |
| Figure 122. | CORDIC convergence for hyperbolic functions . . . . . | 950 |
| Figure 123. | CORDIC convergence for square root . . . . . | 951 |
| Figure 124. | Block diagram . . . . . | 960 |
| Figure 125. | Input buffer areas . . . . . | 962 |
| Figure 126. | Circular input buffer . . . . . | 963 |
| Figure 127. | Circular input buffer operation . . . . . | 964 |
| Figure 128. | Circular output buffer . . . . . | 965 |
| Figure 129. | Circular output buffer operation . . . . . | 966 |
| Figure 130. | FIR filter structure . . . . . | 968 |
| Figure 131. | IIR filter structure (direct form 1) . . . . . | 970 |
| Figure 132. | X1 buffer initialization . . . . . | 975 |
| Figure 133. | Filtering example 1 . . . . . | 976 |
| Figure 134. | Filtering example 2 . . . . . | 977 |
| Figure 135. | PLAY block diagram . . . . . | 988 |
| Figure 136. | Input multiplexing . . . . . | 991 |
| Figure 137. | Input filter and edge detection . . . . . | 992 |
| Figure 138. | Filter operation example . . . . . | 992 |
| Figure 139. | Edge detector operation (rising and falling edge) with filter enabled . . . . . | 993 |
| Figure 140. | Edge detector operation (rising and falling edge) with filter bypassed . . . . . | 993 |
| Figure 141. | swin_we pulse timing . . . . . | 994 |
| Figure 142. | Logic element . . . . . | 995 |
| Figure 143. | Example logic expression 1 . . . . . | 995 |
| Figure 144. | Example logic expression 2 . . . . . | 996 |
| Figure 145. Input interconnect . . . . . | 998 |
| Figure 146. Logic element cascading . . . . . | 1001 |
| Figure 147. Combining logic elements in parallel . . . . . | 1001 |
| Figure 148. Splitting logic expressions between logic elements . . . . . | 1002 |
| Figure 149. Output interconnect . . . . . | 1003 |
| Figure 150. FMC block diagram. . . . . | 1025 |
| Figure 151. FMC memory banks . . . . . | 1027 |
| Figure 152. Mode 1 read access waveforms . . . . . | 1038 |
| Figure 153. Mode 1 write access waveforms. . . . . | 1038 |
| Figure 154. Mode A read access waveforms. . . . . | 1040 |
| Figure 155. Mode A write access waveforms . . . . . | 1040 |
| Figure 156. Mode 2 and mode B read access waveforms. . . . . | 1042 |
| Figure 157. Mode 2 write access waveforms. . . . . | 1043 |
| Figure 158. Mode B write access waveforms . . . . . | 1043 |
| Figure 159. Mode C read access waveforms . . . . . | 1045 |
| Figure 160. Mode C write access waveforms . . . . . | 1046 |
| Figure 161. Mode D read access waveforms . . . . . | 1048 |
| Figure 162. Mode D write access waveforms . . . . . | 1049 |
| Figure 163. Muxed read access waveforms . . . . . | 1051 |
| Figure 164. Muxed write access waveforms . . . . . | 1052 |
| Figure 165. Asynchronous wait during a read access waveforms. . . . . | 1054 |
| Figure 166. Asynchronous wait during a write access waveforms. . . . . | 1055 |
| Figure 167. Wait configuration waveforms. . . . . | 1057 |
| Figure 168. Synchronous multiplexed read mode waveforms - NOR, PSRAM (CRAM). . . . . | 1058 |
| Figure 169. Synchronous multiplexed write mode waveforms - PSRAM (CRAM). . . . . | 1060 |
| Figure 170. NAND flash controller waveforms for common memory access. . . . . | 1072 |
| Figure 171. Access to non 'CE don't care' NAND-flash. . . . . | 1074 |
| Figure 172. Burst write SDRAM access waveforms . . . . . | 1083 |
| Figure 173. Burst read SDRAM access. . . . . | 1084 |
| Figure 174. Logic diagram of Read access with RBURST bit set (CAS=1, RPIPE=0) . . . . . | 1085 |
| Figure 175. Read access crossing row boundary . . . . . | 1087 |
| Figure 176. Write access crossing row boundary . . . . . | 1087 |
| Figure 177. Self-refresh mode . . . . . | 1090 |
| Figure 178. Power-down mode . . . . . | 1091 |
| Figure 179. OCTOSPI block diagram in octal configuration . . . . . | 1103 |
| Figure 180. OCTOSPI block diagram in quad configuration . . . . . | 1103 |
| Figure 181. OCTOSPI block diagram in dual-quad configuration . . . . . | 1104 |
| Figure 182. SDR read command in octal configuration . . . . . | 1105 |
| Figure 183. DTR read in octal-SPI mode with DQS (Macronix mode) example . . . . . | 1108 |
| Figure 184. SDR write command in octo-SPI mode example . . . . . | 1110 |
| Figure 185. DTR write in octal-SPI mode (Macronix mode) example . . . . . | 1111 |
| Figure 186. Example of HyperBus read operation. . . . . | 1113 |
| Figure 187. HyperBus write operation with initial latency . . . . . | 1114 |
| Figure 188. HyperBus read operation with additional latency . . . . . | 1114 |
| Figure 189. HyperBus write operation with additional latency . . . . . | 1115 |
| Figure 190. HyperBus write operation with no latency (register write). . . . . | 1115 |
| Figure 191. HyperBus read operation page crossing with latency. . . . . | 1116 |
| Figure 192. D0/D1 data ordering in octal-SPI DTR mode (Micron) - Read access . . . . . | 1123 |
| Figure 193. OctaRAM read operation with reverse data ordering D1/D0 . . . . . | 1123 |
| Figure 194. NCS when CKMODE = 0 (T = CLK period) . . . . . | 1129 |
| Figure 195. Example of software control of two external memories . . . . . | 1130 |
| Figure 196. Example of hardware-controller extended memory support. . . . . | 1131 |
| Figure 197. OCTOSPIM block diagram . . . . . | 1161 |
| Figure 198. OCTOSPI direct mode . . . . . | 1163 |
| Figure 199. OCTOSPI swapped mode . . . . . | 1164 |
| Figure 200. OCTOSPI multiplexed mode to Port 1 . . . . . | 1165 |
| Figure 201. OCTOSPI multiplexed mode to Port 2 . . . . . | 1165 |
| Figure 202. OCTOSPI1 and OCTOSPI2 drive a single external memory . . . . . | 1166 |
| Figure 203. Single OCTOSPI driving two external memories . . . . . | 1167 |
| Figure 204. SDMMC “no response” and “no data” operations . . . . . | 1171 |
| Figure 205. SDMMC (multiple) block read operation . . . . . | 1171 |
| Figure 206. SDMMC (multiple) block write operation . . . . . | 1172 |
| Figure 207. SDMMC (sequential) stream read operation . . . . . | 1172 |
| Figure 208. SDMMC (sequential) stream write operation . . . . . | 1172 |
| Figure 209. SDMMC block diagram . . . . . | 1174 |
| Figure 210. SDMMC Command and data phase relation . . . . . | 1176 |
| Figure 211. Control unit . . . . . | 1178 |
| Figure 212. Command/response path . . . . . | 1179 |
| Figure 213. Command path state machine (CPSM) . . . . . | 1180 |
| Figure 214. Data path . . . . . | 1186 |
| Figure 215. DDR mode data packet clocking . . . . . | 1187 |
| Figure 216. DDR mode CRC status / boot acknowledgment clocking . . . . . | 1187 |
| Figure 217. Data path state machine (DPSM) . . . . . | 1188 |
| Figure 218. CLKMUX unit . . . . . | 1199 |
| Figure 219. Linked list structures . . . . . | 1201 |
| Figure 220. Asynchronous interrupt generation . . . . . | 1204 |
| Figure 221. Synchronous interrupt period data read . . . . . | 1205 |
| Figure 222. Synchronous interrupt period data write . . . . . | 1205 |
| Figure 223. Asynchronous interrupt period data read . . . . . | 1206 |
| Figure 224. Asynchronous interrupt period data write . . . . . | 1207 |
| Figure 225. Clock stop with SDMMC_CK for DS, HS, SDR12, SDR25 . . . . . | 1210 |
| Figure 226. Clock stop with SDMMC_CK for DDR50, SDR50, SDR104 . . . . . | 1210 |
| Figure 227. Read Wait with SDMMC_CK < 50 MHz . . . . . | 1211 |
| Figure 228. Read Wait with SDMMC_CK > 50 MHz . . . . . | 1211 |
| Figure 229. CMD12 stream timing . . . . . | 1214 |
| Figure 230. CMD5 Sleep Awake procedure . . . . . | 1216 |
| Figure 231. Normal boot mode operation . . . . . | 1218 |
| Figure 232. Alternative boot mode operation . . . . . | 1219 |
| Figure 233. Command response R1b busy signaling . . . . . | 1220 |
| Figure 234. SDMMC state control . . . . . | 1221 |
| Figure 235. Card cycle power / power up diagram . . . . . | 1222 |
| Figure 236. CMD11 signal voltage switch sequence . . . . . | 1223 |
| Figure 237. Voltage switch transceiver typical application . . . . . | 1225 |
| Figure 238. DLYB block diagram . . . . . | 1253 |
| Figure 239. ADC block diagram . . . . . | 1261 |
| Figure 240. ADC clock scheme . . . . . | 1266 |
| Figure 241. ADC1 connectivity . . . . . | 1267 |
| Figure 242. ADC2 connectivity . . . . . | 1268 |
| Figure 243. ADC3 connectivity . . . . . | 1269 |
| Figure 244. ADC calibration . . . . . | 1272 |
| Figure 245. Updating the ADC calibration factor . . . . . | 1273 |
| Figure 246. Mixing single-ended and differential channels . . . . . | 1274 |
| Figure 247. Enabling / disabling the ADC . . . . . | 1275 |
| Figure 248. Bulb mode timing diagram . . . . . | 1278 |
| Figure 249. | Analog-to-digital conversion time ..... | 1281 |
| Figure 250. | Stopping ongoing regular conversions ..... | 1282 |
| Figure 251. | Stopping ongoing regular and injected conversions ..... | 1283 |
| Figure 252. | Triggers shared between ADC master and slave ..... | 1284 |
| Figure 253. | Injected conversion latency ..... | 1286 |
| Figure 254. | Example of ADC_JSQR queue of context (sequence change) ..... | 1289 |
| Figure 255. | Example of ADC_JSQR queue of context (trigger change) ..... | 1289 |
| Figure 256. | Example of ADC_JSQR queue of context with overflow before conversion ..... | 1290 |
| Figure 257. | Example of ADC_JSQR queue of context with overflow during conversion ..... | 1290 |
| Figure 258. | Example of ADC_JSQR queue of context with empty queue (case JQM = 0) ..... | 1291 |
| Figure 259. | Example of ADC_JSQR queue of context with empty queue (JQM = 1) ..... | 1292 |
| Figure 260. | Flushing ADC_JSQR queue of context by setting JADSTP = 1 (JQM = 0) - JADSTP occurs during an ongoing conversion. .... | 1292 |
| Figure 261. | Flushing ADC_JSQR queue of context by setting JADSTP = 1 (JQM = 0) - JADSTP occurs during an ongoing conversion and a new trigger occurs ..... | 1293 |
| Figure 262. | Flushing ADC_JSQR queue of context by setting JADSTP = 1 (JQM = 0) - JADSTP occurs outside an ongoing conversion. .... | 1293 |
| Figure 263. | Flushing ADC_JSQR queue of context by setting JADSTP = 1 (JQM = 1) ..... | 1294 |
| Figure 264. | Flushing ADC_JSQR queue of context by setting ADDIS = 1 (JQM = 0) ..... | 1294 |
| Figure 265. | Flushing ADC_JSQR queue of context by setting ADDIS = 1 (JQM = 1) ..... | 1295 |
| Figure 266. | Single conversions of a sequence, software trigger ..... | 1297 |
| Figure 267. | Continuous conversion of a sequence, software trigger ..... | 1297 |
| Figure 268. | Single conversions of a sequence, hardware trigger ..... | 1298 |
| Figure 269. | Continuous conversions of a sequence, hardware trigger ..... | 1298 |
| Figure 270. | Right alignment (offset disabled, unsigned value) ..... | 1300 |
| Figure 271. | Right alignment (offset enabled, signed value) ..... | 1301 |
| Figure 272. | Left alignment (offset disabled, unsigned value) ..... | 1301 |
| Figure 273. | Left alignment (offset enabled, signed value) ..... | 1302 |
| Figure 274. | Example of overrun (OVRMOD = 0) ..... | 1303 |
| Figure 275. | Example of overrun (OVRMOD = 1) ..... | 1304 |
| Figure 276. | AUTODLY = 1, regular conversion in continuous mode, software trigger ..... | 1307 |
| Figure 277. | AUTODLY = 1, regular HW conversions interrupted by injected conversions (DISCEN = 0; JDISCEN = 0) ..... | 1308 |
| Figure 278. | AUTODLY = 1, regular HW conversions interrupted by injected conversions (DISCEN = 1, JDISCEN = 1) ..... | 1309 |
| Figure 279. | AUTODLY = 1, regular continuous conversions interrupted by injected conversions ..... | 1310 |
| Figure 280. | AUTODLY = 1 in auto- injected mode (JAUTO = 1) ..... | 1310 |
| Figure 281. | Analog watchdog guarded area ..... | 1311 |
| Figure 282. | ADCy_AWDx_OUT signal generation (on all regular channels) ..... | 1313 |
| Figure 283. | ADCy_AWDx_OUT signal generation (AWDx flag not cleared by software) ..... | 1314 |
| Figure 284. | ADCy_AWDx_OUT signal generation (on a single regular channel) ..... | 1314 |
| Figure 285. | ADCy_AWDx_OUT signal generation (on all injected channels) ..... | 1314 |
| Figure 286. | 20-bit to 16-bit result truncation ..... | 1316 |
| Figure 287. | Numerical example with 5-bit shift and rounding ..... | 1316 |
| Figure 288. | Triggered regular oversampling mode (TROVS bit = 1) ..... | 1318 |
| Figure 289. | Regular oversampling modes (4x ratio) ..... | 1319 |
| Figure 290. | Regular and injected oversampling modes used simultaneously ..... | 1320 |
| Figure 291. | Triggered regular oversampling with injection ..... | 1320 |
| Figure 292. | Oversampling in auto-injected mode ..... | 1321 |
| Figure 293. | Dual ADC block diagram(1) ..... | 1323 |
| Figure 294. | Injected simultaneous mode on 4 channels: dual ADC mode ..... | 1324 |
| Figure 295. Regular simultaneous mode on 16 channels: dual ADC mode . . . . . | 1326 |
| Figure 296. Interleaved mode on one channel in continuous conversion mode: dual ADC mode. . . . . | 1327 |
| Figure 297. Interleaved mode on 1 channel in single conversion mode: dual ADC mode. . . . . | 1328 |
| Figure 298. Interleaved conversion with injection . . . . . | 1328 |
| Figure 299. Alternate trigger: injected group of each ADC . . . . . | 1329 |
| Figure 300. Alternate trigger: 4 injected channels (each ADC) in discontinuous mode. . . . . | 1330 |
| Figure 301. Alternate + regular simultaneous . . . . . | 1331 |
| Figure 302. Case of trigger occurring during injected conversion . . . . . | 1331 |
| Figure 303. Interleaved single channel CH0 with injected sequence CH11, CH12 . . . . . | 1332 |
| Figure 304. Two Interleaved channels (CH1, CH2) with injected sequence CH11, CH12 - case 1: Master interrupted first . . . . . | 1332 |
| Figure 305. Two Interleaved channels (CH1, CH2) with injected sequence CH11, CH12 - case 2: Slave interrupted first . . . . . | 1332 |
| Figure 306. DMA Requests in regular simultaneous mode when MDMA = 0b00 . . . . . | 1333 |
| Figure 307. DMA requests in regular simultaneous mode when MDMA = 0b10 . . . . . | 1334 |
| Figure 308. DMA requests in interleaved mode when MDMA = 0b10 . . . . . | 1334 |
| Figure 309. Temperature sensor channel block diagram . . . . . | 1336 |
| Figure 310. VBAT channel block diagram . . . . . | 1338 |
| Figure 311. VREFINT channel block diagram . . . . . | 1338 |
| Figure 312. Temperature sensor functional block diagram . . . . . | 1382 |
| Figure 313. Method for low REF_CLK frequencies . . . . . | 1384 |
| Figure 314. Method for high REF_CLK frequencies . . . . . | 1384 |
| Figure 315. Temperature sensor sequence . . . . . | 1387 |
| Figure 316. Dual-channel DAC block diagram . . . . . | 1401 |
| Figure 317. Data registers in single DAC channel mode . . . . . | 1404 |
| Figure 318. Data registers in dual DAC channel mode . . . . . | 1405 |
| Figure 319. Timing diagram for conversion with trigger disabled TEN = 0 . . . . . | 1406 |
| Figure 320. DAC LFSR register calculation algorithm . . . . . | 1409 |
| Figure 321. DAC conversion (SW trigger enabled) with LFSR wave generation. . . . . | 1409 |
| Figure 322. DAC triangle wave generation . . . . . | 1410 |
| Figure 323. DAC conversion (SW trigger enabled) with triangle wave generation . . . . . | 1410 |
| Figure 324. DAC sample and hold mode phase diagram . . . . . | 1413 |
| Figure 325. VREFBUF block diagram . . . . . | 1439 |
| Figure 326. Standalone mode: external gain setting mode . . . . . | 1445 |
| Figure 327. Follower configuration. . . . . | 1446 |
| Figure 328. PGA mode, internal gain setting (x2/x4/x8/x16), inverting input not used . . . . . | 1447 |
| Figure 329. PGA mode, internal gain setting (x2/x4/x8/x16), inverting input used for filtering. . . . . | 1448 |
| Figure 330. PGA mode, noninverting gain setting (x2/x4/x8/x16) or inverting gain setting (x-1/x-3/x-7/x-15) . . . . . | 1449 |
| Figure 331. Example configuration . . . . . | 1449 |
| Figure 332. PGA mode, noninverting gain setting (x2/x4/x8/x16) or inverting gain setting (x-1/x-3/x-7/x-15) with filtering. . . . . | 1450 |
| Figure 333. Example configuration . . . . . | 1451 |
| Figure 334. Comparator functional block diagram. . . . . | 1458 |
| Figure 335. Window comparators functional block diagram . . . . . | 1462 |
| Figure 336. Comparator hysteresis . . . . . | 1463 |
| Figure 337. Comparator output blanking . . . . . | 1464 |
| Figure 338. Scaler block diagram . . . . . | 1467 |
| Figure 339. MDF block diagram. . . . . | 1476 |
| Figure 340. SITFx overview . . . . . | 1480 |
| Figure 341. SPI timing example. . . . . | 1481 |
| Figure 342. Manchester timing example (SITFMOD = 11) ..... | 1483 |
| Figure 343. CKGEN overview ..... | 1486 |
| Figure 344. BSMX overview ..... | 1488 |
| Figure 345. SCD functional view ..... | 1489 |
| Figure 346. SCD timing example ..... | 1489 |
| Figure 347. DFLT overview ..... | 1491 |
| Figure 348. Programmable delay ..... | 1492 |
| Figure 349. CIC3 and CIC5 frequency response with decimation ratio = 32 ..... | 1494 |
| Figure 350. Reshape filter frequency response normalized (FRS / 2 = 1) ..... | 1499 |
| Figure 351. Out-of-limit detector thresholds ..... | 1502 |
| Figure 352. Trigger logic for DFLT and CKGEN ..... | 1504 |
| Figure 353. Asynchronous continuous mode (ACQMOD[2:0] = 0) ..... | 1505 |
| Figure 354. Asynchronous single-shot mode (ACQMOD[2:0] = 001) ..... | 1506 |
| Figure 355. Synchronous continuous mode (ACQMOD[2:0] = 010) ..... | 1507 |
| Figure 356. Synchronous single-shot mode (ACQMOD[2:0] = 011) ..... | 1508 |
| Figure 357. Window continuous mode (ACQMOD[2:0] = 100) ..... | 1509 |
| Figure 358. Snapshot mode example ..... | 1511 |
| Figure 359. Discard function example ..... | 1512 |
| Figure 360. Start sequence with DFLTEN, in continuous mode, audio configuration ..... | 1513 |
| Figure 361. Start sequence with trigger input, in continuous mode, motor configuration ..... | 1514 |
| Figure 362. Break interface simplified view ..... | 1515 |
| Figure 363. MDF_DFLTxD data format ..... | 1515 |
| Figure 364. Data resynchronization ..... | 1516 |
| Figure 365. Data transfer in interleaved-transfer mode ..... | 1517 |
| Figure 366. Data path for interleaved- and independent-transfer modes ..... | 1519 |
| Figure 367. Example of overflow and transfer to memory ..... | 1520 |
| Figure 368. MDF interrupt interface ..... | 1523 |
| Figure 369. Sensor connection examples ..... | 1528 |
| Figure 370. Global frequency response ..... | 1529 |
| Figure 371. Detailed frequency response ..... | 1529 |
| Figure 372. Simplified DFLT view with gain information ..... | 1531 |
| Figure 373. ADF block diagram ..... | 1559 |
| Figure 374. SITF overview ..... | 1561 |
| Figure 375. SPI timing example ..... | 1562 |
| Figure 376. Manchester timing example (SITFMOD = 11) ..... | 1563 |
| Figure 377. CKGEN overview ..... | 1566 |
| Figure 378. BSMX overview ..... | 1568 |
| Figure 379. DFLT overview ..... | 1569 |
| Figure 380. Programmable delay ..... | 1570 |
| Figure 381. CIC4 and CIC5 frequency response with decimation ratio = 32 or 16 ..... | 1571 |
| Figure 382. Reshape filter frequency response normalized (FRS / 2 = 1) ..... | 1577 |
| Figure 383. Trigger logic for DFLT and CKGEN ..... | 1579 |
| Figure 384. Asynchronous continuous mode (ACQMOD[2:0] = 0) ..... | 1580 |
| Figure 385. Asynchronous single-shot mode (ACQMOD[2:0] = 001) ..... | 1581 |
| Figure 386. Synchronous continuous mode (ACQMOD[2:0] = 010) ..... | 1582 |
| Figure 387. Synchronous single-shot mode (ACQMOD[2:0] = 011) ..... | 1583 |
| Figure 388. Window continuous mode (ACQMOD[2:0] = 100) ..... | 1584 |
| Figure 389. Discard function example ..... | 1586 |
| Figure 390. Start sequence with DFLTEN, in continuous mode, audio configuration ..... | 1586 |
| Figure 391. SAD block diagram ..... | 1587 |
| Figure 392. SAD flow diagram ..... | 1589 |
| Figure 393. SAD timing diagram example ..... | 1595 |
| Figure 394. | ADF_DFLTxD data format | 1595 |
| Figure 395. | Data resynchronization | 1596 |
| Figure 396. | Example of overflow and transfer to memory | 1597 |
| Figure 397. | ADF interrupt interface | 1600 |
| Figure 398. | Sensor connection examples | 1605 |
| Figure 399. | Global frequency response | 1605 |
| Figure 400. | Detailed frequency response | 1606 |
| Figure 401. | Simplified DFLT view with gain information | 1608 |
| Figure 402. | SAD example working with SADMOD = 01 | 1611 |
| Figure 403. | SAD example working with SADMOD = 1x | 1612 |
| Figure 404. | DCMI block diagram | 1632 |
| Figure 405. | DCMI signal waveforms | 1633 |
| Figure 406. | Timing diagram | 1635 |
| Figure 407. | Frame capture waveforms in snapshot mode | 1637 |
| Figure 408. | Frame capture waveforms in continuous grab mode | 1638 |
| Figure 409. | Coordinates and size of the window after cropping | 1638 |
| Figure 410. | Data capture waveforms | 1639 |
| Figure 411. | Pixel raster scan order | 1640 |
| Figure 412. | PSSI block diagram | 1654 |
| Figure 413. | Top-level block diagram | 1654 |
| Figure 414. | Data enable in receive mode waveform diagram (CKPOL=0) | 1658 |
| Figure 415. | Data enable waveform diagram in transmit mode (CKPOL=1) | 1658 |
| Figure 416. | Ready in receive mode waveform diagram (CKPOL=0) | 1659 |
| Figure 417. | Bidirectional PSSI_DE/PSSI_RDY waveform | 1660 |
| Figure 418. | Bidirectional PSSI_DE/PSSI_RDY connection diagram | 1660 |
| Figure 419. | LTDC block diagram | 1668 |
| Figure 420. | LTDC synchronous timings | 1671 |
| Figure 421. | Layer window programmable parameters | 1674 |
| Figure 422. | Blending two layers with background | 1676 |
| Figure 423. | Interrupt events | 1678 |
| Figure 424. | JPEG codec block diagram | 1699 |
| Figure 425. | CCB block diagram | 1721 |
| Figure 426. | CCB operation CPU → PKA + SAES (write) | 1723 |
| Figure 427. | CCB operation PKA → SAES | 1723 |
| Figure 428. | CCB operation SAES → PKA | 1723 |
| Figure 429. | CCB operation SAES → CCB | 1724 |
| Figure 430. | CCB operation RNG → PKA (write) | 1724 |
| Figure 431. | CCB operation RNG → SAES (write) | 1725 |
| Figure 432. | Blob creation scenarios | 1726 |
| Figure 433. | RNG block diagram | 1747 |
| Figure 434. | NIST SP800-90B entropy source model | 1748 |
| Figure 435. | RNG initialization overview | 1751 |
| Figure 436. | AES block diagram | 1767 |
| Figure 437. | Encryption/ decryption typical usage | 1769 |
| Figure 438. | Typical operation with authentication | 1771 |
| Figure 439. | Example of suspend mode management | 1772 |
| Figure 440. | ECB encryption | 1773 |
| Figure 441. | ECB decryption | 1773 |
| Figure 442. | CBC encryption | 1774 |
| Figure 443. | CBC decryption | 1774 |
| Figure 444. | Message construction in CTR mode | 1777 |
| Figure 445. | CTR encryption | 1777 |
| Figure 446. Message construction in GCM . . . . . | 1779 |
| Figure 447. GCM authenticated encryption . . . . . | 1780 |
| Figure 448. Message construction in GMAC mode . . . . . | 1783 |
| Figure 449. GMAC authentication mode . . . . . | 1784 |
| Figure 450. Message construction in CCM mode . . . . . | 1785 |
| Figure 451. CCM mode authenticated encryption . . . . . | 1786 |
| Figure 452. 128-bit block construction according to the data type. . . . . | 1791 |
| Figure 453. SAES block diagram. . . . . | 1813 |
| Figure 454. Encryption/ decryption typical usage . . . . . | 1815 |
| Figure 455. Typical operation with authentication . . . . . | 1817 |
| Figure 456. Example of suspend mode management . . . . . | 1818 |
| Figure 457. ECB encryption. . . . . | 1819 |
| Figure 458. ECB decryption. . . . . | 1819 |
| Figure 459. CBC encryption. . . . . | 1820 |
| Figure 460. CBC decryption. . . . . | 1820 |
| Figure 461. Message construction in CTR mode. . . . . | 1823 |
| Figure 462. CTR encryption. . . . . | 1824 |
| Figure 463. Message construction in GCM . . . . . | 1825 |
| Figure 464. GCM authenticated encryption . . . . . | 1827 |
| Figure 465. Message construction in GMAC mode . . . . . | 1830 |
| Figure 466. GMAC authentication mode . . . . . | 1830 |
| Figure 467. Message construction in CCM mode . . . . . | 1831 |
| Figure 468. CCM mode authenticated encryption . . . . . | 1833 |
| Figure 469. Operation with wrapped keys for SAES in ECB and CBC modes . . . . . | 1836 |
| Figure 470. Operation with wrapped keys for SAES in CTR mode . . . . . | 1839 |
| Figure 471. Usage of Shared-key mode . . . . . | 1840 |
| Figure 472. 128-bit block construction according to the data type. . . . . | 1843 |
| Figure 473. Key protection mechanisms . . . . . | 1845 |
| Figure 474. HASH block diagram . . . . . | 1867 |
| Figure 475. Message data swapping feature. . . . . | 1870 |
| Figure 476. HASH suspend/resume mechanism. . . . . | 1876 |
| Figure 477. PKA block diagram . . . . . | 1891 |
| Figure 478. Chaining of PKA with SAES or RNG . . . . . | 1898 |
| Figure 479. OTFDEC block diagram . . . . . | 1930 |
| Figure 480. Typical OTFDEC use in a SoC . . . . . | 1931 |
| Figure 481. AES CTR decryption flow . . . . . | 1932 |
| Figure 482. OTFDEC flow control overview (dual burst read request) . . . . . | 1933 |
| Figure 483. Advanced-control timer block diagram . . . . . | 1953 |
| Figure 484. Counter timing diagram with prescaler division change from 1 to 2 . . . . . | 1960 |
| Figure 485. Counter timing diagram with prescaler division change from 1 to 4 . . . . . | 1960 |
| Figure 486. Counter timing diagram, internal clock divided by 1 . . . . . | 1962 |
| Figure 487. Counter timing diagram, internal clock divided by 2 . . . . . | 1962 |
| Figure 488. Counter timing diagram, internal clock divided by 4 . . . . . | 1963 |
| Figure 489. Counter timing diagram, internal clock divided by N. . . . . | 1963 |
| Figure 490. Counter timing diagram, update event when ARPE = 0 (TIMx_ARR not preloaded). . . . . | 1964 |
| Figure 491. Counter timing diagram, update event when ARPE = 1 (TIMx_ARR preloaded). . . . . | 1965 |
| Figure 492. Counter timing diagram, internal clock divided by 1 . . . . . | 1966 |
| Figure 493. Counter timing diagram, internal clock divided by 2 . . . . . | 1967 |
| Figure 494. Counter timing diagram, internal clock divided by 4 . . . . . | 1967 |
| Figure 495. Counter timing diagram, internal clock divided by N. . . . . | 1968 |
| Figure 496. | Counter timing diagram, update event when repetition counter is not used. .... | 1968 |
| Figure 497. | Counter timing diagram, internal clock divided by 1, TIMx_ARR = 0x6 .... | 1970 |
| Figure 498. | Counter timing diagram, internal clock divided by 2 .... | 1970 |
| Figure 499. | Counter timing diagram, internal clock divided by 4, TIMx_ARR = 0x36 .... | 1971 |
| Figure 500. | Counter timing diagram, internal clock divided by N. .... | 1971 |
| Figure 501. | Counter timing diagram, update event with ARPE = 1 (counter underflow) .... | 1972 |
| Figure 502. | Counter timing diagram, Update event with ARPE = 1 (counter overflow) .... | 1973 |
| Figure 503. | Update rate examples depending on mode and TIMx_RCR register settings .... | 1974 |
| Figure 505. | Control circuit in normal mode, internal clock divided by 1. .... | 1976 |
| Figure 506. | tim_ti2 external clock connection example. .... | 1976 |
| Figure 507. | Control circuit in external clock mode 1. .... | 1977 |
| Figure 508. | External trigger input block. .... | 1978 |
| Figure 509. | Control circuit in external clock mode 2. .... | 1979 |
| Figure 510. | Capture/compare channel (example: channel 1 input stage). .... | 1979 |
| Figure 511. | Capture/compare channel 1 main circuit. .... | 1980 |
| Figure 512. | Output stage of capture/compare channel (channel 1, idem ch. 2, 3 and 4) .... | 1981 |
| Figure 513. | Output stage of capture/compare channel (channel 5, idem ch. 6) .... | 1981 |
| Figure 514. | PWM input mode timing. .... | 1984 |
| Figure 515. | Output compare mode, toggle on tim_oc1. .... | 1986 |
| Figure 516. | Edge-aligned PWM waveforms (ARR = 8) .... | 1987 |
| Figure 517. | Center-aligned PWM waveforms (ARR = 8). .... | 1988 |
| Figure 518. | Dithering principle. .... | 1989 |
| Figure 519. | Data format and register coding in dithering mode. .... | 1990 |
| Figure 520. | PWM resolution vs frequency. .... | 1991 |
| Figure 521. | PWM dithering pattern. .... | 1992 |
| Figure 522. | Dithering effect on duty cycle in center-aligned PWM mode. .... | 1993 |
| Figure 523. | Generation of 2 phase-shifted PWM signals with 50% duty cycle. .... | 1995 |
| Figure 524. | Combined PWM mode on channel 1 and 3. .... | 1996 |
| Figure 525. | 3-phase combined PWM signals with multiple trigger pulses per period. .... | 1997 |
| Figure 526. | Complementary output with symmetrical dead-time insertion. .... | 1998 |
| Figure 527. | Asymmetrical deadtime. .... | 1999 |
| Figure 528. | Dead-time waveforms with delay greater than the negative pulse. .... | 1999 |
| Figure 529. | Dead-time waveforms with delay greater than the positive pulse. .... | 1999 |
| Figure 530. | Break and Break2 circuitry overview. .... | 2002 |
| Figure 531. | Various output behavior in response to a break event on tim_brk (OSSI = 1) .... | 2004 |
| Figure 532. | PWM output state following tim_brk and tim_brk2 assertion (OSSI = 1) .... | 2005 |
| Figure 533. | PWM output state following tim_brk assertion (OSSI = 0) .... | 2006 |
| Figure 534. | Output redirection (tim_brk2 request not represented). .... | 2007 |
| Figure 535. | tim_ocref_clr input selection multiplexer. .... | 2008 |
| Figure 536. | Clearing TIMx tim_ocxref. .... | 2009 |
| Figure 537. | 6-step generation, COM example (OSSR = 1). .... | 2010 |
| Figure 538. | Example of one pulse mode. .... | 2011 |
| Figure 539. | Retriggerable one-pulse mode. .... | 2012 |
| Figure 540. | Pulse generator circuitry. .... | 2013 |
| Figure 541. | Pulse generation on compare event, for edge-aligned and encoder modes. .... | 2014 |
| Figure 542. | Extended pulsewidth in case of concurrent triggers. .... | 2015 |
| Figure 543. | Example of counter operation in encoder interface mode. .... | 2017 |
| Figure 544. | Example of encoder interface mode with tim_ti1fp1 polarity inverted. .... | 2017 |
| Figure 545. | Quadrature encoder counting modes. .... | 2018 |
| Figure 546. | Direction plus clock encoder mode. .... | 2019 |
| Figure 547. | Directional clock encoder mode (CC1P = CC2P = 0). .... | 2019 |
| Figure 548. | Directional clock encoder mode (CC1P = CC2P = 1). .... | 2020 |
| Figure 549. Index gating options ..... | 2021 |
| Figure 550. Jittered Index signals ..... | 2021 |
| Figure 551. Index generation for IPOS[1:0] = 11 ..... | 2022 |
| Figure 552. Counter reading with index gated on channel A (IPOS[1:0] = 11) ..... | 2022 |
| Figure 553. Counter reading with index ungated (IPOS[1:0] = 00) ..... | 2023 |
| Figure 554. Counter reading with index gated on channel A and B. .... | 2023 |
| Figure 555. Encoder mode behavior in case of narrow index pulse (IPOS[1:0] = 11) ..... | 2024 |
| Figure 556. Counter reset Narrow index pulse (closer view, ARR = 0x07) ..... | 2025 |
| Figure 557. Index behavior in x1 and x2 mode (IPOS[1:0] = 01) ..... | 2026 |
| Figure 558. Directional index sensitivity. .... | 2026 |
| Figure 559. Counter reset as function of FIDX bit setting ..... | 2027 |
| Figure 560. Index blanking. .... | 2027 |
| Figure 561. Index behavior in clock + direction mode, IPOS[0] = 1 ..... | 2028 |
| Figure 562. Index behavior in directional clock mode, IPOS[0] = 1 ..... | 2028 |
| Figure 563. State diagram for quadrature encoded signals. .... | 2029 |
| Figure 564. Up-counting encoder error detection ..... | 2030 |
| Figure 565. Down-counting encode error detection. .... | 2031 |
| Figure 566. Encoder mode change with preload transferred on update (SMSPS = 0) ..... | 2032 |
| Figure 567. Measuring time interval between edges on three signals. .... | 2033 |
| Figure 568. Example of Hall sensor interface ..... | 2035 |
| Figure 569. Control circuit in reset mode ..... | 2036 |
| Figure 570. Control circuit in Gated mode ..... | 2037 |
| Figure 571. Control circuit in trigger mode. .... | 2038 |
| Figure 572. Control circuit in external clock mode 2 + trigger mode ..... | 2039 |
| Figure 573. General-purpose timer block diagram ..... | 2097 |
| Figure 574. Counter timing diagram with prescaler division change from 1 to 2 ..... | 2103 |
| Figure 575. Counter timing diagram with prescaler division change from 1 to 4 ..... | 2103 |
| Figure 576. Counter timing diagram, internal clock divided by 1 ..... | 2104 |
| Figure 577. Counter timing diagram, internal clock divided by 2 ..... | 2105 |
| Figure 578. Counter timing diagram, internal clock divided by 4 ..... | 2105 |
| Figure 579. Counter timing diagram, internal clock divided by N. .... | 2106 |
| Figure 580. Counter timing diagram, Update event when ARPE = 0 (TIMx_ARR not preloaded). .. | 2106 |
| Figure 581. Counter timing diagram, Update event when ARPE = 1 (TIMx_ARR preloaded). .... | 2107 |
| Figure 582. Counter timing diagram, internal clock divided by 1 ..... | 2108 |
| Figure 583. Counter timing diagram, internal clock divided by 2 ..... | 2109 |
| Figure 584. Counter timing diagram, internal clock divided by 4 ..... | 2109 |
| Figure 585. Counter timing diagram, internal clock divided by N. .... | 2110 |
| Figure 586. Counter timing diagram, Update event. .... | 2110 |
| Figure 587. Counter timing diagram, internal clock divided by 1, TIMx_ARR = 0x6 ..... | 2112 |
| Figure 588. Counter timing diagram, internal clock divided by 2 ..... | 2112 |
| Figure 589. Counter timing diagram, internal clock divided by 4, TIMx_ARR = 0x36 ..... | 2113 |
| Figure 590. Counter timing diagram, internal clock divided by N. .... | 2113 |
| Figure 591. Counter timing diagram, Update event with ARPE = 1 (counter underflow). .... | 2114 |
| Figure 592. Counter timing diagram, Update event with ARPE = 1 (counter overflow). .... | 2115 |
| Figure 593. Control circuit in normal mode, internal clock divided by 1. .... | 2116 |
| Figure 594. tim_ti2 external clock connection example ..... | 2116 |
| Figure 595. Control circuit in external clock mode 1 ..... | 2117 |
| Figure 596. External trigger input block ..... | 2118 |
| Figure 597. Control circuit in external clock mode 2 ..... | 2119 |
| Figure 598. Capture/compare channel (example: channel 1 input stage) ..... | 2119 |
| Figure 599. Capture/compare channel 1 main circuit ..... | 2120 |
| Figure 600. Output stage of capture/compare channel (channel 1, idem ch.2, 3 and 4) ..... | 2120 |
| Figure 601. PWM input mode timing . . . . . | 2123 |
| Figure 602. Output compare mode, toggle on tim_oc1 . . . . . | 2125 |
| Figure 603. Edge-aligned PWM waveforms (ARR = 8) . . . . . | 2126 |
| Figure 604. Center-aligned PWM waveforms (ARR = 8) . . . . . | 2127 |
| Figure 605. Dithering principle . . . . . | 2128 |
| Figure 606. Data format and register coding in dithering mode . . . . . | 2129 |
| Figure 607. PWM resolution vs frequency (16-bit mode) . . . . . | 2130 |
| Figure 608. PWM resolution vs frequency (32-bit mode) . . . . . | 2130 |
| Figure 609. PWM dithering pattern . . . . . | 2131 |
| Figure 610. Dithering effect on duty cycle in center-aligned PWM mode . . . . . | 2132 |
| Figure 611. Generation of two phase-shifted PWM signals with 50% duty cycle . . . . . | 2134 |
| Figure 612. Combined PWM mode on channels 1 and 3 . . . . . | 2135 |
| Figure 613. OCREF_CLR input selection multiplexer . . . . . | 2136 |
| Figure 614. Clearing TIMx tim_ocxref . . . . . | 2136 |
| Figure 615. Example of One-pulse mode . . . . . | 2137 |
| Figure 616. Retriggerable one-pulse mode . . . . . | 2139 |
| Figure 617. Pulse generator circuitry . . . . . | 2140 |
| Figure 618. Pulse generation on compare event, for edge-aligned and encoder modes . . . . . | 2140 |
| Figure 619. Extended pulse width in case of concurrent triggers . . . . . | 2141 |
| Figure 620. Example of counter operation in encoder interface mode . . . . . | 2143 |
| Figure 621. Example of encoder interface mode with tim_ti1fp1 polarity inverted . . . . . | 2143 |
| Figure 622. Quadrature encoder counting modes . . . . . | 2144 |
| Figure 623. Direction plus clock encoder mode . . . . . | 2145 |
| Figure 624. Directional clock encoder mode (CC1P = CC2P = 0) . . . . . | 2146 |
| Figure 625. Directional clock encoder mode (CC1P = CC2P = 1) . . . . . | 2146 |
| Figure 626. Index gating options . . . . . | 2148 |
| Figure 627. Jittered Index signals . . . . . | 2148 |
| Figure 628. Index generation for IPOS[1:0] = 11 . . . . . | 2149 |
| Figure 629. Counter reading with index gated on channel A (IPOS[1:0] = 11) . . . . . | 2149 |
| Figure 630. Counter reading with index ungated (IPOS[1:0] = 00) . . . . . | 2150 |
| Figure 631. Counter reading with index gated on channel A and B . . . . . | 2150 |
| Figure 632. Encoder mode behavior in case of narrow index pulse (IPOS[1:0] = 11) . . . . . | 2151 |
| Figure 633. Counter reset Narrow index pulse (closer view, ARR = 0x07) . . . . . | 2152 |
| Figure 634. Index behavior in x1 and x2 mode (IPOS[1:0] = 01) . . . . . | 2153 |
| Figure 635. Directional index sensitivity . . . . . | 2153 |
| Figure 636. Counter reset as function of FIDX bit setting . . . . . | 2154 |
| Figure 637. Index blanking . . . . . | 2154 |
| Figure 638. Index behavior in clock + direction mode, IPOS[0] = 1 . . . . . | 2155 |
| Figure 639. Index behavior in directional clock mode, IPOS[0] = 1 . . . . . | 2155 |
| Figure 640. State diagram for quadrature encoded signals . . . . . | 2156 |
| Figure 641. Up-counting encoder error detection . . . . . | 2157 |
| Figure 642. Down-counting encode error detection . . . . . | 2158 |
| Figure 643. Encoder mode change with preload transferred on update (SMSPS = 0) . . . . . | 2159 |
| Figure 644. Control circuit in reset mode . . . . . | 2161 |
| Figure 645. Control circuit in gated mode . . . . . | 2162 |
| Figure 646. Control circuit in trigger mode . . . . . | 2162 |
| Figure 647. Control circuit in external clock mode 2 + trigger mode . . . . . | 2164 |
| Figure 648. Master/Slave timer example . . . . . | 2164 |
| Figure 649. Master/slave connection example with 1 channel only timers . . . . . | 2165 |
| Figure 650. Gating TIM_slv with tim_oc1ref of TIM_mstr . . . . . | 2166 |
| Figure 651. Gating TIM_slv with Enable of TIM_mstr . . . . . | 2167 |
| Figure 652. Triggering TIM_slv with update of TIM_mstr . . . . . | 2168 |
| Figure 653. Triggering TIM_slv with Enable of TIM_mstr . . . . . | 2168 |
| Figure 654. Triggering TIM_mstr and TIM_slv with TIM_mstr tim_ti1 input. . . . . | 2169 |
| Figure 655. Basic timer block diagram. . . . . | 2213 |
| Figure 656. Control circuit in normal mode, internal clock divided by 1 . . . . . | 2214 |
| Figure 657. Counter timing diagram with prescaler division change from 1 to 2 . . . . . | 2215 |
| Figure 658. Counter timing diagram with prescaler division change from 1 to 4 . . . . . | 2216 |
| Figure 659. Counter timing diagram, internal clock divided by 1 . . . . . | 2217 |
| Figure 660. Counter timing diagram, internal clock divided by 2 . . . . . | 2217 |
| Figure 661. Counter timing diagram, internal clock divided by 4 . . . . . | 2218 |
| Figure 662. Counter timing diagram, internal clock divided by N . . . . . | 2218 |
| Figure 663. Counter timing diagram, update event when ARPE = 0 (TIMx_ARR not preloaded). . . . . | 2219 |
| Figure 664. Counter timing diagram, update event when ARPE = 1 (TIMx_ARR preloaded). . . . . | 2220 |
| Figure 665. Dithering principle . . . . . | 2221 |
| Figure 666. Data format and register coding in dithering mode . . . . . | 2221 |
| Figure 667. FCnt resolution vs frequency . . . . . | 2222 |
| Figure 668. PWM dithering pattern . . . . . | 2222 |
| Figure 669. General-purpose timer block diagram (TIM12). . . . . | 2233 |
| Figure 670. General-purpose timer block diagram (TIM13/TIM14) . . . . . | 2234 |
| Figure 671. Counter timing diagram with prescaler division change from 1 to 2 . . . . . | 2238 |
| Figure 672. Counter timing diagram with prescaler division change from 1 to 4 . . . . . | 2238 |
| Figure 673. Counter timing diagram, internal clock divided by 1 . . . . . | 2239 |
| Figure 674. Counter timing diagram, internal clock divided by 2 . . . . . | 2240 |
| Figure 675. Counter timing diagram, internal clock divided by 4 . . . . . | 2240 |
| Figure 676. Counter timing diagram, internal clock divided by N . . . . . | 2241 |
| Figure 677. Counter timing diagram, update event when ARPE = 0 (TIMx_ARR not preloaded). . . . . | 2241 |
| Figure 678. Counter timing diagram, update event when ARPE = 1 (TIMx_ARR preloaded). . . . . | 2242 |
| Figure 679. Control circuit in normal mode, internal clock divided by 1 . . . . . | 2243 |
| Figure 680. tim_ti2 external clock connection example . . . . . | 2243 |
| Figure 681. Control circuit in external clock mode 1 . . . . . | 2244 |
| Figure 682. Capture/compare channel 1 input stage (TIM13/TIM14) . . . . . | 2245 |
| Figure 683. Capture/compare channel 1 input stage (TIM12) . . . . . | 2245 |
| Figure 684. Capture/compare channel 1 main circuit . . . . . | 2246 |
| Figure 685. Output stage of capture/compare channel 1. . . . . | 2246 |
| Figure 686. PWM input mode timing . . . . . | 2248 |
| Figure 687. Output compare mode, toggle on tim_oc1. . . . . | 2250 |
| Figure 688. Edge-aligned PWM waveforms (ARR = 8) . . . . . | 2251 |
| Figure 689. Dithering principle . . . . . | 2252 |
| Figure 690. Data format and register coding in dithering mode . . . . . | 2252 |
| Figure 691. PWM resolution vs frequency . . . . . | 2253 |
| Figure 692. PWM dithering pattern . . . . . | 2254 |
| Figure 693. Combined PWM mode on channel 1 and 2 . . . . . | 2256 |
| Figure 694. Example of one pulse mode . . . . . | 2257 |
| Figure 695. Retriggerable one pulse mode . . . . . | 2258 |
| Figure 696. Measuring time interval between edges on 2 signals . . . . . | 2259 |
| Figure 697. Control circuit in reset mode . . . . . | 2260 |
| Figure 698. Control circuit in gated mode . . . . . | 2261 |
| Figure 699. Control circuit in trigger mode . . . . . | 2261 |
| Figure 700. TIM15 block diagram . . . . . | 2295 |
| Figure 701. | TIM16/TIM17 block diagram . . . . . | 2296 |
| Figure 702. | Counter timing diagram with prescaler division change from 1 to 2 . . . . . | 2301 |
| Figure 703. | Counter timing diagram with prescaler division change from 1 to 4 . . . . . | 2301 |
| Figure 704. | Counter timing diagram, internal clock divided by 1 . . . . . | 2303 |
| Figure 705. | Counter timing diagram, internal clock divided by 2 . . . . . | 2303 |
| Figure 706. | Counter timing diagram, internal clock divided by 4 . . . . . | 2304 |
| Figure 707. | Counter timing diagram, internal clock divided by N . . . . . | 2304 |
| Figure 708. | Counter timing diagram, update event when ARPE = 0 (TIMx_ARR not preloaded) . . . . . | 2305 |
| Figure 709. | Counter timing diagram, update event when ARPE = 1 (TIMx_ARR preloaded) . . . . . | 2306 |
| Figure 710. | Update rate examples depending on mode and TIMx_RCR register settings . . . . . | 2307 |
| Figure 711. | Control circuit in normal mode, internal clock divided by 1 . . . . . | 2308 |
| Figure 712. | tim_ti2 external clock connection example . . . . . | 2308 |
| Figure 713. | Control circuit in external clock mode 1 . . . . . | 2309 |
| Figure 714. | Capture/compare channel (example: channel 1 input stage) . . . . . | 2310 |
| Figure 715. | Capture/compare channel 1 main circuit . . . . . | 2310 |
| Figure 716. | Output stage of capture/compare channel (channel 1) . . . . . | 2311 |
| Figure 717. | Output stage of capture/compare channel (channel 2 for TIM15) . . . . . | 2311 |
| Figure 718. | PWM input mode timing . . . . . | 2314 |
| Figure 719. | Output compare mode, toggle on tim_oc1 . . . . . | 2316 |
| Figure 720. | Edge-aligned PWM waveforms (ARR = 8) . . . . . | 2317 |
| Figure 721. | Dithering principle . . . . . | 2318 |
| Figure 722. | Data format and register coding in dithering mode . . . . . | 2318 |
| Figure 723. | PWM resolution vs frequency . . . . . | 2319 |
| Figure 724. | PWM dithering pattern . . . . . | 2320 |
| Figure 725. | Combined PWM mode on channel 1 and 2 . . . . . | 2322 |
| Figure 726. | Complementary output with symmetrical dead-time insertion . . . . . | 2323 |
| Figure 727. | Asymmetrical deadtime . . . . . | 2324 |
| Figure 728. | Dead-time waveforms with delay greater than the negative pulse . . . . . | 2324 |
| Figure 729. | Dead-time waveforms with delay greater than the positive pulse . . . . . | 2324 |
| Figure 730. | Break circuitry overview . . . . . | 2326 |
| Figure 731. | Output behavior in response to a break event on tim_brk . . . . . | 2328 |
| Figure 732. | Output redirection . . . . . | 2330 |
| Figure 733. | tim_ocref_clr input selection multiplexer . . . . . | 2331 |
| Figure 734. | 6-step generation, COM example (OSSR = 1) . . . . . | 2332 |
| Figure 735. | Example of one pulse mode . . . . . | 2333 |
| Figure 736. | Retriggerable one pulse mode . . . . . | 2335 |
| Figure 737. | Measuring time interval between edges on 2 signals . . . . . | 2335 |
| Figure 738. | Control circuit in reset mode . . . . . | 2336 |
| Figure 739. | Control circuit in gated mode . . . . . | 2337 |
| Figure 740. | Control circuit in trigger mode . . . . . | 2338 |
| Figure 741. | LPTIM1/2/3/5/6 block diagram(1) . . . . . | 2402 |
| Figure 742. | LPTIM4 block diagram(1) . . . . . | 2403 |
| Figure 743. | Glitch filter timing diagram . . . . . | 2407 |
| Figure 744. | LPTIM output waveform, single-counting mode configuration when repetition register content is different than zero (with PRELOAD = 1) . . . . . | 2409 |
| Figure 745. | LPTIM output waveform, single-counting mode configuration and Set-once mode activated (WAVE bit is set) . . . . . | 2410 |
| Figure 746. | LPTIM output waveform, Continuous counting mode configuration . . . . . | 2410 |
| Figure 747. | Waveform generation . . . . . | 2412 |
| Figure 748. | Encoder mode counting sequence . . . . . | 2416 |
| Figure 749. Continuous counting mode when repetition register LPTIM_RCR different from zero (with PRELOAD = 1) . . . . . | 2417 |
| Figure 750. Capture/compare input stage (channel 1) . . . . . | 2418 |
| Figure 751. Capture/compare output stage (channel 1) . . . . . | 2418 |
| Figure 752. Edge-aligned PWM mode (PRELOAD = 1) . . . . . | 2420 |
| Figure 753. Edge-aligned PWM waveforms (ARR=8 and CCxP = 0) . . . . . | 2421 |
| Figure 754. PWM mode with immediate update versus preloaded update . . . . . | 2422 |
| Figure 755. Independent watchdog block diagram . . . . . | 2452 |
| Figure 756. Reset timing due to timeout . . . . . | 2454 |
| Figure 757. Reset timing due to refresh in the not allowed area . . . . . | 2455 |
| Figure 758. Changing PR, RL, and performing a refresh(1) . . . . . | 2456 |
| Figure 759. Window comparator update(1) . . . . . | 2457 |
| Figure 760. Independent watchdog interrupt timing diagram . . . . . | 2459 |
| Figure 761. Early wake-up comparator update(1) . . . . . | 2460 |
| Figure 762. Watchdog block diagram . . . . . | 2468 |
| Figure 763. Window watchdog timing diagram . . . . . | 2470 |
| Figure 764. RTC block diagram . . . . . | 2476 |
| Figure 765. TAMP block diagram . . . . . | 2534 |
| Figure 766. Backup registers protection zones . . . . . | 2539 |
| Figure 767. Tamper sampling with precharge pulse . . . . . | 2544 |
| Figure 768. Low level detection with precharge and filtering . . . . . | 2544 |
| Figure 769. Active tamper filtering . . . . . | 2547 |
| Figure 770. Block diagram . . . . . | 2582 |
| Figure 771. I2C-bus protocol . . . . . | 2584 |
| Figure 772. Setup and hold timings . . . . . | 2586 |
| Figure 773. I2C initialization flow . . . . . | 2588 |
| Figure 774. Data reception . . . . . | 2589 |
| Figure 775. Data transmission . . . . . | 2590 |
| Figure 776. Target initialization flow . . . . . | 2593 |
| Figure 777. Transfer sequence flow for I2C target transmitter, NOSTRETCH = 0 . . . . . | 2595 |
| Figure 778. Transfer sequence flow for I2C target transmitter, NOSTRETCH = 1 . . . . . | 2596 |
| Figure 779. Transfer bus diagrams for I2C target transmitter (mandatory events only) . . . . . | 2597 |
| Figure 780. Transfer sequence flow for I2C target receiver, NOSTRETCH = 0 . . . . . | 2598 |
| Figure 781. Transfer sequence flow for I2C target receiver, NOSTRETCH = 1 . . . . . | 2599 |
| Figure 782. Transfer bus diagrams for I2C target receiver (mandatory events only) . . . . . | 2599 |
| Figure 783. Controller clock generation . . . . . | 2601 |
| Figure 784. Controller initialization flow . . . . . | 2603 |
| Figure 785. 10-bit address read access with HEAD10R = 0 . . . . . | 2603 |
| Figure 786. 10-bit address read access with HEAD10R = 1 . . . . . | 2604 |
| Figure 787. Transfer sequence flow for I2C controller transmitter, N ≤ 255 bytes . . . . . | 2605 |
| Figure 788. Transfer sequence flow for I2C controller transmitter, N > 255 bytes . . . . . | 2606 |
| Figure 789. Transfer bus diagrams for I2C controller transmitter (mandatory events only) . . . . . | 2607 |
| Figure 790. Transfer sequence flow for I2C controller receiver, N ≤ 255 bytes . . . . . | 2609 |
| Figure 791. Transfer sequence flow for I2C controller receiver, N > 255 bytes . . . . . | 2610 |
| Figure 792. Transfer bus diagrams for I2C controller receiver (mandatory events only) . . . . . | 2611 |
| Figure 793. Timeout intervals for tLOW:SEXT, tLOW:MEXT . . . . . | 2615 |
| Figure 794. Transfer sequence flow for SMBus target transmitter N bytes + PEC . . . . . | 2618 |
| Figure 795. Transfer bus diagram for SMBus target transmitter (SBC = 1) . . . . . | 2619 |
| Figure 796. Transfer sequence flow for SMBus target receiver N bytes + PEC . . . . . | 2620 |
| Figure 797. Bus transfer diagrams for SMBus target receiver (SBC = 1) ..... | 2621 |
| Figure 798. Bus transfer diagrams for SMBus controller transmitter ..... | 2622 |
| Figure 799. Bus transfer diagrams for SMBus controller receiver ..... | 2624 |
| Figure 800. I3C block diagram ..... | 2648 |
| Figure 801. I3C (primary) controller state and programming sequence diagram ..... | 2653 |
| Figure 802. I3C target state and programing sequence diagram ..... | 2658 |
| Figure 803. I3C CCC messages, as controller ..... | 2672 |
| Figure 804. I3C broadcast ENTDAA CCC, as controller ..... | 2673 |
| Figure 805. I3C broadcast, direct read and direct write RSTACT CCC, as controller ..... | 2674 |
| Figure 806. I3C CCC messages, as target ..... | 2676 |
| Figure 807. I3C broadcast ENTDAA CCC, as target ..... | 2677 |
| Figure 808. I3C broadcast DEFTGTS CCC, as target ..... | 2678 |
| Figure 809. I3C broadcast DEFGRPA CCC, as target ..... | 2679 |
| Figure 810. I3C private read/write messages, as controller ..... | 2681 |
| Figure 811. I3C private read/write messages, as target ..... | 2682 |
| Figure 812. Legacy I2C read/write messages, as controller ..... | 2683 |
| Figure 813. IBI transfer, as controller/target ..... | 2684 |
| Figure 814. Hot-join request transfer, as controller/target ..... | 2686 |
| Figure 815. Controller-role request transfer, as controller/target ..... | 2687 |
| Figure 816. C-FIFO management, as controller ..... | 2688 |
| Figure 817. TX-FIFO management, as controller ..... | 2690 |
| Figure 818. RX-FIFO management, as controller ..... | 2692 |
| Figure 819. S-FIFO management, as controller ..... | 2695 |
| Figure 820. RX-FIFO management, as target on the I3C bus ..... | 2696 |
| Figure 821. TX-FIFO management with I3C_TGTTDR, as target on the I3C bus ..... | 2698 |
| Figure 822. TX-FIFO management by software without I3C_TGTTDR if reading less bytes than TX-FIFO size, as target ..... | 2700 |
| Figure 823. USART block diagram ..... | 2755 |
| Figure 824. Word length programming ..... | 2759 |
| Figure 825. Configurable stop bits ..... | 2761 |
| Figure 826. TC/TXE behavior when transmitting ..... | 2763 |
| Figure 827. Start bit detection when oversampling by 16 or 8 ..... | 2764 |
| Figure 828. usart_ker_ck clock divider block diagram ..... | 2767 |
| Figure 829. Data sampling when oversampling by 16 ..... | 2768 |
| Figure 830. Data sampling when oversampling by 8 ..... | 2769 |
| Figure 831. Mute mode using Idle line detection ..... | 2776 |
| Figure 832. Mute mode using address mark detection ..... | 2777 |
| Figure 833. Break detection in LIN mode (11-bit break length - LBDL bit is set) ..... | 2780 |
| Figure 834. Break detection in LIN mode vs. Framing error detection ..... | 2781 |
| Figure 835. USART example of synchronous master transmission ..... | 2782 |
| Figure 836. USART data clock timing diagram in synchronous master mode (M bits = 00) ..... | 2782 |
| Figure 837. USART data clock timing diagram in synchronous master mode (M bits = 01) ..... | 2783 |
| Figure 838. USART data clock timing diagram in synchronous slave mode (M bits = 00) ..... | 2784 |
| Figure 839. ISO 7816-3 asynchronous protocol ..... | 2786 |
| Figure 840. Parity error detection using the 1.5 stop bits ..... | 2788 |
| Figure 841. IrDA SIR ENDEC block diagram ..... | 2792 |
| Figure 842. IrDA data modulation (3/16) - normal mode ..... | 2792 |
| Figure 843. Transmission using DMA ..... | 2794 |
| Figure 844. Reception using DMA ..... | 2795 |
| Figure 845. Hardware flow control between two USARTs..... | 2795 |
| Figure 846. RS232 RTS flow control ..... | 2796 |
| Figure 847. RS232 CTS flow control ..... | 2797 |
| Figure 848. Wake-up event verified (wake-up event = address match, FIFO disabled) ..... | 2800 |
| Figure 849. Wake-up event not verified (wake-up event = address match, FIFO disabled) ..... | 2800 |
| Figure 850. LPUART block diagram ..... | 2845 |
| Figure 851. LPUART word length programming ..... | 2848 |
| Figure 852. Configurable stop bits..... | 2850 |
| Figure 853. TC/TXE behavior when transmitting ..... | 2852 |
| Figure 854. lpuart_ker_ck clock divider block diagram ..... | 2856 |
| Figure 855. Mute mode using Idle line detection ..... | 2860 |
| Figure 856. Mute mode using address mark detection ..... | 2861 |
| Figure 857. Transmission using DMA ..... | 2863 |
| Figure 858. Reception using DMA..... | 2864 |
| Figure 859. Hardware flow control between two LPUARTs..... | 2865 |
| Figure 860. RS232 RTS flow control ..... | 2865 |
| Figure 861. RS232 CTS flow control ..... | 2866 |
| Figure 862. Wake-up event verified (wake-up event = address match, FIFO disabled) ..... | 2869 |
| Figure 863. Wake-up event not verified (wake-up event = address match, FIFO disabled) ..... | 2869 |
| Figure 864. SPI/I2S block diagram ..... | 2901 |
| Figure 865. Full-duplex single master/ single slave application..... | 2904 |
| Figure 866. Half-duplex single master/ single slave application ..... | 2905 |
| Figure 867. Simplex single master / single slave application (master in transmit-only / slave in receive-only mode) ..... | 2906 |
| Figure 868. Master and three independent slaves connected in star topology ..... | 2907 |
| Figure 869. Master and three slaves connected in circular (daisy chain) topology ..... | 2909 |
| Figure 870. Multimaster application..... | 2910 |
| Figure 871. Scheme of NSS control logic ..... | 2912 |
| Figure 872. Data flow timing control (SSOE = 1, SSOM = 0, SSM = 0) ..... | 2912 |
| Figure 873. NSS interleaving pulses between data (SSOE = 1, SSOM = 1, SSM = 0)..... | 2913 |
| Figure 874. Data clock timing diagram ..... | 2915 |
| Figure 875. Data alignment when data size is not equal to 8, 16 or 32 bits ..... | 2916 |
| Figure 876. TI mode transfer ..... | 2925 |
| Figure 877. Optional configurations of the slave behavior when an underrun condition is detected ..... | 2927 |
| Figure 878. Waveform examples..... | 2935 |
| Figure 879. Master I2S Philips protocol waveforms (16/32-bit full accuracy) ..... | 2936 |
| Figure 880. I2S Philips standard waveforms ..... | 2936 |
| Figure 881. Master MSB-justified 16- or 32-bit full-accuracy length ..... | 2937 |
| Figure 882. Master MSB-justified 16- or 24-bit data length ..... | 2937 |
| Figure 883. Slave MSB-justified 16-, 24- or 32-bit data length ..... | 2938 |
| Figure 884. LSB-justified 16 or 24-bit data length ..... | 2938 |
| Figure 885. Master PCM when the frame length is equal the data length..... | 2939 |
| Figure 886. Master PCM standard waveforms (16 or 24-bit data length) ..... | 2939 |
| Figure 887. Slave PCM waveforms ..... | 2940 |
| Figure 888. Startup sequence, I2S Philips standard, master..... | 2943 |
| Figure 889. Startup sequence, I2S Philips standard, slave..... | 2944 |
| Figure 890. Stop sequence, I2S Philips standard, master..... | 2944 |
| Figure 891. I2S clock generator architecture ..... | 2945 |
| Figure 892. Data Format ..... | 2947 |
| Figure 893. | Handling of underrun situation | 2949 |
| Figure 894. | Handling of overrun situation | 2950 |
| Figure 895. | Frame error detection, with FIXCH = 0 | 2951 |
| Figure 896. | Frame error detection, with FIXCH = 1 | 2951 |
| Figure 897. | SAI functional block diagram | 2977 |
| Figure 898. | Audio frame | 2981 |
| Figure 899. | FS role is start of frame + channel side identification (FSDEF = TRIS = 1) | 2983 |
| Figure 900. | FS role is start of frame (FSDEF = 0) | 2984 |
| Figure 901. | Slot size configuration with FBOFF = 0 in SAI_xSLOTR | 2985 |
| Figure 902. | First bit offset | 2985 |
| Figure 903. | Audio block clock generator overview | 2987 |
| Figure 904. | PDM typical connection and timing | 2991 |
| Figure 905. | Detailed PDM interface block diagram | 2992 |
| Figure 906. | Start-up sequence | 2993 |
| Figure 907. | SAI_ADR format in TDM mode, 32-bit slot width | 2994 |
| Figure 908. | SAI_ADR format in TDM mode, 16-bit slot width | 2995 |
| Figure 909. | SAI_ADR format in TDM mode, 8-bit slot width | 2996 |
| Figure 910. | AC'97 audio frame | 2999 |
| Figure 911. | Example of typical AC'97 configuration on devices featuring at least two embedded SAIs (three external AC'97 decoders) | 3000 |
| Figure 912. | SPDIF format | 3001 |
| Figure 913. | SAI_xDR register ordering | 3002 |
| Figure 914. | Data companding hardware in an audio block in the SAI | 3005 |
| Figure 915. | Tristate strategy on SD output line on an inactive slot | 3007 |
| Figure 916. | Tristate on output data line in a protocol like I2S | 3008 |
| Figure 917. | Overrun detection error | 3009 |
| Figure 918. | FIFO underrun event | 3009 |
| Figure 919. | CAN subsystem | 3044 |
| Figure 920. | FDCAN block diagram | 3046 |
| Figure 921. | Bit timing | 3048 |
| Figure 922. | Transceiver delay measurement | 3053 |
| Figure 923. | Pin control in bus monitoring mode | 3054 |
| Figure 924. | Pin control in loop-back mode | 3057 |
| Figure 925. | CAN error state diagram | 3058 |
| Figure 926. | Message RAM configuration | 3059 |
| Figure 927. | Standard message ID filter path | 3062 |
| Figure 928. | Extended message ID filter path | 3063 |
| Figure 929. | OTG_FS full-speed block diagram | 3113 |
| Figure 930. | OTG_FS A-B device connection | 3115 |
| Figure 931. | OTG_FS peripheral-only connection | 3116 |
| Figure 932. | OTG_FS host-only connection | 3120 |
| Figure 933. | SOF connectivity (SOF trigger output to TIM and ITR1 connection) | 3123 |
| Figure 934. | Updating OTG_HFIR dynamically (RLDCTRL = 1) | 3126 |
| Figure 935. | Device-mode FIFO address mapping and AHB FIFO access mapping | 3127 |
| Figure 936. | Host-mode FIFO address mapping and AHB FIFO access mapping | 3128 |
| Figure 937. | Interrupt hierarchy | 3132 |
| Figure 938. | Transmit FIFO write task | 3224 |
| Figure 939. | Receive FIFO read task | 3225 |
| Figure 940. | Normal bulk/control OUT/SETUP | 3226 |
| Figure 941. | Bulk/control IN transactions | 3230 |
| Figure 942. | Normal interrupt OUT | 3233 |
| Figure 943. | Normal interrupt IN | 3238 |
| Figure 944. Isochronous OUT transactions . . . . . | 3240 |
| Figure 945. Isochronous IN transactions . . . . . | 3243 |
| Figure 946. Receive FIFO packet read . . . . . | 3247 |
| Figure 947. Processing a SETUP packet . . . . . | 3249 |
| Figure 948. Bulk OUT transaction . . . . . | 3256 |
| Figure 949. TRDT max timing case . . . . . | 3266 |
| Figure 950. OTG_HS high-speed block diagram . . . . . | 3271 |
| Figure 951. OTG_HS A-B device connection . . . . . | 3273 |
| Figure 952. OTG_HS peripheral-only connection . . . . . | 3274 |
| Figure 953. OTG_HS host-only connection . . . . . | 3278 |
| Figure 954. SOF connectivity (SOF trigger output to TIM and ITR1 connection) . . . . . | 3281 |
| Figure 955. Updating OTG_HFIR dynamically (RLDCTRL = 1) . . . . . | 3283 |
| Figure 956. Device-mode FIFO address mapping and AHB FIFO access mapping . . . . . | 3284 |
| Figure 957. Host-mode FIFO address mapping and AHB FIFO access mapping . . . . . | 3285 |
| Figure 958. Interrupt hierarchy . . . . . | 3289 |
| Figure 959. Transmit FIFO write task . . . . . | 3382 |
| Figure 960. Receive FIFO read task . . . . . | 3383 |
| Figure 961. Normal bulk/control OUT/SETUP . . . . . | 3384 |
| Figure 962. Bulk/control IN transactions . . . . . | 3388 |
| Figure 963. Normal interrupt OUT . . . . . | 3391 |
| Figure 964. Normal interrupt IN . . . . . | 3396 |
| Figure 965. Isochronous OUT transactions . . . . . | 3398 |
| Figure 966. Isochronous IN transactions . . . . . | 3401 |
| Figure 967. Normal bulk/control OUT/SETUP transactions - DMA . . . . . | 3403 |
| Figure 968. Normal bulk/control IN transaction - DMA . . . . . | 3405 |
| Figure 969. Normal interrupt OUT transactions - DMA mode . . . . . | 3406 |
| Figure 970. Normal interrupt IN transactions - DMA mode . . . . . | 3407 |
| Figure 971. Normal isochronous OUT transaction - DMA mode . . . . . | 3408 |
| Figure 972. Normal isochronous IN transactions - DMA mode . . . . . | 3409 |
| Figure 973. Receive FIFO packet read . . . . . | 3415 |
| Figure 974. Processing a SETUP packet . . . . . | 3417 |
| Figure 975. Bulk OUT transaction . . . . . | 3424 |
| Figure 976. TRDT max timing case . . . . . | 3433 |
| Figure 977. UCPD block diagram . . . . . | 3437 |
| Figure 978. Clock division and timing elements . . . . . | 3438 |
| Figure 979. K-code transmission . . . . . | 3441 |
| Figure 980. Transmit order for various sizes of data . . . . . | 3442 |
| Figure 981. Packet format . . . . . | 3443 |
| Figure 982. Line format of Hard Reset . . . . . | 3443 |
| Figure 983. Line format of Cable Reset . . . . . | 3444 |
| Figure 984. BIST test data frame . . . . . | 3445 |
| Figure 985. BIST Carrier Mode 2 frame . . . . . | 3445 |
| Figure 986. UCPD BMC transmitter architecture . . . . . | 3446 |
| Figure 987. UCPD BMC receiver architecture . . . . . | 3447 |
| Figure 988. High-level Ethernet block diagram . . . . . | 3479 |
| Figure 989. DMA transmission flow (standard mode) . . . . . | 3482 |
| Figure 990. DMA transmission flow (OSP mode) . . . . . | 3484 |
| Figure 991. Receive DMA flow . . . . . | 3486 |
| Figure 992. Overview of MAC transmission flow . . . . . | 3490 |
| Figure 993. MAC reception flow . . . . . | 3492 |
| Figure 994. Packet filtering sequence . . . . . | 3496 |
| Figure 995. Networked time synchronization . . . . . | 3505 |
| Figure 996. Propagation delay calculation in clocks supporting peer-to-peer path correction | 3506 |
| Figure 997. System time update using fine correction method | 3516 |
| Figure 998. TCP segmentation offload overview | 3533 |
| Figure 999. TCP segmentation offload flow | 3534 |
| Figure 1000.Header and payload fields of segmented packets | 3537 |
| Figure 1001.Supported PHY interfaces | 3546 |
| Figure 1002.SMA Interface block | 3546 |
| Figure 1003.MDIO packet structure (Clause 45) | 3547 |
| Figure 1004.MDIO packet structure (Clause 22) | 3548 |
| Figure 1005.SMA write operation flow | 3550 |
| Figure 1006.Write data packet | 3551 |
| Figure 1007.Read data packet | 3551 |
| Figure 1008.Media independent interface (MII) signals | 3553 |
| Figure 1009.RMII block diagram | 3555 |
| Figure 1010.Transmission bit order | 3556 |
| Figure 1011.Receive bit order | 3557 |
| Figure 1012.LPI transitions (Transmit, 100 Mbds) | 3565 |
| Figure 1013.LPI Tx clock gating (when LPITCSE = 1) | 3566 |
| Figure 1014.LPI transitions (receive, 100 Mbit/s) | 3567 |
| Figure 1015.Descriptor ring structure | 3591 |
| Figure 1016.DMA descriptor ring | 3593 |
| Figure 1017.Descriptor tail pointer example 1 | 3593 |
| Figure 1018.Descriptor tail pointer example 2 | 3594 |
| Figure 1019.Transmit descriptor (read format) | 3595 |
| Figure 1020.Transmit descriptor write-back format | 3600 |
| Figure 1021.Transmit context descriptor format | 3604 |
| Figure 1022.Receive normal descriptor (read format) | 3608 |
| Figure 1023.Receive normal descriptor (write-back format) | 3611 |
| Figure 1024.Receive context descriptor | 3618 |
| Figure 1025.Generation of ETH_DMAISR flags | 3633 |
| Figure 1026.HDMI-CEC block diagram | 3755 |
| Figure 1027.Message structure | 3755 |
| Figure 1028.Blocks | 3756 |
| Figure 1029.Bit timings | 3756 |
| Figure 1030.Signal free time | 3757 |
| Figure 1031.Arbitration phase | 3757 |
| Figure 1032.SFT of three nominal bit periods | 3757 |
| Figure 1033.Error bit timing | 3758 |
| Figure 1034.Error handling | 3760 |
| Figure 1035.TXERR detection | 3761 |
| Figure 1036.Block diagram of debug support infrastructure | 3772 |
| Figure 1037.Product life cycle states and debug authentication | 3776 |
| Figure 1038.JTAG TAP state machine | 3780 |
| Figure 1039.CoreSight topology | 3801 |
| Figure 1040.Trace port interface unit (TPIU) | 3880 |
| Figure 1041.Embedded cross-trigger | 3892 |
Chapters
- 1. Documentation conventions
- 2. Memory and bus architecture
- 3. System security
- 4. Boot modes
- 5. Global TrustZone® controller (GTZC)
- 6. RAMs configuration controller (RAMCFG)
- 7. Embedded flash memory (FLASH)
- 8. Instruction cache (ICACHE)
- 9. Data cache (DCACHE)
- 10. Power control (PWR)
- 11. Reset and clock control (RCC)
- 12. Clock recovery system (CRS)
- 13. General-purpose I/Os (GPIO)
- 14. System configuration, boot, and security (SBS)
- 15. Peripherals interconnect matrix
- 16. General purpose direct memory access controller (GPDMA)
- 17. Chrom-ART2 accelerator controller (DMA2D)
- 18. Graphic timer (GFXTIM)
- 19. Nested vectored interrupt controller (NVIC)
- 20. Extended interrupts and event controller (EXTI)
- 21. Cyclic redundancy check calculation unit (CRC)
- 22. CORDIC coprocessor (CORDIC)
- 23. Filter math accelerator (FMAC)
- 24. Programmable logic array (PLAY)
- 25. Flexible memory controller (FMC)
- 26. Extended-SPI interface (OCTOSPI)
- 27. Extended-SPI I/O manager (OCTOSPIM)
- 28. Secure digital input/output MultiMediaCard interface (SDMMC)
- 29. Delay block (DLYB)
- 30. Analog-to-digital converters (ADC1/2/3)
- 31. Digital temperature sensor (DTS)
- 32. Digital-to-analog converter (DAC)
- 33. Voltage reference buffer (VREFBUF)
- 34. Operational amplifiers (OPAMP)
- 35. Comparator (COMP)
- 36. Multi-function digital filter (MDF)
- 37. Audio digital filter (ADF)
- 38. Digital camera interface (DCMI)
- 39. Parallel synchronous slave interface (PSSI)
- 40. LCD-TFT display controller (LTDC)
- 41. JPEG codec (JPEG)
- 42. Coupling and chaining bridge (CCB)
- 43. True random number generator (RNG)
- 44. AES hardware accelerator (AES)
- 45. Secure AES coprocessor (SAES)
- 46. Hash processor (HASH)
- 47. Public key accelerator (PKA)
- 48. On-the-fly decryption engine (OTFDEC)
- 49. Advanced-control timers (TIM1/TIM8)
- 50. General-purpose timers (TIM2/TIM3/TIM4/TIM5)
- 51. Basic timers (TIM6/TIM7)
- 52. General-purpose timers (TIM12/TIM13/TIM14)
- 53. General purpose timers (TIM15/TIM16/TIM17)
- 54. Low-power timer (LPTIM)
- 55. Independent watchdog (IWDG)
- 56. System window watchdog (WWDG)
- 57. Real-time clock (RTC)
- 58. Tamper and backup registers (TAMP)
- 59. Inter-integrated circuit interface (I2C)
- 60. Improved inter-integrated circuit (I3C)
- 61. Universal synchronous/asynchronous receiver transmitter (USART/UART)
- 62. Low-power universal asynchronous receiver transmitter (LPUART)
- 63. Serial peripheral interface (SPI)
- 64. Serial audio interface (SAI)
- 65. FD controller area network (FDCAN)
- 66. USB on-the-go full-speed (OTG_FS)
- 67. USB on-the-go high-speed (OTG_HS)
- 68. USB Type-C ® /USB Power Delivery interface (UCPD)
- 69. Ethernet (ETH): media access control (MAC) with DMA controller
- 70. HDMI-CEC controller (CEC)
- 71. Debug support (DBG)
- 72. Device electronic signature
- 73. Important security notice
- 74. Revision history
- Index