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.

Contents

1Documentation conventions128
1.1General information128
1.2List of abbreviations for registers128
1.3Register reset value129
1.4Glossary129
2Memory and bus architecture130
2.1System architecture130
2.1.1Fast C-bus131
2.1.2Slow C-bus131
2.1.3S-bus131
2.1.4DCACHE S-bus132
2.1.5GPDMA1 and GPDMA2 buses132
2.1.6SDMMC1 and SDMMC2 controllers DMA buses132
2.1.7OTG_HS bus132
2.1.8LTDC bus132
2.1.9Bus matrix132
2.1.10AHB/APB bridges132
2.1.11Ethernet MAC133
2.2TrustZone® security architecture133
2.2.1Default TrustZone® security state133
2.2.2TrustZone® peripheral classification134
2.3Memory organization140
2.3.1Introduction140
2.3.2Memory map and register boundary addresses141
2.3.3Embedded SRAMs151
2.3.4Flash memory overview151
2.3.5Boot modes151
3System security153
3.1Key security features153
3.2Secure install154
3.3Secure boot155
3.3.1Unique boot entry .....155
3.3.2Immutable root of trust in system flash memory .....156
3.4Secure update .....156
3.5Resource isolation using hide protection levels .....156
3.6Resource isolation using TrustZone .....157
3.6.1TrustZone security architecture .....157
3.6.2ArmV8-M security extension of Cortex-M33 .....158
3.6.3Memory and peripheral allocation using IDAU/SAU .....158
3.6.4Memory and peripheral allocation using GTZC .....161
3.6.5Managing security in TrustZone-aware peripherals .....164
3.6.6Activating TrustZone security .....171
3.6.7Deactivating TrustZone security .....171
3.7Other resources isolation .....172
3.7.1Temporal isolation using secure hide protection (HDP) .....172
3.7.2Resource isolation using Cortex privileged mode .....172
3.8Secure execution .....176
3.8.1Memory protection unit (MPU) .....176
3.8.2Embedded flash memory write protection .....177
3.8.3Tamper detection and response .....177
3.9Secure storage .....179
3.9.1Hardware secret key management .....180
3.9.2Unique ID .....181
3.10Crypto engines .....181
3.10.1Crypto engines features .....181
3.10.2Secure AES coprocessor (SAES) .....182
3.10.3On-the-fly decryption engine (OTFDEC1, OTFDEC2) .....183
3.11Product life cycle .....184
3.11.1Product configurations and security services .....185
3.11.2Life cycle management .....186
3.11.3Recommended product settings .....189
3.12Software intellectual property protection
and collaborative development .....
189
3.12.1Software intellectual property protection .....191
3.12.2Software intellectual property protection with OTFDEC .....191
3.12.3Other software intellectual property protections .....193
4Boot modes194
4.1STM32H5Ex boot modes195
4.2STM32H5Fx boot modes196
5Global TrustZone® controller (GTZC)197
5.1Introduction197
5.2GTZC main features197
5.3GTZC implementation199
5.4GTZC functional description201
5.4.1GTZC block diagram201
5.4.2Illegal access definition202
5.4.3TrustZone security controller (TZSC)203
5.4.4Memory protection controller - block based (MPCBB)204
5.4.5TrustZone illegal access controller (TZIC)205
5.4.6Power-on/reset state205
5.5GTZC interrupts205
5.6GTZC1 TZSC registers206
5.6.1GTZC1 TZSC control register (GTZC1_TZSC_CR)206
5.6.2GTZC1 TZSC secure configuration register 1
(GTZC1_TZSC_SECCFGR1)
206
5.6.3GTZC1 TZSC secure configuration register 2
(GTZC1_TZSC_SECCFGR2)
209
5.6.4GTZC1 TZSC secure configuration register 3
(GTZC1_TZSC_SECCFGR3)
211
5.6.5GTZC1 TZSC privilege configuration register 1
(GTZC1_TZSC_PRIVCFGR1)
214
5.6.6GTZC1 TZSC privilege configuration register 2
(GTZC1_TZSC_PRIVCFGR2)
217
5.6.7GTZC1 TZSC privilege configuration register 3
(GTZC1_TZSC_PRIVCFGR3)
219
5.6.8GTZC1 TZSC memory x subregion z watermark configuration
register (GTZC1_TZSC_MPCWMxACFGR)
222
5.6.9GTZC1 TZSC memory x subregion z watermark configuration
register (GTZC1_TZSC_MPCWMxBCFGR)
223
5.6.10GTZC1 TZSC memory x subregion A watermark register
(GTZC1_TZSC_MPCWMxAR)
224
5.6.11GTZC1 TZSC memory x subregion B watermark register
(GTZC1_TZSC_MPCWMxBR)
225
5.6.12GTZC1 TZSC register map226
5.7GTZC1 TZIC registers228
5.7.1GTZC1 TZIC interrupt enable register 1 (GTZC1_TZIC_IER1)228
5.7.2GTZC1 TZIC interrupt enable register 2 (GTZC1_TZIC_IER2)230
5.7.3GTZC1 TZIC interrupt enable register 3 (GTZC1_TZIC_IER3)233
5.7.4GTZC1 TZIC interrupt enable register 4 (GTZC1_TZIC_IER4)235
5.7.5GTZC1 TZIC status register 1 (GTZC1_TZIC_SR1)238
5.7.6GTZC1 TZIC status register 2 (GTZC1_TZIC_SR2)240
5.7.7GTZC1 TZIC status register 3 (GTZC1_TZIC_SR3)242
5.7.8GTZC1 TZIC status register 4 (GTZC1_TZIC_SR4)245
5.7.9GTZC1 TZIC flag clear register 1 (GTZC1_TZIC_FCR1)247
5.7.10GTZC1 TZIC flag clear register 2 (GTZC1_TZIC_FCR2)250
5.7.11GTZC1 TZIC flag clear register 3 (GTZC1_TZIC_FCR3)252
5.7.12GTZC1 TZIC flag clear register 4 (GTZC1_TZIC_FCR4)255
5.7.13GTZC1 TZIC register map258
5.8GTZC1 MPCBBz registers (z = 1 to 3)260
5.8.1GTZC1 SRAMz MPCBB control register
(GTZC1_MPCBBz_CR) (z = 1 to 3)
260
5.8.2GTZC1 SRAMz MPCBB configuration lock register 1
(GTZC1_MPCBBz_CFGLOCK1) (z = 1 to 3)
261
5.8.3GTZC1 SRAM1 MPCBB security configuration for super-block x
register (GTZC1_MPCBB1_SECCFGRx)
261
5.8.4GTZC1 SRAM2 MPCBB security configuration for super-block x
register (GTZC1_MPCBB2_SECCFGRx)
262
5.8.5GTZC1 SRAM3 MPCBB security configuration for super-block x
register (GTZC1_MPCBB3_SECCFGRx)
262
5.8.6GTZC1 SRAM1 MPCBB privileged configuration for super-block x
register (GTZC1_MPCBB1_PRIVCFGRx)
263
5.8.7GTZC1 SRAM2 MPCBB privileged configuration for super-block x
register (GTZC1_MPCBB2_PRIVCFGRx)
263
5.8.8GTZC1 SRAM3 MPCBB privileged configuration for super-block x
register (GTZC1_MPCBB3_PRIVCFGRx)
264
5.8.9GTZC1 MPCBBz register map (z = 1 to 3)264
6RAMs configuration controller (RAMCFG)265
6.1RAMCFG introduction265
6.2RAMCFG main features265
6.3RAMCFG functional description265
6.3.1Internal SRAM features265
6.3.2Error code correction (SRAM2, SRAM3, BKPSRAM)266
6.3.3Write protection (SRAM2) .....268
6.3.4Software erase .....268
6.4RAMCFG low-power modes .....269
6.5RAMCFG interrupts .....269
6.6RAMCFG registers .....269
6.6.1RAMCFG memory x control register (RAMCFG_MxCR) .....269
6.6.2RAMCFG memory x interrupt enable register (RAMCFG_MxIER) ...270
6.6.3RAMCFG memory interrupt status register (RAMCFG_MxISR) ....271
6.6.4RAMCFG memory x ECC single error address register
(RAMCFG_MxSEAR) .....
271
6.6.5RAMCFG memory x ECC double error address register
(RAMCFG_MxDEAR) .....
272
6.6.6RAMCFG memory x interrupt clear register x
(RAMCFG_MxICR) .....
272
6.6.7RAMCFG memory 2 write protection register 1
(RAMCFG_M2WPR1) .....
273
6.6.8RAMCFG memory 2 write protection register 2
(RAMCFG_M2WPR2) .....
273
6.6.9RAMCFG memory x ECC key register
(RAMCFG_MxECCKEYR) .....
273
6.6.10RAMCFG memory x erase key register
(RAMCFG_MxERKEYR) .....
274
6.6.11RAMCFG memory 2 write protection register 3
(RAMCFG_M2WPR3) .....
274
6.6.12RAMCFG memory 2 write protection register 4
(RAMCFG_M2WPR4) .....
275
6.6.13RAMCFG register map .....276
7Embedded flash memory (FLASH) .....277
7.1FLASH introduction .....277
7.2FLASH main features .....277
7.3FLASH functional description .....278
7.3.1FLASH block diagram .....278
7.3.2FLASH signals .....279
7.3.3Flash memory architecture and usage .....280
7.3.4FLASH read operations .....282
7.3.5FLASH program operations .....284
7.3.6FLASH erase operations .....287
7.3.7FLASH parallel operations .....291
7.3.8FLASH error protections291
7.3.9OTP and RO memory access292
7.3.10Flash high-cycle data294
7.3.11Flash bank swapping296
7.3.12FLASH reset and clocks298
7.4FLASH option bytes300
7.4.1About option bytes300
7.4.2Option bytes loading300
7.4.3Option byte modification300
7.4.4Description of user and system option bytes304
7.4.5Description of data protection option bytes305
7.4.6Description of boot address option bytes305
7.4.7Specific rules for modifying option bytes306
7.5Option byte key management308
7.5.1OBK loading308
7.5.2OBK access per HDPL level308
7.5.3OBK programming sequence309
7.5.4OBK programming finite state machine311
7.5.5OBK swap sector312
7.5.6OBK alternate sector erase314
7.6FLASH security and protections314
7.6.1TrustZone security protection315
7.6.2Hide protection (HDP)317
7.6.3Block-based secure flash memory area protection319
7.6.4Block-based privileged flash memory area protection320
7.6.5Flash memory register privileged and unprivileged modes321
7.6.6Flash memory banks attributes in case of bank swap322
7.6.7Flash memory configuration protection323
7.6.8Write protection324
7.6.9Flash high-cycle data protections324
7.6.10Life cycle management326
7.6.11Product state transitions327
7.6.12OBK protection330
7.6.13One-time-programmable and read-only memory protections331
7.7System memory332
7.7.1Introduction332
7.7.2RSS user functions332
7.8FLASH low-power modes . . . . .338
7.9FLASH error management . . . . .339
7.9.1Introduction . . . . .339
7.9.2Nonsecure write protection error (WRPERR) . . . . .340
7.9.3Secure write protection error (WRPERR) . . . . .341
7.9.4Nonsecure programming sequence error (PGSERR) . . . . .341
7.9.5Secure programming sequence error (PGSERR) . . . . .343
7.9.6Nonsecure strobe error (STRBERR) . . . . .344
7.9.7Secure strobe error (STRBERR) . . . . .344
7.9.8Nonsecure inconsistency error (INCERR) . . . . .344
7.9.9Secure inconsistency error (INCERR) . . . . .345
7.9.10Error correction code error (ECCC, ECCD) . . . . .345
7.9.11Illegal access (ILAFM/ILAP) . . . . .346
7.9.12Option byte change error (OPTCHANGEERR) . . . . .347
7.9.13Miscellaneous HardFault errors . . . . .347
7.9.14OBK error cases (OBKERR, OBKWERR) . . . . .348
7.10FLASH interrupts . . . . .348
7.11FLASH registers . . . . .350
7.11.1FLASH access control register (FLASH_ACR) . . . . .350
7.11.2FLASH nonsecure key register (FLASH_NSKEYR) . . . . .351
7.11.3FLASH secure key register (FLASH_SECKEYR) . . . . .351
7.11.4FLASH option key register (FLASH_OPTKEYR) . . . . .352
7.11.5FLASH nonsecure OBK key register (FLASH_NSOBKKEYR) . . . . .352
7.11.6FLASH secure OBK key register (FLASH_SECOBKKEYR) . . . . .353
7.11.7FLASH operation status register (FLASH_OPSR) . . . . .353
7.11.8FLASH option control register (FLASH_OPTCR) . . . . .354
7.11.9FLASH nonsecure status register (FLASH_NSSR) . . . . .355
7.11.10FLASH secure status register (FLASH_SECSR) . . . . .357
7.11.11FLASH nonsecure control register (FLASH_NSCR) . . . . .359
7.11.12FLASH secure control register (FLASH_SECCR) . . . . .361
7.11.13FLASH nonsecure clear control register (FLASH_NSCCR) . . . . .364
7.11.14FLASH secure clear control register (FLASH_SECCCR) . . . . .365
7.11.15FLASH privilege configuration register (FLASH_PRIVCFGR) . . . . .366
7.11.16FLASH nonsecure OBK configuration register
(FLASH_NSOBKCFGR) . . . . .
366
7.11.17FLASH secure OBK configuration register (FLASH_SECOBKCFGR) . . . . .367
7.11.18FLASH HDP extension register (FLASH_HDPEXTR) . . . . .369
7.11.19FLASH option status register (FLASH_OPTSR_CUR) .....369
7.11.20FLASH option status register (FLASH_OPTSR_PRG) .....371
7.11.21FLASH nonsecure EPOCH register (FLASH_NSEPOCHR_CUR) ...373
7.11.22FLASH secure EPOCH register (FLASH_SECEPOCHR_CUR) ....373
7.11.23FLASH option status register 2 (FLASH_OPTSR2_CUR) .....374
7.11.24FLASH option status register 2 (FLASH_OPTSR2_PRG) .....375
7.11.25FLASH nonsecure boot register (FLASH_NSBOOTR_CUR) .....376
7.11.26FLASH nonsecure boot register (FLASH_NSBOOTR_PRG) .....376
7.11.27FLASH secure boot register (FLASH_SECBOOTR_CUR) .....378
7.11.28FLASH secure boot register (FLASH_BOOTR_PRG) .....378
7.11.29FLASH nonsecure OTP block lock (FLASH_OTPBLR_CUR) .....379
7.11.30FLASH nonsecure OTP block lock (FLASH_OTPBLR_PRG) .....379
7.11.31FLASH write sector group 2 protection for bank1
(FLASH_WRP12R_CUR) .....
380
7.11.32FLASH write sector group 2 protection for bank1
(FLASH_WRP12R_PRG) .....
380
7.11.33FLASH secure block based register for bank1 (FLASH_SECBB1Rx) .381
7.11.34FLASH privilege block based register for bank1
(FLASH_PRIVBB1Rx) .....
381
7.11.35FLASH security watermark for bank1
(FLASH_SECWM1R_CUR) .....
382
7.11.36FLASH security watermark for bank1 (FLASH_SECWM1R_PRG) ...382
7.11.37FLASH write sector group 1 protection for bank1
(FLASH_WRP11R_CUR) .....
383
7.11.38FLASH write sector group 1 protection for bank1
(FLASH_WRP11R_PRG) .....
383
7.11.39FLASH data sector configuration bank1 (FLASH_EDATA1R_CUR) ..384
7.11.40FLASH data sector configuration bank1 (FLASH_EDATA1R_PRG) ..384
7.11.41FLASH HDP bank1 configuration (FLASH_HDP1R_CUR) .....385
7.11.42FLASH HDP bank1 configuration (FLASH_HDP1R_PRG) .....385
7.11.43FLASH ECC correction register (FLASH_ECCCORR) .....386
7.11.44FLASH ECC detection register (FLASH_ECCDETR) .....387
7.11.45FLASH ECC data (FLASH_ECCDR) .....388
7.11.46FLASH write sector group 2 protection for bank2
(FLASH_WRP22R_CUR) .....
389
7.11.47FLASH write sector group 2 protection for bank2
(FLASH_WRP22R_PRG) .....
389
7.11.48FLASH secure block-based register for bank2 (FLASH_SECBB2Rx)390
7.11.49FLASH privilege block-based register for bank2
(FLASH_PRIVBB2Rx) .....
390
7.11.50FLASH security watermark for bank2 (FLASH_SECWM2R_CUR) . . .391
7.11.51FLASH security watermark for bank2 (FLASH_SECWM2R_PRG) . . .391
7.11.52FLASH write sector group 1 protection for bank2
(FLASH_WRP21R_CUR) . . . . .
392
7.11.53FLASH write sector group 1 protection for bank2
(FLASH_WRP21R_PRG) . . . . .
392
7.11.54FLASH data sectors configuration bank2 (FLASH_EDATA2R_CUR) .393
7.11.55FLASH data sector configuration bank2 (FLASH_EDATA2R_PRG) . .394
7.11.56FLASH HDP bank2 configuration (FLASH_HDP2R_CUR) . . . . .394
7.11.57FLASH HDP bank2 configuration (FLASH_HDP2R_PRG) . . . . .395
7.12FLASH register map and reset values . . . . .396
8Instruction cache (ICACHE) . . . . .402
8.1ICACHE introduction . . . . .402
8.2ICACHE main features . . . . .402
8.3ICACHE implementation . . . . .403
8.4ICACHE functional description . . . . .403
8.4.1ICACHE block diagram . . . . .404
8.4.2ICACHE reset and clocks . . . . .404
8.4.3ICACHE TAG memory . . . . .405
8.4.4Direct-mapped ICACHE (1-way cache) . . . . .406
8.4.5ICACHE enable . . . . .407
8.4.6Cacheable and noncacheable traffic . . . . .407
8.4.7Address remapping . . . . .408
8.4.8Cacheable accesses . . . . .410
8.4.9Dual-master cache . . . . .411
8.4.10ICACHE security . . . . .411
8.4.11ICACHE maintenance . . . . .411
8.4.12ICACHE performance monitoring . . . . .412
8.4.13ICACHE boot . . . . .412
8.5ICACHE low-power modes . . . . .412
8.6ICACHE error management and interrupts . . . . .413
8.7ICACHE registers . . . . .413
8.7.1ICACHE control register (ICACHE_CR) . . . . .413
8.7.2ICACHE status register (ICACHE_SR) . . . . .414
8.7.3ICACHE interrupt enable register (ICACHE_IER) . . . . .415
8.7.4ICACHE flag clear register (ICACHE_FCR) . . . . .415
8.7.5ICACHE hit monitor register (ICACHE_HMONR)416
8.7.6ICACHE miss monitor register (ICACHE_MMONR)416
8.7.7ICACHE region x configuration register (ICACHE_CRRx)416
8.7.8ICACHE register map417
9Data cache (DCACHE)419
9.1DCACHE introduction419
9.2DCACHE main features419
9.3DCACHE implementation420
9.4DCACHE functional description420
9.4.1DCACHE block diagram421
9.4.2DCACHE reset and clocks421
9.4.3DCACHE TAG memory422
9.4.4DCACHE enable424
9.4.5Cacheable and noncacheable traffic424
9.4.6Cacheable accesses425
9.4.7DCACHE security427
9.4.8DCACHE maintenance427
9.4.9DCACHE performance monitoring429
9.4.10DCACHE boot429
9.5DCACHE low-power modes430
9.6DCACHE error management and interrupts430
9.7DCACHE registers431
9.7.1DCACHE control register (DCACHE_CR)431
9.7.2DCACHE status register (DCACHE_SR)432
9.7.3DCACHE interrupt enable register (DCACHE_IER)433
9.7.4DCACHE flag clear register (DCACHE_FCR)434
9.7.5DCACHE read-hit monitor register (DCACHE_RHMONR)434
9.7.6DCACHE read-miss monitor register (DCACHE_RMMONR)435
9.7.7DCACHE write-hit monitor register (DCACHE_WHMONR)435
9.7.8DCACHE write-miss monitor register (DCACHE_WMMONR)435
9.7.9DCACHE command range start address register
(DCACHE_CMDRSADDR)
436
9.7.10DCACHE command range end address register
(DCACHE_CMDREADDR)
436
9.7.11DCACHE register map436
10Power control (PWR) . . . . .438
10.1PWR introduction . . . . .438
10.2PWR main features . . . . .438
10.3PWR pins and internal signals . . . . .438
10.4PWR power supplies and supply domains . . . . .440
10.4.1External power supplies . . . . .441
10.4.2Internal regulators . . . . .443
10.4.3Power-up and power-down power sequences . . . . .444
10.4.4Independent analog peripherals supply . . . . .444
10.4.5Independent I/O supply rail . . . . .445
10.4.6Independent USB transceivers supply . . . . .445
10.4.7Backup domain . . . . .445
10.5PWR system supply voltage regulation . . . . .447
10.5.1SMPS and LDO embedded regulators . . . . .447
10.5.2VCORE supply versus reset, voltage scaling, and low-power modes . . . . .447
10.5.3Embedded voltage regulator operating modes . . . . .447
10.6PWR power supply and temperature supervision . . . . .448
10.6.1Power-on reset (POR)/power-down reset (PDR) . . . . .448
10.6.2Brownout reset (BOR) . . . . .449
10.6.3Programmable voltage detector (PVD) . . . . .450
10.6.4Analog voltage detector (AVD) . . . . .451
10.6.5VDDIO2 voltage monitor (IO2VM) . . . . .452
10.6.6VDDUSB voltage monitor (UVM) . . . . .452
10.6.7Backup domain voltage monitoring . . . . .452
10.6.8Temperature monitoring . . . . .453
10.7PWR management . . . . .454
10.7.1Voltage scaling . . . . .454
10.7.2Power management examples . . . . .455
10.8Power modes . . . . .456
10.8.1Slowing down system clocks . . . . .460
10.8.2Peripheral clock gating . . . . .460
10.8.3Low-power modes . . . . .460
10.8.4Sleep mode . . . . .461
10.8.5Stop mode . . . . .462
10.8.6Standby mode . . . . .465
10.8.7Power modes output pins . . . . .467
10.9PWR security and privileged protection468
10.9.1PWR security protection468
10.9.2PWR privileged protection469
10.10PWR interrupts470
10.11PWR registers470
10.11.1PWR power mode control register (PWR_PMCR)470
10.11.2PWR status register (PWR_PMSR)472
10.11.3PWR voltage scaling control register (PWR_VOSCR)473
10.11.4PWR voltage scaling status register (PWR_VOSSR)474
10.11.5PWR backup domain control register (PWR_BDCR)474
10.11.6PWR backup domain control register (PWR_DBPCR)476
10.11.7PWR backup domain status register (PWR_BDSR)476
10.11.8PWR USB Type-C® power delivery register (PWR_UCPDR)477
10.11.9PWR supply configuration control register (PWR_SCCR)478
10.11.10PWR voltage monitor status register (PWR_VMCR)478
10.11.11PWR USB supply control register (PWR_USBSCR)479
10.11.12PWR voltage monitor status register (PWR_VMSR)480
10.11.13PWR wake-up status clear register (PWR_WUSCR)481
10.11.14PWR wake-up status register (PWR_WUSR)481
10.11.15PWR wake-up configuration register (PWR_WUCR)482
10.11.16PWR I/O retention register (PWR_IORETR)483
10.11.17PWR security configuration register (PWR_SECCFGR)484
10.11.18PWR privilege configuration register (PWR_PRIVCFGR)485
10.11.19PWR register map485
11Reset and clock control (RCC)488
11.1RCC introduction488
11.2RCC pins and internal signals488
11.3RCC reset functional description488
11.3.1Power reset488
11.3.2System reset489
11.3.3Backup domain reset490
11.3.4Reset source identification490
11.4RCC clock functional description491
11.4.1HSE clock493
11.4.2HSI clock494
11.4.3CSI oscillator495
11.4.4HSI48 clock496
11.4.5PLL description496
11.4.6LSE clock500
11.4.7LSI clock501
11.4.8System clock (SYSCLK) selection501
11.4.9Handling clock generators in Stop and Standby modes502
11.4.10Clock security system (CSS)503
11.4.11Clock output generation (MCO1/MCO2)504
11.4.12Kernel clock selection504
11.4.13RTC and TAMP clock513
11.4.14Timer clock514
11.4.15Watchdog clock514
11.4.16Peripheral clock gating and autonomous mode514
11.5RCC security and privilege functional description515
11.5.1RCC TrustZone security protection modes515
11.5.2RCC privilege protection modes518
11.6RCC low-power modes518
11.7RCC interrupts519
11.8RCC registers521
11.8.1RCC clock control register (RCC_CR)521
11.8.2RCC HSI calibration register (RCC_HSICFGR)524
11.8.3RCC clock recovery RC register (RCC_CRRCR)525
11.8.4RCC CSI calibration register (RCC_CSICFGR)525
11.8.5RCC clock configuration register1 (RCC_CFGR1)526
11.8.6RCC CPU domain clock configuration register 2 (RCC_CFGR2)528
11.8.7RCC PLL clock source selection register (RCC_PLL1CFGR)530
11.8.8RCC PLL clock source selection register (RCC_PLL2CFGR)532
11.8.9RCC PLL clock source selection register (RCC_PLL3CFGR)534
11.8.10RCC PLL1 dividers register (RCC_PLL1DIVR)535
11.8.11RCC PLL1 fractional divider register (RCC_PLL1FRACR)537
11.8.12RCC PLL1 dividers register (RCC_PLL2DIVR)537
11.8.13RCC PLL2 fractional divider register (RCC_PLL2FRACR)538
11.8.14RCC PLL3 dividers register (RCC_PLL3DIVR)539
11.8.15RCC PLL3 fractional divider register (RCC_PLL3FRACR)540
11.8.16RCC clock source interrupt enable register (RCC_CIER)541
11.8.17RCC clock source interrupt flag register (RCC_CIFR)542
11.8.18RCC clock source interrupt clear register (RCC_CICR) .....544
11.8.19RCC AHB1 reset register (RCC_AHB1RSTR) .....545
11.8.20RCC AHB2 peripheral reset register (RCC_AHB2RSTR) .....546
11.8.21RCC AHB4 peripheral reset register (RCC_AHB4RSTR) .....549
11.8.22RCC APB1 peripheral low reset register (RCC_APB1LRSTR) .....550
11.8.23RCC APB1 peripheral high reset register (RCC_APB1HRSTR) .....553
11.8.24RCC APB2 peripheral reset register (RCC_APB2RSTR) .....554
11.8.25RCC APB3 peripheral reset register (RCC_APB3RSTR) .....556
11.8.26RCC AHB1 peripheral clock register (RCC_AHB1ENR) .....557
11.8.27RCC AHB2 peripheral clock register (RCC_AHB2ENR) .....559
11.8.28RCC AHB4 peripheral clock register (RCC_AHB4ENR) .....562
11.8.29RCC APB1 peripheral clock register (RCC_APB1LENR) .....563
11.8.30RCC APB1 peripheral clock register (RCC_APB1HENR) .....566
11.8.31RCC APB2 peripheral clock register (RCC_APB2ENR) .....567
11.8.32RCC APB3 peripheral clock register (RCC_APB3ENR) .....569
11.8.33RCC AHB1 sleep clock register (RCC_AHB1LPENR) .....570
11.8.34RCC AHB2 sleep clock register (RCC_AHB2LPENR) .....573
11.8.35RCC AHB4 sleep clock register (RCC_AHB4LPENR) .....576
11.8.36RCC APB1 sleep clock register (RCC_APB1LLPENR) .....577
11.8.37RCC APB1 sleep clock register (RCC_APB1HLPENR) .....580
11.8.38RCC APB2 sleep clock register (RCC_APB2LPENR) .....581
11.8.39RCC APB3 sleep clock register (RCC_APB3LPENR) .....582
11.8.40RCC kernel clock configuration register (RCC_CCIPR1) .....584
11.8.41RCC kernel clock configuration register (RCC_CCIPR2) .....586
11.8.42RCC kernel clock configuration register (RCC_CCIPR3) .....588
11.8.43RCC kernel clock configuration register (RCC_CCIPR4) .....590
11.8.44RCC kernel clock configuration register (RCC_CCIPR5) .....592
11.8.45RCC backup domain control register (RCC_BDCR) .....594
11.8.46RCC reset status register (RCC_RSR) .....597
11.8.47RCC secure configuration register (RCC_SECCFGR) .....598
11.8.48RCC privilege configuration register (RCC_PRIVCFGR) .....600
11.8.49RCC register map .....600
12Clock recovery system (CRS) .....606
12.1CRS introduction .....606
12.2CRS main features .....606
12.3CRS implementation .....606
12.4CRS functional description607
12.4.1CRS block diagram607
12.4.2CRS internal signals607
12.4.3Synchronization input608
12.4.4Frequency error measurement608
12.4.5Frequency error evaluation and automatic trimming609
12.4.6CRS initialization and configuration610
12.5CRS in low-power modes611
12.6CRS interrupts611
12.7CRS registers611
12.7.1CRS control register (CRS_CR)611
12.7.2CRS configuration register (CRS_CFGR)613
12.7.3CRS interrupt and status register (CRS_ISR)614
12.7.4CRS interrupt flag clear register (CRS_ICR)616
12.7.5CRS register map616
13General-purpose I/Os (GPIO)618
13.1Introduction618
13.2GPIO main features618
13.3GPIO functional description618
13.3.1General-purpose I/O (GPIO)620
13.3.2I/O pin alternate function multiplexer and mapping621
13.3.3I/O port control registers622
13.3.4I/O port data registers622
13.3.5I/O data bitwise handling622
13.3.6GPIO locking mechanism622
13.3.7I/O alternate function input/output623
13.3.8External interrupt/wakeup lines623
13.3.9Input configuration623
13.3.10Output configuration624
13.3.11Alternate function configuration624
13.3.12Analog configuration625
13.3.13Using the HSE or LSE oscillator pins as GPIOs625
13.3.14Using the GPIO pins in the RTC supply domain626
13.3.15I/Os state retention during standby mode626
13.3.16TrustZone security626
13.3.17Privileged and unprivileged modes .....627
13.3.18High-speed low-voltage mode (HSLV) .....627
13.3.19I/O compensation cell .....628
13.4GPIO registers .....628
13.4.1GPIO port mode register (GPIOx_MODER) (x = A to K) .....628
13.4.2GPIO port output type register (GPIOx_OTYPER) (x = A to K) .....629
13.4.3GPIO port output speed register (GPIOx_OSPEEDR) (x = A to K) .....629
13.4.4GPIO port pull-up/pull-down register (GPIOx_PUPDR) (x = A to K) .....630
13.4.5GPIO port input data register (GPIOx_IDR) (x = A to K) .....630
13.4.6GPIO port output data register (GPIOx_ODR) (x = A to K) .....631
13.4.7GPIO port bit set/reset register (GPIOx_BSRR) (x = A to K) .....631
13.4.8GPIO port configuration lock register (GPIOx_LCKR) (x = A to K) .....632
13.4.9GPIO alternate function low register (GPIOx_AFRL) (x = A to K) .....633
13.4.10GPIO alternate function high register (GPIOx_AFRH) (x = A to K) .....633
13.4.11GPIO port bit reset register (GPIOx_BRR) (x = A to K) .....634
13.4.12GPIO high-speed low-voltage register (GPIOx_HSLVR) (x = A to K) .....635
13.4.13GPIO secure configuration register (GPIOx_SECCFGR) (x = A to K) .....635
13.4.14GPIO register map .....636
14System configuration, boot, and security (SBS) .....638
14.1SBS introduction .....638
14.2SBS main features .....638
14.3SBS functional description .....639
14.3.1SBS block diagram .....639
14.3.2SBS signals .....640
14.3.3SBS reset and clocks .....641
14.3.4SBS system configuration .....641
14.3.5SBS boot control .....643
14.3.6SBS debug control .....645
14.3.7SBS hardware secure storage control .....648
14.4SBS interrupts .....649
14.5SBS registers .....649
14.5.1SBS temporal isolation control register (SBS_HDPLCR) .....649
14.5.2SBS temporal isolation status register (SBS_HDPLSR) .....650
14.5.3SBS next HDPL control register (SBS_NEXTHDPLCR) .....650
14.5.4SBS debug control register (SBS_DBGCR) .....651
14.5.5SBS debug lock register (SBS_DBGLOCKR) . . . . .651
14.5.6SBS RSS command register (SBS_RSSCMDR) . . . . .652
14.5.7SBS EPOCH selection control register (SBS_EPOCHSELCR) . . . . .652
14.5.8SBS security mode configuration control register (SBS_SECCFGR) . . . . .653
14.5.9SBS product mode and configuration register (SBS_PMCR) . . . . .654
14.5.10SBS FPU interrupt mask register (SBS_FPUIMR) . . . . .655
14.5.11SBS memory erase status register (SBS_MESR) . . . . .656
14.5.12SBS compensation cell for I/Os control and status register
(SBS_CCCSR) . . . . .
656
14.5.13SBS compensation cell for I/Os value register (SBS_CCVALR) . . . . .657
14.5.14SBS compensation cell for I/Os software code register
(SBS_CCWCR) . . . . .
658
14.5.15SBS Class B register (SBS_CFGR2) . . . . .659
14.5.16SBS CPU nonsecure lock register (SBS_CNSLCKR) . . . . .660
14.5.17SBS CPU secure lock register (SBS_CSLCKR) . . . . .661
14.5.18SBS flift ECC NMI mask register (SBS_ECCNMIR) . . . . .662
14.5.19SBS OTG_HS PHY tune register 2 (SBS_OTGHSPHYTUNER2) . . . . .662
14.5.20SBS register map . . . . .663
15Peripherals interconnect matrix . . . . .666
15.1Interconnect matrix introduction . . . . .666
15.2Connection summary . . . . .666
15.3Interconnection details . . . . .668
15.3.1Master to slave interconnection for timers . . . . .668
15.3.2Triggers to ADCs . . . . .668
15.3.3ADC analog watchdogs as triggers to timers and PLAY1 . . . . .669
15.3.4Triggers to DAC . . . . .670
15.3.5Clock sources to timers . . . . .670
15.3.6Triggers to low-power timers . . . . .671
15.3.7RTC wake-up as input to timers . . . . .672
15.3.8System errors as break signals to timers . . . . .672
15.3.9I3C as trigger to timers . . . . .673
15.3.10Triggers to GPDMA1/2 . . . . .673
15.3.11Internal analog signals to analog peripherals . . . . .674
15.3.12Clock source for the DAC sample and hold mode . . . . .674
15.3.13Internal tamper sources . . . . .674
15.3.14Output from tamper to RTC . . . . .674
15.3.15Timer break from MDF1 . . . . .675
15.3.16Comparators as inputs, trigger, or break signals to timers1 . . . . .675
15.3.17Triggers on MDF1 or ADF1 . . . . .676
15.3.18Blanking sources to comparators . . . . .677
15.3.19OTG_FS/OTG_HS SOF as trigger to timers . . . . .677
15.3.20Ethernet as trigger to timers . . . . .678
15.3.21Timers as trigger to Ethernet . . . . .678
15.3.22PLAY1 as input to timers . . . . .678
15.3.23ADC data filtering by the MDF1/ADF1 . . . . .679
15.3.24Inputs to PLAY1 . . . . .679
15.3.25Triggers to DTS . . . . .680
15.3.26Encryption keys to AES/SAES . . . . .680
16General purpose direct memory access controller (GPDMA) . . . . .681
16.1GPDMA introduction . . . . .681
16.2GPDMA main features . . . . .681
16.3GPDMA implementation . . . . .682
16.3.1GPDMA instances . . . . .682
16.3.2GPDMA channels . . . . .682
16.3.3GPDMA in low-power modes . . . . .683
16.3.4GPDMA requests . . . . .683
16.3.5GPDMA block requests . . . . .688
16.3.6GPDMA channels with peripheral early termination . . . . .688
16.3.7GPDMA triggers . . . . .689
16.4GPDMA functional description . . . . .692
16.4.1GPDMA block diagram . . . . .692
16.4.2GPDMA channel state and direct programming without any linked-list . . . . .692
16.4.3GPDMA channel suspend and resume . . . . .693
16.4.4GPDMA channel abort and restart . . . . .694
16.4.5GPDMA linked-list data structure . . . . .695
16.4.6Linked-list item transfer execution . . . . .698
16.4.7GPDMA channel state and linked-list programming
in run-to-completion mode . . . . .
698
16.4.8GPDMA channel state and linked-list programming in link step mode . . . . .702
16.4.9GPDMA channel state and linked-list programming . . . . .709
16.4.10GPDMA FIFO-based transfers . . . . .711
16.4.11GPDMA transfer request and arbitration . . . . .718
16.4.12GPDMA triggered transfer722
16.4.13GPDMA circular buffering with linked-list programming723
16.4.14GPDMA transfer in peripheral flow-control mode725
16.4.15GPDMA secure/nonsecure channel726
16.4.16GPDMA privileged/unprivileged channel727
16.4.17GPDMA error management727
16.5GPDMA in debug mode729
16.6GPDMA in low-power modes729
16.7GPDMA interrupts730
16.8GPDMA registers731
16.8.1GPDMA secure configuration register (GPDMA_SECCFGR)731
16.8.2GPDMA privileged configuration register (GPDMA_PRIVCFGR)732
16.8.3GPDMA configuration lock register (GPDMA_RCFGLOCKR)732
16.8.4GPDMA nonsecure masked interrupt status register (GPDMA_MISR)733
16.8.5GPDMA secure masked interrupt status register (GPDMA_SMISR)734
16.8.6GPDMA channel x linked-list base address register (GPDMA_CxLBAR)734
16.8.7GPDMA channel x flag clear register (GPDMA_CxFCR)735
16.8.8GPDMA channel x status register (GPDMA_CxSR)736
16.8.9GPDMA channel x control register (GPDMA_CxCR)737
16.8.10GPDMA channel x transfer register 1 (GPDMA_CxTR1)739
16.8.11GPDMA channel x transfer register 2 (GPDMA_CxTR2)743
16.8.12GPDMA channel x block register 1 (GPDMA_CxBR1)747
16.8.13GPDMA channel x alternate block register 1 (GPDMA_CxBR1)748
16.8.14GPDMA channel x source address register (GPDMA_CxSAR)751
16.8.15GPDMA channel x destination address register (GPDMA_CxDAR)752
16.8.16GPDMA channel x transfer register 3 (GPDMA_CxTR3)753
16.8.17GPDMA channel x block register 2 (GPDMA_CxBR2)754
16.8.18GPDMA channel x linked-list address register (GPDMA_CxLLR)755
16.8.19GPDMA channel x alternate linked-list address register (GPDMA_CxLLR)757
16.8.20GPDMA register map758
17Chrom-ART2 accelerator controller (DMA2D)761
17.1DMA2D introduction761
17.2DMA2D main features762
17.3DMA2D functional description763
17.3.1General description763
17.3.2DMA2D internal signals763
17.3.3DMA2D pipeline765
17.3.4DMA2D control and global operating mode767
17.3.5DMA2D fetching stage767
17.3.6DMA2D input pixel format conversion stage770
17.3.7DMA2D foreground and background CLUT interface772
17.3.8DMA2D pixel skipper stage773
17.3.9DMA2D stenciling stage (pre-blend or post-blend)774
17.3.10DMA2D scaling stage (pre-blend or post-blend)775
17.3.11DMA2D buffer/rotate stage776
17.3.12DMA2D YCbCr PFC stage / JPEG decoding780
17.3.13DMA2D blender stage781
17.3.14DMA2D output PFC stage782
17.3.15DMA2D write stage782
17.3.16DMA2D output FIFO byte reordering783
17.3.17Watermark785
17.3.18DMA2D AHB master port timer785
17.3.19DMA2D configuration785
17.3.20DMA2D configuration error detection788
17.3.21DMA2D transfer control (start, suspend, abort, and completion)791
17.3.22DMA2D error management791
17.3.23General purpose flags792
17.3.24Command list management793
17.4DMA2D interrupts800
17.5DMA2D registers801
17.5.1DMA2D control register (DMA2D_CR)801
17.5.2DMA2D interrupt status register (DMA2D_ISR)802
17.5.3DMA2D interrupt enable register (DMA2D_IER)804
17.5.4DMA2D interrupt flag clear register (DMA2D_IFCR)806
17.5.5DMA2D foreground memory address register (DMA2D_FGMAR)807
17.5.6DMA2D foreground offset register (DMA2D_FGOR)808
17.5.7DMA2D foreground memory skip register (DMA2D_FGMSR)808
17.5.8DMA2D foreground PFC control register (DMA2D_FGPFCCR)809
17.5.9DMA2D foreground color register (DMA2D_FGCOLR)811
17.5.10DMA2D foreground CLUT memory address register
(DMA2D_FGCMAR) .....
812
17.5.11DMA2D background memory address register (DMA2D_BGMAR) ..812
17.5.12DMA2D background offset register (DMA2D_BGOR) .....813
17.5.13DMA2D background memory skip register (DMA2D_BGMSR) .....813
17.5.14DMA2D background PFC control register (DMA2D_BGPFCCR) ....814
17.5.15DMA2D background color register (DMA2D_BGCOLR) .....816
17.5.16DMA2D background CLUT memory address register
(DMA2D_BGCMAR) .....
816
17.5.17DMA2D output PFC control register (DMA2D_OPFCCR) .....817
17.5.18DMA2D output color register (DMA2D_OCOLR) .....818
17.5.19DMA2D output memory address register (DMA2D_OMAR) .....819
17.5.20DMA2D output offset register (DMA2D_OOR) .....819
17.5.21DMA2D number of line register (DMA2D_NLR) .....820
17.5.22DMA2D line watermark register (DMA2D_LWR) .....820
17.5.23DMA2D AHB master timer configuration register
(DMA2D_AMTCR) .....
821
17.5.24DMA2D stencil buffer configuration register (DMA2D_SBCR) .....821
17.5.25DMA2D stencil buffer memory address register (DMA2D_SBMAR) ..822
17.5.26DMA2D stencil buffer offset register (DMA2D_SBOR) .....822
17.5.27DMA2D stencil buffer memory skip register (DMA2D_SBMSR) ....823
17.5.28DMA2D tile buffer configuration register (DMA2D_TBCR) .....824
17.5.29DMA2D scaler configuration register (DMA2D_SCR) .....825
17.5.30DMA2D scaler number of line register (DMA2D_SNLR) .....825
17.5.31DMA2D scaler step register (DMA2D_SSR) .....826
17.5.32DMA2D scaler phase register (DMA2D_SPR) .....826
17.5.33DMA2D general purpose flag configuration register
(DMA2D_GPFCR) .....
827
17.5.34DMA2D general purpose flag register (DMA2D_GPFR) .....828
17.5.35DMA2D general purpose flag set register (DMA2D_GPFSR) .....829
17.5.36DMA2D general purpose flag reset register (DMA2D_GPFRR) ....829
17.5.37DMA2D command list configuration register (DMA2D_CLCR) .....830
17.5.38DMA2D command list status register (DMA2D_CLSR) .....831
17.5.39DMA2D ring buffer base address register (DMA2D_RBBAR) .....833
17.5.40DMA2D ring buffer head pointer register (DMA2D_RBHPR) .....833
17.5.41DMA2D ring buffer write pointer register (DMA2D_RBWPR) .....834
17.5.42DMA2D linear buffer current base address register
(DMA2D_LBCBAR) .....
834
17.5.43DMA2D linear buffer current size register (DMA2D_LBCSR) . . . . .834
17.5.44DMA2D linear buffer current address register (DMA2D_LBCAR) . . . . .835
17.5.45DMA2D foreground CLUTx (DMA2D_FGCLUTx) . . . . .835
17.5.46DMA2D background CLUTx (DMA2D_BGCLUTx) . . . . .836
17.5.47DMA2D register map . . . . .837
18Graphic timer (GFXTIM) . . . . .841
18.1GFXTIM introduction . . . . .841
18.2GFXTIM main features . . . . .841
18.3GFXTIM functional description . . . . .841
18.3.1Block diagram . . . . .841
18.3.2GFXTIM pins and internal signals . . . . .842
18.3.3Clock generator . . . . .843
18.3.4Example of clock generator configuration . . . . .845
18.3.5Absolute timers . . . . .849
18.3.6Relative timers . . . . .850
18.3.7Tearing-effect detection . . . . .851
18.3.8Event generator . . . . .851
18.3.9Watchdog timer . . . . .852
18.4GFXTIM interrupts . . . . .853
18.5GFXTIM registers . . . . .854
18.5.1GFXTIM configuration register (GFXTIM_CR) . . . . .854
18.5.2GFXTIM clock generator configuration register (GFXTIM_CGCR) . . . . .855
18.5.3GFXTIM timers configuration register (GFXTIM_TCR) . . . . .857
18.5.4GFXTIM timers disable register (GFXTIM_TDR) . . . . .858
18.5.5GFXTIM events control register (GFXTIM_EVCR) . . . . .859
18.5.6GFXTIM events selection register (GFXTIM_EVSR) . . . . .859
18.5.7GFXTIM watchdog timer configuration register
(GFXTIM_WDGTCR) . . . . .
861
18.5.8GFXTIM interrupt status register (GFXTIM_ISR) . . . . .863
18.5.9GFXTIM interrupt clear register (GFXTIM_ICR) . . . . .864
18.5.10GFXTIM interrupt enable register (GFXTIM_IER) . . . . .866
18.5.11GFXTIM timers status register (GFXTIM_TSR) . . . . .868
18.5.12GFXTIM line-clock counter reload register (GFXTIM_LCCRR) . . . . .869
18.5.13GFXTIM frame-clock counter reload register (GFXTIM_FCCRR) . . . . .869
18.5.14GFXTIM absolute time register (GFXTIM_ATR) . . . . .869
18.5.15GFXTIM absolute frame counter register (GFXTIM_AFCR) . . . . .870
18.5.16GFXTIM absolute line counter register (GFXTIM_ALCR) . . . . .870
18.5.17GFXTIM absolute frame counter compare 1 register
(GFXTIM_AFCC1R) . . . . .
871
18.5.18GFXTIM absolute line counter compare 1 register
(GFXTIM_ALCC1R) . . . . .
871
18.5.19GFXTIM absolute line counter compare 2 register
(GFXTIM_ALCC2R) . . . . .
871
18.5.20GFXTIM relative frame counter 1 register (GFXTIM_RFC1R) . . . . .872
18.5.21GFXTIM relative frame counter 1 reload register
(GFXTIM_RFC1RR) . . . . .
872
18.5.22GFXTIM relative frame counter 2 register (GFXTIM_RFC2R) . . . . .873
18.5.23GFXTIM relative frame counter 2 reload register
(GFXTIM_RFC2RR) . . . . .
873
18.5.24GFXTIM watchdog counter register (GFXTIM_WDGCR) . . . . .873
18.5.25GFXTIM watchdog reload register (GFXTIM_WDGRR) . . . . .874
18.5.26GFXTIM watchdog pre-alarm register (GFXTIM_WDGPAR) . . . . .874
18.5.27GFXTIM register map . . . . .874
19Nested vectored interrupt controller (NVIC) . . . . .877
19.1NVIC main features . . . . .877
19.2SysTick calibration value register . . . . .877
19.3Interrupt and exception vectors . . . . .878
20Extended interrupts and event controller (EXTI) . . . . .884
20.1EXTI main features . . . . .884
20.2EXTI block diagram . . . . .885
20.2.1EXTI connections between peripherals and CPU . . . . .886
20.2.2EXTI interrupt/event mapping . . . . .886
20.3EXTI functional description . . . . .888
20.3.1EXTI configurable event input wake-up . . . . .889
20.3.2EXTI direct event input wake-up . . . . .890
20.3.3EXTI multiplexer selection . . . . .890
20.4EXTI functional behavior . . . . .891
20.5EXTI event protection . . . . .891
20.5.1EXTI security protection . . . . .892
20.5.2EXTI privilege protection . . . . .892
20.6EXTI registers . . . . .893
20.6.1EXTI rising trigger selection register (EXTI_RTSR1) . . . . .893
20.6.2EXTI falling trigger selection register (EXTI_FTSR1) . . . . .894
20.6.3EXTI software interrupt event register (EXTI_SWIER1) . . . . .894
20.6.4EXTI rising edge pending register (EXTI_RPR1) . . . . .895
20.6.5EXTI falling edge pending register (EXTI_FPR1) . . . . .896
20.6.6EXTI security configuration register (EXTI_SECCFGR1) . . . . .896
20.6.7EXTI privilege configuration register (EXTI_PRIVCFGR1) . . . . .897
20.6.8EXTI rising trigger selection register 2 (EXTI_RTSR2) . . . . .897
20.6.9EXTI falling trigger selection register 2 (EXTI_FTSR2) . . . . .899
20.6.10EXTI software interrupt event register 2 (EXTI_SWIER2) . . . . .901
20.6.11EXTI rising edge pending register 2 (EXTI_RPR2) . . . . .904
20.6.12EXTI falling edge pending register 2 (EXTI_FPR2) . . . . .906
20.6.13EXTI security configuration register 2 (EXTI_SECCFGR2) . . . . .908
20.6.14EXTI privilege configuration register 2 (EXTI_PRIVCFGR2) . . . . .909
20.6.15EXTI rising trigger selection register 3 (EXTI_RTSR3) . . . . .909
20.6.16EXTI falling trigger selection register 3 (EXTI_FTSR3) . . . . .910
20.6.17EXTI software interrupt event register 3 (EXTI_SWIER3) . . . . .911
20.6.18EXTI rising edge pending register 3 (EXTI_RPR3) . . . . .912
20.6.19EXTI falling edge pending register 3 (EXTI_FPR3) . . . . .913
20.6.20EXTI security configuration register 3 (EXTI_SECCFGR3) . . . . .914
20.6.21EXTI privilege configuration register 3 (EXTI_PRIVCFGR3) . . . . .915
20.6.22EXTI external interrupt selection register (EXTI_EXTICR1) . . . . .915
20.6.23EXTI external interrupt selection register (EXTI_EXTICR2) . . . . .918
20.6.24EXTI external interrupt selection register (EXTI_EXTICR3) . . . . .920
20.6.25EXTI external interrupt selection register (EXTI_EXTICR4) . . . . .923
20.6.26EXTI lock register (EXTI_LOCKR) . . . . .925
20.6.27EXTI CPU wake-up with interrupt mask register (EXTI_IMR1) . . . . .926
20.6.28EXTI CPU wake-up with event mask register (EXTI_EMR1) . . . . .926
20.6.29EXTI CPU wake-up with interrupt mask register 2 (EXTI_IMR2) . . . . .927
20.6.30EXTI CPU wake-up with event mask register 2 (EXTI_EMR2) . . . . .928
20.6.31EXTI CPU wake-up with interrupt mask register 3 (EXTI_IMR3) . . . . .929
20.6.32EXTI CPU wake-up with event mask register 3 (EXTI_EMR3) . . . . .930
20.6.33EXTI register map . . . . .930
21Cyclic redundancy check calculation unit (CRC) . . . . .934
21.1CRC introduction . . . . .934
21.2CRC main features . . . . .934
21.3CRC functional description . . . . .935
21.3.1CRC block diagram935
21.3.2CRC internal signals935
21.3.3CRC operation935
21.4CRC registers937
21.4.1CRC data register (CRC_DR)937
21.4.2CRC independent data register (CRC_IDR)937
21.4.3CRC control register (CRC_CR)938
21.4.4CRC initial value (CRC_INIT)939
21.4.5CRC polynomial (CRC_POL)939
21.4.6CRC register map940
22CORDIC coprocessor (CORDIC)941
22.1CORDIC introduction941
22.2CORDIC main features941
22.3CORDIC functional description941
22.3.1General description941
22.3.2CORDIC functions941
22.3.3Fixed point representation948
22.3.4Scaling factor948
22.3.5Precision949
22.3.6Zero-overhead mode952
22.3.7Polling mode953
22.3.8Interrupt mode954
22.3.9DMA mode954
22.4CORDIC registers955
22.4.1CORDIC control/status register (CORDIC_CSR)955
22.4.2CORDIC argument register (CORDIC_WDATA)957
22.4.3CORDIC result register (CORDIC_RDATA)958
22.4.4CORDIC register map958
23Filter math accelerator (FMAC)959
23.1FMAC introduction959
23.2FMAC main features959
23.3FMAC functional description960
23.3.1General description960
23.3.2Local memory and buffers961
23.3.3Input buffers .....961
23.3.4Output buffer .....964
23.3.5Initialization functions .....966
23.3.6Filter functions .....967
23.3.7Fixed point representation .....971
23.3.8Implementing FIR filters with the FMAC .....971
23.3.9Implementing IIR filters with the FMAC .....973
23.3.10Examples of filter initialization .....975
23.3.11Examples of filter operation .....976
23.3.12Filter design tips .....978
23.4FMAC registers .....979
23.4.1FMAC X1 buffer configuration register (FMAC_X1BUFCFG) .....979
23.4.2FMAC X2 buffer configuration register (FMAC_X2BUFCFG) .....979
23.4.3FMAC Y buffer configuration register (FMAC_YBUFCFG) .....980
23.4.4FMAC parameter register (FMAC_PARAM) .....981
23.4.5FMAC control register (FMAC_CR) .....982
23.4.6FMAC status register (FMAC_SR) .....983
23.4.7FMAC write data register (FMAC_WDATA) .....984
23.4.8FMAC read data register (FMAC_RDATA) .....985
23.4.9FMAC register map .....985
24Programmable logic array (PLAY) .....987
24.1PLAY introduction .....987
24.2PLAY main features .....987
24.3PLAY functional description .....987
24.3.1PLAY block diagram .....988
24.3.2PLAY pins and internal signals .....988
24.3.3PLAY reset and clocks .....991
24.3.4Input selection .....991
24.3.5Input filtering and edge detection .....992
24.3.6Software programmable inputs .....994
24.3.7Logic elements .....994
24.3.8Input interconnect .....998
24.3.9Output interconnect .....1003
24.3.10Flags .....1004
24.3.11Miscellaneous status bits .....1005
24.4PLAY in low-power modes .....1005
24.5PLAY interrupts1005
24.6PLAY registers1006
24.6.1PLAY configuration control register (PLAY_CFGCR)1007
24.6.2PLAY security attributes configuration register (PLAY_SECCFGR)1007
24.6.3PLAY privilege attributes configuration register (PLAY_PRIVCFGR)1008
24.6.4PLAY filter x configuration register (PLAY_FILTxCFG)1009
24.6.5PLAY logic element x configuration register 1 (PLAY_LExCFG1)1010
24.6.6PLAY logic element x configuration register 2 (PLAY_LExCFG2)1010
24.6.7PLAY output x configuration register (PLAY_OUTxCFG)1011
24.6.8PLAY software input status register (PLAY_SWIN)1012
24.6.9PLAY software input set register (PLAY_SWINSET)1012
24.6.10PLAY software input clear register (PLAY_SWINCLR)1013
24.6.11PLAY output status register (PLAY_OSR)1014
24.6.12PLAY flag status register (PLAY_FLSTAT)1014
24.6.13PLAY flag set register (PLAY_FLSET)1015
24.6.14PLAY flag clear register (PLAY_FLCLR)1016
24.6.15PLAY flag interrupt enable register (PLAY_FLIER)1016
24.6.16PLAY flag control register (PLAY_FLCTL)1017
24.6.17PLAY miscellaneous status register (PLAY_MSR)1018
24.6.18PLAY interrupt status register (PLAY_ISR)1018
24.6.19PLAY interrupt clear register (PLAY_ICR)1019
24.6.20PLAY interrupt enable register (PLAY_IER)1020
24.7PLAY register map1020
25Flexible memory controller (FMC)1023
25.1FMC introduction1023
25.2FMC main features1023
25.3FMC block diagram1024
25.4AHB interface1025
25.4.1Supported memories and transactions1026
25.5External device address mapping1027
25.5.1NOR/PSRAM address mapping1028
25.5.2NAND flash memory address mapping1028
25.5.3SDRAM address mapping1029
25.6NOR flash/PSRAM controller1032
25.6.1External memory interface signals1034
25.6.2Supported memories and transactions .....1036
25.6.3General timing rules .....1037
25.6.4NOR flash/PSRAM controller asynchronous transactions .....1037
25.6.5Synchronous transactions .....1055
25.6.6NOR/PSRAM controller registers .....1062
25.7NAND flash controller .....1070
25.7.1External memory interface signals .....1070
25.7.2NAND flash supported memories and transactions .....1071
25.7.3Timing diagrams for NAND flash memory .....1072
25.7.4NAND flash operations .....1073
25.7.5NAND flash prewait functionality .....1073
25.7.6Computation of the error correction code (ECC)
in NAND flash memory .....
1074
25.7.7NAND flash controller registers .....1075
25.8SDRAM controller .....1081
25.8.1SDRAM controller main features .....1081
25.8.2SDRAM External memory interface signals .....1081
25.8.3SDRAM controller functional description .....1082
25.8.4Low-power modes .....1088
25.8.5SDRAM controller registers .....1092
25.8.6FMC register map .....1098
26Extended-SPI interface (OCTOSPI) .....1101
26.1OCTOSPI introduction .....1101
26.2OCTOSPI main features .....1101
26.3OCTOSPI implementation .....1102
26.4OCTOSPI functional description .....1103
26.4.1OCTOSPI block diagram .....1103
26.4.2OCTOSPI pins and internal signals .....1104
26.4.3OCTOSPI interface to memory modes .....1105
26.4.4OCTOSPI regular-command protocol .....1105
26.4.5OCTOSPI regular-command protocol signal interface .....1109
26.4.6HyperBus protocol .....1112
26.4.7Specific features .....1116
26.4.8OCTOSPI operating mode introduction .....1117
26.4.9OCTOSPI indirect mode .....1118
26.4.10OCTOSPI automatic status-polling mode .....1119
26.4.11OCTOSPI memory-mapped mode . . . . .1120
26.4.12OCTOSPI configuration introduction . . . . .1121
26.4.13OCTOSPI system configuration . . . . .1121
26.4.14OCTOSPI device configuration . . . . .1122
26.4.15OCTOSPI regular-command mode configuration . . . . .1124
26.4.16OCTOSPI HyperBus protocol configuration . . . . .1127
26.4.17OCTOSPI error management . . . . .1127
26.4.18OCTOSPI BUSY and ABORT . . . . .1128
26.4.19OCTOSPI reconfiguration or deactivation . . . . .1128
26.4.20NCS behavior . . . . .1129
26.4.21Software control of two external memories . . . . .1129
26.4.22Hardware-controlled extended memory support . . . . .1130
26.5Address alignment and data number . . . . .1131
26.6OCTOSPI interrupts . . . . .1132
26.7OCTOSPI registers . . . . .1133
26.7.1OCTOSPI control register (OCTOSPI_CR) . . . . .1133
26.7.2OCTOSPI device configuration register 1 (OCTOSPI_DCR1) . . . . .1136
26.7.3OCTOSPI device configuration register 2 (OCTOSPI_DCR2) . . . . .1138
26.7.4OCTOSPI device configuration register 3 (OCTOSPI_DCR3) . . . . .1139
26.7.5OCTOSPI device configuration register 4 (OCTOSPI_DCR4) . . . . .1140
26.7.6OCTOSPI status register (OCTOSPI_SR) . . . . .1140
26.7.7OCTOSPI flag clear register (OCTOSPI_FCR) . . . . .1141
26.7.8OCTOSPI data length register (OCTOSPI_DLR) . . . . .1142
26.7.9OCTOSPI address register (OCTOSPI_AR) . . . . .1143
26.7.10OCTOSPI data register (OCTOSPI_DR) . . . . .1143
26.7.11OCTOSPI polling status mask register (OCTOSPI_PSMKR) . . . . .1144
26.7.12OCTOSPI polling status match register (OCTOSPI_PSMAR) . . . . .1144
26.7.13OCTOSPI polling interval register (OCTOSPI_PIR) . . . . .1145
26.7.14OCTOSPI communication configuration register (OCTOSPI_CCR) . . . . .1145
26.7.15OCTOSPI timing configuration register (OCTOSPI_TCR) . . . . .1147
26.7.16OCTOSPI instruction register (OCTOSPI_IR) . . . . .1148
26.7.17OCTOSPI alternate bytes register (OCTOSPI_ABR) . . . . .1148
26.7.18OCTOSPI low-power timeout register (OCTOSPI_LPTR) . . . . .1149
26.7.19OCTOSPI wrap communication configuration register
(OCTOSPI_WPCCR) . . . . .
1149
26.7.20OCTOSPI wrap timing configuration register (OCTOSPI_WPTCR) . . . . .1151
26.7.21OCTOSPI wrap instruction register (OCTOSPI_WPIR) . . . . .1152
26.7.22OCTOSPI wrap alternate bytes register (OCTOSPI_WPABR) . . . . .1152
26.7.23OCTOSPI write communication configuration register
(OCTOSPI_WCCR) . . . . .
1153
26.7.24OCTOSPI write timing configuration register (OCTOSPI_WTCR) . . .1155
26.7.25OCTOSPI write instruction register (OCTOSPI_WIR) . . . . .1155
26.7.26OCTOSPI write alternate bytes register (OCTOSPI_WABR) . . . . .1156
26.7.27OCTOSPI HyperBus latency configuration register
(OCTOSPI_HLCR) . . . . .
1156
26.7.28OCTOSPI register map . . . . .1157
27Extended-SPI I/O manager (OCTOSPIM) . . . . .1160
27.1Introduction . . . . .1160
27.2OCTOSPIM main features . . . . .1160
27.3OCTOSPIM implementation . . . . .1160
27.4OCTOSPIM functional description . . . . .1160
27.4.1OCTOSPIM block diagram . . . . .1160
27.4.2OCTOSPIM input/output pins . . . . .1161
27.4.3OCTOSPIM matrix . . . . .1161
27.4.4OCTOSPIM multiplexed mode . . . . .1162
27.5Use cases description . . . . .1162
27.5.1Two OCTOSPIs direct mode . . . . .1163
27.5.2OCTOSPI swapped mode . . . . .1163
27.5.3Two OCTOSPIs multiplexed mode to Port 1 accessing
two external memories . . . . .
1164
27.5.4Two OCTOSPIs multiplexed mode to Port 2 accessing
two external memories . . . . .
1165
27.5.5OCTOSPI1 and OCTOSPI2 drive a single external memory . . . . .1166
27.5.6A single OCTOSPI drives two external memories . . . . .1166
27.6OCTOSPIM registers . . . . .1168
27.6.1OCTOSPIM control register (OCTOSPIM_CR) . . . . .1168
27.6.2OCTOSPIM register map . . . . .1169
28Secure digital input/output MultiMediaCard interface (SDMMC) . .1170
28.1SDMMC main features . . . . .1170
28.2SDMMC implementation . . . . .1170
28.3SDMMC bus topology . . . . .1171
28.4SDMMC operation modes . . . . .1173
28.5SDMMC functional description1174
28.5.1SDMMC block diagram1174
28.5.2SDMMC pins and internal signals1174
28.5.3General description1175
28.5.4SDMMC adapter1177
28.5.5SDMMC AHB slave interface1199
28.5.6SDMMC AHB master interface1200
28.5.7AHB and SDMMC_CK clock relation1203
28.6Card functional description1203
28.6.1SD I/O mode1203
28.6.2CMD12 send timing1211
28.6.3Sleep (CMD5)1215
28.6.4Interrupt mode (Wait-IRQ)1216
28.6.5Boot operation1217
28.6.6Response R1b handling1220
28.6.7Reset and card cycle power1221
28.7Hardware flow control1222
28.8Ultra-high-speed phase I (UHS-I) voltage switch1222
28.9SDMMC interrupts1226
28.10SDMMC registers1227
28.10.1SDMMC power control register (SDMMC_POWER)1227
28.10.2SDMMC clock control register (SDMMC_CLKCR)1228
28.10.3SDMMC argument register (SDMMC_ARGR)1230
28.10.4SDMMC command register (SDMMC_CMDR)1230
28.10.5SDMMC command response register (SDMMC_RESPCMDR)1232
28.10.6SDMMC response x register (SDMMC_RESPxR)1233
28.10.7SDMMC data timer register (SDMMC_DTIMER)1233
28.10.8SDMMC data length register (SDMMC_DLENR)1234
28.10.9SDMMC data control register (SDMMC_DCTRL)1235
28.10.10SDMMC data counter register (SDMMC_DCNTR)1236
28.10.11SDMMC status register (SDMMC_STAR)1237
28.10.12SDMMC interrupt clear register (SDMMC_ICR)1240
28.10.13SDMMC mask register (SDMMC_MASKR)1242
28.10.14SDMMC acknowledgment timer register (SDMMC_ACKTIMER)1245
28.10.15SDMMC DMA control register (SDMMC_IDMACTRLR)1245
28.10.16SDMMC IDMA buffer size register (SDMMC_IDMABSIZER)1246
28.10.17SDMMC IDMA buffer base address register
(SDMMC_IDMABASER) .....
1247
28.10.18SDMMC IDMA linked list address register (SDMMC_IDMALAR) ...1247
28.10.19SDMMC IDMA linked list memory base register
(SDMMC_IDMABAR) .....
1248
28.10.20SDMMC data FIFO registers x (SDMMC_FIFORx) .....1249
28.10.21SDMMC register map .....1249
29Delay block (DLYB) .....1252
29.1DLYB introduction .....1252
29.2DLYB main features .....1252
29.3DLYB implementation .....1252
29.4DLYB functional description .....1252
29.4.1DLYB diagram .....1252
29.4.2DLYB pins and internal signals .....1253
29.4.3General description .....1253
29.4.4Delay line length configuration procedure .....1254
29.4.5Output clock phase configuration procedure .....1255
29.5DLYB registers .....1255
29.5.1DLYB control register (DLYB_CR) .....1255
29.5.2DLYB configuration register (DLYB_CFGR) .....1256
29.5.3DLYB register map .....1257
30Analog-to-digital converters (ADC1/2/3) .....1258
30.1ADC introduction .....1258
30.2ADC main features .....1258
30.3ADC implementation .....1260
30.4ADC functional description .....1261
30.4.1ADC block diagram .....1261
30.4.2ADC pins and internal signals .....1262
30.4.3ADC clocks .....1265
30.4.4ADC connectivity .....1267
30.4.5Slave AHB interface .....1270
30.4.6ADC Deep-power-down mode (DEEPPWD) and ADC voltage regulator
(ADVREGEN) .....
1270
30.4.7Single-ended and differential input channels .....1271
30.4.8Calibration (ADCAL, ADCALDIF, ADC_CALFACT) .....1271
30.4.9ADC on-off control (ADEN, ADDIS, ADRDY) . . . . .1274
30.4.10Constraints when writing the ADC control bits . . . . .1275
30.4.11Channel selection (ADC_SQRy, ADC_JSQR) . . . . .1276
30.4.12Channel-wise programmable sampling time (SMPR1, SMPR2) . . . . .1277
30.4.13Single conversion mode (CONT = 0) . . . . .1279
30.4.14Continuous conversion mode (CONT = 1) . . . . .1279
30.4.15Starting conversions (ADSTART, JADSTART) . . . . .1280
30.4.16ADC timing . . . . .1281
30.4.17Stopping an ongoing conversion (ADSTP, JADSTP) . . . . .1282
30.4.18Conversion on external trigger and trigger polarity
(EXTSEL, EXTEN, JEXTSEL, JEXTEN) . . . . .
1283
30.4.19Injected channel management . . . . .1285
30.4.20Discontinuous mode (DISCEN, DISCNUM, JDISCEN) . . . . .1286
30.4.21Queue of context for injected conversions . . . . .1287
30.4.22Programmable resolution (RES) - fast conversion mode . . . . .1295
30.4.23End of conversion, end of sampling phase (EOC, JEOC, EOSMP) . . . . .1296
30.4.24End of conversion sequence (EOS, JEOS) . . . . .1296
30.4.25Timing diagrams example (single/continuous modes,
hardware/software triggers) . . . . .
1297
30.4.26Data management . . . . .1299
30.4.27Managing conversions using the ADF/MDF . . . . .1305
30.4.28Dynamic low-power features . . . . .1306
30.4.29Analog window watchdog (AWD1EN, JAWD1EN, AWD1SGL,
AWD1CH, AWD2CH, AWD3CH, AWD_HTx, AWD_LTx, AWDx) . . . . .
1311
30.4.30Oversampler . . . . .1315
30.4.31Dual ADC modes . . . . .1322
30.4.32Temperature sensor . . . . .1335
30.4.33VBAT supply monitoring . . . . .1337
30.4.34Monitoring the internal voltage reference . . . . .1338
30.4.35Monitoring the supply voltage . . . . .1339
30.5ADC interrupts . . . . .1340
30.6ADC registers (for each ADC) . . . . .1341
30.6.1ADC interrupt and status register (ADC_ISR) . . . . .1341
30.6.2ADC interrupt enable register (ADC_IER) . . . . .1343
30.6.3ADC control register (ADC_CR) . . . . .1345
30.6.4ADC configuration register (ADC_CFGR) . . . . .1348
30.6.5ADC configuration register 2 (ADC_CFGR2) . . . . .1353
30.6.6ADC sample time register 1 (ADC_SMPR1) . . . . .1355
30.6.7ADC sample time register 2 (ADC_SMPR2) . . . . .1356
30.6.8ADC watchdog threshold register 1 (ADC_TR1) . . . . .1357
30.6.9ADC watchdog threshold register 2 (ADC_TR2) . . . . .1358
30.6.10ADC watchdog threshold register 3 (ADC_TR3) . . . . .1359
30.6.11ADC regular sequence register 1 (ADC_SQR1) . . . . .1359
30.6.12ADC regular sequence register 2 (ADC_SQR2) . . . . .1360
30.6.13ADC regular sequence register 3 (ADC_SQR3) . . . . .1361
30.6.14ADC regular sequence register 4 (ADC_SQR4) . . . . .1362
30.6.15ADC regular data register (ADC_DR) . . . . .1363
30.6.16ADC injected sequence register (ADC_JSQR) . . . . .1363
30.6.17ADC offset y register (ADC_OFRy) . . . . .1366
30.6.18ADC injected channel y data register (ADC_JDRy) . . . . .1367
30.6.19ADC analog watchdog 2 configuration register (ADC_AWD2CR) . . .1368
30.6.20ADC analog watchdog 3 configuration register (ADC_AWD3CR) . . .1368
30.6.21ADC Differential mode selection register (ADC_DIFSEL) . . . . .1369
30.6.22ADC calibration factors (ADC_CALFACT) . . . . .1370
30.6.23ADC option register (ADC_OR) . . . . .1370
30.7ADC common registers . . . . .1371
30.7.1ADC common status register (ADC_CSR) . . . . .1371
30.7.2ADC common control register (ADC_CCR) . . . . .1373
30.7.3ADC common regular data register for dual mode (ADC_CDR) . . . .1376
30.8ADC register map . . . . .1377
31Digital temperature sensor (DTS) . . . . .1381
31.1DTS introduction . . . . .1381
31.2DTS main features . . . . .1381
31.3DTS functional description . . . . .1382
31.3.1DTS block diagram . . . . .1382
31.3.2DTS internal signals . . . . .1382
31.3.3DTS block operation . . . . .1383
31.3.4Operating modes . . . . .1383
31.3.5Calibration . . . . .1383
31.3.6Prescaler . . . . .1383
31.3.7Temperature measurement principles . . . . .1384
31.3.8Sampling time . . . . .1385
31.3.9Quick measurement mode . . . . .1385
31.3.10Trigger input . . . . .1386
31.3.11On-off control and ready flag1386
31.3.12Temperature measurement sequence1387
31.4DTS low-power modes1388
31.5DTS interrupts1388
31.5.1Temperature window comparator1388
31.5.2Synchronous interrupt1388
31.5.3Asynchronous wake-up1388
31.6DTS registers1389
31.6.1Temperature sensor configuration register 1 (DTS_CFGR1)1389
31.6.2Temperature sensor T0 value register 1 (DTS_T0VALR1)1391
31.6.3Temperature sensor ramp value register (DTS_RAMPVALR)1391
31.6.4Temperature sensor interrupt threshold register 1 (DTS_ITR1)1392
31.6.5Temperature sensor data register (DTS_DR)1392
31.6.6Temperature sensor status register (DTS_SR)1393
31.6.7Temperature sensor interrupt enable register (DTS_ITENR)1394
31.6.8Temperature sensor clear interrupt flag register (DTS_ICIFR)1395
31.6.9Temperature sensor option register (DTS_OR)1396
31.6.10DTS register map1397
32Digital-to-analog converter (DAC)1399
32.1DAC introduction1399
32.2DAC main features1399
32.3DAC implementation1400
32.4DAC functional description1401
32.4.1DAC block diagram1401
32.4.2DAC pins and internal signals1402
32.4.3DAC clocks1403
32.4.4DAC channel enable1403
32.4.5DAC data format1404
32.4.6DAC conversion1405
32.4.7DAC output voltage1407
32.4.8DAC trigger selection1407
32.4.9DMA requests1407
32.4.10Noise generation1408
32.4.11Triangle-wave generation1410
32.4.12DAC channel modes1411
32.4.13DAC channel buffer calibration1414
32.4.14DAC channel conversion modes1415
32.4.15Dual DAC channel conversion modes (if dual channels are available)1416
32.5DAC in low-power modes1420
32.6DAC interrupts1420
32.7DAC registers1421
32.7.1DAC control register (DAC_CR)1421
32.7.2DAC software trigger register (DAC_SWTRGR)1424
32.7.3DAC channel1 12-bit right-aligned data holding register (DAC_DHR12R1)1425
32.7.4DAC channel1 12-bit left aligned data holding register (DAC_DHR12L1)1426
32.7.5DAC channel1 8-bit right aligned data holding register (DAC_DHR8R1)1426
32.7.6DAC channel2 12-bit right aligned data holding register (DAC_DHR12R2)1427
32.7.7DAC channel2 12-bit left aligned data holding register (DAC_DHR12L2)1427
32.7.8DAC channel2 8-bit right-aligned data holding register (DAC_DHR8R2)1428
32.7.9Dual DAC 12-bit right-aligned data holding register (DAC_DHR12RD)1428
32.7.10Dual DAC 12-bit left aligned data holding register (DAC_DHR12LD)1429
32.7.11Dual DAC 8-bit right aligned data holding register (DAC_DHR8RD)1429
32.7.12DAC channel1 data output register (DAC_DOR1)1430
32.7.13DAC channel2 data output register (DAC_DOR2)1430
32.7.14DAC status register (DAC_SR)1431
32.7.15DAC calibration control register (DAC_CCR)1432
32.7.16DAC mode control register (DAC_MCR)1433
32.7.17DAC channel1 sample and hold sample time register (DAC_SHSR1)1434
32.7.18DAC channel2 sample and hold sample time register (DAC_SHSR2)1435
32.7.19DAC sample and hold time register (DAC_SHHR)1435
32.7.20DAC sample and hold refresh time register (DAC_SHRR)1436
32.7.21DAC register map1437
33Voltage reference buffer (VREFBUF) .....1439
33.1VREFBUF introduction .....1439
33.2VREFBUF implementation .....1439
33.3VREFBUF functional description .....1439
33.4VREFBUF trimming .....1440
33.5VREFBUF registers .....1441
33.5.1VREFBUF control and status register (VREFBUF_CSR) .....1441
33.5.2VREFBUF calibration control register (VREFBUF_CCR) .....1442
33.5.3VREFBUF register map .....1442
34Operational amplifiers (OPAMP) .....1443
34.1OPAMP introduction .....1443
34.2OPAMP main features .....1443
34.3OPAMP functional description .....1443
34.3.1OPAMP reset and clocks .....1443
34.3.2Initial configuration .....1444
34.3.3Signal routing .....1444
34.3.4OPAMP modes .....1444
34.3.5Calibration .....1451
34.4OPAMP low-power modes .....1453
34.5OPAMP PGA gain .....1453
34.6OPAMP registers .....1453
34.6.1OPAMP1 control/status register (OPAMP1_CSR) .....1453
34.6.2OPAMP1 trimming register in normal mode (OPAMP1_OTR) .....1455
34.6.3OPAMP1 trimming register in high-speed mode (OPAMP1_HSOTR) .....1456
34.6.4OPAMP register map .....1456
35Comparator (COMP) .....1457
35.1Introduction .....1457
35.2COMP main features .....1457
35.3COMP functional description .....1458
35.3.1COMP block diagram .....1458
35.3.2COMP pins and internal signals .....1458
35.3.3COMP reset and clocks .....1462
35.3.4Comparator LOCK mechanism .....1462
35.3.5Window comparator1462
35.3.6Hysteresis1463
35.3.7Comparator output blanking function1463
35.3.8COMP startup stabilization time1464
35.3.9COMP power and speed modes1464
35.4COMP low-power modes1465
35.5COMP interrupts1465
35.5.1Wake-up interrupt through EXTI1465
35.5.2Interrupt through EXTI1466
35.5.3Interrupt through the NVIC of the CPU1466
35.6SCALER function1466
35.7COMP registers1467
35.7.1Comparator status register (COMP_SR)1467
35.7.2Comparator interrupt clear flag register (COMP_ICFR)1468
35.7.3Comparator configuration register 1 (COMP_CFGR1)1468
35.7.4Comparator configuration register 2 (COMP_CFGR2)1470
35.7.5COMP register map1472
36Multi-function digital filter (MDF)1473
36.1MDF introduction1473
36.2MDF main features1474
36.3MDF implementation1474
36.4MDF functional description1476
36.4.1MDF block diagram1476
36.4.2MDF pins and internal signals1477
36.4.3Serial input interfaces (SITF)1478
36.4.4ADC slave interface (ADCITF)1484
36.4.5Clock generator (CKGEN)1485
36.4.6Bitstream matrix (BSMX)1487
36.4.7Short-circuit detectors (SCD)1488
36.4.8Digital filter processing (DFLT)1490
36.4.9Out-of-limit detector (OLD)1500
36.4.10Digital filter acquisition modes1503
36.4.11Start-up sequence examples1513
36.4.12Break interface1514
36.4.13Data transfer to memory1515
36.4.14Register protection .....1520
36.5MDF low-power modes .....1522
36.6MDF interrupts .....1522
36.7MDF application informations .....1524
36.7.1MDF configuration examples for audio capture .....1524
36.7.2Programming examples .....1525
36.7.3Connection examples .....1527
36.7.4Global frequency response .....1528
36.7.5Total MDF gain .....1529
36.8MDF registers .....1533
36.8.1MDF global control register (MDF_GCR) .....1533
36.8.2MDF clock generator control register (MDF_CKGCR) .....1534
36.8.3MDF serial interface control register x (MDF_SITFxCR) .....1536
36.8.4MDF bitstream matrix control register x (MDF_BSMXxCR) .....1537
36.8.5MDF digital filter control register x (MDF_DFLTxCr) .....1538
36.8.6MDF digital filter configuration register x (MDF_DFLTxCICR) .....1540
36.8.7MDF reshape filter configuration register x (MDF_DFLTxRSFR) .....1542
36.8.8MDF integrator configuration register x (MDF_DFLTxINTR) .....1543
36.8.9MDF out-of limit detector control register x (MDF_OLDxCr) .....1543
36.8.10MDF OLDx low threshold register x (MDF_OLDxTHLR) .....1545
36.8.11MDF OLDx high threshold register x (MDF_OLDxTHHR) .....1545
36.8.12MDF delay control register x (MDF_DLYxCr) .....1546
36.8.13MDF short circuit detector control register x (MDF_SCDxCr) .....1546
36.8.14MDF DFLT0 interrupt enable register 0 (MDF_DFLT0IER) .....1547
36.8.15MDF DFLTx interrupt enable register x (MDF_DFLTxIER) .....1549
36.8.16MDF DFLT0 interrupt status register 0 (MDF_DFLT0ISR) .....1550
36.8.17MDF DFLTx interrupt status register x (MDF_DFLTxISR) .....1552
36.8.18MDF offset error compensation control register x (MDF_OECxCr) .....1553
36.8.19MDF snapshot data register x (MDF_SNPSxDR) .....1554
36.8.20MDF digital filter data register x (MDF_DFLTxDR) .....1554
36.8.21MDF register map .....1555
37Audio digital filter (ADF) .....1557
37.1ADF introduction .....1557
37.2ADF main features .....1557
37.3ADF implementation .....1558
37.4ADF functional description1559
37.4.1ADF block diagram1559
37.4.2ADF pins and internal signals1559
37.4.3Serial input interface (SITF)1560
37.4.4ADC slave interface (ADCITF)1565
37.4.5Clock generator (CKGEN)1565
37.4.6Bitstream matrix (BSMX)1567
37.4.7Digital filter processing (DFLT)1568
37.4.8Digital filter acquisition modes1578
37.4.9Start-up sequence examples1586
37.4.10Sound activity detection (SAD)1587
37.4.11Data transfer to memory1595
37.4.12Register protection1598
37.5ADF low-power modes1599
37.6ADF interrupts1599
37.7ADF application information1601
37.7.1ADF configuration examples for audio capture1601
37.7.2Programming examples1602
37.7.3Connection examples1604
37.7.4Global frequency response1605
37.7.5Total ADF gain1606
37.7.6How to compute SAD thresholds1609
37.8ADF registers1613
37.8.1ADF global control register (ADF_GCR)1613
37.8.2ADF clock generator control register (ADF_CKPCR)1613
37.8.3ADF serial interface control register 0 (ADF_SITF0CR)1615
37.8.4ADF bitstream matrix control register 0 (ADF_BSMX0CR)1617
37.8.5ADF digital filter control register 0 (ADF_DFLT0CR)1617
37.8.6ADF digital filter configuration register 0 (ADF_DFLT0CICR)1619
37.8.7ADF reshape filter configuration register 0 (ADF_DFLT0RSFR)1620
37.8.8ADF delay control register 0 (ADF_DLY0CR)1621
37.8.9ADF DFLT0 interrupt enable register (ADF_DFLT0IER)1622
37.8.10ADF DFLT0 interrupt status register 0 (ADF_DFLT0ISR)1623
37.8.11ADF SAD control register (ADF_SADCR)1624
37.8.12ADF SAD configuration register (ADF_SADCFGR)1626
37.8.13ADF SAD sound level register (ADF_SADSDLVR)1627
37.8.14ADF SAD ambient noise level register (ADF_SADANLVR) . . . . .1628
37.8.15ADF digital filter data register 0 (ADF_DFLT0DR) . . . . .1628
37.8.16ADF register map . . . . .1628
38Digital camera interface (DCMI) . . . . .1631
38.1DCMI introduction . . . . .1631
38.2DCMI main features . . . . .1631
38.3DCMI functional description . . . . .1631
38.3.1DCMI block diagram . . . . .1632
38.3.2DCMI pins and internal signals . . . . .1632
38.3.3DCMI clocks . . . . .1633
38.3.4DCMI DMA interface . . . . .1633
38.3.5DCMI physical interface . . . . .1633
38.3.6DCMI synchronization . . . . .1635
38.3.7DCMI capture modes . . . . .1637
38.3.8DCMI crop feature . . . . .1638
38.3.9DCMI JPEG format . . . . .1639
38.3.10DCMI FIFO . . . . .1639
38.3.11DCMI data format description . . . . .1640
38.4DCMI interrupts . . . . .1642
38.5DCMI registers . . . . .1642
38.5.1DCMI control register (DCMI_CR) . . . . .1642
38.5.2DCMI status register (DCMI_SR) . . . . .1645
38.5.3DCMI raw interrupt status register (DCMI_RIS) . . . . .1645
38.5.4DCMI interrupt enable register (DCMI_IER) . . . . .1646
38.5.5DCMI masked interrupt status register (DCMI_MIS) . . . . .1647
38.5.6DCMI interrupt clear register (DCMI_ICR) . . . . .1648
38.5.7DCMI embedded synchronization code register (DCMI_ESCR) . . . . .1649
38.5.8DCMI embedded synchronization unmask register (DCMI_ESUR) . . . . .1649
38.5.9DCMI crop window start (DCMI_CWSTRT) . . . . .1650
38.5.10DCMI crop window size (DCMI_CWSIZE) . . . . .1651
38.5.11DCMI data register (DCMI_DR) . . . . .1651
38.5.12DCMI register map . . . . .1652
39Parallel synchronous slave interface (PSSI) . . . . .1653
39.1PSSI introduction . . . . .1653
39.2PSSI main features .....1653
39.3PSSI functional description .....1653
39.3.1PSSI block diagram .....1654
39.3.2PSSI pins and internal signals .....1654
39.3.3PSSI clock .....1655
39.3.4PSSI data management .....1655
39.3.5PSSI optional control signals .....1657
39.4PSSI interrupts .....1660
39.5PSSI registers .....1661
39.5.1PSSI control register (PSSI_CR) .....1661
39.5.2PSSI status register (PSSI_SR) .....1662
39.5.3PSSI raw interrupt status register (PSSI_RIS) .....1663
39.5.4PSSI interrupt enable register (PSSI_IER) .....1664
39.5.5PSSI masked interrupt status register (PSSI_MIS) .....1664
39.5.6PSSI interrupt clear register (PSSI_ICR) .....1665
39.5.7PSSI data register (PSSI_DR) .....1665
39.5.8PSSI register map .....1666
40LCD-TFT display controller (LTDC) .....1667
40.1Introduction .....1667
40.2LTDC main features .....1667
40.3LTDC functional description .....1668
40.3.1LTDC block diagram .....1668
40.3.2LTDC pins and internal signals .....1668
40.3.3LTDC reset and clocks .....1669
40.4LTDC programmable parameters .....1671
40.4.1LTDC global configuration parameters .....1671
40.4.2Layer programmable parameters .....1673
40.5LTDC interrupts .....1677
40.6LTDC programming procedure .....1678
40.7LTDC registers .....1679
40.7.1LTDC synchronization size configuration register (LTDC_SSCR) ...1679
40.7.2LTDC back porch configuration register (LTDC_BPCR) .....1679
40.7.3LTDC active width configuration register (LTDC_AWCR) .....1680
40.7.4LTDC total width configuration register (LTDC_TWCR) .....1681
40.7.5LTDC global control register (LTDC_GCR) .....1681
40.7.6LTDC shadow reload configuration register (LTDC_SRCR) . . . . .1683
40.7.7LTDC background color configuration register (LTDC_BCCR) . . . . .1683
40.7.8LTDC interrupt enable register (LTDC_IER) . . . . .1684
40.7.9LTDC interrupt status register (LTDC_ISR) . . . . .1685
40.7.10LTDC interrupt clear register (LTDC_ICR) . . . . .1685
40.7.11LTDC line interrupt position configuration register (LTDC_LIPCR) . . .1686
40.7.12LTDC current position status register (LTDC_CPSR) . . . . .1686
40.7.13LTDC current display status register (LTDC_CDSR) . . . . .1687
40.7.14LTDC layer x control register (LTDC_LxCR) . . . . .1687
40.7.15LTDC layer x window horizontal position configuration register
(LTDC_LxWHPCR) . . . . .
1688
40.7.16LTDC layer x window vertical position configuration register
(LTDC_LxWVPCR) . . . . .
1689
40.7.17LTDC layer x color keying configuration register
(LTDC_LxCKCR) . . . . .
1690
40.7.18LTDC layer x pixel format configuration register
(LTDC_LxPFCR) . . . . .
1690
40.7.19LTDC layer x constant alpha configuration register
(LTDC_LxCACR) . . . . .
1691
40.7.20LTDC layer x default color configuration register
(LTDC_LxDCCR) . . . . .
1691
40.7.21LTDC layer x blending factors configuration register
(LTDC_LxBFCR) . . . . .
1692
40.7.22LTDC layer x color frame buffer address register
(LTDC_LxCFBAR) . . . . .
1693
40.7.23LTDC layer x color frame buffer length register
(LTDC_LxCFBLR) . . . . .
1693
40.7.24LTDC layer x color frame buffer line number register
(LTDC_LxCFBLNR) . . . . .
1694
40.7.25LTDC layer x CLUT write register (LTDC_LxCLUTWR) . . . . .1694
40.7.26LTDC register map . . . . .1695
41JPEG codec (JPEG) . . . . .1698
41.1JPEG introduction . . . . .1698
41.2JPEG codec main features . . . . .1698
41.3JPEG codec block functional description . . . . .1699
41.3.1General description . . . . .1699
41.3.2JPEG internal signals . . . . .1699
41.3.3JPEG decoding procedure . . . . .1700
41.3.4JPEG encoding procedure . . . . .1702
41.4JPEG codec interrupts1705
41.5JPEG codec registers1705
41.5.1JPEG codec control register (JPEG_CONFR0)1705
41.5.2JPEG codec configuration register 1 (JPEG_CONFR1)1706
41.5.3JPEG codec configuration register 2 (JPEG_CONFR2)1707
41.5.4JPEG codec configuration register 3 (JPEG_CONFR3)1707
41.5.5JPEG codec configuration register x (JPEG_CONFRx)1708
41.5.6JPEG control register (JPEG_CR)1709
41.5.7JPEG status register (JPEG_SR)1710
41.5.8JPEG clear flag register (JPEG_CFR)1711
41.5.9JPEG data input register (JPEG_DIR)1712
41.5.10JPEG data output register (JPEG_DOR)1712
41.5.11JPEG quantization memory x (JPEG_QMEMx_y)1713
41.5.12JPEG Huffman min (JPEG_HUFFMINx_y)1713
41.5.13JPEG Huffman min x (JPEG_HUFFMINx_y)1714
41.5.14JPEG Huffman base (JPEG_HUFFBASEx)1714
41.5.15JPEG Huffman symbol (JPEG_HUFFSYMBx)1715
41.5.16JPEG DHT memory (JPEG_DHTMEMx)1716
41.5.17JPEG Huffman encoder ACx (JPEG_HUFFENC_ACx_y)1716
41.5.18JPEG Huffman encoder DCx (JPEG_HUFFENC_DCx_y)1717
41.5.19JPEG codec register map1718
42Coupling and chaining bridge (CCB)1720
42.1CCB introduction1720
42.2CCB main features1720
42.3CCB implementation1721
42.4CCB functional description1721
42.4.1CCB block diagram1721
42.4.2CCB internal signals1722
42.4.3CCB reset and clocks1722
42.4.4CCB coupling and chaining1722
42.4.5CCB error management1725
42.5CCB coupling and chaining operations1725
42.5.1Preliminary steps before any protected operation1727
42.5.2ECDSA signature1728
42.5.3ECC scalar multiplication1735
42.5.4RSA modular exponentiation . . . . .1738
42.6CCB interrupts . . . . .1740
42.7CCB registers . . . . .1741
42.7.1CCB control register (CCB_CR) . . . . .1741
42.7.2CCB status register (CCB_SR) . . . . .1742
42.7.3CCB reference tag register (CCB_REFTAGRx) . . . . .1744
42.7.4CCB register map . . . . .1745
43True random number generator (RNG) . . . . .1746
43.1RNG introduction . . . . .1746
43.2RNG main features . . . . .1746
43.3RNG functional description . . . . .1747
43.3.1RNG block diagram . . . . .1747
43.3.2RNG internal signals . . . . .1747
43.3.3Random number generation . . . . .1748
43.3.4RNG initialization . . . . .1750
43.3.5RNG operation . . . . .1751
43.3.6RNG clocking . . . . .1753
43.3.7Error management . . . . .1753
43.3.8RNG low-power use . . . . .1755
43.4RNG interrupts . . . . .1755
43.5RNG processing time . . . . .1756
43.6RNG entropy source validation . . . . .1756
43.6.1Introduction . . . . .1756
43.6.2Validation conditions . . . . .1756
43.7RNG registers . . . . .1758
43.7.1RNG control register (RNG_CR) . . . . .1758
43.7.2RNG status register (RNG_SR) . . . . .1760
43.7.3RNG data register (RNG_DR) . . . . .1761
43.7.4RNG noise source control register (RNG_NSCR) . . . . .1762
43.7.5RNG health test control register x (RNG_HTCRx) . . . . .1762
43.7.6RNG health test status register 0 (RNG_HTSR0) . . . . .1763
43.7.7RNG health test status register 1 (RNG_HTSR1) . . . . .1763
43.7.8RNG noise source mask register (RNG_NSMR) . . . . .1764
43.7.9RNG register map . . . . .1765
44AES hardware accelerator (AES)1766
44.1AES introduction1766
44.2AES main features1766
44.3AES implementation1767
44.4AES functional description1767
44.4.1AES block diagram1767
44.4.2AES internal signals1768
44.4.3AES reset and clocks1768
44.4.4AES symmetric cipher implementation1768
44.4.5AES encryption or decryption typical usage1769
44.4.6AES authenticated encryption, decryption, and cipher-based message authentication1771
44.4.7AES ciphertext stealing and data padding1771
44.4.8AES suspend and resume operations1772
44.4.9AES basic chaining modes (ECB, CBC)1773
44.4.10AES counter (CTR) mode1776
44.4.11AES Galois/counter mode (GCM)1779
44.4.12AES Galois message authentication code (GMAC)1783
44.4.13AES counter with CBC-MAC (CCM)1784
44.4.14AES key sharing with secure AES co-processor1789
44.4.15AES data registers and data swapping1790
44.4.16AES key registers1792
44.4.17AES initialization vector registers1792
44.4.18AES error management1793
44.5AES interrupts1794
44.6AES DMA requests1794
44.7AES processing latency1795
44.8AES registers1797
44.8.1AES control register (AES_CR)1797
44.8.2AES status register (AES_SR)1799
44.8.3AES data input register (AES_DINR)1800
44.8.4AES data output register (AES_DOUTR)1801
44.8.5AES key register 0 (AES_KEYR0)1801
44.8.6AES key register 1 (AES_KEYR1)1802
44.8.7AES key register 2 (AES_KEYR2)1802
44.8.8AES key register 3 (AES_KEYR3)1802
44.8.9AES initialization vector register 0 (AES_IVR0) . . . . .1803
44.8.10AES initialization vector register 1 (AES_IVR1) . . . . .1803
44.8.11AES initialization vector register 2 (AES_IVR2) . . . . .1803
44.8.12AES initialization vector register 3 (AES_IVR3) . . . . .1804
44.8.13AES key register 4 (AES_KEYR4) . . . . .1804
44.8.14AES key register 5 (AES_KEYR5) . . . . .1804
44.8.15AES key register 6 (AES_KEYR6) . . . . .1805
44.8.16AES key register 7 (AES_KEYR7) . . . . .1805
44.8.17AES suspend registers (AES_SUSPRx) . . . . .1805
44.8.18AES interrupt enable register (AES_IER) . . . . .1806
44.8.19AES interrupt status register (AES_ISR) . . . . .1807
44.8.20AES interrupt clear register (AES_ICR) . . . . .1808
44.8.21AES register map . . . . .1808
45Secure AES coprocessor (SAES) . . . . .1811
45.1SAES introduction . . . . .1811
45.2SAES main features . . . . .1811
45.3SAES implementation . . . . .1812
45.4SAES functional description . . . . .1812
45.4.1SAES block diagram . . . . .1812
45.4.2SAES internal signals . . . . .1813
45.4.3SAES reset and clocks . . . . .1814
45.4.4SAES symmetric cipher implementation . . . . .1814
45.4.5SAES encryption or decryption typical usage . . . . .1815
45.4.6SAES authenticated encryption, decryption, and cipher-based message authentication . . . . .1817
45.4.7SAES ciphertext stealing and data padding . . . . .1818
45.4.8SAES suspend and resume operations . . . . .1818
45.4.9SAES basic chaining modes (ECB, CBC) . . . . .1819
45.4.10SAES counter (CTR) mode . . . . .1823
45.4.11SAES Galois/counter mode (GCM) . . . . .1825
45.4.12SAES Galois message authentication code (GMAC) . . . . .1829
45.4.13SAES counter with CBC-MAC (CCM) . . . . .1831
45.4.14SAES operation with wrapped keys . . . . .1836
45.4.15SAES operation with shared keys . . . . .1840
45.4.16SAES data registers and data swapping . . . . .1841
45.4.17SAES key registers . . . . .1844
45.4.18SAES initialization vector registers1845
45.4.19SAES error management1846
45.5SAES interrupts1848
45.6SAES DMA requests1848
45.7SAES processing latency1849
45.8SAES registers1851
45.8.1SAES control register (SAES_CR)1851
45.8.2SAES status register (SAES_SR)1854
45.8.3SAES data input register (SAES_DINR)1855
45.8.4SAES data output register (SAES_DOUTR)1856
45.8.5SAES key register 0 (SAES_KEYR0)1856
45.8.6SAES key register 1 (SAES_KEYR1)1857
45.8.7SAES key register 2 (SAES_KEYR2)1857
45.8.8SAES key register 3 (SAES_KEYR3)1857
45.8.9SAES initialization vector register 0 (SAES_IVR0)1858
45.8.10SAES initialization vector register 1 (SAES_IVR1)1858
45.8.11SAES initialization vector register 2 (SAES_IVR2)1858
45.8.12SAES initialization vector register 3 (SAES_IVR3)1859
45.8.13SAES key register 4 (SAES_KEYR4)1859
45.8.14SAES key register 5 (SAES_KEYR5)1859
45.8.15SAES key register 6 (SAES_KEYR6)1860
45.8.16SAES key register 7 (SAES_KEYR7)1860
45.8.17SAES suspend registers (SAES_SUSPRx)1860
45.8.18SAES interrupt enable register (SAES_IER)1861
45.8.19SAES interrupt status register (SAES_ISR)1862
45.8.20SAES interrupt clear register (SAES_ICR)1863
45.8.21SAES register map1864
46Hash processor (HASH)1866
46.1HASH introduction1866
46.2HASH main features1866
46.3HASH implementation1867
46.4HASH functional description1867
46.4.1HASH block diagram1867
46.4.2HASH internal signals1868
46.4.3About secure hash algorithms1868
46.4.4Message data feeding .....1869
46.4.5Message digest computing .....1870
46.4.6Message padding .....1873
46.4.7HMAC operation .....1874
46.4.8HASH suspend/resume operations .....1876
46.4.9HASH DMA interface .....1878
46.4.10HASH error management .....1879
46.4.11HASH processing time .....1879
46.5HASH interrupts .....1879
46.6HASH registers .....1880
46.6.1HASH control register (HASH_CR) .....1880
46.6.2HASH data input register (HASH_DIN) .....1882
46.6.3HASH start register (HASH_STR) .....1883
46.6.4HASH digest registers .....1884
46.6.5HASH interrupt enable register (HASH_IMR) .....1886
46.6.6HASH status register (HASH_SR) .....1886
46.6.7HASH context swap registers .....1888
46.6.8HASH register map .....1888
47Public key accelerator (PKA) .....1890
47.1PKA introduction .....1890
47.2PKA main features .....1890
47.3PKA functional description .....1891
47.3.1PKA block diagram .....1891
47.3.2PKA internal signals .....1891
47.3.3PKA reset and clocks .....1892
47.3.4PKA public key acceleration .....1892
47.3.5Typical applications for PKA .....1894
47.3.6PKA procedure to perform an operation .....1896
47.3.7Private keys protection using CCB .....1897
47.3.8PKA error management .....1901
47.4PKA operating modes .....1901
47.4.1Introduction .....1901
47.4.2Montgomery parameter computation .....1903
47.4.3Modular addition .....1903
47.4.4Modular subtraction .....1904
47.4.5Modular and Montgomery multiplication1904
47.4.6Modular exponentiation1905
47.4.7Modular inversion1907
47.4.8Modular reduction1907
47.4.9Arithmetic addition1908
47.4.10Arithmetic subtraction1908
47.4.11Arithmetic multiplication1909
47.4.12Arithmetic comparison1909
47.4.13RSA CRT exponentiation1909
47.4.14Point on elliptic curve \(F_p\) check1910
47.4.15ECC \(F_p\) scalar multiplication1911
47.4.16ECDSA sign1912
47.4.17ECDSA verification1914
47.4.18ECC complete addition1915
47.4.19ECC double base ladder1915
47.4.20ECC projective to affine1916
47.5Example of configurations and processing times1917
47.5.1Supported elliptic curves1917
47.5.2Computation times1919
47.6PKA interrupts1921
47.7PKA registers1922
47.7.1PKA control register (PKA_CR)1922
47.7.2PKA status register (PKA_SR)1924
47.7.3PKA clear flag register (PKA_CLRFR)1926
47.7.4PKA RAM1927
47.7.5PKA register map1928
48On-the-fly decryption engine (OTFDEC)1929
48.1OTFDEC introduction1929
48.2OTFDEC main features1929
48.3OTFDEC functional description1930
48.3.1OTFDEC block diagram1930
48.3.2OTFDEC internal signals1930
48.3.3OTFDEC on-the-fly decryption1931
48.3.4OTFDEC usage of AES in counter mode decryption1932
48.3.5Flow control management1933
48.3.6OTFDEC error management1933
48.4OTFDEC interrupts1934
48.5OTFDEC application information1934
48.5.1OTFDEC initialization process1934
48.5.2OTFDEC and power management1936
48.5.3Encrypting for OTFDEC1936
48.5.4OTFDEC key CRC source code1937
48.6OTFDEC registers1938
48.6.1OTFDEC control register (OTFDEC_CR)1938
48.6.2OTFDEC privileged access control configuration register (OTFDEC_PRIVCFGR)1939
48.6.3OTFDEC region x configuration register (OTFDEC_RxCFGR)1939
48.6.4OTFDEC region x start address register (OTFDEC_RxSTARTADDR)1941
48.6.5OTFDEC region x end address register (OTFDEC_RxENDADDR)1941
48.6.6OTFDEC region x nonce register 0 (OTFDEC_RxNONCER0)1942
48.6.7OTFDEC region x nonce register 1 (OTFDEC_RxNONCER1)1943
48.6.8OTFDEC region x key register 0 (OTFDEC_RxKEYR0)1943
48.6.9OTFDEC region x key register 1 (OTFDEC_RxKEYR1)1944
48.6.10OTFDEC region x key register 2 (OTFDEC_RxKEYR2)1944
48.6.11OTFDEC region x key register 3 (OTFDEC_RxKEYR3)1945
48.6.12OTFDEC interrupt status register (OTFDEC_ISR)1945
48.6.13OTFDEC interrupt clear register (OTFDEC_ICR)1946
48.6.14OTFDEC interrupt enable register (OTFDEC_IER)1947
48.6.15OTFDEC register map1948
49Advanced-control timers (TIM1/TIM8)1952
49.1TIM1/TIM8 introduction1952
49.2TIM1/TIM8 main features1952
49.3TIM1/TIM8 functional description1953
49.3.1Block diagram1953
49.3.2TIM1/TIM8 pins and internal signals1954
49.3.3Time-base unit1958
49.3.4Counter modes1961
49.3.5Repetition counter1973
49.3.6External trigger input1974
49.3.7Clock selection1975
49.3.8Capture/compare channels .....1979
49.3.9Input capture mode .....1982
49.3.10PWM input mode .....1983
49.3.11Forced output mode .....1984
49.3.12Output compare mode .....1984
49.3.13PWM mode .....1986
49.3.14Asymmetric PWM mode .....1994
49.3.15Combined PWM mode .....1995
49.3.16Combined 3-phase PWM mode .....1996
49.3.17Complementary outputs and dead-time insertion .....1997
49.3.18Using the break function .....2000
49.3.19Bidirectional break inputs .....2006
49.3.20Clearing the tim_ocxref signal on an external event .....2007
49.3.216-step PWM generation .....2009
49.3.22One-pulse mode .....2010
49.3.23Retriggerable One-pulse mode .....2012
49.3.24Pulse on compare mode .....2013
49.3.25Encoder interface mode .....2015
49.3.26Direction bit output .....2032
49.3.27UIF bit remapping .....2033
49.3.28Timer input XOR function .....2033
49.3.29Interfacing with Hall sensors .....2033
49.3.30Timer synchronization .....2035
49.3.31ADC triggers .....2040
49.3.32DMA burst mode .....2040
49.3.33TIM1/TIM8 DMA requests .....2041
49.3.34Debug mode .....2041
49.4TIM1/TIM8 low-power modes .....2042
49.5TIM1/TIM8 interrupts .....2042
49.6TIM1/TIM8 registers .....2043
49.6.1TIMx control register 1 (TIMx_CR1)(x = 1, 8) .....2043
49.6.2TIMx control register 2 (TIMx_CR2)(x = 1, 8) .....2044
49.6.3TIMx slave mode control register (TIMx_SMCR)(x = 1, 8) .....2048
49.6.4TIMx DMA/interrupt enable register (TIMx_DIER)(x = 1, 8) .....2052
49.6.5TIMx status register (TIMx_SR)(x = 1, 8) .....2053
49.6.6TIMx event generation register (TIMx_EGR)(x = 1, 8) .....2056
49.6.7TIMx capture/compare mode register 1 (TIMx_CCMR1)
(x = 1, 8) .....
2057
49.6.8TIMx capture/compare mode register 1 [alternate]
(TIMx_CCMR1)(x = 1, 8) .....
2059
49.6.9TIMx capture/compare mode register 2 (TIMx_CCMR2)
(x = 1, 8) .....
2062
49.6.10TIMx capture/compare mode register 2 [alternate]
(TIMx_CCMR2)(x = 1, 8) .....
2063
49.6.11TIMx capture/compare enable register (TIMx_CCER)(x = 1, 8) ....2066
49.6.12TIMx counter (TIMx_CNT)(x = 1, 8) .....2070
49.6.13TIMx prescaler (TIMx_PSC)(x = 1, 8) .....2070
49.6.14TIMx autoreload register (TIMx_ARR)(x = 1, 8) .....2071
49.6.15TIMx repetition counter register (TIMx_RCR)(x = 1, 8) .....2071
49.6.16TIMx capture/compare register 1 (TIMx_CCR1)(x = 1, 8) .....2072
49.6.17TIMx capture/compare register 2 (TIMx_CCR2)(x = 1, 8) .....2072
49.6.18TIMx capture/compare register 3 (TIMx_CCR3)(x = 1, 8) .....2073
49.6.19TIMx capture/compare register 4 (TIMx_CCR4)(x = 1, 8) .....2074
49.6.20TIMx break and dead-time register (TIMx_BDTR)(x = 1, 8) .....2075
49.6.21TIMx capture/compare register 5 (TIMx_CCR5)(x = 1, 8) .....2079
49.6.22TIMx capture/compare register 6 (TIMx_CCR6)(x = 1, 8) .....2080
49.6.23TIMx capture/compare mode register 3 (TIMx_CCMR3)
(x = 1, 8) .....
2081
49.6.24TIMx timer deadtime register 2 (TIMx_DTR2)(x = 1, 8) .....2082
49.6.25TIMx timer encoder control register (TIMx_ECR)(x = 1, 8) .....2083
49.6.26TIMx timer input selection register (TIMx_TISEL)(x = 1, 8) .....2084
49.6.27TIMx alternate function option register 1 (TIMx_AF1)(x = 1, 8) ....2085
49.6.28TIMx alternate function register 2 (TIMx_AF2)(x = 1, 8) .....2088
49.6.29TIMx DMA control register (TIMx_DCR)(x = 1, 8) .....2090
49.6.30TIMx DMA address for full transfer (TIMx_DMAR)(x = 1, 8) .....2092
49.6.31TIMx register map .....2092
50General-purpose timers (TIM2/TIM3/TIM4/TIM5) .....2095
50.1TIM2/TIM3/TIM4/TIM5 introduction .....2095
50.2TIM2/TIM3/TIM4/TIM5 main features .....2095
50.3TIM2/TIM3/TIM4/TIM5 implementation .....2096
50.4TIM2/TIM3/TIM4/TIM5 functional description .....2097
50.4.1Block diagram .....2097
50.4.2TIM2/TIM3/TIM4/TIM5 pins and internal signals .....2098
50.4.3Time-base unit .....2102
50.4.4Counter modes .....2104
50.4.5Clock selection .....2115
50.4.6Capture/compare channels .....2119
50.4.7Input capture mode .....2121
50.4.8PWM input mode .....2122
50.4.9Forced output mode .....2123
50.4.10Output compare mode .....2123
50.4.11PWM mode .....2125
50.4.12Asymmetric PWM mode .....2133
50.4.13Combined PWM mode .....2134
50.4.14Clearing the tim_ocxref signal on an external event .....2135
50.4.15One-pulse mode .....2137
50.4.16Retriggerable one-pulse mode .....2138
50.4.17Pulse on compare mode .....2139
50.4.18Encoder interface mode .....2141
50.4.19Direction bit output .....2159
50.4.20UIF bit remapping .....2160
50.4.21Timer input XOR function .....2160
50.4.22Timers and external trigger synchronization .....2160
50.4.23Timer synchronization .....2164
50.4.24ADC triggers .....2169
50.4.25DMA burst mode .....2170
50.4.26TIM2/TIM3/TIM4/TIM5 DMA requests .....2171
50.4.27Debug mode .....2171
50.4.28TIM2/TIM3/TIM4/TIM5 low-power modes .....2171
50.4.29TIM2/TIM3/TIM4/TIM5 interrupts .....2172
50.5TIM2/TIM3/TIM4/TIM5 registers .....2173
50.5.1TIMx control register 1 (TIMx_CR1)(x = 2 to 5) .....2173
50.5.2TIMx control register 2 (TIMx_CR2)(x = 2 to 5) .....2174
50.5.3TIMx slave mode control register (TIMx_SMCR)(x = 2 to 5) .....2176
50.5.4TIMx DMA/Interrupt enable register (TIMx_DIER)(x = 2 to 5) .....2180
50.5.5TIMx status register (TIMx_SR)(x = 2 to 5) .....2181
50.5.6TIMx event generation register (TIMx_EGR)(x = 2 to 5) .....2183
50.5.7TIMx capture/compare mode register 1 (TIMx_CCMR1)(x = 2 to 5) ..2184
50.5.8TIMx capture/compare mode register 1 [alternate]
(TIMx_CCMR1)(x = 2 to 5) .....
2186
50.5.9TIMx capture/compare mode register 2 (TIMx_CCMR2)(x = 2 to 5) .2188
50.5.10TIMx capture/compare mode register 2 [alternate]
(TIMx_CCMR2)(x = 2 to 5) . . . . .
2189
50.5.11TIMx capture/compare enable register (TIMx_CCER)(x = 2 to 5) . . .2192
50.5.12TIMx counter (TIMx_CNT)(x = 3, 4) . . . . .2193
50.5.13TIMx counter (TIMx_CNT)(x = 2, 5) . . . . .2194
50.5.14TIMx prescaler (TIMx_PSC)(x = 2 to 5) . . . . .2194
50.5.15TIMx autoreload register (TIMx_ARR)(x = 3, 4) . . . . .2195
50.5.16TIMx autoreload register (TIMx_ARR)(x = 2, 5) . . . . .2195
50.5.17TIMx capture/compare register 1 (TIMx_CCR1)(x = 3, 4) . . . . .2196
50.5.18TIMx capture/compare register 1 (TIMx_CCR1)(x = 2, 5) . . . . .2197
50.5.19TIMx capture/compare register 2 (TIMx_CCR2)(x = 3, 4) . . . . .2197
50.5.20TIMx capture/compare register 2 (TIMx_CCR2)(x = 2, 5) . . . . .2198
50.5.21TIMx capture/compare register 3 (TIMx_CCR3)(x = 3, 4) . . . . .2199
50.5.22TIMx capture/compare register 3 (TIMx_CCR3)(x = 2, 5) . . . . .2200
50.5.23TIMx capture/compare register 4 (TIMx_CCR4)(x = 3, 4) . . . . .2201
50.5.24TIMx capture/compare register 4 (TIMx_CCR4)(x = 2, 5) . . . . .2202
50.5.25TIMx timer encoder control register (TIMx_ECR)(x = 2 to 5) . . . . .2203
50.5.26TIMx timer input selection register (TIMx_TISEL)(x = 2 to 5) . . . . .2204
50.5.27TIMx alternate function register 1 (TIMx_AF1)(x = 2 to 5) . . . . .2205
50.5.28TIMx alternate function register 2 (TIMx_AF2)(x = 2 to 5) . . . . .2206
50.5.29TIMx DMA control register (TIMx_DCR)(x = 2 to 5) . . . . .2207
50.5.30TIMx DMA address for full transfer (TIMx_DMAR)(x = 2 to 5) . . . . .2208
50.5.31TIMx register map . . . . .2209
51Basic timers (TIM6/TIM7) . . . . .2212
51.1TIM6/TIM7 introduction . . . . .2212
51.2TIM6/TIM7 main features . . . . .2212
51.3TIM6/TIM7 functional description . . . . .2213
51.3.1TIM6/TIM7 block diagram . . . . .2213
51.3.2TIM6/TIM7 internal signals . . . . .2213
51.3.3TIM6/TIM7 clocks . . . . .2214
51.3.4Time-base unit . . . . .2214
51.3.5Counting mode . . . . .2216
51.3.6UIF bit remapping . . . . .2223
51.3.7ADC triggers . . . . .2224
51.3.8TIM6/TIM7 DMA requests . . . . .2224
51.3.9Debug mode2224
51.3.10TIM6/TIM7 low-power modes2224
51.3.11TIM6/TIM7 interrupts2224
51.4TIM6/TIM7 registers2225
51.4.1TIMx control register 1 (TIMx_CR1)(x = 6 to 7)2225
51.4.2TIMx control register 2 (TIMx_CR2)(x = 6 to 7)2227
51.4.3TIMx DMA/Interrupt enable register (TIMx_DIER)(x = 6 to 7)2227
51.4.4TIMx status register (TIMx_SR)(x = 6 to 7)2228
51.4.5TIMx event generation register (TIMx_EGR)(x = 6 to 7)2228
51.4.6TIMx counter (TIMx_CNT)(x = 6 to 7)2228
51.4.7TIMx prescaler (TIMx_PSC)(x = 6 to 7)2229
51.4.8TIMx autoreload register (TIMx_ARR)(x = 6 to 7)2229
51.4.9TIMx register map2230
52General-purpose timers (TIM12/TIM13/TIM14)2231
52.1TIM12/TIM13/TIM14 introduction2231
52.2TIM12 main features2231
52.3TIM13/TIM14 main features2232
52.4TIM12/TIM13/TIM14 functional description2233
52.4.1Block diagram2233
52.4.2TIM12/TIM13/TIM14 pins and internal signals2234
52.4.3Time-base unit2237
52.4.4Counter modes2239
52.4.5Clock selection2242
52.4.6Capture/compare channels2244
52.4.7Input capture mode2246
52.4.8PWM input mode (TIM12 only)2247
52.4.9Forced output mode2248
52.4.10Output compare mode2249
52.4.11PWM mode2250
52.4.12Combined PWM mode (TIM12 only)2255
52.4.13One-pulse mode2256
52.4.14Retriggerable one pulse mode (TIM12 only)2258
52.4.15UIF bit remapping2259
52.4.16Timer input XOR function2259
52.4.17TIM12 external trigger synchronization2259
52.4.18Slave mode – combined reset + trigger mode2262
52.4.19Slave mode – combined reset + gated mode2262
52.4.20Timer synchronization (TIM12 only)2262
52.4.21Using timer output as trigger for other timers
(TIM13/TIM14 only)
2262
52.4.22ADC triggers (TIM12 only)2262
52.4.23Debug mode2262
52.5TIM12/TIM13/TIM14 low-power modes2263
52.6TIM12/TIM13/TIM14 interrupts2263
52.7TIM12 registers2263
52.7.1TIM12 control register 1 (TIM12_CR1)2263
52.7.2TIM12 control register 2 (TIM12_CR2)2265
52.7.3TIM12 slave mode control register (TIM12_SMCR)2265
52.7.4TIM12 interrupt enable register (TIM12_DIER)2267
52.7.5TIM12 status register (TIM12_SR)2268
52.7.6TIM12 event generation register (TIM12_EGR)2269
52.7.7TIM12 capture/compare mode register 1 (TIM12_CCMR1)2270
52.7.8TIM12 capture/compare mode register 1 [alternate]
(TIM12_CCMR1)
2271
52.7.9TIM12 capture/compare enable register (TIM12_CCER)2274
52.7.10TIM12 counter (TIM12_CNT)2275
52.7.11TIM12 prescaler (TIM12_PSC)2276
52.7.12TIM12 autoreload register (TIM12_ARR)2276
52.7.13TIM12 capture/compare register 1 (TIM12_CCR1)2277
52.7.14TIM12 capture/compare register 2 (TIM12_CCR2)2277
52.7.15TIM12 timer input selection register (TIM12_TISEL)2278
52.7.16TIM12 register map2279
52.8TIM13/TIM14 registers2281
52.8.1TIMx control register 1 (TIMx_CR1)(x = 13, 14)2281
52.8.2TIMx interrupt enable register (TIMx_DIER)(x = 13, 14)2282
52.8.3TIMx status register (TIMx_SR)(x = 13, 14)2282
52.8.4TIMx event generation register (TIMx_EGR)(x = 13, 14)2283
52.8.5TIMx capture/compare mode register 1
(TIMx_CCMR1)(x = 13, 14)
2284
52.8.6TIMx capture/compare mode register 1 [alternate]
(TIMx_CCMR1)(x = 13, 14)
2285
52.8.7TIMx capture/compare enable register
(TIMx_CCER)(x = 13, 14)
2287
52.8.8TIMx counter (TIMx_CNT)(x = 13, 14)2288
52.8.9TIMx prescaler (TIMx_PSC)(x = 13, 14) .....2289
52.8.10TIMx autoreload register (TIMx_ARR)(x = 13, 14) .....2289
52.8.11TIMx capture/compare register 1 (TIMx_CCR1)(x = 13, 14) .....2290
52.8.12TIMx timer input selection register (TIMx_TISEL)(x = 13, 14) .....2290
52.8.13TIM13/TIM14 register map .....2291
53General purpose timers (TIM15/TIM16/TIM17) .....2293
53.1TIM15/TIM16/TIM17 introduction .....2293
53.2TIM15 main features .....2293
53.3TIM16/TIM17 main features .....2294
53.4TIM15/TIM16/TIM17 functional description .....2295
53.4.1Block diagram .....2295
53.4.2TIM15/TIM16/TIM17 pins and internal signals .....2296
53.4.3Time-base unit .....2300
53.4.4Counter modes .....2302
53.4.5Repetition counter .....2306
53.4.6Clock selection .....2307
53.4.7Capture/compare channels .....2309
53.4.8Input capture mode .....2311
53.4.9PWM input mode (only for TIM15) .....2313
53.4.10Forced output mode .....2314
53.4.11Output compare mode .....2314
53.4.12PWM mode .....2316
53.4.13Combined PWM mode (TIM15 only) .....2321
53.4.14Complementary outputs and dead-time insertion .....2322
53.4.15Using the break function .....2325
53.4.16Bidirectional break input .....2329
53.4.17Clearing the tim_ocxref signal on an external event .....2330
53.4.186-step PWM generation .....2331
53.4.19One-pulse mode .....2333
53.4.20Retriggerable one pulse mode (TIM15 only) .....2334
53.4.21UIF bit remapping .....2335
53.4.22Timer input XOR function (TIM15 only) .....2335
53.4.23External trigger synchronization (TIM15 only) .....2335
53.4.24Slave mode – combined reset + trigger mode (TIM15 only) .....2338
53.4.25Slave mode – combined reset + gated mode (TIM15 only) .....2338
53.4.26Timer synchronization (TIM15 only) .....2339
53.4.27Using timer output as trigger for other timers (TIM16/TIM17 only) . . .2339
53.4.28ADC triggers (TIM15 only) . . . . .2339
53.4.29DMA burst mode . . . . .2339
53.4.30TIM15/TIM16/TIM17 DMA requests . . . . .2340
53.4.31Debug mode . . . . .2340
53.5TIM15/TIM16/TIM17 low-power modes . . . . .2341
53.6TIM15/TIM16/TIM17 interrupts . . . . .2341
53.7TIM15 registers . . . . .2341
53.7.1TIM15 control register 1 (TIM15_CR1) . . . . .2342
53.7.2TIM15 control register 2 (TIM15_CR2) . . . . .2343
53.7.3TIM15 slave mode control register (TIM15_SMCR) . . . . .2345
53.7.4TIM15 DMA/interrupt enable register (TIM15_DIER) . . . . .2347
53.7.5TIM15 status register (TIM15_SR) . . . . .2348
53.7.6TIM15 event generation register (TIM15_EGR) . . . . .2350
53.7.7TIM15 capture/compare mode register 1 (TIM15_CCMR1) . . . . .2351
53.7.8TIM15 capture/compare mode register 1 [alternate]
(TIM15_CCMR1) . . . . .
2352
53.7.9TIM15 capture/compare enable register (TIM15_CCER) . . . . .2355
53.7.10TIM15 counter (TIM15_CNT) . . . . .2358
53.7.11TIM15 prescaler (TIM15_PSC) . . . . .2358
53.7.12TIM15 autoreload register (TIM15_ARR) . . . . .2359
53.7.13TIM15 repetition counter register (TIM15_RCR) . . . . .2359
53.7.14TIM15 capture/compare register 1 (TIM15_CCR1) . . . . .2360
53.7.15TIM15 capture/compare register 2 (TIM15_CCR2) . . . . .2361
53.7.16TIM15 break and dead-time register (TIM15_BDTR) . . . . .2361
53.7.17TIM15 timer deadtime register 2 (TIM15_DTR2) . . . . .2364
53.7.18TIM15 input selection register (TIM15_TISEL) . . . . .2365
53.7.19TIM15 alternate function register 1 (TIM15_AF1) . . . . .2366
53.7.20TIM15 alternate function register 2 (TIM15_AF2) . . . . .2368
53.7.21TIM15 DMA control register (TIM15_DCR) . . . . .2369
53.7.22TIM15 DMA address for full transfer (TIM15_DMAR) . . . . .2370
53.7.23TIM15 register map . . . . .2370
53.8TIM16/TIM17 registers . . . . .2373
53.8.1TIMx control register 1 (TIMx_CR1)(x = 16 to 17) . . . . .2373
53.8.2TIMx control register 2 (TIMx_CR2)(x = 16 to 17) . . . . .2374
53.8.3TIMx DMA/interrupt enable register (TIMx_DIER)(x = 16 to 17) . . . .2375
53.8.4TIMx status register (TIMx_SR)(x = 16 to 17) . . . . .2376
53.8.5TIMx event generation register (TIMx_EGR)(x = 16 to 17) . . . . .2377
53.8.6TIMx capture/compare mode register 1 (TIMx_CCMR1)
(x = 16 to 17) . . . . .
2378
53.8.7TIMx capture/compare mode register 1 [alternate]
(TIMx_CCMR1)(x = 16 to 17) . . . . .
2379
53.8.8TIMx capture/compare enable register (TIMx_CCER)(x = 16 to 17) . . . . .2381
53.8.9TIMx counter (TIMx_CNT)(x = 16 to 17) . . . . .2384
53.8.10TIMx prescaler (TIMx_PSC)(x = 16 to 17) . . . . .2384
53.8.11TIMx auto-reautoreload register (TIMx_ARR)(x = 16 to 17) . . . . .2385
53.8.12TIMx repetition counter register (TIMx_RCR)(x = 16 to 17) . . . . .2385
53.8.13TIMx capture/compare register 1 (TIMx_CCR1)(x = 16 to 17) . . . . .2386
53.8.14TIMx break and dead-time register (TIMx_BDTR)(x = 16 to 17) . . . . .2387
53.8.15TIMx timer deadtime register 2 (TIMx_DTR2)(x = 16 to 17) . . . . .2390
53.8.16TIMx input selection register (TIMx_TISEL)(x = 16 to 17) . . . . .2391
53.8.17TIMx alternate function register 1 (TIMx_AF1)(x = 16 to 17) . . . . .2391
53.8.18TIMx alternate function register 2 (TIMx_AF2)(x = 16 to 17) . . . . .2394
53.8.19TIM17 option register 1 (TIM17_OR1) . . . . .2394
53.8.20TIMx DMA control register (TIMx_DCR)(x = 16 to 17) . . . . .2395
53.8.21TIM16/TIM17 DMA address for full transfer
(TIMx_DMAR)(x = 16 to 17) . . . . .
2396
53.8.22TIM16/TIM17 register map . . . . .2397
54Low-power timer (LPTIM) . . . . .2400
54.1LPTIM introduction . . . . .2400
54.2LPTIM main features . . . . .2400
54.3LPTIM implementation . . . . .2401
54.4LPTIM functional description . . . . .2402
54.4.1LPTIM block diagram . . . . .2402
54.4.2LPTIM pins and internal signals . . . . .2403
54.4.3LPTIM input and trigger mapping . . . . .2405
54.4.4LPTIM reset and clocks . . . . .2406
54.4.5Glitch filter . . . . .2407
54.4.6Prescaler . . . . .2408
54.4.7Trigger multiplexer . . . . .2408
54.4.8Operating mode . . . . .2409
54.4.9Timeout function . . . . .2411
54.4.10Waveform generation . . . . .2411
54.4.11Register update . . . . .2412
54.4.12Counter mode2413
54.4.13Timer enable2413
54.4.14Timer counter reset2414
54.4.15Encoder mode2414
54.4.16Repetition counter2416
54.4.17Capture/compare channels2417
54.4.18Input capture mode2418
54.4.19PWM mode2420
54.4.20DMA requests2422
54.4.21Debug mode2423
54.5LPTIM low-power modes2423
54.6LPTIM interrupts2423
54.7LPTIM registers2424
54.7.1LPTIM4 interrupt and status register (LPTIM4_ISR)2425
54.7.2LPTIMx interrupt and status register [alternate] (LPTIMx_ISR)
(x = 1 to 3, 5, 6)
2426
54.7.3LPTIMx interrupt and status register [alternate] (LPTIMx_ISR)
(x = 1 to 3, 5, 6)
2428
54.7.4LPTIM4 interrupt clear register (LPTIM4_ICR)2430
54.7.5LPTIMx interrupt clear register [alternate] (LPTIMx_ICR)
(x = 1 to 3, 5, 6)
2431
54.7.6LPTIMx interrupt clear register [alternate] (LPTIMx_ICR)
(x = 1 to 3, 5, 6)
2432
54.7.7LPTIM4 interrupt enable register (LPTIM4_DIER)2433
54.7.8LPTIMx interrupt enable register [alternate] (LPTIMx_DIER)
(x = 1 to 3, 5, 6)
2435
54.7.9LPTIMx interrupt enable register [alternate] (LPTIMx_DIER)
(x = 1 to 3, 5, 6)
2436
54.7.10LPTIM configuration register (LPTIM_CFGR)2438
54.7.11LPTIM control register (LPTIM_CR)2441
54.7.12LPTIM compare register 1 (LPTIM_CCR1)2442
54.7.13LPTIM autoreload register (LPTIM_ARR)2443
54.7.14LPTIM counter register (LPTIM_CNT)2443
54.7.15LPTIM configuration register 2 (LPTIM_CFGR2)2444
54.7.16LPTIM repetition register (LPTIM_RCR)2445
54.7.17LPTIM capture/compare mode register 1 (LPTIM_CCMR1)2445
54.7.18LPTIM compare register 2 (LPTIM_CCR2)2448
54.7.19LPTIM register map2448
55Independent watchdog (IWDG) . . . . .2451
55.1IWDG introduction . . . . .2451
55.2IWDG main features . . . . .2451
55.3IWDG implementation . . . . .2451
55.4IWDG functional description . . . . .2452
55.4.1IWDG block diagram . . . . .2452
55.4.2IWDG internal signals . . . . .2453
55.4.3Software and hardware watchdog modes . . . . .2453
55.4.4Window option . . . . .2454
55.4.5Debug . . . . .2457
55.4.6Register access protection . . . . .2457
55.5IWDG low power modes . . . . .2458
55.6IWDG interrupts . . . . .2458
55.7IWDG registers . . . . .2460
55.7.1IWDG key register (IWDG_KR) . . . . .2461
55.7.2IWDG prescaler register (IWDG_PR) . . . . .2461
55.7.3IWDG reload register (IWDG_RLR) . . . . .2462
55.7.4IWDG status register (IWDG_SR) . . . . .2462
55.7.5IWDG window register (IWDG_WINR) . . . . .2464
55.7.6IWDG early wake-up interrupt register (IWDG_EWCR) . . . . .2464
55.7.7IWDG register map . . . . .2466
56System window watchdog (WWDG) . . . . .2467
56.1WWDG introduction . . . . .2467
56.2WWDG main features . . . . .2467
56.3WWDG implementation . . . . .2467
56.4WWDG functional description . . . . .2468
56.4.1WWDG block diagram . . . . .2468
56.4.2WWDG internal signals . . . . .2468
56.4.3Enabling the watchdog . . . . .2469
56.4.4Controlling the down-counter . . . . .2469
56.4.5How to program the watchdog timeout . . . . .2469
56.4.6Debug mode . . . . .2470
56.5WWDG interrupts . . . . .2471
56.6WWDG registers . . . . .2471
56.6.1WWDG control register (WWDG_CR) .....2471
56.6.2WWDG configuration register (WWDG_CFR) .....2472
56.6.3WWDG status register (WWDG_SR) .....2473
56.6.4WWDG register map .....2473
57Real-time clock (RTC) .....2474
57.1RTC introduction .....2474
57.2RTC main features .....2474
57.3RTC functional description .....2475
57.3.1RTC block diagram .....2475
57.3.2RTC pins and internal signals .....2477
57.3.3GPIOs controlled by the RTC and TAMP .....2478
57.3.4RTC secure protection modes .....2482
57.3.5RTC privilege protection modes .....2484
57.3.6Clock and prescalers .....2485
57.3.7Real-time clock and calendar .....2486
57.3.8Calendar ultra-low power mode .....2486
57.3.9Programmable alarms .....2487
57.3.10Periodic auto-wake-up .....2487
57.3.11RTC initialization and configuration .....2488
57.3.12Reading the calendar .....2491
57.3.13Resetting the RTC .....2492
57.3.14RTC synchronization .....2492
57.3.15RTC reference clock detection .....2492
57.3.16RTC smooth digital calibration .....2493
57.3.17Timestamp function .....2495
57.3.18Calibration clock output .....2496
57.3.19Tamper and alarm output .....2497
57.4RTC low-power modes .....2497
57.5RTC interrupts .....2498
57.6RTC registers .....2499
57.6.1RTC time register (RTC_TR) .....2499
57.6.2RTC date register (RTC_DR) .....2500
57.6.3RTC subsecond register (RTC_SSR) .....2501
57.6.4RTC initialization control and status register (RTC_ICSR) .....2502
57.6.5RTC prescaler register (RTC_PRER) .....2504
57.6.6RTC wake-up timer register (RTC_WUTR) .....2505
57.6.7RTC control register (RTC_CR) .....2505
57.6.8RTC privilege mode control register (RTC_PRIVCFGR) .....2509
57.6.9RTC secure configuration register (RTC_SECCFGR) .....2511
57.6.10RTC write protection register (RTC_WPR) .....2512
57.6.11RTC calibration register (RTC_CALR) .....2513
57.6.12RTC shift control register (RTC_SHIFTR) .....2514
57.6.13RTC timestamp time register (RTC_TSTR) .....2515
57.6.14RTC timestamp date register (RTC_TSDR) .....2516
57.6.15RTC timestamp subsecond register (RTC_TSSSR) .....2517
57.6.16RTC alarm A register (RTC_ALRMAR) .....2517
57.6.17RTC alarm A subsecond register (RTC_ALRMASSR) .....2519
57.6.18RTC alarm B register (RTC_ALRMBR) .....2520
57.6.19RTC alarm B subsecond register (RTC_ALRMBSSR) .....2521
57.6.20RTC status register (RTC_SR) .....2522
57.6.21RTC nonsecure masked interrupt status register (RTC_MISR) .....2523
57.6.22RTC secure masked interrupt status register (RTC_SMISR) .....2524
57.6.23RTC status clear register (RTC_SCR) .....2525
57.6.24RTC option register (RTC_OR) .....2526
57.6.25RTC alarm A binary mode register (RTC_ALRABINR) .....2527
57.6.26RTC alarm B binary mode register (RTC_ALRBBINR) .....2527
57.6.27RTC register map .....2529
58Tamper and backup registers (TAMP) .....2532
58.1TAMP introduction .....2532
58.2TAMP main features .....2533
58.3TAMP functional description .....2534
58.3.1TAMP block diagram .....2534
58.3.2TAMP pins and internal signals .....2535
58.3.3GPIOs controlled by the RTC and TAMP .....2538
58.3.4TAMP register write protection .....2538
58.3.5TAMP secure protection modes .....2538
58.3.6Backup registers protection zones .....2539
58.3.7TAMP privilege protection modes .....2539
58.3.8Boot hardware key (BHK) .....2540
58.3.9Tamper detection .....2540
58.3.10TAMP backup registers and other device secrets erase .....2540
58.3.11Tamper detection configuration and initialization2542
58.4TAMP low-power modes2549
58.5TAMP interrupts2549
58.6TAMP registers2549
58.6.1TAMP control register 1 (TAMP_CR1)2550
58.6.2TAMP control register 2 (TAMP_CR2)2552
58.6.3TAMP control register 3 (TAMP_CR3)2554
58.6.4TAMP filter control register (TAMP_FLTCR)2555
58.6.5TAMP active tamper control register 1 (TAMP_ATCR1)2557
58.6.6TAMP active tamper seed register (TAMP_ATSEEDR)2559
58.6.7TAMP active tamper output register (TAMP_ATOM)2559
58.6.8TAMP active tamper control register 2 (TAMP_ATCR2)2560
58.6.9TAMP secure configuration register (TAMP_SECCFGR)2563
58.6.10TAMP privilege configuration register (TAMP_PRIVCFGR)2565
58.6.11TAMP interrupt enable register (TAMP_IER)2566
58.6.12TAMP status register (TAMP_SR)2568
58.6.13TAMP nonsecure masked interrupt status register (TAMP_MISR)2570
58.6.14TAMP secure masked interrupt status register (TAMP_SMISR)2571
58.6.15TAMP status clear register (TAMP_SCR)2573
58.6.16TAMP monotonic counter 1 register (TAMP_COUNT1R)2575
58.6.17TAMP option register (TAMP_OR)2575
58.6.18TAMP resources protection configuration register (TAMP_RPCFGR)2576
58.6.19TAMP backup x register (TAMP_BKPxR)2577
58.6.20TAMP register map2578
59Inter-integrated circuit interface (I2C)2580
59.1I2C introduction2580
59.2I2C main features2580
59.3I2C implementation2581
59.4I2C functional description2581
59.4.1I2C block diagram2582
59.4.2I2C pins and internal signals2582
59.4.3I2C clock requirements2583
59.4.4I2C mode selection2583
59.4.5I2C initialization2584
59.4.6I2C reset2588
59.4.7I2C data transfer2589
59.4.8I2C target mode2591
59.4.9I2C controller mode2600
59.4.10I2C_TIMINGR register configuration examples2611
59.4.11SMBus specific features2613
59.4.12SMBus initialization2615
59.4.13SMBus I2C_TIMEOUTR register configuration examples2617
59.4.14SMBus target mode2618
59.4.15SMBus controller mode2621
59.4.16Wake-up from Stop mode on address match2624
59.4.17Error conditions2625
59.5I2C in low-power modes2627
59.6I2C interrupts2627
59.7I2C DMA requests2628
59.7.1Transmission using DMA2628
59.7.2Reception using DMA2628
59.8I2C debug modes2628
59.9I2C registers2629
59.9.1I2C control register 1 (I2C_CR1)2629
59.9.2I2C control register 2 (I2C_CR2)2632
59.9.3I2C own address 1 register (I2C_OAR1)2634
59.9.4I2C own address 2 register (I2C_OAR2)2634
59.9.5I2C timing register (I2C_TIMINGR)2635
59.9.6I2C timeout register (I2C_TIMEOUTR)2636
59.9.7I2C interrupt and status register (I2C_ISR)2637
59.9.8I2C interrupt clear register (I2C_ICR)2640
59.9.9I2C PEC register (I2C_PECR)2641
59.9.10I2C receive data register (I2C_RXDR)2641
59.9.11I2C transmit data register (I2C_TXDR)2642
59.9.12I2C register map2643
60Improved inter-integrated circuit (I3C)2644
60.1I3C introduction2644
60.2I3C main features2644
60.3I3C implementation2646
60.3.1I3C instantiation2646
60.3.2I3C wake-up from low-power mode(s) . . . . .2646
60.3.3I3C FIFOs . . . . .2646
60.3.4I3C triggers . . . . .2646
60.3.5I3C interrupt(s) . . . . .2646
60.3.6I3C MIPI® support . . . . .2647
60.4I3C block diagram . . . . .2648
60.5I3C pins and internal signals . . . . .2648
60.6I3C reset and clocks . . . . .2649
60.6.1I3C reset . . . . .2649
60.6.2I3C clocks and requirements . . . . .2649
60.7I3C peripheral state and programming . . . . .2651
60.7.1I3C peripheral state . . . . .2651
60.7.2I3C controller state and programming sequence . . . . .2652
60.7.3I3C target state and programming sequence . . . . .2657
60.8I3C registers and programming . . . . .2661
60.8.1I3C register set, as controller/target . . . . .2661
60.8.2I3C registers and fields use versus peripheral state, as controller . . . . .2662
60.8.3I3C registers and fields usage versus peripheral state, as target . . . . .2665
60.9I3C bus transfers and programming . . . . .2667
60.9.1I3C command set (CCCs), as controller/target . . . . .2667
60.9.2I3C broadcast/direct CCC transfer (except ENTDAA, RSTACT),
as controller . . . . .
2671
60.9.3I3C broadcast ENTDAA CCC transfer, as controller . . . . .2673
60.9.4I3C broadcast/direct RSTACT CCC transfer, as controller . . . . .2673
60.9.5I3C broadcast/direct CCC transfer
(except ENTDAA, DEFTGTS, DEFGRPA), as target . . . . .
2675
60.9.6I3C broadcast ENTDAA CCC transfer, as target . . . . .2677
60.9.7I3C broadcast DEFTGTS CCC transfer, as target . . . . .2678
60.9.8I3C broadcast DEFGRPA CCC transfer, as target . . . . .2679
60.9.9I3C direct GETSTATUS CCC response, as target . . . . .2680
60.9.10I3C private read/write transfer, as controller . . . . .2681
60.9.11I3C private read/write transfer, as target . . . . .2682
60.9.12Legacy I2C read/write transfer, as controller . . . . .2683
60.9.13I3C IBI transfer, as controller/target . . . . .2684
60.9.14I3C hot-join request transfer, as controller/target . . . . .2686
60.9.15I3C controller-role request transfer, as controller/target . . . . .2687
60.10I3C FIFOs management, as controller . . . . .2688
60.10.1C-FIFO management, as controller2688
60.10.2TX-FIFO management, as controller2689
60.10.3RX-FIFO management, as controller2692
60.10.4S-FIFO management, as controller2694
60.11I3C FIFOs management, as target2696
60.11.1RX-FIFO management, as target2696
60.11.2TX-FIFO management, as target2697
60.12I3C error management2700
60.12.1Controller error management2700
60.12.2Target error management2702
60.13I3C in low-power modes2703
60.14I3C interrupts2704
60.15I3C registers2704
60.15.1I3C message control register (I3C_CR)2704
60.15.2I3C message control register [alternate] (I3C_CR)2706
60.15.3I3C configuration register (I3C_CFGR)2708
60.15.4I3C receive data byte register (I3C_RDR)2713
60.15.5I3C receive data word register (I3C_RDWR)2714
60.15.6I3C transmit data byte register (I3C_TDR)2715
60.15.7I3C transmit data word register (I3C_TDWR)2716
60.15.8I3C IBI payload data register (I3C_IBIDR)2717
60.15.9I3C target transmit configuration register (I3C_TGTTDR)2718
60.15.10I3C status register (I3C_SR)2719
60.15.11I3C status error register (I3C_SER)2720
60.15.12I3C received message register (I3C_RMR)2722
60.15.13I3C event register (I3C_EVR)2723
60.15.14I3C interrupt enable register (I3C_IER)2727
60.15.15I3C clear event register (I3C_CEV)2729
60.15.16I3C masked interrupt status register (I3C_MISR)2731
60.15.17I3C own device characteristics register (I3C_DEVR0)2732
60.15.18I3C device x characteristics register (I3C_DEVRx)2734
60.15.19I3C maximum read length register (I3C_MAXRLR)2736
60.15.20I3C maximum write length register (I3C_MAXWLR)2737
60.15.21I3C timing register 0 (I3C_TIMINGR0)2738
60.15.22I3C timing register 1 (I3C_TIMINGR1)2739
60.15.23I3C timing register 2 (I3C_TIMINGR2)2741
60.15.24I3C bus characteristics register (I3C_BCR) .....2742
60.15.25I3C device characteristics register (I3C_DCR) .....2743
60.15.26I3C get capability register (I3C_GETCAPR) .....2744
60.15.27I3C controller-role capability register (I3C_CRCAPR) .....2745
60.15.28I3C get max data speed register (I3C_GETMXDSR) .....2746
60.15.29I3C extended provisioned ID register (I3C_EPIDR) .....2748
60.15.30I3C register map .....2749
61Universal synchronous/asynchronous receiver transmitter (USART/UART) .....2752
61.1USART introduction .....2752
61.2USART main features .....2752
61.3USART extended features .....2753
61.4USART implementation .....2753
61.5USART functional description .....2755
61.5.1USART block diagram .....2755
61.5.2USART pins and internal signals .....2755
61.5.3USART clocks .....2757
61.5.4USART character description .....2757
61.5.5USART FIFOs and thresholds .....2760
61.5.6USART transmitter .....2760
61.5.7USART receiver .....2763
61.5.8USART baud rate generation .....2770
61.5.9Tolerance of the USART receiver to clock deviation .....2772
61.5.10USART auto baud rate detection .....2773
61.5.11USART multiprocessor communication .....2775
61.5.12USART Modbus communication .....2777
61.5.13USART parity control .....2778
61.5.14USART LIN (local interconnection network) mode .....2779
61.5.15USART synchronous mode .....2781
61.5.16USART single-wire half-duplex communication .....2785
61.5.17USART receiver timeout .....2785
61.5.18USART smartcard mode .....2786
61.5.19USART IrDA SIR ENDEC block .....2790
61.5.20Continuous communication using USART and DMA .....2793
61.5.21RS232 hardware flow control and RS485 driver enable .....2795
61.5.22USART low-power management .....2798
61.6USART in low-power modes2801
61.7USART interrupts2801
61.8USART registers2804
61.8.1USART control register 1 (USART_CR1)2804
61.8.2USART control register 1 [alternate] (USART_CR1)2808
61.8.3USART control register 2 (USART_CR2)2811
61.8.4USART control register 3 (USART_CR3)2815
61.8.5USART control register 3 [alternate] (USART_CR3)2819
61.8.6USART baud rate register (USART_BRR)2822
61.8.7USART guard time and prescaler register (USART_GTPR)2823
61.8.8USART receiver timeout register (USART_RTOR)2824
61.8.9USART request register (USART_RQR)2825
61.8.10USART interrupt and status register (USART_ISR)2826
61.8.11USART interrupt and status register [alternate] (USART_ISR)2832
61.8.12USART interrupt flag clear register (USART_ICR)2837
61.8.13USART receive data register (USART_RDR)2838
61.8.14USART transmit data register (USART_TDR)2839
61.8.15USART prescaler register (USART_PRESC)2839
61.8.16USART register map2840
62Low-power universal asynchronous receiver transmitter (LPUART)2842
62.1LPUART introduction2842
62.2LPUART main features2842
62.3LPUART implementation2843
62.4LPUART functional description2845
62.4.1LPUART block diagram2845
62.4.2LPUART pins and internal signals2846
62.4.3LPUART clocks2847
62.4.4LPUART character description2847
62.4.5LPUART FIFOs and thresholds2849
62.4.6LPUART transmitter2849
62.4.7LPUART receiver2853
62.4.8LPUART baud rate generation2857
62.4.9Tolerance of the LPUART receiver to clock deviation2858
62.4.10LPUART multiprocessor communication2859
62.4.11LPUART parity control2861
62.4.12LPUART single-wire half-duplex communication . . . . .2862
62.4.13Continuous communication using DMA and LPUART . . . . .2862
62.4.14RS232 hardware flow control and RS485 driver enable . . . . .2865
62.4.15LPUART low-power management . . . . .2867
62.5LPUART in low-power modes . . . . .2870
62.6LPUART interrupts . . . . .2871
62.7LPUART registers . . . . .2872
62.7.1LPUART control register 1 (LPUART_CR1) . . . . .2872
62.7.2LPUART control register 1 [alternate] (LPUART_CR1) . . . . .2875
62.7.3LPUART control register 2 (LPUART_CR2) . . . . .2878
62.7.4LPUART control register 3 (LPUART_CR3) . . . . .2880
62.7.5LPUART control register 3 [alternate] (LPUART_CR3) . . . . .2883
62.7.6LPUART baud rate register (LPUART_BRR) . . . . .2885
62.7.7LPUART request register (LPUART_RQR) . . . . .2885
62.7.8LPUART interrupt and status register (LPUART_ISR) . . . . .2886
62.7.9LPUART interrupt and status register [alternate] (LPUART_ISR) . . . . .2891
62.7.10LPUART interrupt flag clear register (LPUART_ICR) . . . . .2894
62.7.11LPUART receive data register (LPUART_RDR) . . . . .2895
62.7.12LPUART transmit data register (LPUART_TDR) . . . . .2895
62.7.13LPUART prescaler register (LPUART_PRESC) . . . . .2896
62.7.14LPUART register map . . . . .2897
63Serial peripheral interface (SPI) . . . . .2899
63.1SPI introduction . . . . .2899
63.2SPI main features . . . . .2899
63.3SPI implementation . . . . .2900
63.4SPI functional description . . . . .2901
63.4.1SPI block diagram . . . . .2901
63.4.2SPI pins and internal signals . . . . .2902
63.4.3SPI communication general aspects . . . . .2903
63.4.4Communications between one master and one slave . . . . .2903
63.4.5Standard multislave communication . . . . .2906
63.4.6Multimaster communication . . . . .2909
63.4.7Slave select (NSS pin) management . . . . .2910
63.4.8Ready pin (RDY) management . . . . .2914
63.4.9Communication formats . . . . .2914
63.4.10Configuring the SPI .....2916
63.4.11Enabling the SPI .....2917
63.4.12SPI data transmission and reception procedures .....2918
63.4.13Disabling the SPI .....2922
63.4.14Communication using DMA (direct memory addressing) .....2923
63.5SPI specific modes and control .....2925
63.5.1TI mode .....2925
63.5.2SPI error flags .....2925
63.5.3CRC computation .....2929
63.6SPI in low-power modes .....2930
63.7SPI interrupts .....2930
63.8I2S main features .....2932
63.9I2S functional description .....2932
63.9.1I2S general description .....2932
63.9.2Pin sharing with SPI function .....2933
63.9.3Bitfields usable in I2S/PCM mode .....2933
63.9.4Slave and master modes .....2934
63.9.5Supported audio protocols .....2934
63.9.6Additional serial interface flexibility .....2940
63.9.7Startup sequence .....2942
63.9.8Stop sequence .....2944
63.9.9Clock generator .....2945
63.9.10Internal FIFOs .....2947
63.9.11FIFO status flags .....2948
63.9.12Handling of underrun situation .....2948
63.9.13Handling of overrun situation .....2949
63.9.14Frame error detection .....2950
63.9.15DMA interface .....2952
63.9.16Programing examples .....2952
63.10I2S interrupts .....2954
63.11SPI/I2S registers .....2955
63.11.1SPI/I2S control register 1 (SPI_CR1) .....2955
63.11.2SPI/I2S control register 2 (SPI_CR2) .....2957
63.11.3SPI/I2S configuration register 1 (SPI_CFG1) .....2957
63.11.4SPI/I2S configuration register 2 (SPI_CFG2) .....2961
63.11.5SPI/I2S interrupt enable register (SPI_IER) .....2963
63.11.6SPI/I2S status register (SPI_SR) .....2964
63.11.7SPI/I2S interrupt/status flags clear register (SPI_IFCR) .....2967
63.11.8SPI/I2S transmit data register (SPI_TXDR) .....2968
63.11.9SPI/I2S receive data register (SPI_RXDR) .....2968
63.11.10SPI/I2S polynomial register (SPI_CRCPOLY) .....2969
63.11.11SPI/I2S transmitter CRC register (SPI_TXCRC) .....2969
63.11.12SPI/I2S receiver CRC register (SPI_RXCRC) .....2970
63.11.13SPI/I2S underrun data register (SPI_UDRDR) .....2971
63.11.14SPI/I2S configuration register (SPI_I2SCFGR) .....2971
63.11.15SPI/I2S register map .....2973
64Serial audio interface (SAI) .....2975
64.1SAI introduction .....2975
64.2SAI main features .....2975
64.3SAI implementation .....2976
64.4SAI functional description .....2977
64.4.1SAI block diagram .....2977
64.4.2SAI pins and internal signals .....2978
64.4.3Main SAI modes .....2979
64.4.4SAI synchronization mode .....2980
64.4.5Audio data size .....2981
64.4.6Frame synchronization .....2981
64.4.7Slot configuration .....2984
64.4.8SAI clock generator .....2986
64.4.9Internal FIFOs .....2989
64.4.10PDM interface .....2991
64.4.11AC'97 link controller .....2999
64.4.12SPDIF output .....3001
64.4.13Specific features .....3004
64.4.14Error flags .....3008
64.4.15Disabling the SAI .....3011
64.4.16SAI DMA interface .....3011
64.5SAI interrupts .....3012
64.6SAI registers .....3014
64.6.1SAI global configuration register (SAI_GCR) .....3014
64.6.2SAI configuration register 1 (SAI_ACR1) .....3014
64.6.3SAI configuration register 2 (SAI_ACR2) .....3017
64.6.4SAI frame configuration register (SAI_AFRCR) .....3019
64.6.5SAI slot register (SAI_ASLOTR) .....3020
64.6.6SAI interrupt mask register (SAI_AIM) .....3021
64.6.7SAI status register (SAI_ASR) .....3023
64.6.8SAI clear flag register (SAI_ACLRFR) .....3025
64.6.9SAI data register (SAI_ADR) .....3026
64.6.10SAI configuration register 1 (SAI_BCR1) .....3026
64.6.11SAI configuration register 2 (SAI_BCR2) .....3029
64.6.12SAI frame configuration register (SAI_BFRCR) .....3031
64.6.13SAI slot register (SAI_BSLOTR) .....3032
64.6.14SAI interrupt mask register (SAI_BIM) .....3033
64.6.15SAI status register (SAI_BSR) .....3034
64.6.16SAI clear flag register (SAI_BCLRFR) .....3036
64.6.17SAI data register (SAI_BDR) .....3037
64.6.18SAI PDM control register (SAI_PDMCR) .....3038
64.6.19SAI PDM delay register (SAI_PDMDLY) .....3039
64.6.20SAI register map .....3041
65FD controller area network (FDCAN) .....3043
65.1FDCAN introduction .....3043
65.2FDCAN main features .....3045
65.3FDCAN functional description .....3046
65.3.1FDCAN block diagram .....3046
65.3.2FDCAN pins and internal signals .....3047
65.3.3Bit timing .....3048
65.3.4Operating modes .....3049
65.3.5Error management .....3058
65.3.6Message RAM .....3059
65.3.7FIFO acknowledge handling .....3068
65.3.8FDCAN Rx FIFO element .....3068
65.3.9FDCAN Tx buffer element .....3070
65.3.10FDCAN Tx event FIFO element .....3072
65.3.11FDCAN standard message ID filter element .....3073
65.3.12FDCAN extended message ID filter element .....3074
65.4FDCAN registers .....3076
65.4.1FDCAN core release register (FDCAN_CREL) .....3076
65.4.2FDCAN endian register (FDCAN_ENDN) .....3076
65.4.3FDCAN data bit timing and prescaler register (FDCAN_DBTP) ....3076
65.4.4FDCAN test register (FDCAN_TEST) .....3077
65.4.5FDCAN RAM watchdog register (FDCAN_RWD) .....3078
65.4.6FDCAN CC control register (FDCAN_CCCR) .....3079
65.4.7FDCAN nominal bit timing and prescaler register (FDCAN_NBTP) ..3080
65.4.8FDCAN timestamp counter configuration register (FDCAN_TSCC) ..3082
65.4.9FDCAN timestamp counter value register (FDCAN_TSCV) .....3082
65.4.10FDCAN timeout counter configuration register (FDCAN_TOCC) ....3083
65.4.11FDCAN timeout counter value register (FDCAN_TOCV) .....3084
65.4.12FDCAN error counter register (FDCAN_ECR) .....3084
65.4.13FDCAN protocol status register (FDCAN_PSR) .....3085
65.4.14FDCAN transmitter delay compensation register (FDCAN_TDCR) ..3087
65.4.15FDCAN interrupt register (FDCAN_IR) .....3087
65.4.16FDCAN interrupt enable register (FDCAN_IE) .....3090
65.4.17FDCAN interrupt line select register (FDCAN_ILS) .....3092
65.4.18FDCAN interrupt line enable register (FDCAN_ILE) .....3093
65.4.19FDCAN global filter configuration register (FDCAN_RXGFC) .....3093
65.4.20FDCAN extended ID and mask register (FDCAN_XIDAM) .....3095
65.4.21FDCAN high-priority message status register (FDCAN_HPMS) ....3095
65.4.22FDCAN Rx FIFO 0 status register (FDCAN_RXF0S) .....3096
65.4.23CAN Rx FIFO 0 acknowledge register (FDCAN_RXF0A) .....3097
65.4.24FDCAN Rx FIFO 1 status register (FDCAN_RXF1S) .....3097
65.4.25FDCAN Rx FIFO 1 acknowledge register (FDCAN_RXF1A) .....3098
65.4.26FDCAN Tx buffer configuration register (FDCAN_TXBC) .....3098
65.4.27FDCAN Tx FIFO/queue status register (FDCAN_TXFQS) .....3099
65.4.28FDCAN Tx buffer request pending register (FDCAN_TXBRP) ....3099
65.4.29FDCAN Tx buffer add request register (FDCAN_TXBAR) .....3100
65.4.30FDCAN Tx buffer cancellation request register (FDCAN_TXBCR) ..3101
65.4.31FDCAN Tx buffer transmission occurred register (FDCAN_TXBTO) ..3101
65.4.32FDCAN Tx buffer cancellation finished register (FDCAN_TXBCF) ..3102
65.4.33FDCAN Tx buffer transmission interrupt enable register
(FDCAN_TXBTIE) .....
3102
65.4.34FDCAN Tx buffer cancellation finished interrupt enable register
(FDCAN_TXBCIE) .....
3103
65.4.35FDCAN Tx event FIFO status register (FDCAN_TXEFS) .....3103
65.4.36FDCAN Tx event FIFO acknowledge register (FDCAN_TXEFA) ....3104
65.4.37FDCAN CFG clock divider register (FDCAN_CKDIV) .....3104
65.4.38FDCAN register map .....3105
66USB on-the-go full-speed (OTG_FS) .....3109
66.1OTG_FS introduction .....3109
66.2OTG_FS main features .....3110
66.2.1General features .....3110
66.2.2Host-mode features .....3111
66.2.3Peripheral-mode features .....3111
66.3OTG_FS implementation .....3112
66.4OTG_FS functional description .....3113
66.4.1OTG_FS block diagram .....3113
66.4.2OTG_FS pin and internal signals .....3113
66.4.3OTG_FS core .....3114
66.4.4Embedded full-speed OTG PHY connected to OTG_FS .....3114
66.5OTG_FS dual role device (DRD) .....3115
66.6OTG_FS as a USB peripheral .....3115
66.6.1Peripheral states .....3116
66.6.2Peripheral endpoints .....3117
66.7OTG_FS as a USB host .....3119
66.7.1USB host states .....3120
66.7.2Host channels .....3121
66.7.3Host scheduler .....3122
66.8OTG_FS SOF trigger .....3123
66.8.1Host SOFs .....3124
66.8.2Peripheral SOFs .....3124
66.9OTG_FS low-power modes .....3124
66.10OTG_FS Dynamic update of the OTG_HFIR register .....3125
66.11OTG_FS data FIFOs .....3126
66.11.1Peripheral FIFO architecture .....3127
66.11.2Host FIFO architecture .....3128
66.11.3FIFO RAM allocation .....3129
66.12OTG_FS system performance .....3131
66.13OTG_FS interrupts .....3131
66.14OTG_FS control and status registers .....3133
66.14.1CSR memory map .....3133
66.15OTG_FS registers3138
66.15.1OTG control and status register (OTG_GOTGCTL)3138
66.15.2OTG interrupt register (OTG_GOTGINT)3140
66.15.3OTG AHB configuration register (OTG_GAHBCFG)3141
66.15.4OTG USB configuration register (OTG_GUSBCFG)3142
66.15.5OTG reset register (OTG_GRSTCTL)3143
66.15.6OTG core interrupt register [alternate] (OTG_GINTSTS)3146
66.15.7OTG core interrupt register [alternate] (OTG_GINTSTS)3150
66.15.8OTG interrupt mask register [alternate] (OTG_GINTMSK)3154
66.15.9OTG interrupt mask register [alternate] (OTG_GINTMSK)3155
66.15.10OTG receive status debug read [alternate] (OTG_GRXSTSR)3157
66.15.11OTG receive status debug read register [alternate]
(OTG_GRXSTSR)
3158
66.15.12OTG status read and pop registers [alternate] (OTG_GRXSTSP)3159
66.15.13OTG status read and pop registers [alternate] (OTG_GRXSTSP)3160
66.15.14OTG receive FIFO size register (OTG_GRXFSIZ)3161
66.15.15OTG host non-periodic transmit FIFO size register [alternate]
(OTG_HNPTXFSIZ)
3162
66.15.16Endpoint 0 Transmit FIFO size [alternate] (OTG_DIEPTXF0)3162
66.15.17OTG non-periodic transmit FIFO/queue status register
(OTG_HNPTXSTS)
3163
66.15.18OTG general core configuration register (OTG_GCCFG)3164
66.15.19OTG core ID register (OTG_CID)3165
66.15.20OTG core LPM configuration register (OTG_GLPMCFG)3165
66.15.21OTG host periodic transmit FIFO size register
(OTG_HPTXFSIZ)
3170
66.15.22OTG device IN endpoint transmit FIFO x size register
(OTG_DIEPTXFx)
3170
66.15.23Host-mode registers3170
66.15.24OTG host configuration register (OTG_HCFG)3171
66.15.25OTG host frame interval register (OTG_HFIR)3171
66.15.26OTG host frame number/frame time remaining register
(OTG_HFNUM)
3172
66.15.27OTG_Host periodic transmit FIFO/queue status register
(OTG_HPTXSTS)
3173
66.15.28OTG host all channels interrupt register (OTG_HAINT)3174
66.15.29OTG host all channels interrupt mask register
(OTG_HAINTMSK)
3174
66.15.30OTG 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 registers3181
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.58OTG device OUT endpoint x control register [alternate]
(OTG_DOEPCTLx)
3206
66.15.59OTG device OUT endpoint x control register [alternate]
(OTG_DOEPCTLx)
3208
66.15.60OTG device OUT endpoint x transfer size register
(OTG_DOEPTSIZx)
3210
66.15.61OTG power and clock gating control register (OTG_PCGCCTL)3211
66.15.62OTG power and clock gating control register 1 (OTG_PCGCCTL1)3212
66.15.63OTG_FS register map3213
66.16OTG_FS programming model3221
66.16.1Core initialization3221
66.16.2Host initialization3222
66.16.3Device initialization3222
66.16.4Host programming model3223
66.16.5Device programming model3244
66.16.6Worst case response time3265
66.16.7OTG programming model3267
67USB on-the-go high-speed (OTG_HS)3268
67.1OTG_HS introduction3268
67.2OTG_HS main features3269
67.2.1General features3269
67.2.2Host-mode features3270
67.2.3Peripheral-mode features3270
67.3OTG_HS implementation3270
67.4OTG_HS functional description3271
67.4.1OTG_HS block diagram3271
67.4.2OTG_HS pin and internal signals3271
67.4.3OTG_HS core3272
67.4.4High-speed OTG PHY connected to OTG_HS3272
67.4.5Battery charging detection3272
67.5OTG_HS dual role device (DRD)3273
67.6OTG_HS as a USB peripheral3273
67.6.1Peripheral states3274
67.6.2Peripheral endpoints3275
67.7OTG_HS as a USB host3277
67.7.1USB host states3278
67.7.2Host channels .....3279
67.7.3Host scheduler .....3280
67.8OTG_HS SOF trigger .....3281
67.8.1Host SOFs .....3282
67.8.2Peripheral SOFs .....3282
67.9OTG_HS low-power modes .....3282
67.10OTG_HS Dynamic update of the OTG_HFIR register .....3283
67.11OTG_HS data FIFOs .....3284
67.11.1Peripheral FIFO architecture .....3284
67.11.2Host FIFO architecture .....3285
67.11.3FIFO RAM allocation .....3287
67.12OTG_HS interrupts .....3288
67.13OTG_HS control and status registers .....3290
67.13.1CSR memory map .....3290
67.14OTG_HS registers .....3295
67.14.1OTG control and status register (OTG_GOTGCTL) .....3295
67.14.2OTG interrupt register (OTG_GOTGINT) .....3297
67.14.3OTG AHB configuration register (OTG_GAHBCFG) .....3298
67.14.4OTG USB configuration register (OTG_GUSBCFG) .....3299
67.14.5OTG reset register (OTG_GRSTCTL) .....3301
67.14.6OTG core interrupt register [alternate] (OTG_GINTSTS) .....3304
67.14.7OTG core interrupt register [alternate] (OTG_GINTSTS) .....3308
67.14.8OTG interrupt mask register [alternate] (OTG_GINTMSK) .....3313
67.14.9OTG interrupt mask register [alternate] (OTG_GINTMSK) .....3314
67.14.10OTG receive status debug read register [alternate]
(OTG_GRXSTSR) .....
3316
67.14.11OTG receive status debug read register [alternate]
(OTG_GRXSTSR) .....
3317
67.14.12OTG status read and pop registers (OTG_GRXSTSP) .....3318
67.14.13OTG status read and pop registers [alternate] (OTG_GRXSTSP) ..3319
67.14.14OTG receive FIFO size register (OTG_GRXFSIZ) .....3320
67.14.15OTG host non-periodic transmit FIFO size register [alternate]
(OTG_HNPTXFSIZ) .....
3321
67.14.16Endpoint 0 transmit FIFO size [alternate] (OTG_DIEPTXF0) .....3321
67.14.17OTG non-periodic transmit FIFO/queue status register
(OTG_HNPTXSTS) .....
3322
67.14.18OTG 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 registers3329
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 registers3341
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.48OTG device IN endpoint x control register [alternate]
(OTG_DIEPCTLx) .....
3353
67.14.49OTG device IN endpoint x interrupt register (OTG_DIEPINTx) ....3355
67.14.50OTG device IN endpoint 0 transfer size register
(OTG_DIEPTSIZ0) .....
3356
67.14.51OTG device IN endpoint x DMA address register
(OTG_DIEPDMAx) .....
3357
67.14.52OTG device IN endpoint transmit FIFO status register
(OTG_DTXFSTSx) .....
3357
67.14.53OTG device IN endpoint x transfer size register (OTG_DIEPTSIZx) .3358
67.14.54OTG device control OUT endpoint 0 control register
(OTG_DOEPCTL0) .....
3358
67.14.55OTG device OUT endpoint x interrupt register (OTG_DOEPINTx) ..3360
67.14.56OTG device OUT endpoint 0 transfer size register
(OTG_DOEPTSIZ0) .....
3362
67.14.57OTG device OUT endpoint x DMA address register
(OTG_DOEPDMAx) .....
3363
67.14.58OTG device OUT endpoint x control register [alternate]
(OTG_DOEPCTLx) .....
3363
67.14.59OTG device OUT endpoint x control register [alternate]
(OTG_DOEPCTLx) .....
3365
67.14.60OTG device OUT endpoint x transfer size register
(OTG_DOEPTSIZx) .....
3367
67.14.61OTG power and clock gating control register (OTG_PCGCCTL) ...3368
67.14.62OTG power and clock gating control register 1 (OTG_PCGCCTL1) .3369
67.14.63OTG_HS register map .....3370
67.15OTG_HS programming model .....3377
67.15.1Core initialization .....3377
67.15.2Host initialization .....3378
67.15.3Device initialization .....3379
67.15.4DMA mode .....3379
67.15.5Host programming model .....3379
67.15.6Device programming model .....3412
67.15.7Worst case response time .....3432
67.15.8OTG programming model .....3434
68USB Type-C®/USB Power Delivery interface (UCPD) .....3435
68.1UCPD introduction .....3435
68.2UCPD main features .....3435
68.3UCPD implementation .....3436
68.4UCPD functional description3436
68.4.1UCPD block diagram3437
68.4.2UCPD reset and clocks3438
68.4.3Physical layer protocol3439
68.4.4UCPD BMC transmitter3445
68.4.5UCPD BMC receiver3447
68.4.6UCPD Type-C pull-ups (Rp) and pull-downs (Rd)3448
68.4.7UCPD Type-C voltage monitoring and de-bouncing3449
68.4.8UCPD fast role swap (FRS)3449
68.4.9UCPD DMA Interface3449
68.4.10Wake-up from Stop mode3449
68.5UCPD programming sequences3450
68.5.1Initialization phase3450
68.5.2Type-C state machine handling3450
68.5.3USB PD transmit3452
68.5.4USB PD receive3453
68.6UCPD low-power modes3454
68.7UCPD interrupts3455
68.8UCPD registers3456
68.8.1UCPD configuration register 1 (UCPD_CFGR1)3456
68.8.2UCPD configuration register 2 (UCPD_CFGR2)3458
68.8.3UCPD control register (UCPD_CR)3459
68.8.4UCPD interrupt mask register (UCPD_IMR)3461
68.8.5UCPD status register (UCPD_SR)3462
68.8.6UCPD interrupt clear register (UCPD_ICR)3465
68.8.7UCPD Tx ordered set type register (UCPD_TX_ORDSETR)3466
68.8.8UCPD Tx payload size register (UCPD_TX_PAYSZR)3467
68.8.9UCPD Tx data register (UCPD_TXDR)3467
68.8.10UCPD Rx ordered set register (UCPD_RX_ORDSETR)3468
68.8.11UCPD Rx payload size register (UCPD_RX_PAYSZR)3468
68.8.12UCPD receive data register (UCPD_RXDR)3469
68.8.13UCPD Rx ordered set extension register 1
(UCPD_RX_ORDEXTR1)
3469
68.8.14UCPD Rx ordered set extension register 2
(UCPD_RX_ORDEXTR2)
3470
68.8.15UCPD register map3470
69Ethernet (ETH): media access control (MAC) with DMA controller3473
69.1Ethernet introduction3473
69.2Ethernet main features3473
69.2.1Standard compliance3473
69.2.2MAC features3473
69.2.3Transaction layer (MTL) features3475
69.2.4DMA block features3476
69.2.5Bus interface features3476
69.3Ethernet pins and internal signals3477
69.4Ethernet architecture3479
69.4.1DMA controller3480
69.4.2MTL3488
69.4.3MAC3488
69.5Ethernet functional description: MAC3493
69.5.1Double VLAN processing3493
69.5.2Source address and VLAN insertion, replacement, or deletion3494
69.5.3Packet filtering3496
69.5.4IEEE 1588 timestamp support3503
69.5.5Checksum offload engine3527
69.5.6TCP segmentation offload3533
69.5.7IPv4 ARP offload3539
69.5.8Loopback3540
69.5.9Flow control3541
69.5.10MAC management counters3543
69.5.11Interrupts generated by the MAC3545
69.5.12MAC and MMC register descriptions3545
69.6Ethernet functional description: PHY interfaces3546
69.6.1Station management agent (SMA)3546
69.6.2Media independent interface (MII)3553
69.6.3Reduced media independent interface (RMII)3554
69.7Ethernet low-power modes3557
69.7.1Low-power management3557
69.7.2Energy-efficient Ethernet (EEE)3563
69.8Ethernet interrupts3569
69.8.1DMA interrupts3569
69.8.2MTL interrupts3572
69.8.3MAC interrupts3572
69.9Ethernet programming model3573
69.9.1DMA initialization3574
69.9.2MTL initialization3575
69.9.3MAC initialization3575
69.9.4Performing normal receive and transmit operation3576
69.9.5Stopping and starting transmission3577
69.9.6Programming guidelines for switching to new descriptor list in RxDMA3577
69.9.7Programming guidelines for switching the AHB clock frequency3577
69.9.8Programming guidelines for MII link state transitions3578
69.9.9Programming guidelines for IEEE 1588 timestamping3579
69.9.10Programming guidelines for PTP offload feature3580
69.9.11Programming guidelines for Energy Efficient Ethernet (EEE)3584
69.9.12Programming guidelines for flexible pulse-per-second (PPS) output3586
69.9.13Programming guidelines for IEEE 1588 auxiliary snapshot3588
69.9.14Programming guidelines for TSO3588
69.9.15Programming guidelines to perform VLAN filtering on the receiver3589
69.9.16Programming guidelines for receive idle and receive interrupt watchdog timers3590
69.10Descriptors3591
69.10.1Descriptor overview3591
69.10.2Descriptor structure3591
69.10.3Transmit descriptor3595
69.10.4Receive descriptor3607
69.11Ethernet registers3620
69.11.1Ethernet register maps3620
69.11.2Ethernet DMA registers3620
69.11.3Ethernet MTL registers3642
69.11.4Ethernet MAC and MMC registers3651
70HDMI-CEC controller (CEC)3753
70.1HDMI-CEC introduction3753
70.2HDMI-CEC controller main features3753
70.3HDMI-CEC functional description3754
70.3.1HDMI-CEC pin and internal signals3754
70.3.2HDMI-CEC block diagram3755
70.3.3Message description3755
70.3.4Bit timing3756
70.4Arbitration3756
70.4.1SFT option bit3758
70.5Error handling3758
70.5.1Bit error3758
70.5.2Message error3759
70.5.3Bit rising error (BRE)3759
70.5.4Short bit period error (SBPE)3759
70.5.5Long bit period error (LBPE)3759
70.5.6Transmission error detection (TXERR)3761
70.6HDMI-CEC interrupts3762
70.7HDMI-CEC registers3763
70.7.1CEC control register (CEC_CR)3763
70.7.2CEC configuration register (CEC_CFGR)3764
70.7.3CEC Tx data register (CEC_TXDR)3766
70.7.4CEC Rx data register (CEC_RXDR)3766
70.7.5CEC interrupt and status register (CEC_ISR)3766
70.7.6CEC interrupt enable register (CEC_IER)3768
70.7.7HDMI-CEC register map3770
71Debug support (DBG)3771
71.1Introduction3771
71.2DBG functional description3772
71.2.1DBG block diagram3772
71.2.2DBG pins and internal signals3772
71.2.3DBG reset and clocks3773
71.2.4DBG power domains3773
71.2.5Debug and low-power modes3773
71.2.6Security3774
71.2.7Debug authentication3776
71.3Serial-wire and JTAG debug port (SWJ-DP)3779
71.3.1JTAG debug port3780
71.3.2Serial-wire debug port3782
71.3.3Debug port registers3784
71.3.4Debug port register map and reset values .....3790
71.4Access ports .....3791
71.4.1Access port registers .....3791
71.4.2Access port register map .....3798
71.5ROM tables .....3799
71.5.1System ROM table registers .....3802
71.5.2System ROM table register map .....3806
71.5.3MCU ROM table registers .....3807
71.5.4MCU ROM table register map .....3811
71.5.5Processor ROM table registers .....3812
71.5.6Processor ROM table register map .....3816
71.6Data watchpoint and trace unit (DWT) .....3817
71.6.1DWT registers .....3817
71.6.2DWT register map .....3831
71.7Instrumentation trace macrocell (ITM) .....3834
71.7.1ITM registers .....3834
71.7.2ITM register map .....3842
71.8Breakpoint unit (BPU) .....3844
71.8.1BPU registers .....3844
71.8.2BPU register map .....3850
71.9Embedded Trace Macrocell (ETM) .....3851
71.9.1ETM registers .....3851
71.9.2ETM register map .....3876
71.10Trace port interface unit (TPIU) .....3880
71.10.1TPIU registers .....3881
71.10.2TPIU register map .....3890
71.11Cross-trigger interface (CTI) .....3892
71.11.1CTI registers .....3893
71.11.2CTI register map .....3903
71.12Microcontroller debug unit (DBGMCU) .....3905
71.12.1Device ID .....3905
71.12.2Low-power mode emulation .....3905
71.12.3Peripheral clock freeze .....3906
71.12.4DBGMCU registers .....3907
71.12.5DBGMCU register map .....3923
71.13References .....3925
72Device 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
73Important security notice .....3929
74Revision 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 address1028
Table 205.NAND memory mapping and timing registers1028
Table 206.NAND bank selection1029
Table 207.SDRAM bank selection1029
Table 208.SDRAM address mapping1029
Table 209.SDRAM address mapping with 8-bit data bus width1030
Table 210.SDRAM address mapping with 16-bit data bus width1031
Table 211.SDRAM address mapping with 32-bit data bus width1031
Table 212.Programmable NOR/PSRAM access parameters1033
Table 213.Non-multiplexed I/O NOR flash memory1034
Table 214.16-bit multiplexed I/O NOR flash memory1034
Table 215.Non-multiplexed I/Os PSRAM/SRAM1035
Table 216.16-Bit multiplexed I/O PSRAM1035
Table 217.NOR flash/PSRAM: example of supported memories and transactions1036
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 parameters1070
Table 239.8-bit NAND flash1070
Table 240.16-bit NAND flash1071
Table 241.Supported memories and transactions1071
Table 242.ECC result relevant bits1080
Table 243.SDRAM signals1081
Table 244.FMC register map and reset values1098
Table 245.OCTOSPI implementation1102
Table 246.OCTOSPI input/output pins1104
Table 247.OCTOSPI internal signals1104
Table 248.Command/address phase description1113
Table 249.OctaRAM command address bit assignment (based on 64-Mbyte OctaRAM)1124
Table 250.Address alignment cases1131
Table 251.OCTOSPI interrupt requests1133
Table 252.OCTOSPI register map and reset values1157
Table 253.OCTOSPI implementation1160
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 MDF1522
Table 357.MDF interrupt requests1524
Table 358.Examples of MDF settings for microphone capture1525
Table 359.Programming sequence1525
Table 360.Output signal levels1532
Table 361.MDF register map and reset values1555
Table 362.ADF features1558
Table 363.ADF external pins1559
Table 364.ADF internal signals1559
Table 365.ADF trigger connections1560
Table 366.ADF ADC data connections1560
Table 367.Control of the common clock generation1566
Table 368.Clock constraints with respect to the incoming stream1567
Table 369.Data size according to CIC order and CIC decimation values1572
Table 370.Possible gain values1573
Table 371.Recommended maximum gain values
versus CIC decimation ratios
1575
Table 372.Most common microphone settings1576
Table 373.HPF 3 dB cut-off frequency examples1578
Table 374.ANSLP values versus FRSIZE and sampling rates1591
Table 375.Threshold values according SNTHR1592
Table 376.Register protection summary1598
Table 377.Effect of low-power modes on ADF1599
Table 378.ADF interrupt requests1600
Table 379.Examples of ADF settings for microphone capture1601
Table 380.Programming sequence (CIC4)1602
Table 381.Programming sequence (CIC5)1603
Table 382.Output signal levels1608
Table 383.ADF register map and reset values1628
Table 384.DCMI input/output pins1632
Table 385.DCMI internal input/output signals1632
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 format1640
Table 391.Data storage in RGB progressive video format1641
Table 392.Data storage in YCbCr progressive video format1641
Table 393.Data storage in YCbCr progressive video format - Y extraction mode1641
Table 394.DCMI interrupts1642
Table 395.DCMI register map and reset values1652
Table 396.PSSI input/output pins1655
Table 397.PSSI internal input/output signals1655
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 requests1660
Table 401.PSSI register map and reset values1666
Table 402.LTDC external pins1668
Table 403.LTDC internal signals1669
Table 404.LTDC trigger interconnection1669
Table 405.Clock domain for each register1669
Table 406.Pixel data mapping versus color format1674
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 architecture131
Figure 2.Memory map based on IDAU mapping141
Figure 3.Secure/nonsecure partitioning using TrustZone technology157
Figure 4.Sharing memory map between CPU in secure and nonsecure state159
Figure 5.Secure world transition and memory partitioning159
Figure 6.Global TrustZone framework and TrustZone awareness161
Figure 7.Flash memory TrustZone protections165
Figure 8.Flash memory secure HDP area172
Figure 9.Key management principle180
Figure 10.Device life-cycle security184
Figure 11.PRODUCT_STATEs (simplified TrustZone activated view)187
Figure 12.PRODUCT_STATEs (full TrustZone activated view)188
Figure 13.Collaborative development principle190
Figure 14.External flash memory protection using SFI192
Figure 15.GTZC in Armv8-M subsystem block diagram199
Figure 16.GTZC block diagram202
Figure 17.Watermark memory protection controller (region x/subregions A and B)203
Figure 18.MPCBB block diagram204
Figure 19.Memory map: SRAM2/3267
Figure 20.FLASH block diagram (simplified)278
Figure 21.Embedded flash memory organization (4-Mbyte devices)280
Figure 22.Embedded flash memory usage281
Figure 23.Flash high-cycle data memory map on 4-Mbyte device295
Figure 24.Flash high-cycle area memory map on a 3-Mbyte device295
Figure 25.Flash bank swapping sequence297
Figure 26.OBK protection checks310
Figure 27.Key writing flow311
Figure 28.Swap workflow313
Figure 29.HDP in user flash memory318
Figure 30.Protection attributes in case of bank swap illustration323
Figure 31.ICACHE block diagram404
Figure 32.ICACHE TAG and data memories functional view406
Figure 33.ICACHE remapping address mechanism409
Figure 34.DCACHE block diagram421
Figure 35.DCACHE TAG and data memories functional view424
Figure 36.Power supply with SMPS440
Figure 37.Power supply with LDO441
Figure 38.System supply configurations443
Figure 39.Power-on (POR) / power-down (PDR) reset waveform449
Figure 40.BOR thresholds450
Figure 41.PVD thresholds451
Figure 42.AVD thresholds452
Figure 43.VBAT thresholds453
Figure 44.Temperature thresholds454
Figure 45.Dynamic voltage scaling in Run mode455
Figure 46.I/O states in Standby mode465
Figure 47.Simplified diagram of the reset circuit489
Figure 48.Clock tree492
Figure 49.HSE/LSE clock sources493
Figure 50.CSI calibration flow496
Figure 51.PLL block diagram497
Figure 52.PLLs initialization flow500
Figure 53.Kernel clock distribution for SAIs506
Figure 54.Clock distribution for CCB subsystem508
Figure 55.Kernel clock distribution for OTG_FS, OTG_HS and UCPD1510
Figure 56.Clock distribution for ETH511
Figure 57.CRS block diagram607
Figure 58.CRS counter behavior609
Figure 59.Structure of 3- or 5-V tolerant GPIO (TT or FT)619
Figure 60.Input floating/pull-up/pull-down configurations623
Figure 61.Output configuration624
Figure 62.Alternate function configuration625
Figure 63.High-impedance analog configuration625
Figure 64.SBS block diagram639
Figure 65.Compensation cell management641
Figure 66.Compensation cell usage642
Figure 67.SBS boot control643
Figure 68.SBS debug control647
Figure 69.SBS hardware secure storage control648
Figure 70.GPDMA block diagram692
Figure 71.GPDMA channel direct programming without linked-list (GPDMA_CxLLR = 0)693
Figure 72.GPDMA channel suspend and resume sequence694
Figure 73.GPDMA channel abort and restart sequence695
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 y702
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 mode705
Figure 82.Replace with a new LLIn’ in register file in link step mode706
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 programming710
Figure 86.Programmed 2D addressing713
Figure 87.GPDMA arbitration policy720
Figure 88.Trigger hit, memorization, and overrun waveform723
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 diagram763
Figure 92.DMA2D pipeline766
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 format1595
Figure 395.Data resynchronization1596
Figure 396.Example of overflow and transfer to memory1597
Figure 397.ADF interrupt interface1600
Figure 398.Sensor connection examples1605
Figure 399.Global frequency response1605
Figure 400.Detailed frequency response1606
Figure 401.Simplified DFLT view with gain information1608
Figure 402.SAD example working with SADMOD = 011611
Figure 403.SAD example working with SADMOD = 1x1612
Figure 404.DCMI block diagram1632
Figure 405.DCMI signal waveforms1633
Figure 406.Timing diagram1635
Figure 407.Frame capture waveforms in snapshot mode1637
Figure 408.Frame capture waveforms in continuous grab mode1638
Figure 409.Coordinates and size of the window after cropping1638
Figure 410.Data capture waveforms1639
Figure 411.Pixel raster scan order1640
Figure 412.PSSI block diagram1654
Figure 413.Top-level block diagram1654
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 waveform1660
Figure 418.Bidirectional PSSI_DE/PSSI_RDY connection diagram1660
Figure 419.LTDC block diagram1668
Figure 420.LTDC synchronous timings1671
Figure 421.Layer window programmable parameters1674
Figure 422.Blending two layers with background1676
Figure 423.Interrupt events1678
Figure 424.JPEG codec block diagram1699
Figure 425.CCB block diagram1721
Figure 426.CCB operation CPU → PKA + SAES (write)1723
Figure 427.CCB operation PKA → SAES1723
Figure 428.CCB operation SAES → PKA1723
Figure 429.CCB operation SAES → CCB1724
Figure 430.CCB operation RNG → PKA (write)1724
Figure 431.CCB operation RNG → SAES (write)1725
Figure 432.Blob creation scenarios1726
Figure 433.RNG block diagram1747
Figure 434.NIST SP800-90B entropy source model1748
Figure 435.RNG initialization overview1751
Figure 436.AES block diagram1767
Figure 437.Encryption/ decryption typical usage1769
Figure 438.Typical operation with authentication1771
Figure 439.Example of suspend mode management1772
Figure 440.ECB encryption1773
Figure 441.ECB decryption1773
Figure 442.CBC encryption1774
Figure 443.CBC decryption1774
Figure 444.Message construction in CTR mode1777
Figure 445.CTR encryption1777
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 situation2949
Figure 894.Handling of overrun situation2950
Figure 895.Frame error detection, with FIXCH = 02951
Figure 896.Frame error detection, with FIXCH = 12951
Figure 897.SAI functional block diagram2977
Figure 898.Audio frame2981
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_xSLOTR2985
Figure 902.First bit offset2985
Figure 903.Audio block clock generator overview2987
Figure 904.PDM typical connection and timing2991
Figure 905.Detailed PDM interface block diagram2992
Figure 906.Start-up sequence2993
Figure 907.SAI_ADR format in TDM mode, 32-bit slot width2994
Figure 908.SAI_ADR format in TDM mode, 16-bit slot width2995
Figure 909.SAI_ADR format in TDM mode, 8-bit slot width2996
Figure 910.AC'97 audio frame2999
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 format3001
Figure 913.SAI_xDR register ordering3002
Figure 914.Data companding hardware in an audio block in the SAI3005
Figure 915.Tristate strategy on SD output line on an inactive slot3007
Figure 916.Tristate on output data line in a protocol like I2S3008
Figure 917.Overrun detection error3009
Figure 918.FIFO underrun event3009
Figure 919.CAN subsystem3044
Figure 920.FDCAN block diagram3046
Figure 921.Bit timing3048
Figure 922.Transceiver delay measurement3053
Figure 923.Pin control in bus monitoring mode3054
Figure 924.Pin control in loop-back mode3057
Figure 925.CAN error state diagram3058
Figure 926.Message RAM configuration3059
Figure 927.Standard message ID filter path3062
Figure 928.Extended message ID filter path3063
Figure 929.OTG_FS full-speed block diagram3113
Figure 930.OTG_FS A-B device connection3115
Figure 931.OTG_FS peripheral-only connection3116
Figure 932.OTG_FS host-only connection3120
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 mapping3127
Figure 936.Host-mode FIFO address mapping and AHB FIFO access mapping3128
Figure 937.Interrupt hierarchy3132
Figure 938.Transmit FIFO write task3224
Figure 939.Receive FIFO read task3225
Figure 940.Normal bulk/control OUT/SETUP3226
Figure 941.Bulk/control IN transactions3230
Figure 942.Normal interrupt OUT3233
Figure 943.Normal interrupt IN3238
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 correction3506
Figure 997. System time update using fine correction method3516
Figure 998. TCP segmentation offload overview3533
Figure 999. TCP segmentation offload flow3534
Figure 1000.Header and payload fields of segmented packets3537
Figure 1001.Supported PHY interfaces3546
Figure 1002.SMA Interface block3546
Figure 1003.MDIO packet structure (Clause 45)3547
Figure 1004.MDIO packet structure (Clause 22)3548
Figure 1005.SMA write operation flow3550
Figure 1006.Write data packet3551
Figure 1007.Read data packet3551
Figure 1008.Media independent interface (MII) signals3553
Figure 1009.RMII block diagram3555
Figure 1010.Transmission bit order3556
Figure 1011.Receive bit order3557
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 structure3591
Figure 1016.DMA descriptor ring3593
Figure 1017.Descriptor tail pointer example 13593
Figure 1018.Descriptor tail pointer example 23594
Figure 1019.Transmit descriptor (read format)3595
Figure 1020.Transmit descriptor write-back format3600
Figure 1021.Transmit context descriptor format3604
Figure 1022.Receive normal descriptor (read format)3608
Figure 1023.Receive normal descriptor (write-back format)3611
Figure 1024.Receive context descriptor3618
Figure 1025.Generation of ETH_DMAISR flags3633
Figure 1026.HDMI-CEC block diagram3755
Figure 1027.Message structure3755
Figure 1028.Blocks3756
Figure 1029.Bit timings3756
Figure 1030.Signal free time3757
Figure 1031.Arbitration phase3757
Figure 1032.SFT of three nominal bit periods3757
Figure 1033.Error bit timing3758
Figure 1034.Error handling3760
Figure 1035.TXERR detection3761
Figure 1036.Block diagram of debug support infrastructure3772
Figure 1037.Product life cycle states and debug authentication3776
Figure 1038.JTAG TAP state machine3780
Figure 1039.CoreSight topology3801
Figure 1040.Trace port interface unit (TPIU)3880
Figure 1041.Embedded cross-trigger3892

Chapters