Documentation map / Reference manual
RMRM0433· 3353 pages
RM0433 reference manual (STM32H742/743/753/750)
How every peripheral works and every register bit: RCC, GPIO, DMA, timers, USART, SPI, FMC, LTDC…
What a reference manual is for
How every peripheral works, down to each register bit. One manual covers several chips of the line (H742, H743/753, H750), so some chapters describe peripherals the H750 may not have in every package. Every peripheral chapter has the same shape: introduction, main features, functional description, interrupts, then the register descriptions with bit fields, reset values and a register map. This is the document you live in while writing drivers.
Use it when
- What does RCC_AHB4ENR bit 0 do? What is the reset value?
- How do I configure DMA streams and DMAMUX request IDs?
- Clock tree, PLL configuration and kernel clock muxes (RCC chapter).
- Base address of a peripheral (memory map section of the RM).
Not for
Pin assignments for your package and electrical limits: that is the datasheet.
2 Memory and bus architecturep.10429
2.1 System architecturep.104Table 3. Bus-master-to-bus-slave interconnectp.104Figure 1. System architecture for STM32H742xx, STM32H743/53xx and STM32H750xB devicesp.1052.1.1 Bus matricesp.1062.1.2 TCM busesp.1062.1.3 Bus-to-bus bridgesp.1062.1.4 Inter-domain busesp.1072.1.5 CPU busesp.1072.1.6 Bus master peripheralsp.1082.1.7 Clocks to functional blocksp.1092.2 AXI interconnect matrix (AXIM)p.1092.2.1 AXI introductionp.1092.2.2 AXI interconnect main featuresp.1092.2.3 AXI interconnect functional descriptionp.110Figure 2. AXI interconnectp.110Table 4. ASIB configurationp.110Table 5. AMIB configurationp.1112.2.4 AXI interconnect registersp.1122.2.5 AXI interconnect register mapp.121Table 6. AXI interconnect register map and reset valuesp.1212.3 Memory organizationp.1292.3.1 Introductionp.1292.3.2 Memory map and register boundary addressesp.130Table 7. Memory map and default device memory area attributesp.130Table 8. Register boundary addressesp.1322.4 Embedded SRAMp.1362.5 Flash memory overviewp.1372.6 Boot configurationp.137Table 9. Boot modesp.138
3 RAM ECC monitoring (RAMECC)p.14020
3.1 Introductionp.1403.2 RAMECC main featuresp.1403.3 RAMECC functional descriptionp.1403.3.1 RAMECC block diagramp.140Figure 3. RAM ECC controller implementation schematicp.141Figure 4. Connection between RAM ECC controller and RAMECC monitoring unitp.1413.3.2 RAMECC internal signalsp.142Table 10. RAMECC internal input/output signalsp.1423.3.3 RAMECC monitor mappingp.142Table 11. ECC controller mappingp.1423.4 RAMECC registersp.1433.4.1 RAMECC interrupt enable register (RAMECC_IER)p.1433.4.2 RAMECC monitor x configuration register (RAMECC_MxCR)p.1443.4.3 RAMECC monitor x status register (RAMECC_MxSR)p.1443.4.4 RAMECC monitor x failing address register (RAMECC_MxFAR)p.1453.4.5 RAMECC monitor x failing data low register (RAMECC_MxFDRL)p.1453.4.6 RAMECC monitor x failing data high register (RAMECC_MxFDRH)p.1463.4.7 RAMECC monitor x failing ECC error code register RAMECC_MxFECR)p.1463.4.8 RAMECC register mapp.147Table 12. RAMECC register map and reset valuesp.147
4 Embedded flash memory (FLASH)p.148113
4.1 Introductionp.1484.2 FLASH main featuresp.1484.3 FLASH functional descriptionp.1494.3.1 FLASH block diagramp.149Figure 5. FLASH block diagramp.1494.3.2 FLASH internal signalsp.150Table 13. FLASH internal input/output signalsp.1504.3.3 FLASH architecture and integration in the systemp.150Figure 6. Detailed FLASH architecturep.1514.3.4 Flash memory architecture and usagep.152Figure 7. Embedded flash memory organizationp.152Table 14. Flash memory organization on STM32H750xB devicesp.153Table 15. Flash memory organization on STM32H742xI/743xI/753xI devicesp.153Table 16. Flash memory organization on STM32H742xG/743xG devicesp.154Figure 8. Embedded flash memory usagep.1554.3.5 FLASH system performance enhancementsp.1564.3.6 FLASH data protection schemesp.156Figure 9. FLASH protection mechanismsp.1564.3.7 Overview of FLASH operationsp.1574.3.8 FLASH read operationsp.158Figure 10. FLASH read pipeline architecturep.159Table 17. FLASH recommended number of wait states and programming delayp.1604.3.9 FLASH program operationsp.161Figure 11. FLASH write pipeline architecturep.162Table 18. FLASH parallelism parameterp.1644.3.10 FLASH erase operationsp.1654.3.11 FLASH parallel operations (STM32H742/743/753 devices only)p.1684.3.12 Flash memory error protectionsp.1684.3.13 Flash bank and register swapping (STM32H742/743/753 devices only)p.170Table 19. FLASH AXI interface memory map vs swapping optionp.170Figure 12. Flash bank swapping sequencep.171Table 20. Flash register map vs swapping optionp.1724.3.14 FLASH reset and clocksp.1734.4 FLASH option bytesp.1734.4.1 About option bytesp.1734.4.2 Option byte loadingp.1744.4.3 Option byte modificationp.1744.4.4 Option bytes overviewp.177Table 21. Option byte organizationp.1774.4.5 Description of user and system option bytesp.1794.4.6 Description of data protection option bytesp.1804.4.7 Description of boot address option bytesp.1814.5 FLASH protection mechanismsp.1824.5.1 FLASH configuration protectionp.182Table 22. Flash interface register protection summaryp.1834.5.2 Write protectionp.1834.5.3 Readout protection (RDP)p.184Table 23. RDP value vs readout protection levelp.184Table 24. Protection vs RDP Levelp.186Figure 13. RDP protection transition schemep.187Table 25. RDP transition and its effectsp.187Figure 14. Example of protected region overlappingp.1884.5.4 Proprietary code readout protection (PCROP)p.1894.5.5 Secure access modep.1904.6 FLASH low-power modesp.1914.6.1 Introductionp.191Table 26. Effect of low-power modes on the embedded flash memoryp.1914.6.2 Managing the FLASH domain switching to DStop or DStandbyp.1924.7 FLASH error managementp.1934.7.1 Introductionp.1934.7.2 Write protection error (WRPERR)p.1934.7.3 Programming sequence error (PGSERR)p.1944.7.4 Strobe error (STRBERR)p.1954.7.5 Inconsistency error (INCERR)p.1954.7.6 Operation error (OPERR)p.1964.7.7 Error correction code error (SNECCERR/DBECCERR)p.1964.7.8 Read protection error (RDPERR)p.1974.7.9 Read secure error (RDSERR)p.1974.7.10 CRC read error (CRCRDERR)p.1974.7.11 Option byte change error (OPTCHANGEERR)p.1984.7.12 Miscellaneous HardFault errorsp.1984.8 FLASH interruptsp.198Table 27. Flash interrupt requestp.1994.9 FLASH registersp.2014.9.1 FLASH access control register (FLASH_ACR)p.2014.9.2 FLASH key register for bank 1 (FLASH_KEYR1)p.2014.9.3 FLASH option key register (FLASH_OPTKEYR)p.2024.9.4 FLASH control register for bank 1 (FLASH_CR1)p.2024.9.5 FLASH status register for bank 1 (FLASH_SR1)p.2074.9.6 FLASH clear control register for bank 1 (FLASH_CCR1)p.2104.9.7 FLASH option control register (FLASH_OPTCR)p.2114.9.8 FLASH option status register (FLASH_OPTSR_CUR)p.2124.9.9 FLASH option status register (FLASH_OPTSR_PRG)p.2154.9.10 FLASH option clear control register (FLASH_OPTCCR)p.2174.9.11 FLASH protection address for bank 1 (FLASH_PRAR_CUR1)p.2174.9.12 FLASH protection address for bank 1 (FLASH_PRAR_PRG1)p.2184.9.13 FLASH secure address for bank 1 (FLASH_SCAR_CUR1)p.2194.9.14 FLASH secure address for bank 1 (FLASH_SCAR_PRG1)p.2194.9.15 FLASH write sector protection for bank 1 (FLASH_WPSN_CUR1R)p.2204.9.16 FLASH write sector protection for bank 1 (FLASH_WPSN_PRG1R)p.2214.9.17 FLASH register boot address (FLASH_BOOT_CURR)p.2214.9.18 FLASH register boot address FLASH_BOOT_PRGR)p.2214.9.19 FLASH CRC control register for bank 1 (FLASH_CRCCR1)p.2224.9.20 FLASH CRC start address register for bank 1 (FLASH_CRCSADD1R)p.2234.9.21 FLASH CRC end address register for bank 1 (FLASH_CRCEADD1R)p.2244.9.22 FLASH CRC data register (FLASH_CRCDATAR)p.2244.9.23 FLASH ECC fail address for bank 1 (FLASH_ECC_FA1R)p.2254.9.24 FLASH key register for bank 2 (FLASH_KEYR2)p.2254.9.25 FLASH control register for bank 2 (FLASH_CR2)p.2264.9.26 FLASH status register for bank 2 (FLASH_SR2)p.2304.9.27 FLASH clear control register for bank 2 (FLASH_CCR2)p.2334.9.28 FLASH protection address for bank 2 (FLASH_PRAR_CUR2)p.2344.9.29 FLASH protection address for bank 2 (FLASH_PRAR_PRG2)p.2344.9.30 FLASH secure address for bank 2 (FLASH_SCAR_CUR2)p.2354.9.31 FLASH secure address for bank 2 (FLASH_SCAR_PRG2)p.2364.9.32 FLASH write sector protection for bank 2 (FLASH_WPSN_CUR2R)p.2374.9.33 FLASH write sector protection for bank 2 (FLASH_WPSN_PRG2R)p.2374.9.34 FLASH CRC control register for bank 2 (FLASH_CRCCR2)p.2384.9.35 FLASH CRC start address register for bank 2 (FLASH_CRCSADD2R)p.2394.9.36 FLASH CRC end address register for bank 2 (FLASH_CRCEADD2R)p.2404.9.37 FLASH ECC fail address for bank 2 (FLASH_ECC_FA2R)p.2404.9.38 FLASH register map and reset valuesp.241Table 28. Register map and reset value tablep.241
5 Secure memory management (SMM)p.24619
5.1 Introductionp.2465.2 Glossaryp.246Table 29. List of preferred termsp.2465.3 Secure access modep.247Figure 15. Flash memory areas and services in Standard and Secure access modesp.2485.3.1 Associated featuresp.2485.3.2 Boot state machinep.248Figure 16. Bootloader state machine in Secure access modep.2495.3.3 Secure access mode configurationp.2495.4 Root secure services (RSS)p.250Table 30. RSS API addressesp.2505.4.1 Secure area setting servicep.2505.4.2 Secure area exiting servicep.2505.5 Secure user softwarep.2515.5.1 Access rulesp.2515.5.2 Setting secure user memory areasp.2515.6 Summary of flash protection mechanismsp.252Figure 17. Core access to flash memory areasp.252Table 31. Summary of flash protected areas access rightsp.252
6 Power control (PWR)p.25485
6.1 Introductionp.2546.2 PWR main featuresp.2546.3 PWR block diagramp.255Figure 18. Power control block diagramp.2556.3.1 PWR pins and internal signalsp.256Table 32. PWR input/output signals connected to package pins or ballsp.256Table 33. PWR internal input/output signalsp.2566.4 Power suppliesp.258Figure 19. Power supply overviewp.259Figure 20. System supply configurationsp.260Table 34. Supply configuration controlp.2606.4.1 System supply startupp.261Figure 21. Device startup with VCORE supplied from voltage regulatorp.262Figure 22. Device startup with VCORE supplied in Bypass mode from external regulatorp.2636.4.2 Core domainp.2636.4.3 PWR external supplyp.2646.4.4 Backup domainp.265Figure 23. Backup domainp.2676.4.5 VBAT battery chargingp.2676.4.6 Analog supplyp.2676.4.7 USB regulatorp.268Figure 24. USB supply configurationsp.2686.5 Power supply supervisionp.2686.5.1 Power-on reset (POR)/power-down reset (PDR)p.269Figure 25. Power-on reset/power-down reset waveformp.2696.5.2 Brownout reset (BOR)p.269Figure 26. BOR thresholdsp.2706.5.3 Programmable voltage detector (PVD)p.270Figure 27. PVD thresholdsp.2716.5.4 Analog voltage detector (AVD)p.272Figure 28. AVD thresholdsp.2726.5.5 Battery voltage thresholdsp.273Figure 29. VBAT thresholdsp.2736.5.6 Temperature thresholdsp.274Figure 30. Temperature thresholdsp.2746.6 Power managementp.2756.6.1 Operating modesp.276Table 35. Low-power mode summaryp.2786.6.2 Voltage scalingp.279Figure 31. Switching VCORE from VOS1 to VOS0p.280Figure 32. VCORE voltage scaling versus system power modesp.2816.6.3 Power control modesp.281Table 36. PDDS_Dn low-power mode controlp.282Figure 33. Power control modes detailed state diagramp.283Table 37. Low-power exit mode flagsp.2846.6.4 Power management examplesp.285Figure 34. Dynamic voltage scaling in Run modep.286Figure 35. Dynamic voltage scaling behavior with D1, D2 and system in Stop modep.287Figure 36. Dynamic Voltage Scaling D1, D2, system Standby modep.288Figure 37. Dynamic voltage scaling behavior with D1 and D2 in DStandby mode and D3 in autonomous modep.2906.7 Low-power modesp.2916.7.1 Slowing down system clocksp.2916.7.2 Controlling peripheral clocksp.2916.7.3 Entering low-power modesp.2916.7.4 Exiting from low-power modesp.2926.7.5 CSleep modep.293Table 38. CSleep modep.2936.7.6 CStop modep.294Table 39. CStop modep.2946.7.7 DStop modep.295Table 40. DStop mode overviewp.295Table 41. DStop modep.2966.7.8 Stop modep.296Table 42. Stop mode operationp.297Table 43. Stop modep.2986.7.9 DStandby modep.298Table 44. DStandby modep.2996.7.10 Standby modep.300Table 45. Standby and Stop flagsp.301Table 46. Standby modep.3016.7.11 Monitoring low-power modesp.302Table 47. Low-power modes monitoring pin overviewp.302Table 48. GPIO state according to CPU and domain statep.3026.8 PWR register descriptionp.3036.8.1 PWR control register 1 (PWR_CR1)p.3036.8.2 PWR control status register 1 (PWR_CSR1)p.3046.8.3 PWR control register 2 (PWR_CR2)p.3056.8.4 PWR control register 3 (PWR_CR3)p.3066.8.5 PWR CPU control register (PWR_CPUCR)p.3086.8.6 PWR D3 domain control register (PWR_D3CR)p.3096.8.7 PWR wakeup clear register (PWR_WKUPCR)p.3106.8.8 PWR wakeup flag register (PWR_WKUPFR)p.3106.8.9 PWR wakeup enable and polarity register (PWR_WKUPEPR)p.3116.8.10 PWR register mapp.312Table 49. Power control register map and reset valuesp.312
7 Low-power D3 domain application examplep.31318
7.1 Introductionp.3137.2 EXTI, RCC and PWR interconnectionsp.313Figure 38. EXTI, RCC and PWR interconnectionsp.3147.2.1 Interrupts and wakeupp.3157.2.2 Block interactionsp.3157.2.3 Role of DMAMUX2 in D3 domainp.3167.3 Low-power application example based on LPUART1 transmissionp.3177.3.1 Memory retentionp.3177.3.2 Memory-to-peripheral transfer using LPUART1 interfacep.317Figure 39. Timing diagram of SRAM4-to-LPUART1 transfer with BDMA and D3 domain in Autonomous modep.318Figure 40. BDMA and DMAMUX2 interconnectionp.320Table 50. BDMA and DMAMUX2 initialization sequence (DMAMUX2_INIT)p.320Table 51. LPUART1 Initial programming (LPUART1_INIT)p.322Table 52. LPUART1 start programming (LPUART1_Start)p.3227.3.3 Overall description of the low-power application example based on LPUART1 transmissionp.322Figure 41. Timing diagram of LPUART1 transmission with D3 domain in Autonomous modep.3237.3.4 Alternate implementationsp.3237.4 Other low-power applicationsp.324
8 Reset and Clock Control (RCC)p.325139
8.1 RCC main featuresp.3258.2 RCC block diagramp.326Figure 42. RCC Block diagramp.3268.3 RCC pins and internal signalsp.326Table 53. RCC input/output signals connected to package pins or ballsp.326Table 54. RCC internal input/output signalsp.3278.4 RCC reset block functional descriptionp.3288.4.1 Power-on/off resetp.3288.4.2 System resetp.329Figure 43. System reset circuitp.3298.4.3 Local resetsp.330Table 55. Reset distribution summaryp.3308.4.4 Reset source identificationp.332Table 56. Reset source identification (RCC_RSR)p.3328.4.5 Low-power mode security reset (lpwr_rst)p.3338.4.6 Backup domain resetp.3338.4.7 Power-on and wakeup sequencesp.333Figure 44. Boot sequences versus system statesp.3358.5 RCC clock block functional descriptionp.336Figure 45. Top-level clock treep.3378.5.1 Clock naming conventionp.3388.5.2 Oscillators descriptionp.338Figure 46. HSE/LSE clock sourcep.3388.5.3 Clock Security System (CSS)p.3438.5.4 Clock output generation (MCO1/MCO2)p.3448.5.5 PLL descriptionp.345Figure 47. PLL block diagramp.345Figure 48. PLLs Initialization Flowchartp.3488.5.6 System clock (sys_ck)p.349Figure 49. Core and bus clock generationp.350Table 57. Ratio between clock timer and pclkp.3508.5.7 Handling clock generators in Stop and Standby modep.351Table 58. STOPWUCK and STOPKERWUCK descriptionp.351Table 59. HSIKERON and CSIKERON behaviorp.3528.5.8 Kernel clock selectionp.353Table 60. Kernel clock distribution overviewp.354Figure 50. Kernel clock distribution for SAIs and DFSDMp.357Figure 51. Kernel clock distribution for SPIs and SPI/I2Sp.358Figure 52. Kernel clock distribution for I2Csp.359Figure 53. Kernel clock distribution for UARTs, USARTs and LPUART1p.359Figure 54. Kernel clock distribution for LTDCp.360Figure 55. Kernel clock distribution for SDMMC, QUADSPI and FMCp.360Figure 56. Kernel clock distribution for USB (2)p.361Figure 57. Kernel clock distribution for Ethernetp.362Figure 58. Kernel clock distribution for ADCs, SWPMI, RNG and FDCAN (2)p.363Figure 59. Kernel clock distribution for LPTIMs and HDMI-CEC (2)p.3648.5.9 General clock concept overviewp.366Figure 60. Peripheral allocation examplep.367Table 61. System states overviewp.3698.5.10 Peripheral allocationp.370Figure 61. Kernel Clock switchingp.3708.5.11 Peripheral clock gating controlp.373Figure 62. Peripheral kernel clock enable logic detailsp.374Table 62. Peripheral clock enabling for D1 and D2 peripheralsp.375Table 63. Peripheral clock enabling for D3 peripheralsp.3768.5.12 CPU and bus matrix clock gating controlp.378Figure 63. Bus clock enable logicp.3798.6 RCC Interruptsp.380Table 64. Interrupt sources and controlp.3808.7 RCC register descriptionp.3818.7.1 Register mapping overviewp.381Figure 64. RCC mapping overviewp.3818.7.2 RCC source control register (RCC_CR)p.3828.7.3 RCC internal clock source calibration register (RCC_ICSCR)p.3868.7.4 RCC HSI configuration register (RCC_HSICFGR)p.3878.7.5 RCC clock recovery RC register (RCC_CRRCR)p.3888.7.6 RCC CSI configuration register (RCC_CSICFGR)p.3898.7.7 RCC clock configuration register (RCC_CFGR)p.3908.7.8 RCC domain 1 clock configuration register (RCC_D1CFGR)p.3938.7.9 RCC domain 2 clock configuration register (RCC_D2CFGR)p.3958.7.10 RCC domain 3 clock configuration register (RCC_D3CFGR)p.3968.7.11 RCC PLL clock source selection register (RCC_PLLCKSELR)p.3978.7.12 RCC PLL configuration register (RCC_PLLCFGR)p.3998.7.13 RCC PLL1 dividers configuration register (RCC_PLL1DIVR)p.4028.7.14 RCC PLL1 fractional divider register (RCC_PLL1FRACR)p.4048.7.15 RCC PLL2 divider configuration register (RCC_PLL2DIVR)p.4058.7.16 RCC PLL2 fractional divider register (RCC_PLL2FRACR)p.4078.7.17 RCC PLL3 divider configuration register (RCC_PLL3DIVR)p.4088.7.18 RCC PLL3 fractional divider register (RCC_PLL3FRACR)p.4108.7.19 RCC domain 1 kernel clock configuration register (RCC_D1CCIPR)p.4118.7.20 RCC domain 2 kernel clock configuration register (RCC_D2CCIP1R)p.4128.7.21 RCC domain 2 kernel clock configuration register (RCC_D2CCIP2R)p.4158.7.22 RCC domain 3 kernel clock configuration register (RCC_D3CCIPR)p.4178.7.23 RCC clock source interrupt enable register (RCC_CIER)p.4208.7.24 RCC clock source Interrupt flag register (RCC_CIFR)p.4228.7.25 RCC clock source interrupt clear register (RCC_CICR)p.4248.7.26 RCC backup domain control register (RCC_BDCR)p.4268.7.27 RCC clock control and status register (RCC_CSR)p.4288.7.28 RCC AHB3 reset register (RCC_AHB3RSTR)p.4298.7.29 RCC AHB1 peripheral reset register (RCC_AHB1RSTR)p.4318.7.30 RCC AHB2 peripheral reset register (RCC_AHB2RSTR)p.4338.7.31 RCC AHB4 peripheral reset register (RCC_AHB4RSTR)p.4348.7.32 RCC APB3 peripheral reset register (RCC_APB3RSTR)p.4368.7.33 RCC APB1 peripheral reset register (RCC_APB1LRSTR)p.4378.7.34 RCC APB1 peripheral reset register (RCC_APB1HRSTR)p.4408.7.35 RCC APB2 peripheral reset register (RCC_APB2RSTR)p.4418.7.36 RCC APB4 peripheral reset register (RCC_APB4RSTR)p.4438.7.37 RCC global control register (RCC_GCR)p.4458.7.38 RCC D3 Autonomous mode register (RCC_D3AMR)p.4468.7.39 RCC reset status register (RCC_RSR)p.449Table 65. RCC_RSR address offset and reset valuep.4498.7.40 RCC AHB3 clock register (RCC_AHB3ENR)p.451Table 66. RCC_AHB3ENR address offset and reset valuep.4518.7.41 RCC AHB1 clock register (RCC_AHB1ENR)p.453Table 67. RCC_AHB1ENR address offset and reset valuep.4538.7.42 RCC AHB2 clock register (RCC_AHB2ENR)p.455Table 68. RCC_AHB2ENR address offset and reset valuep.4558.7.43 RCC AHB4 clock register (RCC_AHB4ENR)p.457Table 69. RCC_AHB4ENR address offset and reset valuep.4578.7.44 RCC APB3 clock register (RCC_APB3ENR)p.460Table 70. RCC_APB3ENR address offset and reset valuep.4608.7.45 RCC APB1 clock register (RCC_APB1LENR)p.461Table 71. RCC_APB1ENR address offset and reset valuep.4618.7.46 RCC APB1 clock register (RCC_APB1HENR)p.465Table 72. RCC_APB1ENR address offset and reset valuep.4658.7.47 RCC APB2 clock register (RCC_APB2ENR)p.467Table 73. RCC_APB2ENR address offset and reset valuep.4678.7.48 RCC APB4 clock register (RCC_APB4ENR)p.470Table 74. RCC_APB4ENR address offset and reset valuep.4708.7.49 RCC AHB3 Sleep clock register (RCC_AHB3LPENR)p.473Table 75. RCC_AHB3LPENR address offset and reset valuep.4738.7.50 RCC AHB1 Sleep clock register (RCC_AHB1LPENR)p.475Table 76. RCC_AHB1LPENR address offset and reset valuep.4758.7.51 RCC AHB2 Sleep clock register (RCC_AHB2LPENR)p.477Table 77. RCC_AHB2LPENR address offset and reset valuep.4778.7.52 RCC AHB4 Sleep clock register (RCC_AHB4LPENR)p.479Table 78. RCC_AHB4LPENR address offset and reset valuep.4798.7.53 RCC APB3 Sleep clock register (RCC_APB3LPENR)p.482Table 79. RCC_APB3LPENR address offset and reset valuep.4828.7.54 RCC APB1 Low Sleep clock register (RCC_APB1LLPENR)p.483Table 80. RCC_APB1LLPENR address offset and reset valuep.4838.7.55 RCC APB1 High Sleep clock register (RCC_APB1HLPENR)p.487Table 81. RCC_APB1HLPENR address offset and reset valuep.4878.7.56 RCC APB2 Sleep clock register (RCC_APB2LPENR)p.489Table 82. RCC_APB2LPENR address offset and reset valuep.4898.7.57 RCC APB4 Sleep clock register (RCC_APB4LPENR)p.492Table 83. RCC_APB4LPENR address offset and reset valuep.4928.8 RCC register mapp.495Table 84. RCC register map and reset valuesp.495
9 Clock recovery system (CRS)p.50525
9.1 Introductionp.5059.2 CRS main featuresp.5059.3 CRS implementationp.505Table 85. CRS featuresp.5059.4 CRS functional descriptionp.5069.4.1 CRS block diagramp.506Figure 65. CRS block diagramp.5069.5 CRS internal signalsp.506Table 86. CRS internal input/output signalsp.5069.5.1 Synchronization inputp.5079.5.2 Frequency error measurementp.507Figure 66. CRS counter behaviorp.5089.5.3 Frequency error evaluation and automatic trimmingp.5089.5.4 CRS initialization and configurationp.5099.6 CRS low-power modesp.510Table 87. Effect of low-power modes on CRSp.5109.7 CRS interruptsp.510Table 88. Interrupt control bitsp.5109.8 CRS registersp.5119.8.1 CRS control register (CRS_CR)p.5119.8.2 CRS configuration register (CRS_CFGR)p.5129.8.3 CRS interrupt and status register (CRS_ISR)p.5139.8.4 CRS interrupt flag clear register (CRS_ICR)p.5159.8.5 CRS register mapp.515Table 89. CRS register map and reset valuesp.515
10 Hardware semaphore (HSEM)p.51727
10.1 Introductionp.51710.2 Main featuresp.51710.3 Functional descriptionp.51810.3.1 HSEM block diagramp.518Figure 67. HSEM block diagramp.51810.3.2 HSEM internal signalsp.518Table 90. HSEM internal input/output signalsp.51810.3.3 HSEM lock proceduresp.518Figure 68. Procedure state diagramp.51910.3.4 HSEM write/read/read lock register addressp.52010.3.5 HSEM unlock proceduresp.52010.3.6 HSEM MASTERID semaphore clearp.52110.3.7 HSEM interruptsp.521Figure 69. Interrupt state diagramp.52210.3.8 AHB bus master ID verificationp.523Table 91. Authorized AHB bus master IDp.52310.4 HSEM registersp.52410.4.1 HSEM register semaphore x (HSEM_Rx)p.52410.4.2 HSEM read lock register semaphore x (HSEM_RLRx)p.52510.4.3 HSEM interrupt enable register (HSEM_IER)p.52610.4.4 HSEM interrupt clear register (HSEM_ICR)p.52610.4.5 HSEM interrupt status register (HSEM_ISR)p.52610.4.6 HSEM interrupt status register (HSEM_MISR)p.52710.4.7 HSEM clear register (HSEM_CR)p.52710.4.8 HSEM clear semaphore key register (HSEM_KEYR)p.52810.4.9 HSEM register mapp.529Table 92. HSEM register map and reset valuesp.529
11 General-purpose I/Os (GPIO)p.53039
11.1 Introductionp.53011.2 GPIO main featuresp.53011.3 GPIO functional descriptionp.530Figure 70. Basic structure of an I/O port bitp.531Figure 71. Basic structure of a 5-Volt tolerant I/O port bitp.531Table 93. Port bit configuration tablep.53211.3.1 General-purpose I/O (GPIO)p.53311.3.2 I/O pin alternate function multiplexer and mappingp.53311.3.3 I/O port control registersp.53411.3.4 I/O port data registersp.53411.3.5 I/O data bitwise handlingp.53411.3.6 GPIO locking mechanismp.53511.3.7 I/O alternate function input/outputp.53511.3.8 External interrupt/wake-up linesp.53511.3.9 Input configurationp.536Figure 72. Input floating / pull up / pull down configurationsp.53611.3.10 Output configurationp.536Figure 73. Output configurationp.53711.3.11 I/O compensation cellp.53711.3.12 Alternate function configurationp.537Figure 74. Alternate function configurationp.53811.3.13 Analog configurationp.538Figure 75. High impedance-analog configurationp.538Figure 76. Analog inputs connected to ADC inputsp.53911.3.14 Using the HSE or LSE oscillator pins as GPIOsp.53911.3.15 Using the GPIO pins in the backup supply domainp.53911.4 GPIO registersp.54011.4.1 GPIO port mode register (GPIOx_MODER) (x =A to K)p.54011.4.2 GPIO port output type register (GPIOx_OTYPER) (x = A to K)p.54011.4.3 GPIO port output speed register (GPIOx_OSPEEDR) (x = A to K)p.54111.4.4 GPIO port pull-up/pull-down register (GPIOx_PUPDR) (x = A to K)p.54111.4.5 GPIO port input data register (GPIOx_IDR) (x = A to K)p.54211.4.6 GPIO port output data register (GPIOx_ODR) (x = A to K)p.54211.4.7 GPIO port bit set/reset register (GPIOx_BSRR) (x = A to K)p.54311.4.8 GPIO port configuration lock register (GPIOx_LCKR) (x = A to K)p.54311.4.9 GPIO alternate function low register (GPIOx_AFRL) (x = A to K)p.54411.4.10 GPIO alternate function high register (GPIOx_AFRH) (x = A to J)p.54511.4.11 GPIO register mapp.546Table 94. GPIO register map and reset values (continued)p.546
12 System configuration controller (SYSCFG)p.54833
12.1 Introductionp.54812.2 SYSCFG main featuresp.54812.3 SYSCFG registersp.54812.3.1 SYSCFG peripheral mode configuration register (SYSCFG_PMCR)p.54812.3.2 SYSCFG external interrupt configuration register 1 (SYSCFG_EXTICR1)p.55112.3.3 SYSCFG external interrupt configuration register 2 (SYSCFG_EXTICR2)p.55112.3.4 SYSCFG external interrupt configuration register 3 (SYSCFG_EXTICR3)p.55312.3.5 SYSCFG external interrupt configuration register 4 (SYSCFG_EXTICR4)p.55412.3.6 SYSCFG configuration register (SYSCFG_CFGR)p.55512.3.7 SYSCFG compensation cell control/status register (SYSCFG_CCCSR)p.55812.3.8 SYSCFG compensation cell value register (SYSCFG_CCVR)p.55912.3.9 SYSCFG compensation cell code register (SYSCFG_CCCR)p.55912.3.10 SYSCFG power control register (SYSCFG_PWRCR)p.56012.3.11 SYSCFG package register (SYSCFG_PKGR)p.56012.3.12 SYSCFG user register 0 (SYSCFG_UR0)p.56212.3.13 SYSCFG user register 2 (SYSCFG_UR2)p.56212.3.14 SYSCFG user register 3 (SYSCFG_UR3)p.56312.3.15 SYSCFG user register 4 (SYSCFG_UR4)p.56312.3.16 SYSCFG user register 5 (SYSCFG_UR5)p.56412.3.17 SYSCFG user register 6 (SYSCFG_UR6)p.56412.3.18 SYSCFG user register 7 (SYSCFG_UR7)p.56512.3.19 SYSCFG user register 8 (SYSCFG_UR8)p.56512.3.20 SYSCFG user register 9 (SYSCFG_UR9)p.56612.3.21 SYSCFG user register 10 (SYSCFG_UR10)p.56612.3.22 SYSCFG user register 11 (SYSCFG_UR11)p.56712.3.23 SYSCFG user register 12 (SYSCFG_UR12)p.56712.3.24 SYSCFG user register 13 (SYSCFG_UR13)p.56812.3.25 SYSCFG user register 14 (SYSCFG_UR14)p.56912.3.26 SYSCFG user register 15 (SYSCFG_UR15)p.57012.3.27 SYSCFG user register 16 (SYSCFG_UR16)p.57112.3.28 SYSCFG user register 17 (SYSCFG_UR17)p.57112.3.29 SYSCFG register mapsp.572Table 95. SYSCFG register map and reset valuesp.572
13 Block interconnectp.57516
13.1 Peripheral interconnectp.57513.1.1 Introductionp.57513.1.2 Connection overviewp.575Table 96. Peripherals interconnect matrix (D2 domain)p.576Table 97. Peripherals interconnect matrix (D3 domain)p.577Table 98. Peripherals interconnect matrix detailsp.57813.2 Wakeup from low power modesp.594Table 99. EXTI wakeup inputsp.595Table 100. EXTI pending requests clear inputsp.59813.3 DMAp.59913.3.1 MDMA (D1 domain)p.600Table 101. MDMAp.60013.3.2 DMAMUX1, DMA1 and DMA2 (D2 domain)p.602Table 102. DMAMUX1, DMA1 and DMA2 connectionsp.60213.3.3 DMAMUX2, BDMA (D3 domain)p.607Table 103. DMAMUX2 and BDMA connectionsp.607
14 MDMA controller (MDMA)p.61039
14.1 MDMA introductionp.61014.2 MDMA main featuresp.61014.3 MDMA functional descriptionp.61214.3.1 MDMA block diagramp.612Figure 77. MDMA block diagramp.61214.3.2 MDMA internal signalsp.612Table 104. MDMA internal input/output signalsp.61214.3.3 MDMA overviewp.61214.3.4 MDMA channelp.61414.3.5 Source, destination and transfer modesp.61414.3.6 Pointer updatep.61414.3.7 MDMA buffer transferp.61514.3.8 Request arbitrationp.61614.3.9 FIFOp.61614.3.10 Block transferp.61614.3.11 Block repeat modep.61714.3.12 Linked-list modep.61714.3.13 MDMA transfer completionp.61714.3.14 MDMA transfer suspensionp.61714.3.15 Error managementp.61814.4 MDMA interruptsp.618Table 105. MDMA interrupt requestsp.61814.5 MDMA registersp.61914.5.1 MDMA global interrupt status register (MDMA_GISR0)p.61914.5.2 MDMA channel x interrupt status register (MDMA_CxISR)p.61914.5.3 MDMA channel x interrupt flag clear register (MDMA_CxIFCR)p.62114.5.4 MDMA channel x error status register (MDMA_CxESR)p.62114.5.5 MDMA channel x control register (MDMA_CxCR)p.62214.5.6 MDMA channel x transfer configuration register (MDMA_CxTCR)p.62414.5.7 MDMA channel x block number of data register (MDMA_CxBNDTR)p.62814.5.8 MDMA channel x source address register (MDMA_CxSAR)p.62914.5.9 MDMA channel x destination address register (MDMA_CxDAR)p.63014.5.10 MDMA channel x block repeat address update register (MDMA_CxBRUR)p.63014.5.11 MDMA channel x link address register (MDMA_CxLAR)p.63114.5.12 MDMA channel x trigger and bus selection register (MDMA_CxTBR)p.63214.5.13 MDMA channel x mask address register (MDMA_CxMAR)p.63314.5.14 MDMA channel x mask data register (MDMA_CxMDR)p.63314.5.15 MDMA register mapp.634Table 106. MDMA register map and reset valuesp.634
15 Direct memory access controller (DMA)p.63550
15.1 DMA introductionp.63515.2 DMA main featuresp.63515.3 DMA functional descriptionp.63715.3.1 DMA block diagramp.637Figure 78. DMA block diagramp.63715.3.2 DMA internal signalsp.637Table 107. DMA internal input/output signalsp.63715.3.3 DMA overviewp.63715.3.4 DMA transactionsp.63815.3.5 DMA request mappingp.63815.3.6 Arbiterp.63915.3.7 DMA streamsp.63915.3.8 Source, destination and transfer modesp.639Table 108. Source and destination addressp.639Figure 79. Peripheral-to-memory modep.641Figure 80. Memory-to-peripheral modep.642Figure 81. Memory-to-memory modep.64315.3.9 Pointer incrementationp.64315.3.10 Circular modep.64415.3.11 Double-buffer modep.644Table 109. Source and destination address registers in double-buffer mode (DBM = 1)p.64515.3.12 Programmable data width, packing/unpacking, endiannessp.645Table 110. Packing/unpacking and endian behavior (bit PINC = MINC = 1)p.646Table 111. Restriction on NDT versus PSIZE and MSIZEp.64615.3.13 Single and burst transfersp.64615.3.14 FIFOp.647Figure 82. FIFO structurep.648Table 112. FIFO threshold configurationsp.64915.3.15 DMA transfer completionp.65015.3.16 DMA transfer suspensionp.65115.3.17 Flow controllerp.65215.3.18 Summary of the possible DMA configurationsp.653Table 113. Possible DMA configurationsp.65315.3.19 Stream configuration procedurep.65315.3.20 Error managementp.65415.4 DMA interruptsp.655Table 114. DMA interrupt requestsp.65515.5 DMA registersp.65615.5.1 DMA low interrupt status register (DMA_LISR)p.65615.5.2 DMA high interrupt status register (DMA_HISR)p.65715.5.3 DMA low interrupt flag clear register (DMA_LIFCR)p.65815.5.4 DMA high interrupt flag clear register (DMA_HIFCR)p.65815.5.5 DMA stream x configuration register (DMA_SxCR)p.65915.5.6 DMA stream x number of data register (DMA_SxNDTR)p.66215.5.7 DMA stream x peripheral address register (DMA_SxPAR)p.66215.5.8 DMA stream x memory 0 address register (DMA_SxM0AR)p.66315.5.9 DMA stream x memory 1 address register (DMA_SxM1AR)p.66315.5.10 DMA stream x FIFO control register (DMA_SxFCR)p.66415.5.11 DMA register mapp.665Table 115. DMA register map and reset valuesp.665
16 Basic direct memory access controller (BDMA)p.66929
16.1 Introductionp.66916.2 BDMA main featuresp.66916.3 BDMA implementationp.67016.3.1 BDMAp.670Table 116. BDMA implementationp.67016.3.2 BDMA request mappingp.67016.4 BDMA functional descriptionp.67016.4.1 BDMA block diagramp.670Figure 83. BDMA block diagramp.67016.4.2 BDMA pins and internal signalsp.671Table 117. BDMA internal input/output signalsp.67116.4.3 BDMA transfersp.67116.4.4 BDMA arbitrationp.67216.4.5 BDMA channelsp.67216.4.6 BDMA data width, alignment and endiannessp.677Table 118. Programmable data width and endian behavior (when PINC = MINC = 1)p.67716.4.7 BDMA error managementp.67816.5 BDMA interruptsp.679Table 119. BDMA interrupt requestsp.67916.6 BDMA registersp.67916.6.1 BDMA interrupt status register (BDMA_ISR)p.67916.6.2 BDMA interrupt flag clear register (BDMA_IFCR)p.68216.6.3 BDMA channel x configuration register (BDMA_CCRx)p.68316.6.4 BDMA channel x number of data to transfer register (BDMA_CNDTRx)p.68716.6.5 BDMA channel x peripheral address register (BDMA_CPARx)p.68716.6.6 BDMA channel x memory 0 address register (BDMA_CM0ARx)p.68816.6.7 BDMA channel x memory 1 address register (BDMA_CM1ARx)p.68916.6.8 BDMA register mapp.689Table 120. BDMA register map and reset valuesp.689
17 DMA request multiplexer (DMAMUX)p.69241
17.1 Introductionp.69217.2 DMAMUX main featuresp.69317.3 DMAMUX implementationp.69317.3.1 DMAMUX1 and DMAMUX2 instantiationp.693Table 121. DMAMUX1 and DMAMUX2 instantiationp.69317.3.2 DMAMUX1 mappingp.693Table 122. DMAMUX1: assignment of multiplexer inputs to resourcesp.694Table 123. DMAMUX1: assignment of multiplexer inputs to resourcesp.695Table 124. DMAMUX1: assignment of trigger inputs to resourcesp.696Table 125. DMAMUX1: assignment of synchronization inputs to resourcesp.69617.3.3 DMAMUX2 mappingp.696Table 126. DMAMUX2: assignment of multiplexer inputs to resourcesp.697Table 127. DMAMUX2: assignment of trigger inputs to resourcesp.697Table 128. DMAMUX2: assignment of synchronization inputs to resourcesp.69817.4 DMAMUX functional descriptionp.69917.4.1 DMAMUX block diagramp.699Figure 84. DMAMUX block diagramp.69917.4.2 DMAMUX signalsp.700Table 129. DMAMUX signalsp.70017.4.3 DMAMUX channelsp.70017.4.4 DMAMUX request line multiplexerp.700Figure 85. Synchronization mode of the DMAMUX request line multiplexer channelp.702Figure 86. Event generation of the DMA request line multiplexer channelp.70217.4.5 DMAMUX request generatorp.70317.5 DMAMUX interruptsp.704Table 130. DMAMUX interruptsp.70417.6 DMAMUX registersp.70517.6.1 DMAMUX1 request line multiplexer channel x configuration register (DMAMUX1_CxCR)p.70517.6.2 DMAMUX2 request line multiplexer channel x configuration register (DMAMUX2_CxCR)p.70617.6.3 DMAMUX1 request line multiplexer interrupt channel status register (DMAMUX1_CSR)p.70717.6.4 DMAMUX2 request line multiplexer interrupt channel status register (DMAMUX2_CSR)p.70717.6.5 DMAMUX1 request line multiplexer interrupt clear flag register (DMAMUX1_CFR)p.70817.6.6 DMAMUX2 request line multiplexer interrupt clear flag register (DMAMUX2_CFR)p.70817.6.7 DMAMUX1 request generator channel x configuration register (DMAMUX1_RGxCR)p.70917.6.8 DMAMUX2 request generator channel x configuration register (DMAMUX2_RGxCR)p.70917.6.9 DMAMUX1 request generator interrupt status register (DMAMUX1_RGSR)p.71017.6.10 DMAMUX2 request generator interrupt status register (DMAMUX2_RGSR)p.71117.6.11 DMAMUX1 request generator interrupt clear flag register (DMAMUX1_RGCFR)p.71117.6.12 DMAMUX2 request generator interrupt clear flag register (DMAMUX2_RGCFR)p.71217.6.13 DMAMUX register mapp.713Table 131. DMAMUX register map and reset valuesp.713
18 Chrom-ART Accelerator controller (DMA2D)p.71565
18.1 DMA2D introductionp.71518.2 DMA2D main featuresp.71518.3 DMA2D functional descriptionp.71618.3.1 General descriptionp.716Figure 87. DMA2D block diagramp.71718.3.2 DMA2D internal signalsp.717Table 132. DMA2D internal input/output signalsp.71718.3.3 DMA2D controlp.71718.3.4 DMA2D foreground and background FIFOsp.71818.3.5 DMA2D foreground and background PFCp.718Table 133. Supported color mode in inputp.718Table 134. Data order in memoryp.719Table 135. Alpha mode configurationp.72018.3.6 DMA2D foreground and background CLUT interfacep.720Table 136. Supported CLUT color modep.721Table 137. CLUT data order in memoryp.72118.3.7 DMA2D blenderp.72118.3.8 DMA2D output PFCp.721Table 138. Supported color mode in outputp.72218.3.9 DMA2D output FIFOp.722Table 139. Data order in memoryp.72218.3.10 DMA2D output FIFO byte reorderingp.723Table 140. Standard data order in memoryp.723Figure 88. Intel 8080 16-bit mode (RGB565)p.723Figure 89. Intel 8080 18/24-bit mode (RGB888)p.724Table 141. Output FIFO byte reordering stepsp.72418.3.11 DMA2D AXI master port timerp.72418.3.12 DMA2D transactionsp.72418.3.13 DMA2D configurationp.72518.3.14 YCbCr supportp.729Table 142. MCU order in memoryp.72918.3.15 DMA2D transfer control (start, suspend, abort, and completion)p.72918.3.16 Watermarkp.72918.3.17 Error managementp.72918.3.18 AXI dead timep.73018.4 DMA2D interruptsp.730Table 143. DMA2D interrupt requestsp.73018.5 DMA2D registersp.73118.5.1 DMA2D control register (DMA2D_CR)p.73118.5.2 DMA2D interrupt status register (DMA2D_ISR)p.73218.5.3 DMA2D interrupt flag clear register (DMA2D_IFCR)p.73318.5.4 DMA2D foreground memory address register (DMA2D_FGMAR)p.73418.5.5 DMA2D foreground offset register (DMA2D_FGOR)p.73418.5.6 DMA2D background memory address register (DMA2D_BGMAR)p.73518.5.7 DMA2D background offset register (DMA2D_BGOR)p.73518.5.8 DMA2D foreground PFC control register (DMA2D_FGPFCCR)p.73618.5.9 DMA2D foreground color register (DMA2D_FGCOLR)p.73718.5.10 DMA2D background PFC control register (DMA2D_BGPFCCR)p.73818.5.11 DMA2D background color register (DMA2D_BGCOLR)p.73918.5.12 DMA2D foreground CLUT memory address register (DMA2D_FGCMAR)p.74018.5.13 DMA2D background CLUT memory address register (DMA2D_BGCMAR)p.74018.5.14 DMA2D output PFC control register (DMA2D_OPFCCR)p.74118.5.15 DMA2D output color register (DMA2D_OCOLR)p.74218.5.16 DMA2D output color register [alternate] (DMA2D_OCOLR)p.74218.5.17 DMA2D output color register [alternate] (DMA2D_OCOLR)p.74318.5.18 DMA2D output color register [alternate] (DMA2D_OCOLR)p.74318.5.19 DMA2D output memory address register (DMA2D_OMAR)p.74418.5.20 DMA2D output offset register (DMA2D_OOR)p.74418.5.21 DMA2D number of line register (DMA2D_NLR)p.74518.5.22 DMA2D line watermark register (DMA2D_LWR)p.74518.5.23 DMA2D AXI master timer configuration register (DMA2D_AMTCR)p.74618.5.24 DMA2D foreground CLUT (DMA2D_FGCLUTx)p.74618.5.25 DMA2D background CLUT (DMA2D_BGCLUTx)p.74718.5.26 DMA2D register mapp.747Table 144. DMA2D register map and reset valuesp.747
20 Extended interrupt and event controller (EXTI)p.75856
20.1 EXTI main featuresp.75820.2 EXTI block diagramp.758Figure 90. EXTI block diagramp.75920.2.1 EXTI connections between peripherals, CPU, and D3 domainp.75920.3 EXTI functional descriptionp.760Table 146. EXTI Event input configurations and register controlp.76020.3.1 EXTI Configurable event input CPU wakeupp.761Figure 91. Configurable event triggering logic CPU wakeupp.76120.3.2 EXTI configurable event input Any wakeupp.762Table 147. Configurable Event input Asynchronous Edge detector resetp.762Figure 92. Configurable event triggering logic Any wakeupp.76320.3.3 EXTI direct event input CPU wakeupp.764Figure 93. Direct event triggering logic CPU Wakeupp.76420.3.4 EXTI direct event input Any wakeupp.765Figure 94. Direct event triggering logic Any Wakeupp.76520.3.5 EXTI D3 pending request clear selectionp.766Figure 95. D3 domain Pending request clear logicp.76620.4 EXTI event input mappingp.766Table 148. EXTI Event input mappingp.76720.5 EXTI functional behaviorp.769Table 149. Masking functionalityp.76920.5.1 EXTI CPU interrupt procedurep.77020.5.2 EXTI CPU event procedurep.77020.5.3 EXTI CPU wakeup procedurep.77120.5.4 EXTI D3 domain wakeup for autonomous Run mode procedurep.77120.5.5 EXTI software interrupt/event trigger procedurep.77120.6 EXTI registersp.77220.6.1 EXTI rising trigger selection register (EXTI_RTSR1)p.77220.6.2 EXTI falling trigger selection register (EXTI_FTSR1)p.77220.6.3 EXTI software interrupt event register (EXTI_SWIER1)p.77320.6.4 EXTI D3 pending mask register (EXTI_D3PMR1)p.77320.6.5 EXTI D3 pending clear selection register low (EXTI_D3PCR1L)p.77420.6.6 EXTI D3 pending clear selection register high (EXTI_D3PCR1H)p.77420.6.7 EXTI rising trigger selection register (EXTI_RTSR2)p.77520.6.8 EXTI falling trigger selection register (EXTI_FTSR2)p.77620.6.9 EXTI software interrupt event register (EXTI_SWIER2)p.77620.6.10 EXTI D3 pending mask register (EXTI_D3PMR2)p.77720.6.11 EXTI D3 pending clear selection register low (EXTI_D3PCR2L)p.77820.6.12 EXTI D3 pending clear selection register high (EXTI_D3PCR2H)p.77820.6.13 EXTI rising trigger selection register (EXTI_RTSR3)p.77920.6.14 EXTI falling trigger selection register (EXTI_FTSR3)p.77920.6.15 EXTI software interrupt event register (EXTI_SWIER3)p.78020.6.16 EXTI D3 pending mask register (EXTI_D3PMR3)p.78020.6.17 EXTI D3 pending clear selection register low (EXTI_D3PCR3L)p.78120.6.18 EXTI D3 pending clear selection register high (EXTI_D3PCR3H)p.78120.6.19 EXTI interrupt mask register (EXTI_CPUIMR1)p.78220.6.20 EXTI event mask register (EXTI_CPUEMR1)p.78220.6.21 EXTI pending register (EXTI_CPUPR1)p.78320.6.22 EXTI interrupt mask register (EXTI_CPUIMR2)p.78320.6.23 EXTI event mask register (EXTI_CPUEMR2)p.78420.6.24 EXTI pending register (EXTI_CPUPR2)p.78420.6.25 EXTI interrupt mask register (EXTI_CPUIMR3)p.78520.6.26 EXTI event mask register (EXTI_CPUEMR3)p.78620.6.27 EXTI pending register (EXTI_CPUPR3)p.78620.6.28 EXTI register mapp.787Table 150. Asynchronous interrupt/event controller register map and reset valuesp.787
21 Cyclic redundancy check calculation unit (CRC)p.79016
21.1 Introductionp.79021.2 CRC main featuresp.79021.3 CRC functional descriptionp.79121.3.1 CRC block diagramp.791Figure 96. CRC calculation unit block diagramp.79121.3.2 CRC internal signalsp.791Table 151. CRC internal input/output signalsp.79121.3.3 CRC operationp.79121.4 CRC registersp.79321.4.1 CRC data register (CRC_DR)p.79321.4.2 CRC independent data register (CRC_IDR)p.79321.4.3 CRC control register (CRC_CR)p.79421.4.4 CRC initial value (CRC_INIT)p.79521.4.5 CRC polynomial (CRC_POL)p.79521.4.6 CRC register mapp.796Table 152. CRC register map and reset valuesp.796
22 Flexible memory controller (FMC)p.797105
22.1 FMC main featuresp.79722.2 FMC block diagramp.798Figure 97. FMC block diagramp.79922.3 FMC internal signalsp.800Table 153. FMC pinsp.80022.4 AHB interfacep.80022.5 AXI interfacep.80022.5.1 Supported memories and transactionsp.80122.6 External device address mappingp.802Figure 98. FMC memory banks (default mapping)p.802Table 154. FMC bank mapping optionsp.80322.6.1 NOR/PSRAM address mappingp.803Table 155. NOR/PSRAM bank selectionp.803Table 156. NOR/PSRAM External memory addressp.80322.6.2 NAND flash memory address mappingp.804Table 157. NAND memory mapping and timing registersp.804Table 158. NAND bank selectionp.80422.6.3 SDRAM address mappingp.804Table 159. SDRAM bank selectionp.804Table 160. SDRAM address mappingp.805Table 161. SDRAM address mapping with 8-bit data bus widthp.805Table 162. SDRAM address mapping with 16-bit data bus widthp.806Table 163. SDRAM address mapping with 32-bit data bus widthp.80722.7 NOR flash/PSRAM controllerp.808Table 164. Programmable NOR/PSRAM access parametersp.80922.7.1 External memory interface signalsp.809Table 165. Non-multiplexed I/O NOR flash memoryp.809Table 166. 16-bit multiplexed I/O NOR flash memoryp.810Table 167. Non-multiplexed I/Os PSRAM/SRAMp.810Table 168. 16-Bit multiplexed I/O PSRAMp.81022.7.2 Supported memories and transactionsp.811Table 169. NOR flash/PSRAM: Example of supported memories and transactionsp.81122.7.3 General timing rulesp.81222.7.4 NOR flash/PSRAM controller asynchronous transactionsp.813Figure 99. Mode 1 read access waveformsp.813Figure 100. Mode 1 write access waveformsp.814Table 170. FMC_BCRx bitfields (mode 1)p.814Table 171. FMC_BTRx bitfields (mode 1)p.815Figure 101. Mode A read access waveformsp.816Figure 102. Mode A write access waveformsp.817Table 172. FMC_BCRx bitfields (mode A)p.817Table 173. FMC_BTRx bitfields (mode A)p.818Table 174. FMC_BWTRx bitfields (mode A)p.818Figure 103. Mode 2 and mode B read access waveformsp.819Figure 104. Mode 2 write access waveformsp.819Figure 105. Mode B write access waveformsp.820Table 175. FMC_BCRx bitfields (mode 2/B)p.820Table 176. FMC_BTRx bitfields (mode 2/B)p.821Table 177. FMC_BWTRx bitfields (mode 2/B)p.821Figure 106. Mode C read access waveformsp.822Figure 107. Mode C write access waveformsp.822Table 178. FMC_BCRx bitfields (mode C)p.823Table 179. FMC_BTRx bitfields (mode C)p.824Table 180. FMC_BWTRx bitfields (mode C)p.824Figure 108. Mode D read access waveformsp.825Figure 109. Mode D write access waveformsp.825Table 181. FMC_BCRx bitfields (mode D)p.826Table 182. FMC_BTRx bitfields (mode D)p.826Table 183. FMC_BWTRx bitfields (mode D)p.827Figure 110. Muxed read access waveformsp.828Figure 111. Muxed write access waveformsp.828Table 184. FMC_BCRx bitfields (Muxed mode)p.829Table 185. FMC_BTRx bitfields (Muxed mode)p.829Figure 112. Asynchronous wait during a read access waveformsp.831Figure 113. Asynchronous wait during a write access waveformsp.83122.7.5 Synchronous transactionsp.832Figure 114. Wait configuration waveformsp.834Figure 115. Synchronous multiplexed read mode waveforms - NOR, PSRAM (CRAM)p.834Table 186. FMC_BCRx bitfields (Synchronous multiplexed read mode)p.835Table 187. FMC_BTRx bitfields (Synchronous multiplexed read mode)p.835Figure 116. Synchronous multiplexed write mode waveforms - PSRAM (CRAM)p.836Table 188. FMC_BCRx bitfields (Synchronous multiplexed write mode)p.836Table 189. FMC_BTRx bitfields (Synchronous multiplexed write mode)p.83722.7.6 NOR/PSRAM controller registersp.83822.8 NAND flash controllerp.847Table 190. Programmable NAND flash access parametersp.84722.8.1 External memory interface signalsp.847Table 191. 8-bit NAND flash memoryp.847Table 192. 16-bit NAND flash memoryp.84822.8.2 NAND flash supported memories and transactionsp.848Table 193. Supported memories and transactionsp.84822.8.3 Timing diagrams for NAND flash memoriesp.849Figure 117. NAND flash controller waveforms for common memory accessp.85022.8.4 NAND flash operationsp.85022.8.5 NAND flash prewait featurep.851Figure 118. Access to non ‘CE don’t care’ NAND-flashp.85122.8.6 Computation of the error correction code (ECC) in NAND flash memoryp.85222.8.7 NAND flash controller registersp.853Table 194. ECC result relevant bitsp.85822.9 SDRAM controllerp.85922.9.1 SDRAM controller main featuresp.85922.9.2 SDRAM External memory interface signalsp.859Table 195. SDRAM signalsp.85922.9.3 SDRAM controller functional descriptionp.860Figure 119. Burst write SDRAM access waveformsp.861Figure 120. Burst read SDRAM accessp.862Figure 121. Logic diagram of Read access with RBURST bit set (CAS=2, RPIPE=0)p.863Figure 122. Read access crossing row boundaryp.865Figure 123. Write access crossing row boundaryp.86522.9.4 Low-power modesp.867Figure 124. Self-refresh modep.868Figure 125. Power-down modep.86922.9.5 SDRAM controller registersp.87022.9.6 FMC register mapp.876Table 196. FMC register mapp.876
23 Quad-SPI interface (QUADSPI)p.87947
23.1 Introductionp.87923.2 QUADSPI main featuresp.87923.3 QUADSPI functional descriptionp.87923.3.1 QUADSPI block diagramp.879Figure 126. QUADSPI block diagram when dual-flash mode is disabledp.879Figure 127. QUADSPI block diagram when dual-flash mode is enabledp.88023.3.2 QUADSPI pins and internal signalsp.880Table 197. QUADSPI internal signalsp.880Table 198. QUADSPI pinsp.88023.3.3 QUADSPI command sequencep.881Figure 128. Example of read command in quad-SPI modep.88123.3.4 QUADSPI signal interface protocol modesp.883Figure 129. Example of a DDR command in quad-SPI modep.88423.3.5 QUADSPI indirect modep.88523.3.6 QUADSPI automatic status-polling modep.88723.3.7 QUADSPI memory-mapped modep.88723.3.8 QUADSPI free-running clock modep.88823.3.9 QUADSPI flash memory configurationp.88823.3.10 QUADSPI delayed data samplingp.88923.3.11 QUADSPI configurationp.88923.3.12 QUADSPI usep.88923.3.13 Sending the instruction only oncep.89123.3.14 QUADSPI error managementp.89223.3.15 QUADSPI busy bit and abort functionalityp.89223.3.16 NCS behaviorp.892Figure 130. NCS when CKMODE = 0 (T = CLK period)p.892Figure 131. NCS when CKMODE = 1 in SDR mode (T = CLK period)p.893Figure 132. NCS when CKMODE = 1 in DDR mode (T = CLK period)p.893Figure 133. NCS when CKMODE = 1 with an abort (T = CLK period)p.89423.4 QUADSPI interruptsp.894Table 199. QUADSPI interrupt requestsp.89423.5 QUADSPI registersp.89523.5.1 QUADSPI control register (QUADSPI_CR)p.89523.5.2 QUADSPI device configuration register (QUADSPI_DCR)p.89723.5.3 QUADSPI status register (QUADSPI_SR)p.89823.5.4 QUADSPI flag clear register (QUADSPI_FCR)p.89923.5.5 QUADSPI data length register (QUADSPI_DLR)p.90023.5.6 QUADSPI communication configuration register (QUADSPI_CCR)p.90023.5.7 QUADSPI address register (QUADSPI_AR)p.90223.5.8 QUADSPI alternate-byte register (QUADSPI_ABR)p.90323.5.9 QUADSPI data register (QUADSPI_DR)p.90323.5.10 QUADSPI polling status mask register (QUADSPI_PSMKR)p.90423.5.11 QUADSPI polling status match register (QUADSPI_PSMAR)p.90423.5.12 QUADSPI polling interval register (QUADSPI_PIR)p.90523.5.13 QUADSPI low-power timeout register (QUADSPI_LPTR)p.90523.5.14 QUADSPI register mapp.906Table 200. QUADSPI register map and reset valuesp.906
24 Delay block (DLYB)p.90716
24.1 Introductionp.90724.2 DLYB main featuresp.90724.3 DLYB functional descriptionp.90724.3.1 DLYB diagramp.907Figure 134. DLYB block diagramp.90724.3.2 DLYB pins and internal signalsp.908Table 201. DLYB internal input/output signalsp.90824.3.3 General descriptionp.908Table 202. Delay block controlp.90824.3.4 Delay line length configuration procedurep.90924.3.5 Output clock phase configuration procedurep.90924.4 DLYB registersp.91024.4.1 DLYB control register (DLYB_CR)p.91024.4.2 DLYB configuration register (DLYB_CFGR)p.91024.4.3 DLYB register mapp.911Table 203. DLYB register map and reset valuesp.911
25 Analog-to-digital converters (ADC)p.912166
25.1 Introductionp.91225.2 ADC main featuresp.91325.3 ADC implementationp.914Table 204. ADC featuresp.91425.4 ADC functional descriptionp.91525.4.1 ADC block diagramp.915Figure 135. ADC block diagramp.91525.4.2 ADC pins and internal signalsp.916Table 205. ADC input/output pinsp.916Table 206. ADC internal input/output signalsp.916Table 207. ADC interconnectionp.91725.4.3 ADC clocksp.917Figure 136. ADC Clock schemep.918Figure 137. ADC clock schemep.91925.4.4 ADC1/2/3 connectivityp.920Figure 138. ADC1 connectivityp.920Figure 139. ADC2 connectivityp.921Figure 140. ADC3 connectivityp.92225.4.5 Slave AHB interfacep.92325.4.6 ADC deep-power-down mode (DEEPPWD) and ADC voltage regulator (ADVREGEN)p.92325.4.7 Single-ended and differential input channelsp.92425.4.8 Calibration (ADCAL, ADCALDIF, ADCALLIN, ADC_CALFACT)p.924Figure 141. ADC calibrationp.926Figure 142. Updating the ADC offset calibration factorp.926Figure 143. Mixing single-ended and differential channelsp.92725.4.9 ADC on-off control (ADEN, ADDIS, ADRDY)p.930Figure 144. Enabling / Disabling the ADCp.93025.4.10 Constraints when writing the ADC control bitsp.93125.4.11 Channel selection (SQRx, JSQRx)p.93125.4.12 Channel preselection register (ADC_PCSEL)p.93225.4.13 Channel-wise programmable sampling time (SMPR1, SMPR2)p.93325.4.14 Single conversion mode (CONT=0)p.93425.4.15 Continuous conversion mode (CONT=1)p.93425.4.16 Starting conversions (ADSTART, JADSTART)p.93525.4.17 Timingp.936Figure 145. Analog to digital conversion timep.93625.4.18 Stopping an ongoing conversion (ADSTP, JADSTP)p.936Figure 146. Stopping ongoing regular conversionsp.937Figure 147. Stopping ongoing regular and injected conversionsp.93725.4.19 Conversion on external trigger and trigger polarity (EXTSEL, EXTEN, JEXTSEL, JEXTEN)p.938Table 208. Configuring the trigger polarity for regular external triggersp.938Table 209. Configuring the trigger polarity for injected external triggersp.938Figure 148. Triggers are shared between ADC master and ADC slavep.939Table 210. ADC1, ADC2 and ADC3 - External triggers for regular channelsp.939Table 211. ADC1, ADC2 and ADC3 - External triggers for injected channelsp.94025.4.20 Injected channel managementp.941Figure 149. Injected conversion latencyp.94225.4.21 Discontinuous mode (DISCEN, DISCNUM, JDISCEN)p.94325.4.22 Queue of context for injected conversionsp.944Figure 150. Example of JSQR queue of context (sequence change)p.945Figure 151. Example of JSQR queue of context (trigger change)p.946Figure 152. Example of JSQR queue of context with overflow before conversionp.946Figure 153. Example of JSQR queue of context with overflow during conversionp.947Figure 154. Example of JSQR queue of context with empty queue (case JQM=0)p.947Figure 155. Example of JSQR queue of context with empty queue (case JQM=1)p.948Figure 156. Flushing JSQR queue of context by setting JADSTP=1 (JQM=0). Case when JADSTP occurs during an ongoing conversion.p.948Figure 157. Flushing JSQR queue of context by setting JADSTP=1 (JQM=0). Case when JADSTP occurs during an ongoing conversion and a new trigger occurs.p.949Figure 158. Flushing JSQR queue of context by setting JADSTP=1 (JQM=0). Case when JADSTP occurs outside an ongoing conversionp.949Figure 159. Flushing JSQR queue of context by setting JADSTP=1 (JQM=1)p.950Figure 160. Flushing JSQR queue of context by setting ADDIS=1 (JQM=0)p.950Figure 161. Flushing JSQR queue of context by setting ADDIS=1 (JQM=1)p.95125.4.23 Programmable resolution (RES) - fast conversion modep.952Table 212. TSAR timings depending on resolutionp.95225.4.24 End of conversion, end of sampling phase (EOC, JEOC, EOSMP)p.95225.4.25 End of conversion sequence (EOS, JEOS)p.95225.4.26 Timing diagrams example (single/continuous modes, hardware/software triggers)p.953Figure 162. Single conversions of a sequence, software triggerp.953Figure 163. Continuous conversion of a sequence, software triggerp.953Figure 164. Single conversions of a sequence, hardware triggerp.954Figure 165. Continuous conversions of a sequence, hardware triggerp.95425.4.27 Data managementp.954Table 213. Offset computation versus data resolutionp.955Figure 166. Right alignment (offset disabled, unsigned value)p.956Figure 167. Right alignment (offset enabled, signed value)p.956Figure 168. Left alignment (offset disabled, unsigned value)p.957Figure 169. Left alignment (offset enabled, signed value)p.957Table 214. 16-bit data formatsp.958Table 215. Numerical examples for 16-bit format (bold indicates saturation)p.958Figure 170. Example of overrun (OVRMOD = 0)p.960Figure 171. Example of overrun (OVRMOD = 1)p.96025.4.28 Managing conversions using the DFSDMp.96225.4.29 Dynamic low-power featuresp.962Figure 172. AUTDLY=1, regular conversion in continuous mode, software triggerp.964Figure 173. AUTDLY=1, regular HW conversions interrupted by injected conversions (DISCEN=0; JDISCEN=0)p.964Figure 174. AUTDLY=1, regular HW conversions interrupted by injected conversions (DISCEN=1, JDISCEN=1)p.965Figure 175. AUTDLY=1, regular continuous conversions interrupted by injected conversionsp.966Figure 176. AUTDLY=1 in auto- injected mode (JAUTO=1)p.96625.4.30 Analog window watchdog (AWD1EN, JAWD1EN, AWD1SGL, AWD1CH, AWD2CH, AWD3CH, AWD_HTRy, AWD_LTRy, AWDy)p.967Figure 177. Analog watchdog guarded areap.967Table 216. Analog watchdog channel selectionp.967Table 217. Analog watchdog 1,2,3 comparisonp.968Figure 178. ADCy_AWDx_OUT signal generation (on all regular channels)p.969Figure 179. ADCy_AWDx_OUT signal generation (AWDx flag not cleared by SW)p.969Figure 180. ADCy_AWDx_OUT signal generation (on a single regular channel)p.970Figure 181. ADCy_AWDx_OUT signal generation (on all injected channels)p.97025.4.31 Oversamplerp.970Figure 182. 16-bit result oversampling with 10-bits right shift and roudingp.971Figure 183. Triggered regular oversampling mode (TROVS bit = 1)p.973Figure 184. Regular oversampling modes (4x ratio)p.974Figure 185. Regular and injected oversampling modes used simultaneouslyp.974Figure 186. Triggered regular oversampling with injectionp.975Figure 187. Oversampling in auto-injected modep.975Table 218. Oversampler operating modes summaryp.97625.4.32 Dual ADC modesp.976Figure 188. Dual ADC block diagram(1)p.978Figure 189. Injected simultaneous mode on 4 channels: dual ADC modep.979Figure 190. Regular simultaneous mode on 16 channels: dual ADC modep.981Figure 191. Interleaved mode on 1 channel in continuous conversion mode: dual ADC modep.982Figure 192. Interleaved mode on 1 channel in single conversion mode: dual ADC modep.983Figure 193. Interleaved conversion with injectionp.983Figure 194. Alternate trigger: injected group of each ADCp.984Figure 195. Alternate trigger: 4 injected channels (each ADC) in discontinuous modep.985Figure 196. Alternate + regular simultaneousp.986Figure 197. Case of trigger occurring during injected conversionp.986Figure 198. Interleaved single channel CH0 with injected sequence CH11, CH12p.987Figure 199. Two Interleaved channels (CH1, CH2) with injected sequence CH11, CH12 - case 1: Master interrupted firstp.987Figure 200. Two Interleaved channels (CH1, CH2) with injected sequence CH11, CH12 - case 2: Slave interrupted firstp.987Figure 201. DMA Requests in regular simultaneous mode when DAMDF=0b00p.988Figure 202. DMA requests in regular simultaneous mode when DAMDF=0b10p.989Figure 203. DMA requests in interleaved mode when DAMDF=0b10p.98925.4.33 Temperature sensorp.991Figure 204. Temperature sensor channel block diagramp.99125.4.34 VBAT supply monitoringp.992Figure 205. VBAT channel block diagramp.99325.4.35 Monitoring the internal voltage referencep.993Figure 206. VREFINT channel block diagramp.99325.5 ADC interruptsp.995Table 219. ADC interrupts per each ADCp.99525.6 ADC registers (for each ADC)p.99625.6.1 ADC interrupt and status register (ADC_ISR)p.99625.6.2 ADC interrupt enable register (ADC_IER)p.99925.6.3 ADC control register (ADC_CR)p.100125.6.4 ADC configuration register (ADC_CFGR)p.101025.6.5 ADC configuration register 2 (ADC_CFGR2)p.101425.6.6 ADC sample time register 1 (ADC_SMPR1)p.101625.6.7 ADC sample time register 2 (ADC_SMPR2)p.101725.6.8 ADC channel preselection register (ADC_PCSEL)p.101825.6.9 ADC watchdog threshold register 1 (ADC_LTR1)p.101825.6.10 ADC watchdog threshold register 1 (ADC_HTR1)p.101925.6.11 ADC regular sequence register 1 (ADC_SQR1)p.102025.6.12 ADC regular sequence register 2 (ADC_SQR2)p.102125.6.13 ADC regular sequence register 3 (ADC_SQR3)p.102225.6.14 ADC regular sequence register 4 (ADC_SQR4)p.102325.6.15 ADC regular Data Register (ADC_DR)p.102425.6.16 ADC injected sequence register (ADC_JSQR)p.102525.6.17 ADC injected channel y offset register (ADC_OFRy)p.102725.6.18 ADC injected channel y data register (ADC_JDRy)p.102825.6.19 ADC analog watchdog 2 configuration register (ADC_AWD2CR)p.102825.6.20 ADC analog watchdog 3 configuration register (ADC_AWD3CR)p.102925.6.21 ADC watchdog lower threshold register 2 (ADC_LTR2)p.102925.6.22 ADC watchdog higher threshold register 2 (ADC_HTR2)p.103025.6.23 ADC watchdog lower threshold register 3 (ADC_LTR3)p.103025.6.24 ADC watchdog higher threshold register 3 (ADC_HTR3)p.103125.6.25 ADC differential mode selection register (ADC_DIFSEL)p.103125.6.26 ADC calibration factors register (ADC_CALFACT)p.103225.6.27 ADC calibration factor register 2 (ADC_CALFACT2)p.103225.7 ADC common registersp.103325.7.1 ADC x common status register (ADCx_CSR) (x=1/2 or 3)p.103325.7.2 ADC x common control register (ADCx_CCR) (x=1/2 or 3)p.1035Table 220. DELAY bits versus ADC resolutionp.103725.7.3 ADC x common regular data register for dual mode (ADCx_CDR) (x=1/2 or 3)p.103925.7.4 ADC x common regular data register for 32-bit dual mode (ADCx_CDR2) (x=1/2 or 3)p.103925.8 ADC register mapp.1040Table 221. ADC global register mapp.1040Table 222. ADC register map and reset values for each ADC (offset=0x000 for master ADC, 0x100 for slave ADC)p.1040Table 223. ADC register map and reset values (master and slave ADC common registers) offset =0x300)p.1043
26 Digital-to-analog converter (DAC)p.104459
26.1 Introductionp.104426.2 DAC main featuresp.104426.3 DAC implementationp.1045Table 224. DAC featuresp.104526.4 DAC functional descriptionp.104626.4.1 DAC block diagramp.1046Figure 207. Dual-channel DAC block diagramp.104626.4.2 DAC pins and internal signalsp.1047Table 225. DAC input/output pinsp.1047Table 226. DAC internal input/output signalsp.1047Table 227. DAC interconnectionp.104826.4.3 DAC channel enablep.104826.4.4 DAC data formatp.1048Figure 208. Data registers in single DAC channel modep.1049Figure 209. Data registers in dual DAC channel modep.104926.4.5 DAC conversionp.1050Figure 210. Timing diagram for conversion with trigger disabled TEN = 0p.105026.4.6 DAC output voltagep.105026.4.7 DAC trigger selectionp.105026.4.8 DMA requestsp.105126.4.9 Noise generationp.1051Figure 211. DAC LFSR register calculation algorithmp.1052Figure 212. DAC conversion (SW trigger enabled) with LFSR wave generationp.105226.4.10 Triangle-wave generationp.1053Figure 213. DAC triangle wave generationp.1053Figure 214. DAC conversion (SW trigger enabled) with triangle wave generationp.105326.4.11 DAC channel modesp.1054Table 228. Sample and refresh timingsp.1055Figure 215. DAC Sample and hold mode phase diagramp.1056Table 229. Channel output modes summaryp.105626.4.12 DAC channel buffer calibrationp.105726.4.13 Dual DAC channel conversion modes (if dual channels are available)p.105826.5 DAC in low-power modesp.1062Table 230. Effect of low-power modes on DACp.106226.6 DAC interruptsp.1063Table 231. DAC interruptsp.106326.7 DAC registersp.106426.7.1 DAC control register (DAC_CR)p.106426.7.2 DAC software trigger register (DAC_SWTRGR)p.106726.7.3 DAC channel1 12-bit right-aligned data holding register (DAC_DHR12R1)p.106826.7.4 DAC channel1 12-bit left aligned data holding register (DAC_DHR12L1)p.106826.7.5 DAC channel1 8-bit right aligned data holding register (DAC_DHR8R1)p.106926.7.6 DAC channel2 12-bit right aligned data holding register (DAC_DHR12R2)p.106926.7.7 DAC channel2 12-bit left aligned data holding register (DAC_DHR12L2)p.107026.7.8 DAC channel2 8-bit right-aligned data holding register (DAC_DHR8R2)p.107026.7.9 Dual DAC 12-bit right-aligned data holding register (DAC_DHR12RD)p.107126.7.10 Dual DAC 12-bit left aligned data holding register (DAC_DHR12LD)p.107126.7.11 Dual DAC 8-bit right aligned data holding register (DAC_DHR8RD)p.107226.7.12 DAC channel1 data output register (DAC_DOR1)p.107226.7.13 DAC channel2 data output register (DAC_DOR2)p.107326.7.14 DAC status register (DAC_SR)p.107326.7.15 DAC calibration control register (DAC_CCR)p.107526.7.16 DAC mode control register (DAC_MCR)p.107526.7.17 DAC channel1 sample and hold sample time register (DAC_SHSR1)p.107726.7.18 DAC channel2 sample and hold sample time register (DAC_SHSR2)p.107726.7.19 DAC sample and hold time register (DAC_SHHR)p.107826.7.20 DAC sample and hold refresh time register (DAC_SHRR)p.107826.7.21 DAC register mapp.1079Table 232. DAC register map and reset valuesp.1079
27 Voltage reference buffer (VREFBUF)p.10818
27.1 Introductionp.108127.2 VREFBUF functional descriptionp.1081Table 233. VREF buffer modesp.108127.3 VREFBUF registersp.108227.3.1 VREFBUF control and status register (VREFBUF_CSR)p.108227.3.2 VREFBUF calibration control register (VREFBUF_CCR)p.108327.3.3 VREFBUF register mapp.1083Table 234. VREFBUF register map and reset valuesp.1083
28 Comparator (COMP)p.108438
28.1 Introductionp.108428.2 COMP main featuresp.108428.3 COMP functional descriptionp.108528.3.1 COMP block diagramp.1085Figure 216. Comparator functional block diagramp.108528.3.2 COMP pins and internal signalsp.1085Table 235. COMP input/output internal signalsp.1086Table 236. COMP input/output pinsp.108628.3.3 COMP reset and clocksp.108728.3.4 Comparator LOCK mechanismp.108728.3.5 Window comparatorp.108728.3.6 Hysteresisp.1087Figure 217. Comparator hysteresisp.108828.3.7 Comparator output blanking functionp.1088Figure 218. Comparator output blankingp.108828.3.8 Comparator output on GPIOsp.1089Table 237. COMP1_OUT assignment to GPIOsp.1089Table 238. COMP2_OUT assignment to GPIOsp.108928.3.9 Comparator output redirectionp.1090Figure 219. Output redirectionp.109028.3.10 COMP power and speed modesp.109028.4 COMP low-power modesp.1091Table 239. Comparator behavior in the low-power modesp.109128.5 COMP interruptsp.109128.5.1 Interrupt through EXTI blockp.1091Table 240. Interrupt control bitsp.109128.5.2 Interrupt through NVIC of the CPUp.1092Table 241. Interrupt control bitsp.109228.6 SCALER functionp.1092Figure 220. Scaler block diagramp.109228.7 COMP registersp.109328.7.1 Comparator status register (COMP_SR)p.109328.7.2 Comparator interrupt clear flag register (COMP_ICFR)p.109328.7.3 Comparator option register (COMP_OR)p.109428.7.4 Comparator configuration register 1 (COMP_CFGR1)p.109428.7.5 Comparator configuration register 2 (COMP_CFGR2)p.109628.7.6 COMP register mapp.1099Table 242. COMP register map and reset valuesp.1099
29 Operational amplifiers (OPAMP)p.110031
29.1 Introductionp.110029.2 OPAMP main featuresp.110029.3 OPAMP functional descriptionp.110029.3.1 OPAMP reset and clocksp.110029.3.2 Initial configurationp.110129.3.3 Signal routingp.1101Table 243. Operational amplifier possible connectionsp.110129.3.4 OPAMP modesp.1102Figure 221. Standalone mode: external gain setting modep.1102Figure 222. Follower configurationp.1103Figure 223. PGA mode, internal gain setting (x2/x4/x8/x16), inverting input not usedp.1104Figure 224. PGA mode, internal gain setting (x2/x4/x8/x16), inverting input used for filteringp.1105Figure 225. PGA mode, non-inverting gain setting (x2/x4/x8/x16) or inverting gain setting (x-1/x-3/x-7/x-15)p.1106Figure 226. Example configurationp.1106Figure 227. PGA mode, non-inverting gain setting (x2/x4/x8/x16) or inverting gain setting (x-1/x-3/x-7/x-15) with filteringp.1107Figure 228. Example configurationp.110729.3.5 Calibrationp.1108Table 244. Operating modes and calibrationp.110829.4 OPAMP low-power modesp.1110Table 245. Effect of low-power modes on the OPAMPp.111029.5 OPAMP PGA gainp.111029.6 OPAMP registersp.111029.6.1 OPAMP1 control/status register (OPAMP1_CSR)p.111029.6.2 OPAMP1 trimming register in normal mode (OPAMP1_OTR)p.111229.6.3 OPAMP1 trimming register in high-speed mode (OPAMP1_HSOTR)p.111329.6.4 OPAMP option register (OPAMP_OR)p.111329.6.5 OPAMP2 control/status register (OPAMP2_CSR)p.111329.6.6 OPAMP2 trimming register in normal mode (OPAMP2_OTR)p.111529.6.7 OPAMP2 trimming register in high-speed mode (OPAMP2_HSOTR)p.111629.6.8 OPAMP register mapp.1117Table 246. OPAMP register map and reset valuesp.1117
30 Digital filter for sigma delta modulators (DFSDM)p.111864
30.1 Introductionp.111830.2 DFSDM main featuresp.111930.3 DFSDM implementationp.1120Table 247. DFSDM1 implementationp.112030.4 DFSDM functional descriptionp.112130.4.1 DFSDM block diagramp.1121Figure 229. Single DFSDM block diagramp.112130.4.2 DFSDM pins and internal signalsp.1122Table 248. DFSDM external pinsp.1122Table 249. DFSDM internal signalsp.1122Table 250. DFSDM triggers connectionp.1122Table 251. DFSDM break connectionp.112330.4.3 DFSDM reset and clocksp.112330.4.4 Serial channel transceiversp.1124Figure 230. Input channel pins redirectionp.1125Figure 231. Channel transceiver timing diagramsp.1128Figure 232. Clock absence timing diagram for SPIp.1129Figure 233. Clock absence timing diagram for Manchester codingp.1130Figure 234. First conversion for Manchester coding (Manchester synchronization)p.113230.4.5 Configuring the input serial interfacep.113430.4.6 Parallel data inputsp.1134Figure 235. DFSDM_CHyDATINR registers operation modes and assignmentp.113630.4.7 Channel selectionp.113630.4.8 Digital filter configurationp.1137Figure 236. Example: Sinc3 filter responsep.1138Table 252. Filter maximum output resolution (peak data values from filter output) for some FOSR valuesp.113830.4.9 Integrator unitp.1138Table 253. Integrator maximum output resolution (peak data values from integrator output) for some IOSR values and FOSR = 256 and Sinc3 filter type (largest data)p.113930.4.10 Analog watchdogp.113930.4.11 Short-circuit detectorp.114130.4.12 Extreme detectorp.114230.4.13 Data unit blockp.114230.4.14 Signed data formatp.114330.4.15 Launching conversionsp.114430.4.16 Continuous and fast continuous modesp.114430.4.17 Request precedencep.114530.4.18 Power optimization in run modep.114630.5 DFSDM interruptsp.1146Table 254. DFSDM interrupt requestsp.114730.6 DFSDM DMA transferp.114830.7 DFSDM channel y registers (y=0..7)p.114830.7.1 DFSDM channel y configuration register (DFSDM_CHyCFGR1)p.114830.7.2 DFSDM channel y configuration register (DFSDM_CHyCFGR2)p.115030.7.3 DFSDM channel y analog watchdog and short-circuit detector register (DFSDM_CHyAWSCDR)p.115130.7.4 DFSDM channel y watchdog filter data register (DFSDM_CHyWDATR)p.115230.7.5 DFSDM channel y data input register (DFSDM_CHyDATINR)p.115230.8 DFSDM filter x module registers (x=0..3)p.115330.8.1 DFSDM filter x control register 1 (DFSDM_FLTxCR1)p.115330.8.2 DFSDM filter x control register 2 (DFSDM_FLTxCR2)p.115630.8.3 DFSDM filter x interrupt and status register (DFSDM_FLTxISR)p.115730.8.4 DFSDM filter x interrupt flag clear register (DFSDM_FLTxICR)p.115930.8.5 DFSDM filter x injected channel group selection register (DFSDM_FLTxJCHGR)p.116030.8.6 DFSDM filter x control register (DFSDM_FLTxFCR)p.116030.8.7 DFSDM filter x data register for injected group (DFSDM_FLTxJDATAR)p.116130.8.8 DFSDM filter x data register for the regular channel (DFSDM_FLTxRDATAR)p.116230.8.9 DFSDM filter x analog watchdog high threshold register (DFSDM_FLTxAWHTR)p.116330.8.10 DFSDM filter x analog watchdog low threshold register (DFSDM_FLTxAWLTR)p.116330.8.11 DFSDM filter x analog watchdog status register (DFSDM_FLTxAWSR)p.116430.8.12 DFSDM filter x analog watchdog clear flag register (DFSDM_FLTxAWCFR)p.116530.8.13 DFSDM filter x extremes detector maximum register (DFSDM_FLTxEXMAX)p.116530.8.14 DFSDM filter x extremes detector minimum register (DFSDM_FLTxEXMIN)p.116630.8.15 DFSDM filter x conversion timer register (DFSDM_FLTxCNVTIMR)p.116630.8.16 DFSDM register mapp.1167Table 255. DFSDM register map and reset valuesp.1167
31 Digital camera interface (DCMI)p.117748
31.1 Introductionp.117731.2 DCMI main featuresp.117731.3 DCMI functional descriptionp.117731.3.1 DCMI block diagramp.1178Figure 237. DCMI block diagramp.117831.3.2 DCMI pins and internal signalsp.1178Table 256. DCMI input/output pinsp.1178Table 257. DCMI internal input/output signalsp.117831.3.3 DCMI clocksp.117931.3.4 DCMI DMA interfacep.117931.3.5 DCMI physical interfacep.1179Figure 238. DCMI signal waveformsp.1179Table 258. Positioning of captured data bytes in 32-bit words (8-bit width)p.1180Table 259. Positioning of captured data bytes in 32-bit words (10-bit width)p.1180Table 260. Positioning of captured data bytes in 32-bit words (12-bit width)p.1180Table 261. Positioning of captured data bytes in 32-bit words (14-bit width)p.118131.3.6 DCMI synchronizationp.1181Figure 239. Timing diagramp.118131.3.7 DCMI capture modesp.1183Figure 240. Frame capture waveforms in snapshot modep.1183Figure 241. Frame capture waveforms in continuous grab modep.118431.3.8 DCMI crop featurep.1184Figure 242. Coordinates and size of the window after croppingp.1184Figure 243. Data capture waveformsp.118531.3.9 DCMI JPEG formatp.118531.3.10 DCMI FIFOp.118531.3.11 DCMI data format descriptionp.1186Figure 244. Pixel raster scan orderp.1186Table 262. Data storage in monochrome progressive video formatp.1186Table 263. Data storage in RGB progressive video formatp.1187Table 264. Data storage in YCbCr progressive video formatp.1187Table 265. Data storage in YCbCr progressive video format - Y extraction modep.118831.4 DCMI interruptsp.1188Table 266. DCMI interruptsp.118831.5 DCMI registersp.118931.5.1 DCMI control register (DCMI_CR)p.118931.5.2 DCMI status register (DCMI_SR)p.119131.5.3 DCMI raw interrupt status register (DCMI_RIS)p.119231.5.4 DCMI interrupt enable register (DCMI_IER)p.119331.5.5 DCMI masked interrupt status register (DCMI_MIS)p.119431.5.6 DCMI interrupt clear register (DCMI_ICR)p.119531.5.7 DCMI embedded synchronization code register (DCMI_ESCR)p.119531.5.8 DCMI embedded synchronization unmask register (DCMI_ESUR)p.119631.5.9 DCMI crop window start (DCMI_CWSTRT)p.119731.5.10 DCMI crop window size (DCMI_CWSIZE)p.119731.5.11 DCMI data register (DCMI_DR)p.119831.5.12 DCMI register mapp.1198Table 267. DCMI register map and reset valuesp.1198
32 LCD-TFT display controller (LTDC)p.120050
32.1 Introductionp.120032.2 LTDC main featuresp.120032.3 LTDC functional descriptionp.120132.3.1 LTDC block diagramp.1201Figure 245. LTDC block diagramp.120132.3.2 LTDC pins and internal signalsp.1201Table 268. LTDC external pinsp.1201Table 269. LTDC internal signalsp.120232.3.3 LTDC reset and clocksp.1202Table 270. Clock domain for each registerp.1202Table 271. LTDC register access and update durationsp.120332.4 LTDC programmable parametersp.120432.4.1 LTDC global configuration parametersp.1204Figure 246. LTDC synchronous timingsp.120432.4.2 Layer programmable parametersp.1206Figure 247. Layer window programmable parametersp.1207Table 272. Pixel data mapping versus color formatp.1207Figure 248. Blending two layers with backgroundp.120932.5 LTDC interruptsp.1210Figure 249. Interrupt eventsp.1211Table 273. LTDC interrupt requestsp.121132.6 LTDC programming procedurep.121132.7 LTDC registersp.121232.7.1 LTDC synchronization size configuration register (LTDC_SSCR)p.121232.7.2 LTDC back porch configuration register (LTDC_BPCR)p.121232.7.3 LTDC active width configuration register (LTDC_AWCR)p.121332.7.4 LTDC total width configuration register (LTDC_TWCR)p.121432.7.5 LTDC global control register (LTDC_GCR)p.121432.7.6 LTDC shadow reload configuration register (LTDC_SRCR)p.121632.7.7 LTDC background color configuration register (LTDC_BCCR)p.121632.7.8 LTDC interrupt enable register (LTDC_IER)p.121732.7.9 LTDC interrupt status register (LTDC_ISR)p.121832.7.10 LTDC interrupt clear register (LTDC_ICR)p.121832.7.11 LTDC line interrupt position configuration register (LTDC_LIPCR)p.121932.7.12 LTDC current position status register (LTDC_CPSR)p.121932.7.13 LTDC current display status register (LTDC_CDSR)p.122032.7.14 LTDC layer x control register (LTDC_LxCR)p.122032.7.15 LTDC layer x window horizontal position configuration register (LTDC_LxWHPCR)p.122132.7.16 LTDC layer x window vertical position configuration register (LTDC_LxWVPCR)p.122232.7.17 LTDC layer x color keying configuration register (LTDC_LxCKCR)p.122332.7.18 LTDC layer x pixel format configuration register (LTDC_LxPFCR)p.122332.7.19 LTDC layer x constant alpha configuration register (LTDC_LxCACR)p.122432.7.20 LTDC layer x default color configuration register (LTDC_LxDCCR)p.122432.7.21 LTDC layer x blending factors configuration register (LTDC_LxBFCR)p.122532.7.22 LTDC layer x color frame buffer address register (LTDC_LxCFBAR)p.122632.7.23 LTDC layer x color frame buffer length register (LTDC_LxCFBLR)p.122632.7.24 LTDC layer x color frame buffer line number register (LTDC_LxCFBLNR)p.122732.7.25 LTDC layer x CLUT write register (LTDC_LxCLUTWR)p.122732.7.26 LTDC register mapp.1228Table 274. LTDC register map and reset valuesp.1228
33 JPEG codec (JPEG)p.123132
33.1 Introductionp.123133.2 JPEG codec main featuresp.123133.3 JPEG codec block functional descriptionp.123233.3.1 General descriptionp.1232Figure 250. JPEG codec block diagramp.123233.3.2 JPEG internal signalsp.1232Table 275. JPEG internal signalsp.123233.3.3 JPEG decoding procedurep.123333.3.4 JPEG encoding procedurep.123433.4 JPEG codec interruptsp.1236Table 276. JPEG codec interrupt requestsp.123633.5 JPEG codec registersp.123733.5.1 JPEG codec control register (JPEG_CONFR0)p.123733.5.2 JPEG codec configuration register 1 (JPEG_CONFR1)p.123733.5.3 JPEG codec configuration register 2 (JPEG_CONFR2)p.123833.5.4 JPEG codec configuration register 3 (JPEG_CONFR3)p.123933.5.5 JPEG codec configuration register x (JPEG_CONFRx)p.123933.5.6 JPEG control register (JPEG_CR)p.124033.5.7 JPEG status register (JPEG_SR)p.124133.5.8 JPEG clear flag register (JPEG_CFR)p.124233.5.9 JPEG data input register (JPEG_DIR)p.124333.5.10 JPEG data output register (JPEG_DOR)p.124333.5.11 JPEG quantization memory x (JPEG_QMEMx_y)p.124433.5.12 JPEG Huffman min (JPEG_HUFFMINx_y)p.124433.5.13 JPEG Huffman min x [alternate] (JPEG_HUFFMINx_y)p.124533.5.14 JPEG Huffman base (JPEG_HUFFBASEx)p.124533.5.15 JPEG Huffman symbol (JPEG_HUFFSYMBx)p.124633.5.16 JPEG DHT memory (JPEG_DHTMEMx)p.124733.5.17 JPEG Huffman encoder ACx (JPEG_HUFFENC_ACx_y)p.124733.5.18 JPEG Huffman encoder DCx (JPEG_HUFFENC_DCx_y)p.124833.5.19 JPEG codec register mapp.1249Table 277. JPEG codec register map and reset valuesp.1249
34 True random number generator (RNG)p.125128
34.1 Introductionp.125134.2 RNG main featuresp.125134.3 RNG functional descriptionp.125234.3.1 RNG block diagramp.1252Figure 251. RNG block diagramp.125234.3.2 RNG internal signalsp.1252Table 278. RNG internal input/output signalsp.125234.3.3 Random number generationp.1252Figure 252. Entropy source modelp.125334.3.4 RNG initializationp.1255Figure 253. RNG initialization overviewp.125534.3.5 RNG operationp.125634.3.6 RNG clockingp.125734.3.7 Error managementp.125734.3.8 In this case application must clear the SEIS bit interrupt flag. RNG low-power usep.125834.4 RNG interruptsp.1258Table 279. RNG interrupt requestsp.125834.5 RNG processing timep.125834.6 RNG entropy source validationp.125934.6.1 Introductionp.125934.6.2 Validation conditionsp.125934.6.3 Data collectionp.125934.7 RNG registersp.125934.7.1 RNG control register (RNG_CR)p.125934.7.2 RNG status register (RNG_SR)p.126034.7.3 RNG data register (RNG_DR)p.126134.7.4 RNG register mapp.1262Table 280. RNG register map and reset mapp.1262
35 Cryptographic processor (CRYP)p.126391
35.1 Introductionp.126335.2 CRYP main featuresp.126335.3 CRYP implementationp.126435.4 CRYP functional descriptionp.126535.4.1 CRYP block diagramp.1265Figure 254. CRYP block diagramp.126535.4.2 CRYP internal signalsp.1266Table 281. CRYP internal input/output signalsp.126635.4.3 CRYP DES/TDES cryptographic corep.126635.4.4 CRYP AES cryptographic corep.1267Figure 255. AES-ECB mode overviewp.1268Figure 256. AES-CBC mode overviewp.1269Figure 257. AES-CTR mode overviewp.1270Figure 258. AES-GCM mode overviewp.1271Figure 259. AES-GMAC mode overviewp.1271Figure 260. AES-CCM mode overviewp.127235.4.5 CRYP procedure to perform a cipher operationp.127335.4.6 CRYP busy statep.127535.4.7 Preparing the CRYP AES key for decryptionp.127635.4.8 CRYP stealing and data paddingp.127635.4.9 CRYP suspend/resume operationsp.1278Figure 261. Example of suspend mode managementp.127835.4.10 CRYP DES/TDES basic chaining modes (ECB, CBC)p.1279Figure 262. DES/TDES-ECB mode encryptionp.1279Figure 263. DES/TDES-ECB mode decryptionp.1280Figure 264. DES/TDES-CBC mode encryptionp.1281Figure 265. DES/TDES-CBC mode decryptionp.128235.4.11 CRYP AES basic chaining modes (ECB, CBC)p.1284Figure 266. AES-ECB mode encryptionp.1284Figure 267. AES-ECB mode decryptionp.1285Figure 268. AES-CBC mode encryptionp.1286Figure 269. AES-CBC mode decryptionp.128735.4.12 CRYP AES counter mode (AES-CTR)p.1289Figure 270. Message construction for the Counter modep.1289Figure 271. AES-CTR mode encryptionp.1290Figure 272. AES-CTR mode decryptionp.1291Table 282. Counter mode initialization vectorp.129135.4.13 CRYP AES Galois/counter mode (GCM)p.1293Figure 273. Message construction for the Galois/counter modep.1293Table 283. GCM last block definitionp.1294Table 284. GCM mode IV registers initializationp.129435.4.14 CRYP AES Galois message authentication code (GMAC)p.1298Figure 274. Message construction for the Galois Message Authentication Code modep.129835.4.15 CRYP AES Counter with CBC-MAC (CCM)p.1299Figure 275. Message construction for the Counter with CBC-MAC modep.1299Table 285. CCM mode IV registers initializationp.130135.4.16 CRYP data registers and data swappingp.1304Table 286. DES/TDES data swapping examplep.1305Figure 276. 64-bit block construction according to the data type (IN FIFO)p.1306Table 287. AES data swapping examplep.1306Figure 277. 128-bit block construction according to the data typep.130735.4.17 CRYP key registersp.1308Table 288. Key endianness in CRYP_KxR/LR registers (AES 128/192/256-bit keys)p.1308Table 289. Key endianness in CRYP_KxR/LR registers (DES K1 and TDES K1/2/3)p.130835.4.18 CRYP initialization vector registersp.1308Table 290. Initialization vector endianness in CRYP_IVx(L/R)R registers (AES)p.1309Table 291. Initialization vector endianness in CRYP_IVx(L/R)R registers (DES/TDES)p.130935.4.19 CRYP DMA interfacep.1309Table 292. Cryptographic processor configuration for memory-to-peripheral DMA transfersp.1309Table 293. Cryptographic processor configuration for peripheral-to-memory DMA transfersp.131035.4.20 CRYP error managementp.131135.5 CRYP interruptsp.1312Table 294. CRYP interrupt requestsp.131235.6 CRYP processing timep.1313Table 295. Processing latency for ECB, CBC and CTRp.1313Table 296. Processing time (in clock cycle) for GCM and CCM per 128-bit blockp.131335.7 CRYP registersp.131435.7.1 CRYP control register (CRYP_CR)p.131435.7.2 CRYP status register (CRYP_SR)p.131635.7.3 CRYP data input register (CRYP_DIN)p.131735.7.4 CRYP data output register (CRYP_DOUT)p.131735.7.5 CRYP DMA control register (CRYP_DMACR)p.131835.7.6 CRYP interrupt mask set/clear register (CRYP_IMSCR)p.131935.7.7 CRYP raw interrupt status register (CRYP_RISR)p.131935.7.8 CRYP masked interrupt status register (CRYP_MISR)p.132035.7.9 CRYP key register 0L (CRYP_K0LR)p.132135.7.10 CRYP key register 0R (CRYP_K0RR)p.132135.7.11 CRYP key register 1L (CRYP_K1LR)p.132235.7.12 CRYP key register 1R (CRYP_K1RR)p.132235.7.13 CRYP key register 2L (CRYP_K2LR)p.132335.7.14 CRYP key register 2R (CRYP_K2RR)p.132335.7.15 CRYP key register 3L (CRYP_K3LR)p.132435.7.16 CRYP key register 3R (CRYP_K3RR)p.132435.7.17 CRYP initialization vector register 0L (CRYP_IV0LR)p.132535.7.18 CRYP initialization vector register 0R (CRYP_IV0RR)p.132535.7.19 CRYP initialization vector register 1L (CRYP_IV1LR)p.132635.7.20 CRYP initialization vector register 1R (CRYP_IV1RR)p.132635.7.21 CRYP context swap GCM-CCM registers (CRYP_CSGCMCCMxR)p.132635.7.22 CRYP context swap GCM registers (CRYP_CSGCMxR)p.132735.7.23 CRYP register mapp.1327Table 297. CRYP register map and reset valuesp.1327
36 Hash processor (HASH)p.133033
36.1 Introductionp.133036.2 HASH main featuresp.133036.3 HASH implementationp.133136.4 HASH functional descriptionp.133136.4.1 HASH block diagramp.1331Figure 278. HASH block diagramp.133136.4.2 HASH internal signalsp.1332Table 298. HASH internal input/output signalsp.133236.4.3 About secure hash algorithmsp.133236.4.4 Message data feedingp.1332Figure 279. Message data swapping featurep.133336.4.5 Message digest computingp.1334Table 299. Hash processor outputsp.133536.4.6 Message paddingp.133536.4.7 HMAC operationp.133736.4.8 HASH suspend/resume operationsp.1339Figure 280. HASH suspend/resume mechanismp.133936.4.9 HASH DMA interfacep.134136.4.10 HASH error managementp.134136.5 HASH interruptsp.1341Table 300. HASH interrupt requestsp.134236.6 HASH processing timep.1342Table 301. Processing time (in clock cycle)p.134236.7 HASH registersp.134336.7.1 HASH control register (HASH_CR)p.134336.7.2 HASH data input register (HASH_DIN)p.134536.7.3 HASH start register (HASH_STR)p.134636.7.4 HASH digest registersp.134736.7.5 HASH interrupt enable register (HASH_IMR)p.134836.7.6 HASH status register (HASH_SR)p.134936.7.7 HASH context swap registersp.134936.7.8 HASH register mapp.1350Table 302. HASH register map and reset valuesp.1350
37 High-Resolution Timer (HRTIM)p.1352186
37.1 Introductionp.135237.2 Main featuresp.135337.3 Functional descriptionp.135437.3.1 General descriptionp.1354Figure 281. High-resolution timer block diagramp.135537.3.2 HRTIM pins and internal signalsp.1356Table 303. HRTIM Input/output summaryp.135637.3.3 Clocksp.1357Table 304. Timer resolution and min. PWM frequency for fHRTIM = 400 MHzp.135837.3.4 Timer A..E timing unitsp.1360Figure 282. Timer A..E overviewp.1360Table 305. Period and Compare registers min and max valuesp.1360Table 306. Timer operating modesp.1361Figure 283. Continuous timer operationp.1361Figure 284. Single-shot timer operationp.1362Figure 285. Timer reset resynchronization (prescaling ratio above 32)p.1363Figure 286. Repetition rate vs HRTIM_REPxR content in continuous modep.1364Figure 287. Repetition counter behavior in single-shot modep.1365Table 307. Events mapping across Timer A to Ep.1366Figure 288. Compare events action on outputs: set on compare 1, reset on compare 2p.1366Figure 289. Timing unit capture circuitryp.1368Figure 290. Auto-delayed overview (Compare 2 only)p.1369Figure 291. Auto-delayed comparep.1370Figure 292. Push-pull mode block diagramp.1372Figure 293. Push-pull mode examplep.1373Figure 294. Complementary outputs with deadtime insertionp.1373Figure 295. Deadtime insertion vs deadtime sign (1 indicates negative deadtime)p.1374Table 308. Deadtime resolution and max absolute valuesp.1374Figure 296. Complementary outputs for low pulse width (SDTRx = SDTFx = 0)p.1375Figure 297. Complementary outputs for low pulse width (SDTRx = SDTFx = 1)p.1375Figure 298. Complementary outputs for low pulse width (SDTRx = 0, SDTFx = 1)p.1375Figure 299. Complementary outputs for low pulse width (SDTRx = 1, SDTFx=0)p.137637.3.5 Master timerp.1377Figure 300. Master timer overviewp.137737.3.6 Set/reset events priorities and narrow pulses managementp.137837.3.7 External events global conditioningp.1379Figure 301. External event conditioning overview (1 channel represented)p.1380Table 309. External events mapping and associated featuresp.1381Table 310. Output set/reset latency and jitter vs external event operating modep.1382Figure 302. Latency to external events falling edge (counter reset and output set)p.1383Figure 303. Latency to external events (output reset on external event)p.138337.3.8 External event filtering in timing unitsp.1384Figure 304. Event blanking modep.1384Figure 305. Event postpone modep.1384Table 311. Filtering signals mapping per timep.1385Figure 306. External trigger blanking with edge-sensitive triggerp.1386Figure 307. External trigger blanking, level sensitive triggeringp.1386Figure 308. Event windowing modep.1387Table 312. Windowing signals mapping per timer (EEFLTR[3:0] = 1111)p.1387Figure 309. External trigger windowing with edge-sensitive triggerp.1388Figure 310. External trigger windowing, level sensitive triggeringp.138837.3.9 Delayed Protectionp.1389Figure 311. Delayed Idle mode entryp.1390Figure 312. Burst mode and delayed protection priorities (DIDL = 0)p.1391Figure 313. Burst mode and delayed protection priorities (DIDL = 1)p.1392Figure 314. Balanced Idle protection examplep.139337.3.10 Register preload and update managementp.1395Table 313. HRTIM preloadable control registers and associated update sourcesp.1396Table 314. Update enable inputs and sourcesp.139737.3.11 Events propagation within or across multiple timersp.1398Table 315. Master timer update event propagationp.1399Table 316. TIMx update event propagationp.1399Table 317. Reset events able to generate an updatep.1400Table 318. Update event propagation for a timer resetp.140137.3.12 Output managementp.1402Table 319. Output state programming, x= A..E, y = 1 or 2p.1402Figure 315. Output management overviewp.1403Figure 316. HRTIM output states and transitionsp.140337.3.13 Burst mode controllerp.1404Figure 317. Burst mode operation examplep.1405Table 320. Timer output programming for burst modep.1405Table 321. Burst mode clock sources from general purpose timerp.1407Figure 318. Burst mode trigger on external eventp.1407Figure 319. Delayed burst mode entry with deadtime enabled and IDLESx = 1p.1409Figure 320. Delayed Burst mode entry during deadtimep.1410Figure 321. Burst mode exit when the deadtime generator is enabledp.1411Figure 322. Burst mode emulation examplep.141337.3.14 Chopperp.1413Figure 323. Carrier frequency signal insertionp.1413Figure 324. HRTIM outputs with Chopper mode enabledp.141437.3.15 Fault protectionp.1414Figure 325. Fault protection circuitry (FAULT1 fully represented, FAULT2..5 partially)p.1415Table 322. Fault inputsp.1415Figure 326. Fault signal filtering (FLTxF[3:0]= 0010: fSAMPLING = fHRTIM, N = 4)p.1416Table 323. Sampling rate and filter length vs FLTFxF[3:0] and clock settingp.141637.3.16 Auxiliary outputsp.1417Figure 327. Auxiliary outputsp.1418Figure 328. Auxiliary and main outputs during burst mode (DIDLx = 0)p.1419Figure 329. Deadtime distortion on auxiliary output when exiting burst modep.141937.3.17 Synchronizing the HRTIM with other timers or HRTIM instancesp.1420Table 324. Effect of sync event vs timer operating modesp.1421Figure 330. Counter behavior in synchronized start modep.142337.3.18 ADC triggersp.1423Figure 331. ADC trigger selection overviewp.142437.3.19 DAC triggersp.1424Figure 332. Combining several updates on a single hrtim_dac_trgx outputp.142537.3.20 HRTIM Interruptsp.1426Table 325. HRTIM interrupt summaryp.142737.3.21 DMAp.1428Table 326. HRTIM DMA request summaryp.1428Figure 333. DMA burst overviewp.1429Figure 334. Burst DMA operation flowchartp.1430Figure 335. Registers update following DMA burst transferp.143137.3.22 HRTIM initializationp.143137.3.23 Debugp.143237.4 Application use casesp.143337.4.1 Buck converterp.1433Figure 336. Buck converter topologyp.1433Figure 337. Dual Buck converter managementp.143437.4.2 Buck converter with synchronous rectificationp.1434Figure 338. Synchronous rectification depending on output currentp.1434Figure 339. Buck with synchronous rectificationp.143537.4.3 Multiphase convertersp.1435Figure 340. 3-phase interleaved buck converterp.1436Figure 341. 3-phase interleaved buck converter controlp.143737.4.4 Transition mode Power Factor Correctionp.1437Figure 342. Transition mode PFCp.1437Figure 343. Transition mode PFC waveformsp.143837.5 HRTIM registersp.143937.5.1 HRTIM Master Timer Control Register (HRTIM_MCR)p.143937.5.2 HRTIM Master Timer Interrupt Status Register (HRTIM_MISR)p.144237.5.3 HRTIM Master Timer Interrupt Clear Register (HRTIM_MICR)p.144337.5.4 HRTIM Master Timer DMA / Interrupt Enable Register (HRTIM_MDIER)p.144437.5.5 HRTIM Master Timer Counter Register (HRTIM_MCNTR)p.144637.5.6 HRTIM Master Timer Period Register (HRTIM_MPER)p.144637.5.7 HRTIM Master Timer Repetition Register (HRTIM_MREP)p.144737.5.8 HRTIM Master Timer Compare 1 Register (HRTIM_MCMP1R)p.144737.5.9 HRTIM Master Timer Compare 2 Register (HRTIM_MCMP2R)p.144837.5.10 HRTIM Master Timer Compare 3 Register (HRTIM_MCMP3R)p.144837.5.11 HRTIM Master Timer Compare 4 Register (HRTIM_MCMP4R)p.144937.5.12 HRTIM Timerx Control Register (HRTIM_TIMxCR)p.145037.5.13 HRTIM Timerx Interrupt Status Register (HRTIM_TIMxISR)p.145437.5.14 HRTIM Timerx Interrupt Clear Register (HRTIM_TIMxICR)p.145637.5.15 HRTIM Timerx DMA / Interrupt Enable Register (HRTIM_TIMxDIER)p.145737.5.16 HRTIM Timerx Counter Register (HRTIM_CNTxR)p.146037.5.17 HRTIM Timerx Period Register (HRTIM_PERxR)p.146037.5.18 HRTIM Timerx Repetition Register (HRTIM_REPxR)p.146137.5.19 HRTIM Timerx Compare 1 Register (HRTIM_CMP1xR)p.146137.5.20 HRTIM Timerx Compare 1 Compound Register (HRTIM_CMP1CxR)p.146237.5.21 HRTIM Timerx Compare 2 Register (HRTIM_CMP2xR)p.146237.5.22 HRTIM Timerx Compare 3 Register (HRTIM_CMP3xR)p.146337.5.23 HRTIM Timerx Compare 4 Register (HRTIM_CMP4xR)p.146337.5.24 HRTIM Timerx Capture 1 Register (HRTIM_CPT1xR)p.146437.5.25 HRTIM Timerx Capture 2 Register (HRTIM_CPT2xR)p.146437.5.26 HRTIM Timerx Deadtime Register (HRTIM_DTxR)p.146537.5.27 HRTIM Timerx Output1 Set Register (HRTIM_SETx1R)p.146737.5.28 HRTIM Timerx Output1 Reset Register (HRTIM_RSTx1R)p.146937.5.29 HRTIM Timerx Output2 Set Register (HRTIM_SETx2R)p.146937.5.30 HRTIM Timerx Output2 Reset Register (HRTIM_RSTx2R)p.147037.5.31 HRTIM Timerx External Event Filtering Register 1 (HRTIM_EEFxR1)p.147137.5.32 HRTIM Timerx External Event Filtering Register 2 (HRTIM_EEFxR2)p.147337.5.33 HRTIM Timerx Reset Register (HRTIM_RSTxR)p.147437.5.34 HRTIM Timerx Chopper Register (HRTIM_CHPxR)p.147737.5.35 HRTIM Timerx Capture 1 Control Register (HRTIM_CPT1xCR)p.147937.5.36 HRTIM Timerx Capture 2 Control Register (HRTIM_CPT2xCR)p.148037.5.37 HRTIM Timerx Output Register (HRTIM_OUTxR)p.148337.5.38 HRTIM Timerx Fault Register (HRTIM_FLTxR)p.148637.5.39 HRTIM Control Register 1 (HRTIM_CR1)p.148737.5.40 HRTIM Control Register 2 (HRTIM_CR2)p.148937.5.41 HRTIM Interrupt Status Register (HRTIM_ISR)p.149037.5.42 HRTIM Interrupt Clear Register (HRTIM_ICR)p.149137.5.43 HRTIM Interrupt Enable Register (HRTIM_IER)p.149237.5.44 HRTIM Output Enable Register (HRTIM_OENR)p.149337.5.45 HRTIM Output Disable Register (HRTIM_ODISR)p.149437.5.46 HRTIM Output Disable Status Register (HRTIM_ODSR)p.149537.5.47 HRTIM Burst Mode Control Register (HRTIM_BMCR)p.149637.5.48 HRTIM Burst Mode Trigger Register (HRTIM_BMTRGR)p.149837.5.49 HRTIM Burst Mode Compare Register (HRTIM_BMCMPR)p.150037.5.50 HRTIM Burst Mode Period Register (HRTIM_BMPER)p.150037.5.51 HRTIM Timer External Event Control Register 1 (HRTIM_EECR1)p.150137.5.52 HRTIM Timer External Event Control Register 2 (HRTIM_EECR2)p.150337.5.53 HRTIM Timer External Event Control Register 3 (HRTIM_EECR3)p.150437.5.54 HRTIM ADC Trigger 1 Register (HRTIM_ADC1R)p.150537.5.55 HRTIM ADC Trigger 2 Register (HRTIM_ADC2R)p.150637.5.56 HRTIM ADC Trigger 3 Register (HRTIM_ADC3R)p.150737.5.57 HRTIM ADC Trigger 4 Register (HRTIM_ADC4R)p.150937.5.58 HRTIM Fault Input Register 1 (HRTIM_FLTINR1)p.151137.5.59 HRTIM Fault Input Register 2 (HRTIM_FLTINR2)p.151337.5.60 HRTIM Burst DMA Master timer update Register (HRTIM_BDMUPR)p.151537.5.61 HRTIM Burst DMA Timerx update Register (HRTIM_BDTxUPR)p.151637.5.62 HRTIM Burst DMA Data Register (HRTIM_BDMADR)p.151737.5.63 HRTIM register mapp.1518Table 327. RTIM global register mapp.1518Table 328. HRTIM Register map and reset values: Master timerp.1518Table 329. HRTIM Register map and reset values: TIMx (x= A..E)p.1520Table 330. HRTIM Register map and reset values: Common functionsp.1524
38 Advanced-control timers (TIM1/TIM8)p.1527132
38.1 TIM1/TIM8 introductionp.152738.2 TIM1/TIM8 main featuresp.1527Figure 344. Advanced-control timer block diagramp.152838.3 TIM1/TIM8 functional descriptionp.152938.3.1 Time-base unitp.1529Figure 345. Counter timing diagram with prescaler division change from 1 to 2p.1530Figure 346. Counter timing diagram with prescaler division change from 1 to 4p.153038.3.2 Counter modesp.1531Figure 347. Counter timing diagram, internal clock divided by 1p.1532Figure 348. Counter timing diagram, internal clock divided by 2p.1532Figure 349. Counter timing diagram, internal clock divided by 4p.1533Figure 350. Counter timing diagram, internal clock divided by Np.1533Figure 351. Counter timing diagram, update event when ARPE=0 (TIMx_ARR not preloaded)p.1534Figure 352. Counter timing diagram, update event when ARPE=1 (TIMx_ARR preloaded)p.1534Figure 353. Counter timing diagram, internal clock divided by 1p.1536Figure 354. Counter timing diagram, internal clock divided by 2p.1536Figure 355. Counter timing diagram, internal clock divided by 4p.1537Figure 356. Counter timing diagram, internal clock divided by Np.1537Figure 357. Counter timing diagram, update event when repetition counter is not usedp.1538Figure 358. Counter timing diagram, internal clock divided by 1, TIMx_ARR = 0x6p.1539Figure 359. Counter timing diagram, internal clock divided by 2p.1540Figure 360. Counter timing diagram, internal clock divided by 4, TIMx_ARR=0x36p.1540Figure 361. Counter timing diagram, internal clock divided by Np.1541Figure 362. Counter timing diagram, update event with ARPE=1 (counter underflow)p.1541Figure 363. Counter timing diagram, Update event with ARPE=1 (counter overflow)p.154238.3.3 Repetition counterp.1542Figure 364. Update rate examples depending on mode and TIMx_RCR register settingsp.154338.3.4 External trigger inputp.1544Figure 365. External trigger input blockp.1544Figure 366. TIM1/TIM8 ETR input circuitryp.154438.3.5 Clock selectionp.1545Figure 367. Control circuit in normal mode, internal clock divided by 1p.1545Figure 368. TI2 external clock connection examplep.1546Figure 369. Control circuit in external clock mode 1p.1547Figure 370. External trigger input blockp.1547Figure 371. Control circuit in external clock mode 2p.154838.3.6 Capture/compare channelsp.1549Figure 372. Capture/compare channel (example: channel 1 input stage)p.1549Figure 373. Capture/compare channel 1 main circuitp.1549Figure 374. Output stage of capture/compare channel (channel 1, idem ch. 2 and 3)p.1550Figure 375. Output stage of capture/compare channel (channel 4)p.1550Figure 376. Output stage of capture/compare channel (channel 5, idem ch. 6)p.155138.3.7 Input capture modep.155138.3.8 PWM input modep.1552Figure 377. PWM input mode timingp.155338.3.9 Forced output modep.155338.3.10 Output compare modep.1554Figure 378. Output compare mode, toggle on OC1p.155538.3.11 PWM modep.1555Figure 379. Edge-aligned PWM waveforms (ARR=8)p.1556Figure 380. Center-aligned PWM waveforms (ARR=8)p.155738.3.12 Asymmetric PWM modep.1558Figure 381. Generation of 2 phase-shifted PWM signals with 50% duty cyclep.155938.3.13 Combined PWM modep.1559Figure 382. Combined PWM mode on channel 1 and 3p.156038.3.14 Combined 3-phase PWM modep.1560Figure 383. 3-phase combined PWM signals with multiple trigger pulses per periodp.156138.3.15 Complementary outputs and dead-time insertionp.1561Figure 384. Complementary output with dead-time insertionp.1562Figure 385. Dead-time waveforms with delay greater than the negative pulsep.1562Figure 386. Dead-time waveforms with delay greater than the positive pulsep.156338.3.16 Using the break functionp.1563Figure 387. Break and Break2 circuitry overviewp.1565Figure 388. Various output behavior in response to a break event on BRK (OSSI = 1)p.1567Table 331. Behavior of timer outputs versus BRK/BRK2 inputsp.1568Figure 389. PWM output state following BRK and BRK2 pins assertion (OSSI=1)p.1568Figure 390. PWM output state following BRK assertion (OSSI=0)p.156938.3.17 Bidirectional break inputsp.1569Figure 391. Output redirectionp.156938.3.18 Clearing the OCxREF signal on an external eventp.1569Figure 392. Clearing TIMx OCxREFp.157038.3.19 6-step PWM generationp.1571Figure 393. 6-step generation, COM example (OSSR=1)p.157138.3.20 One-pulse modep.1572Figure 394. Example of one pulse mode.p.157238.3.21 Retriggerable one pulse modep.1573Figure 395. Retriggerable one pulse modep.157438.3.22 Encoder interface modep.1574Table 332. Counting direction versus encoder signalsp.1575Figure 396. Example of counter operation in encoder interface mode.p.1575Figure 397. Example of encoder interface mode with TI1FP1 polarity inverted.p.157638.3.23 UIF bit remappingp.157638.3.24 Timer input XOR functionp.1577Figure 398. Measuring time interval between edges on 3 signalsp.157738.3.25 Interfacing with Hall sensorsp.1577Figure 399. Example of Hall sensor interfacep.157938.3.26 Timer synchronizationp.1580Figure 400. Control circuit in reset modep.1580Figure 401. Control circuit in Gated modep.1581Figure 402. Control circuit in trigger modep.1582Figure 403. Control circuit in external clock mode 2 + trigger modep.158338.3.27 ADC synchronizationp.158438.3.28 DMA burst modep.158438.3.29 Debug modep.158538.4 TIM1/TIM8 registersp.158638.4.1 TIMx control register 1 (TIMx_CR1)(x = 1, 8)p.158638.4.2 TIMx control register 2 (TIMx_CR2)(x = 1, 8)p.158738.4.3 TIMx slave mode control register (TIMx_SMCR)(x = 1, 8)p.1590Table 333. TIMx internal trigger connectionp.159238.4.4 TIMx DMA/interrupt enable register (TIMx_DIER)(x = 1, 8)p.159238.4.5 TIMx status register (TIMx_SR)(x = 1, 8)p.159438.4.6 TIMx event generation register (TIMx_EGR)(x = 1, 8)p.159638.4.7 TIMx capture/compare mode register 1(TIMx_CCMR1)(x = 1, 8)p.159738.4.8 TIMx capture/compare mode register 1 [alternate] (TIMx_CCMR1)(x = 1, 8)p.159838.4.9 TIMx capture/compare mode register 2 (TIMx_CCMR2)(x = 1, 8)p.160138.4.10 TIMx capture/compare mode register 2 [alternate] (TIMx_CCMR2)(x = 1, 8)p.160238.4.11 TIMx capture/compare enable register (TIMx_CCER)(x = 1, 8)p.1604Table 334. Output control bits for complementary OCx and OCxN channels with break featurep.160638.4.12 TIMx counter (TIMx_CNT)(x = 1, 8)p.160738.4.13 TIMx prescaler (TIMx_PSC)(x = 1, 8)p.160738.4.14 TIMx auto-reload register (TIMx_ARR)(x = 1, 8)p.160738.4.15 TIMx repetition counter register (TIMx_RCR)(x = 1, 8)p.160838.4.16 TIMx capture/compare register 1 (TIMx_CCR1)(x = 1, 8)p.160838.4.17 TIMx capture/compare register 2 (TIMx_CCR2)(x = 1, 8)p.160938.4.18 TIMx capture/compare register 3 (TIMx_CCR3)(x = 1, 8)p.160938.4.19 TIMx capture/compare register 4 (TIMx_CCR4)(x = 1, 8)p.161038.4.20 TIMx break and dead-time register (TIMx_BDTR)(x = 1, 8)p.161038.4.21 TIMx DMA control register (TIMx_DCR)(x = 1, 8)p.161338.4.22 TIMx DMA address for full transfer (TIMx_DMAR)(x = 1, 8)p.161438.4.23 TIMx capture/compare mode register 3 (TIMx_CCMR3)(x = 1, 8)p.161538.4.24 TIMx capture/compare register 5 (TIMx_CCR5)(x = 1, 8)p.161638.4.25 TIMx capture/compare register 6 (TIMx_CCR6)(x = 1, 8)p.161738.4.26 TIM1 alternate function option register 1 (TIM1_AF1)p.161738.4.27 TIM1 Alternate function register 2 (TIM1_AF2)p.161938.4.28 TIM8 Alternate function option register 1 (TIM8_AF1)p.162038.4.29 TIM8 Alternate function option register 2 (TIM8_AF2)p.162238.4.30 TIM1 timer input selection register (TIM1_TISEL)p.162438.4.31 TIM8 timer input selection register (TIM8_TISEL)p.162438.4.32 TIM1 register mapp.1626Table 335. TIM1 register map and reset valuesp.162638.4.33 TIM8 register mapp.1628Table 336. TIM8 register map and reset valuesp.1628
39 General-purpose timers (TIM2/TIM3/TIM4/TIM5)p.1631109
39.1 TIM2/TIM3/TIM4/TIM5 introductionp.163139.2 TIM2/TIM3/TIM4/TIM5 main featuresp.1631Figure 404. General-purpose timer block diagramp.163239.3 TIM2/TIM3/TIM4/TIM5 functional descriptionp.163339.3.1 Time-base unitp.1633Figure 405. Counter timing diagram with prescaler division change from 1 to 2p.1634Figure 406. Counter timing diagram with prescaler division change from 1 to 4p.163439.3.2 Counter modesp.1635Figure 407. Counter timing diagram, internal clock divided by 1p.1635Figure 408. Counter timing diagram, internal clock divided by 2p.1636Figure 409. Counter timing diagram, internal clock divided by 4p.1636Figure 410. Counter timing diagram, internal clock divided by Np.1637Figure 411. Counter timing diagram, Update event when ARPE=0 (TIMx_ARR not preloaded)p.1637Figure 412. Counter timing diagram, Update event when ARPE=1 (TIMx_ARR preloaded)p.1638Figure 413. Counter timing diagram, internal clock divided by 1p.1639Figure 414. Counter timing diagram, internal clock divided by 2p.1639Figure 415. Counter timing diagram, internal clock divided by 4p.1640Figure 416. Counter timing diagram, internal clock divided by Np.1640Figure 417. Counter timing diagram, Update eventp.1641Figure 418. Counter timing diagram, internal clock divided by 1, TIMx_ARR=0x6p.1642Figure 419. Counter timing diagram, internal clock divided by 2p.1643Figure 420. Counter timing diagram, internal clock divided by 4, TIMx_ARR=0x36p.1643Figure 421. Counter timing diagram, internal clock divided by Np.1644Figure 422. Counter timing diagram, Update event with ARPE=1 (counter underflow)p.1644Figure 423. Counter timing diagram, Update event with ARPE=1 (counter overflow)p.164539.3.3 Clock selectionp.1645Figure 424. Control circuit in normal mode, internal clock divided by 1p.1646Figure 425. TI2 external clock connection examplep.1646Figure 426. Control circuit in external clock mode 1p.1647Figure 427. External trigger input blockp.1648Figure 428. Control circuit in external clock mode 2p.164939.3.4 Capture/Compare channelsp.1649Figure 429. Capture/Compare channel (example: channel 1 input stage)p.1649Figure 430. Capture/Compare channel 1 main circuitp.1650Figure 431. Output stage of Capture/Compare channel (channel 1)p.165039.3.5 Input capture modep.165039.3.6 PWM input modep.1651Figure 432. PWM input mode timingp.165239.3.7 Forced output modep.165239.3.8 Output compare modep.1653Figure 433. Output compare mode, toggle on OC1p.165439.3.9 PWM modep.1654Figure 434. Edge-aligned PWM waveforms (ARR=8)p.1655Figure 435. Center-aligned PWM waveforms (ARR=8)p.165639.3.10 Asymmetric PWM modep.1657Figure 436. Generation of 2 phase-shifted PWM signals with 50% duty cyclep.165739.3.11 Combined PWM modep.1658Figure 437. Combined PWM mode on channels 1 and 3p.165939.3.12 Clearing the OCxREF signal on an external eventp.1659Figure 438. Clearing TIMx OCxREFp.166039.3.13 One-pulse modep.1661Figure 439. Example of one-pulse mode.p.166139.3.14 Retriggerable one pulse modep.1662Figure 440. Retriggerable one-pulse mode.p.166339.3.15 Encoder interface modep.1663Table 337. Counting direction versus encoder signalsp.1664Figure 441. Example of counter operation in encoder interface modep.1664Figure 442. Example of encoder interface mode with TI1FP1 polarity invertedp.166539.3.16 UIF bit remappingp.166539.3.17 Timer input XOR functionp.166539.3.18 Timers and external trigger synchronizationp.1666Figure 443. Control circuit in reset modep.1666Figure 444. Control circuit in gated modep.1667Figure 445. Control circuit in trigger modep.1668Figure 446. Control circuit in external clock mode 2 + trigger modep.166939.3.19 Timer synchronizationp.1669Figure 447. Master/Slave timer examplep.1669Figure 448. Master/slave connection example with 1 channel only timersp.1670Figure 449. Gating TIM2 with OC1REF of TIM3p.1671Figure 450. Gating TIM2 with Enable of TIM3p.1672Figure 451. Triggering TIM2 with update of TIM3p.1672Figure 452. Triggering TIM2 with Enable of TIM3p.1673Figure 453. Triggering TIM3 and TIM2 with TIM3 TI1 inputp.167439.3.20 DMA burst modep.167439.3.21 Debug modep.167539.4 TIM2/TIM3/TIM4/TIM5 registersp.167639.4.1 TIMx control register 1 (TIMx_CR1)(x = 2 to 5)p.167639.4.2 TIMx control register 2 (TIMx_CR2)(x = 2 to 5)p.167739.4.3 TIMx slave mode control register (TIMx_SMCR)(x = 2 to 5)p.1679Table 338. TIMx internal trigger connectionp.168239.4.4 TIMx DMA/Interrupt enable register (TIMx_DIER)(x = 2 to 5)p.168239.4.5 TIMx status register (TIMx_SR)(x = 2 to 5)p.168339.4.6 TIMx event generation register (TIMx_EGR)(x = 2 to 5)p.168439.4.7 TIMx capture/compare mode register 1 (TIMx_CCMR1)(x = 2 to 5)p.168639.4.8 TIMx capture/compare mode register 1 [alternate] (TIMx_CCMR1) (x = 2 to 5)p.168839.4.9 TIMx capture/compare mode register 2 (TIMx_CCMR2)(x = 2 to 5)p.169039.4.10 TIMx capture/compare mode register 2 [alternate] (TIMx_CCMR2) (x = 2 to 5)p.169139.4.11 TIMx capture/compare enable register (TIMx_CCER)(x = 2 to 5)p.1692Table 339. Output control bit for standard OCx channelsp.169339.4.12 TIMx counter (TIMx_CNT)(x = 2 to 5)p.169339.4.13 TIMx counter [alternate] (TIMx_CNT)(x = 2 to 5)p.169439.4.14 TIMx prescaler (TIMx_PSC)(x = 2 to 5)p.169439.4.15 TIMx auto-reload register (TIMx_ARR)(x = 2 to 5)p.169539.4.16 TIMx capture/compare register 1 (TIMx_CCR1)(x = 2 to 5)p.169539.4.17 TIMx capture/compare register 2 (TIMx_CCR2)(x = 2 to 5)p.169639.4.18 TIMx capture/compare register 3 (TIMx_CCR3)(x = 2 to 5)p.169639.4.19 TIMx capture/compare register 4 (TIMx_CCR4)(x = 2 to 5)p.169739.4.20 TIMx DMA control register (TIMx_DCR)(x = 2 to 5)p.169839.4.21 TIMx DMA address for full transfer (TIMx_DMAR)(x = 2 to 5)p.169839.4.22 TIM2 alternate function option register 1 (TIM2_AF1)p.169939.4.23 TIM3 alternate function option register 1 (TIM3_AF1)p.169939.4.24 TIM4 alternate function option register 1 (TIM4_AF1)p.170039.4.25 TIM5 alternate function option register 1 (TIM5_AF1)p.170039.4.26 TIM2 timer input selection register (TIM2_TISEL)p.170139.4.27 TIM3 timer input selection register (TIM3_TISEL)p.170139.4.28 TIM4 timer input selection register (TIM4_TISEL)p.170239.4.29 TIM5 timer input selection register (TIM5_TISEL)p.170339.4.30 TIMx register mapp.1705Table 340. TIM2/TIM3/TIM4/TIM5 register map and reset valuesp.1705
40 General-purpose timers (TIM12/TIM13/TIM14)p.170887
40.1 TIM12/TIM13/TIM14 introductionp.170840.2 TIM12/TIM13/TIM14 main featuresp.170840.2.1 TIM12 main featuresp.1708Figure 454. General-purpose timer block diagram (TIM12)p.170940.2.2 TIM13/TIM14 main featuresp.1709Figure 455. General-purpose timer block diagram (TIM13/TIM14)p.171040.3 TIM12/TIM13/TIM14 functional descriptionp.171140.3.1 Time-base unitp.1711Figure 456. Counter timing diagram with prescaler division change from 1 to 2p.1712Figure 457. Counter timing diagram with prescaler division change from 1 to 4p.171240.3.2 Counter modesp.1713Figure 458. Counter timing diagram, internal clock divided by 1p.1713Figure 459. Counter timing diagram, internal clock divided by 2p.1714Figure 460. Counter timing diagram, internal clock divided by 4p.1714Figure 461. Counter timing diagram, internal clock divided by Np.1715Figure 462. Counter timing diagram, update event when ARPE=0 (TIMx_ARR not preloaded)p.1715Figure 463. Counter timing diagram, update event when ARPE=1 (TIMx_ARR preloaded)p.171640.3.3 Clock selectionp.1716Figure 464. Control circuit in normal mode, internal clock divided by 1p.1717Figure 465. TI2 external clock connection examplep.1717Figure 466. Control circuit in external clock mode 1p.171840.3.4 Capture/compare channelsp.1718Figure 467. Capture/compare channel (example: channel 1 input stage)p.1719Figure 468. Capture/compare channel 1 main circuitp.1719Figure 469. Output stage of capture/compare channel (channel 1)p.172040.3.5 Input capture modep.172040.3.6 PWM input mode (only for TIM12)p.1721Figure 470. PWM input mode timingp.172240.3.7 Forced output modep.172240.3.8 Output compare modep.1723Figure 471. Output compare mode, toggle on OC1.p.172440.3.9 PWM modep.1724Figure 472. Edge-aligned PWM waveforms (ARR=8)p.172540.3.10 Combined PWM mode (TIM12 only)p.1725Figure 473. Combined PWM mode on channel 1 and 2p.172640.3.11 One-pulse modep.1726Figure 474. Example of one pulse mode.p.172740.3.12 Retriggerable one pulse mode (TIM12 only)p.1728Figure 475. Retriggerable one pulse modep.172840.3.13 UIF bit remappingp.172840.3.14 Timer input XOR functionp.1729Figure 476. Measuring time interval between edges on 2 signalsp.172940.3.15 TIM12 external trigger synchronizationp.1729Figure 477. Control circuit in reset modep.1730Figure 478. Control circuit in gated modep.1731Figure 479. Control circuit in trigger modep.173140.3.16 Slave mode – combined reset + trigger modep.173240.3.17 Timer synchronization (TIM12)p.173340.3.18 Using timer output as trigger for other timers (TIM13/TIM14)p.173340.3.19 Debug modep.173340.4 TIM12 registersp.173340.4.1 TIM12 control register 1 (TIM12_CR1)p.173340.4.2 TIM12 control register 2 (TIM12_CR2)p.173440.4.3 TIM12 slave mode control register (TIM12_SMCR)p.1735Table 341. TIMx internal trigger connectionp.173640.4.4 TIM12 Interrupt enable register (TIM12_DIER)p.173740.4.5 TIM12 status register (TIM12_SR)p.173740.4.6 TIM12 event generation register (TIM12_EGR)p.173840.4.7 TIM12 capture/compare mode register 1 (TIM12_CCMR1)p.173940.4.8 TIM12 capture/compare mode register 1 [alternate] (TIM12_CCMR1)p.174040.4.9 TIM12 capture/compare enable register (TIM12_CCER)p.1743Table 342. Output control bit for standard OCx channelsp.174440.4.10 TIM12 counter (TIM12_CNT)p.174440.4.11 TIM12 prescaler (TIM12_PSC)p.174540.4.12 TIM12 auto-reload register (TIM12_ARR)p.174540.4.13 TIM12 capture/compare register 1 (TIM12_CCR1)p.174540.4.14 TIM12 capture/compare register 2 (TIM12_CCR2)p.174640.4.15 TIM12 timer input selection register (TIM12_TISEL)p.174640.4.16 TIM12 register mapp.1747Table 343. TIM12 register map and reset valuesp.174740.5 TIM13/TIM14 registersp.174940.5.1 TIMx control register 1 (TIMx_CR1)(x = 13 to 14)p.174940.5.2 TIMx Interrupt enable register (TIMx_DIER)(x = 13 to 14)p.175040.5.3 TIMx status register (TIMx_SR)(x = 13 to 14)p.175040.5.4 TIMx event generation register (TIMx_EGR)(x = 13 to 14)p.175140.5.5 TIMx capture/compare mode register 1 (TIMx_CCMR1)(x = 13 to 14)p.175240.5.6 TIMx capture/compare mode register 1 [alternate] (TIMx_CCMR1)(x = 13 to 14)p.175340.5.7 TIMx capture/compare enable register (TIMx_CCER)(x = 13 to 14)p.1755Table 344. Output control bit for standard OCx channelsp.175640.5.8 TIMx counter (TIMx_CNT)(x = 13 to 14)p.175640.5.9 TIMx prescaler (TIMx_PSC)(x = 13 to 14)p.175740.5.10 TIMx auto-reload register (TIMx_ARR)(x = 13 to 14)p.175740.5.11 TIMx capture/compare register 1 (TIMx_CCR1)(x = 13 to 14)p.175740.5.12 TIM13 timer input selection register (TIM13_TISEL)p.175840.5.13 TIM14 timer input selection register (TIM14_TISEL)p.175840.5.14 TIM13/TIM14 register mapp.1759Table 345. TIM13/TIM14 register map and reset valuesp.1759
41 General-purpose timers (TIM15/TIM16/TIM17)p.1761111
41.1 TIM15/TIM16/TIM17 introductionp.176141.2 TIM15 main featuresp.176141.3 TIM16/TIM17 main featuresp.1762Figure 480. TIM15 block diagramp.1763Figure 481. TIM16/TIM17 block diagramp.176441.4 TIM15/TIM16/TIM17 functional descriptionp.176541.4.1 Time-base unitp.1765Figure 482. Counter timing diagram with prescaler division change from 1 to 2p.1766Figure 483. Counter timing diagram with prescaler division change from 1 to 4p.176641.4.2 Counter modesp.1767Figure 484. Counter timing diagram, internal clock divided by 1p.1768Figure 485. Counter timing diagram, internal clock divided by 2p.1768Figure 486. Counter timing diagram, internal clock divided by 4p.1769Figure 487. Counter timing diagram, internal clock divided by Np.1769Figure 488. Counter timing diagram, update event when ARPE=0 (TIMx_ARR not preloaded)p.1770Figure 489. Counter timing diagram, update event when ARPE=1 (TIMx_ARR preloaded)p.177041.4.3 Repetition counterp.1771Figure 490. Update rate examples depending on mode and TIMx_RCR register settingsp.177241.4.4 Clock selectionp.1772Figure 491. Control circuit in normal mode, internal clock divided by 1p.1773Figure 492. TI2 external clock connection examplep.1773Figure 493. Control circuit in external clock mode 1p.177441.4.5 Capture/compare channelsp.1774Figure 494. Capture/compare channel (example: channel 1 input stage)p.1775Figure 495. Capture/compare channel 1 main circuitp.1775Figure 496. Output stage of capture/compare channel (channel 1)p.1776Figure 497. Output stage of capture/compare channel (channel 2 for TIM15)p.177641.4.6 Input capture modep.177641.4.7 PWM input mode (only for TIM15)p.1777Figure 498. PWM input mode timingp.177841.4.8 Forced output modep.177841.4.9 Output compare modep.1779Figure 499. Output compare mode, toggle on OC1p.178041.4.10 PWM modep.1780Figure 500. Edge-aligned PWM waveforms (ARR=8)p.178141.4.11 Combined PWM mode (TIM15 only)p.1781Figure 501. Combined PWM mode on channel 1 and 2p.178241.4.12 Complementary outputs and dead-time insertionp.1782Figure 502. Complementary output with dead-time insertion.p.1783Figure 503. Dead-time waveforms with delay greater than the negative pulse.p.1783Figure 504. Dead-time waveforms with delay greater than the positive pulse.p.178441.4.13 Using the break functionp.1784Figure 505. Break circuitry overviewp.1786Figure 506. Output behavior in response to a breakp.178841.4.14 6-step PWM generationp.1789Figure 507. 6-step generation, COM example (OSSR=1)p.178941.4.15 One-pulse modep.1790Figure 508. Example of one pulse modep.179041.4.16 Retriggerable one pulse mode (TIM15 only)p.1791Figure 509. Retriggerable one pulse modep.179241.4.17 UIF bit remappingp.179241.4.18 Timer input XOR function (TIM15 only)p.1793Figure 510. Measuring time interval between edges on 2 signalsp.179341.4.19 External trigger synchronization (TIM15 only)p.1794Figure 511. Control circuit in reset modep.1794Figure 512. Control circuit in gated modep.1795Figure 513. Control circuit in trigger modep.179641.4.20 Slave mode – combined reset + trigger modep.179641.4.21 DMA burst modep.179641.4.22 Timer synchronization (TIM15)p.179841.4.23 Using timer output as trigger for other timers (TIM16/TIM17)p.179841.4.24 Debug modep.179841.5 TIM15 registersp.179941.5.1 TIM15 control register 1 (TIM15_CR1)p.179941.5.2 TIM15 control register 2 (TIM15_CR2)p.180041.5.3 TIM15 slave mode control register (TIM15_SMCR)p.1802Table 346. TIMx Internal trigger connectionp.180341.5.4 TIM15 DMA/interrupt enable register (TIM15_DIER)p.180341.5.5 TIM15 status register (TIM15_SR)p.180441.5.6 TIM15 event generation register (TIM15_EGR)p.180641.5.7 TIM15 capture/compare mode register 1 (TIM15_CCMR1)p.180741.5.8 TIM15 capture/compare mode register 1 [alternate] (TIM15_CCMR1)p.180841.5.9 TIM15 capture/compare enable register (TIM15_CCER)p.1811Table 347. Output control bits for complementary OCx and OCxN channels with break feature (TIM15)p.181341.5.10 TIM15 counter (TIM15_CNT)p.181441.5.11 TIM15 prescaler (TIM15_PSC)p.181441.5.12 TIM15 auto-reload register (TIM15_ARR)p.181441.5.13 TIM15 repetition counter register (TIM15_RCR)p.181541.5.14 TIM15 capture/compare register 1 (TIM15_CCR1)p.181541.5.15 TIM15 capture/compare register 2 (TIM15_CCR2)p.181641.5.16 TIM15 break and dead-time register (TIM15_BDTR)p.181641.5.17 TIM15 DMA control register (TIM15_DCR)p.181941.5.18 TIM15 DMA address for full transfer (TIM15_DMAR)p.181941.5.19 TIM15 alternate register 1 (TIM15_AF1)p.182041.5.20 TIM15 input selection register (TIM15_TISEL)p.182141.5.21 TIM15 register mapp.1822Table 348. TIM15 register map and reset valuesp.182241.6 TIM16/TIM17 registersp.182441.6.1 TIMx control register 1 (TIMx_CR1)(x = 16 to 17)p.182441.6.2 TIMx control register 2 (TIMx_CR2)(x = 16 to 17)p.182541.6.3 TIMx DMA/interrupt enable register (TIMx_DIER)(x = 16 to 17)p.182641.6.4 TIMx status register (TIMx_SR)(x = 16 to 17)p.182741.6.5 TIMx event generation register (TIMx_EGR)(x = 16 to 17)p.182841.6.6 TIMx capture/compare mode register 1 (TIMx_CCMR1)(x = 16 to 17)p.182941.6.7 TIMx capture/compare mode register 1 [alternate] (TIMx_CCMR1)(x = 16 to 17)p.183041.6.8 TIMx capture/compare enable register (TIMx_CCER)(x = 16 to 17)p.1832Table 349. Output control bits for complementary OCx and OCxN channels with break feature (TIM16/17)p.183441.6.9 TIMx counter (TIMx_CNT)(x = 16 to 17)p.183441.6.10 TIMx prescaler (TIMx_PSC)(x = 16 to 17)p.183541.6.11 TIMx auto-reload register (TIMx_ARR)(x = 16 to 17)p.183541.6.12 TIMx repetition counter register (TIMx_RCR)(x = 16 to 17)p.183641.6.13 TIMx capture/compare register 1 (TIMx_CCR1)(x = 16 to 17)p.183641.6.14 TIMx break and dead-time register (TIMx_BDTR)(x = 16 to 17)p.183741.6.15 TIMx DMA control register (TIMx_DCR)(x = 16 to 17)p.183941.6.16 TIMx DMA address for full transfer (TIMx_DMAR)(x = 16 to 17)p.184041.6.17 TIM16 alternate function register 1 (TIM16_AF1)p.184141.6.18 TIM16 input selection register (TIM16_TISEL)p.184241.6.19 TIM17 alternate function register 1 (TIM17_AF1)p.184341.6.20 TIM17 input selection register (TIM17_TISEL)p.184441.6.21 TIM16/TIM17 register mapp.1845Table 350. TIM16/TIM17 register map and reset valuesp.1845
42 Basic timers (TIM6/TIM7)p.184729
42.1 TIM6/TIM7 introductionp.184742.2 TIM6/TIM7 main featuresp.1847Figure 514. Basic timer block diagramp.184742.3 TIM6/TIM7 functional descriptionp.184842.3.1 Time-base unitp.1848Figure 515. Counter timing diagram with prescaler division change from 1 to 2p.1849Figure 516. Counter timing diagram with prescaler division change from 1 to 4p.184942.3.2 Counting modep.1850Figure 517. Counter timing diagram, internal clock divided by 1p.1850Figure 518. Counter timing diagram, internal clock divided by 2p.1851Figure 519. Counter timing diagram, internal clock divided by 4p.1851Figure 520. Counter timing diagram, internal clock divided by Np.1852Figure 521. Counter timing diagram, update event when ARPE = 0 (TIMx_ARR not preloaded)p.1852Figure 522. Counter timing diagram, update event when ARPE=1 (TIMx_ARR preloaded)p.185342.3.3 UIF bit remappingp.185342.3.4 Clock sourcep.1853Figure 523. Control circuit in normal mode, internal clock divided by 1p.185442.3.5 Debug modep.185442.4 TIM6/TIM7 registersp.185442.4.1 TIMx control register 1 (TIMx_CR1)(x = 6 to 7)p.185442.4.2 TIMx control register 2 (TIMx_CR2)(x = 6 to 7)p.185642.4.3 TIMx DMA/Interrupt enable register (TIMx_DIER)(x = 6 to 7)p.185642.4.4 TIMx status register (TIMx_SR)(x = 6 to 7)p.185742.4.5 TIMx event generation register (TIMx_EGR)(x = 6 to 7)p.185742.4.6 TIMx counter (TIMx_CNT)(x = 6 to 7)p.185742.4.7 TIMx prescaler (TIMx_PSC)(x = 6 to 7)p.185842.4.8 TIMx auto-reload register (TIMx_ARR)(x = 6 to 7)p.185842.4.9 TIMx register mapp.1859Table 351. TIMx register map and reset valuesp.1859
43 Low-power timer (LPTIM)p.186061
43.1 Introductionp.186043.2 LPTIM main featuresp.186043.3 LPTIM implementationp.1861Table 352. STM32H742, STM32H743/753 and STM32H750 LPTIM featuresp.186143.4 LPTIM functional descriptionp.186143.4.1 LPTIM block diagramp.1861Figure 524. Low-power timer block diagram (LPTIM1 and LPTIM2)p.1861Figure 525. Low-power timer block diagram (LPTIM3)p.1862Figure 526. Low-power timer block diagram (LPTIM4 and LPTIM5)p.186243.4.2 LPTIM pins and internal signalsp.1863Table 353. LPTIM input/output pinsp.1863Table 354. LPTIM internal signalsp.186343.4.3 LPTIM input and trigger mappingp.1863Table 355. LPTIM1 external trigger connectionp.1863Table 356. LPTIM2 external trigger connectionp.1864Table 357. LPTIM3 external trigger connectionp.1864Table 358. LPTIM4 external trigger connectionp.1864Table 359. LPTIM5 external trigger connectionp.1865Table 360. LPTIM1 input 1 connectionp.1865Table 361. LPTIM1 input 2 connectionp.1865Table 362. LPTIM2 input 1 connectionp.1865Table 363. LPTIM2 input 2 connectionp.1866Table 364. LPTIM3 input 1 connectionp.186643.4.4 LPTIM reset and clocksp.186643.4.5 Glitch filterp.1866Figure 527. Glitch filter timing diagramp.186743.4.6 Prescalerp.1867Table 365. Prescaler division ratiosp.186743.4.7 Trigger multiplexerp.186843.4.8 Operating modep.1868Figure 528. LPTIM output waveform, single counting mode configurationp.1869Figure 529. LPTIM output waveform, Single counting mode configuration and Set-once mode activated (WAVE bit is set)p.1869Figure 530. LPTIM output waveform, Continuous counting mode configurationp.187043.4.9 Timeout functionp.187043.4.10 Waveform generationp.1870Figure 531. Waveform generationp.187143.4.11 Register updatep.187143.4.12 Counter modep.187243.4.13 Timer enablep.187243.4.14 Timer counter resetp.187343.4.15 Encoder modep.1873Table 366. Encoder counting scenariosp.1874Figure 532. Encoder mode counting sequencep.187543.4.16 Debug modep.187543.5 LPTIM low-power modesp.1875Table 367. Effect of low-power modes on the LPTIMp.187543.6 LPTIM interruptsp.1876Table 368. Interrupt eventsp.187643.7 LPTIM registersp.187643.7.1 LPTIM interrupt and status register (LPTIM_ISR)p.187743.7.2 LPTIM interrupt clear register (LPTIM_ICR)p.187843.7.3 LPTIM interrupt enable register (LPTIM_IER)p.187843.7.4 LPTIM configuration register (LPTIM_CFGR)p.187943.7.5 LPTIM control register (LPTIM_CR)p.188243.7.6 LPTIM compare register (LPTIM_CMP)p.188443.7.7 LPTIM autoreload register (LPTIM_ARR)p.188443.7.8 LPTIM counter register (LPTIM_CNT)p.188543.7.9 LPTIM configuration register 2 (LPTIM_CFGR2)p.188543.7.10 LPTIM3 configuration register 2 (LPTIM3_CFGR2)p.188643.7.11 LPTIM register mapp.1887Table 369. LPTIM register map and reset valuesp.1887
44 System window watchdog (WWDG)p.188819
44.1 Introductionp.188844.2 WWDG main featuresp.188844.3 WWDG functional descriptionp.188844.3.1 WWDG block diagramp.1889Figure 533. Watchdog block diagramp.188944.3.2 WWDG internal signalsp.1889Table 370. WWDG internal input/output signalsp.188944.3.3 Enabling the watchdogp.188944.3.4 Controlling the down-counterp.188944.3.5 How to program the watchdog timeoutp.1890Figure 534. Window watchdog timing diagramp.189044.3.6 Debug modep.189144.4 WWDG interruptsp.189144.5 WWDG registersp.189144.5.1 WWDG control register (WWDG_CR)p.189244.5.2 WWDG configuration register (WWDG_CFR)p.189244.5.3 WWDG status register (WWDG_SR)p.189344.5.4 WWDG register mapp.1893Table 371. WWDG register map and reset valuesp.1893
45 Independent watchdog (IWDG)p.189420
45.1 Introductionp.189445.2 IWDG main featuresp.189445.3 IWDG functional descriptionp.189445.3.1 IWDG block diagramp.1894Figure 535. Independent watchdog block diagramp.189545.3.2 IWDG internal signalsp.1895Table 372. IWDG internal input/output signalsp.189545.3.3 Window optionp.189545.3.4 Hardware watchdogp.189645.3.5 Low-power freezep.189645.3.6 Register access protectionp.189645.3.7 Debug modep.189745.4 IWDG registersp.189845.4.1 IWDG key register (IWDG_KR)p.189845.4.2 IWDG prescaler register (IWDG_PR)p.189945.4.3 IWDG reload register (IWDG_RLR)p.190045.4.4 IWDG status register (IWDG_SR)p.190145.4.5 IWDG window register (IWDG_WINR)p.190245.4.6 IWDG register mapp.1903Table 373. IWDG register map and reset valuesp.1903
46 Real-time clock (RTC)p.190454
46.1 Introductionp.190446.2 RTC main featuresp.190546.3 RTC functional descriptionp.190546.3.1 RTC block diagramp.1905Figure 536. RTC block overviewp.1905Figure 537. Detailed RTC block diagramp.1906Figure 538. Tamper detectionp.190746.3.2 RTC pins and internal signalsp.1908Table 374. RTC pins and internal signalsp.190846.3.3 GPIOs controlled by the RTCp.1908Table 375. RTC pin PC13 configurationp.1908Table 376. RTC_OUT mappingp.1909Table 377. RTC functions over modesp.191046.3.4 Clock and prescalersp.191046.3.5 Real-time clock and calendarp.191146.3.6 Programmable alarmsp.191146.3.7 Periodic auto-wake-upp.191146.3.8 RTC initialization and configurationp.191246.3.9 Reading the calendarp.191446.3.10 Resetting the RTCp.191546.3.11 RTC synchronizationp.191546.3.12 RTC reference clock detectionp.191646.3.13 RTC smooth digital calibrationp.191646.3.14 Time-stamp functionp.191846.3.15 Tamper detectionp.191946.3.16 Calibration clock outputp.192146.3.17 Alarm outputp.192246.4 RTC low-power modesp.1922Table 378. Effect of low-power modes on RTCp.192246.5 RTC interruptsp.1922Table 379. Interrupt control bitsp.192346.6 RTC registersp.192346.6.1 RTC time register (RTC_TR)p.192346.6.2 RTC date register (RTC_DR)p.192446.6.3 RTC control register (RTC_CR)p.192646.6.4 RTC initialization and status register (RTC_ISR)p.192946.6.5 RTC prescaler register (RTC_PRER)p.193246.6.6 RTC wake-up timer register (RTC_WUTR)p.193346.6.7 RTC alarm A register (RTC_ALRMAR)p.193446.6.8 RTC alarm B register (RTC_ALRMBR)p.193546.6.9 RTC write protection register (RTC_WPR)p.193646.6.10 RTC sub second register (RTC_SSR)p.193646.6.11 RTC shift control register (RTC_SHIFTR)p.193746.6.12 RTC timestamp time register (RTC_TSTR)p.193846.6.13 RTC timestamp date register (RTC_TSDR)p.193946.6.14 RTC time-stamp sub second register (RTC_TSSSR)p.194046.6.15 RTC calibration register (RTC_CALR)p.194146.6.16 RTC tamper configuration register (RTC_TAMPCR)p.194246.6.17 RTC alarm A sub second register (RTC_ALRMASSR)p.194546.6.18 RTC alarm B sub second register (RTC_ALRMBSSR)p.194646.6.19 RTC option register (RTC_OR)p.194746.6.20 RTC backup registers (RTC_BKPxR)p.194746.6.21 RTC register mapp.1948Table 380. RTC register map and reset valuesp.1948
47 Inter-integrated circuit (I2C) interfacep.195086
47.1 Introductionp.195047.2 I2C main featuresp.195047.3 I2C implementationp.1951Table 381. STM32H742, STM32H743/753 and STM32H750 I2C implementationp.195147.4 I2C functional descriptionp.195147.4.1 I2C block diagramp.1952Figure 539. I2C block diagramp.195247.4.2 I2C pins and internal signalsp.1953Table 382. I2C input/output pinsp.1953Table 383. I2C internal input/output signalsp.195347.4.3 I2C clock requirementsp.195347.4.4 Mode selectionp.1953Figure 540. I2C bus protocolp.195447.4.5 I2C initializationp.1954Table 384. Comparison of analog vs. digital filtersp.1955Figure 541. Setup and hold timingsp.1956Table 385. I2C-SMBus specification data setup and hold timesp.1957Figure 542. I2C initialization flowp.195947.4.6 Software resetp.195947.4.7 Data transferp.1960Figure 543. Data receptionp.1960Figure 544. Data transmissionp.1961Table 386. I2C configurationp.196247.4.8 I2C slave modep.1962Figure 545. Slave initialization flowp.1964Figure 546. Transfer sequence flow for I2C slave transmitter, NOSTRETCH = 0p.1966Figure 547. Transfer sequence flow for I2C slave transmitter, NOSTRETCH = 1p.1967Figure 548. Transfer bus diagrams for I2C slave transmitter (mandatory events only)p.1968Figure 549. Transfer sequence flow for slave receiver with NOSTRETCH = 0p.1969Figure 550. Transfer sequence flow for slave receiver with NOSTRETCH = 1p.1970Figure 551. Transfer bus diagrams for I2C slave receiver (mandatory events only)p.197047.4.9 I2C master modep.1971Figure 552. Master clock generationp.1972Table 387. I2C-SMBus specification clock timingsp.1973Figure 553. Master initialization flowp.1974Figure 554. 10-bit address read access with HEAD10R = 0p.1974Figure 555. 10-bit address read access with HEAD10R = 1p.1975Figure 556. Transfer sequence flow for I2C master transmitter for N ≤ 255 bytesp.1976Figure 557. Transfer sequence flow for I2C master transmitter for N > 255 bytesp.1977Figure 558. Transfer bus diagrams for I2C master transmitter (mandatory events only)p.1978Figure 559. Transfer sequence flow for I2C master receiver for N ≤ 255 bytesp.1980Figure 560. Transfer sequence flow for I2C master receiver for N > 255 bytesp.1981Figure 561. Transfer bus diagrams for I2C master receiver (mandatory events only)p.198247.4.10 I2C_TIMINGR register configuration examplesp.1982Table 388. Examples of timing settings for fI2CCLK = 8 MHzp.1983Table 389. Examples of timing settings for fI2CCLK = 16 MHzp.1983Table 390. Examples of timing settings for fI2CCLK = 48 MHzp.198447.4.11 SMBus specific featuresp.1984Table 391. SMBus timeout specificationsp.1986Figure 562. Timeout intervals for tLOW:SEXT, tLOW:MEXT.p.198647.4.12 SMBus initializationp.1987Table 392. SMBus with PEC configurationp.198747.4.13 SMBus: I2C_TIMEOUTR register configuration examplesp.1989Table 393. Examples of TIMEOUTA settings (max tTIMEOUT = 25 ms)p.1989Table 394. Examples of TIMEOUTB settingsp.1989Table 395. Examples of TIMEOUTA settings (max tIDLE = 50 µs)p.198947.4.14 SMBus slave modep.1989Figure 563. Transfer sequence flow for SMBus slave transmitter N bytes + PECp.1990Figure 564. Transfer bus diagrams for SMBus slave transmitter (SBC = 1)p.1990Figure 565. Transfer sequence flow for SMBus slave receiver N bytes + PECp.1992Figure 566. Bus transfer diagrams for SMBus slave receiver (SBC = 1)p.1993Figure 567. Bus transfer diagrams for SMBus master transmitterp.1994Figure 568. Bus transfer diagrams for SMBus master receiverp.199647.4.15 Wake-up from Stop mode on address matchp.199647.4.16 Error conditionsp.199747.4.17 DMA requestsp.199947.4.18 Debug modep.199947.5 I2C low-power modesp.2000Table 396. Effect of low-power modes on the I2Cp.200047.6 I2C interruptsp.2001Table 397. I2C Interrupt requestsp.2001Figure 569. I2C interrupt mapping diagramp.200247.7 I2C registersp.200347.7.1 I2C control register 1 (I2C_CR1)p.200347.7.2 I2C control register 2 (I2C_CR2)p.200647.7.3 I2C own address 1 register (I2C_OAR1)p.200847.7.4 I2C own address 2 register (I2C_OAR2)p.200847.7.5 I2C timing register (I2C_TIMINGR)p.200947.7.6 I2C timeout register (I2C_TIMEOUTR)p.201047.7.7 I2C interrupt and status register (I2C_ISR)p.201147.7.8 I2C interrupt clear register (I2C_ICR)p.201447.7.9 I2C PEC register (I2C_PECR)p.201547.7.10 I2C receive data register (I2C_RXDR)p.201547.7.11 I2C transmit data register (I2C_TXDR)p.201647.7.12 I2C register mapp.2016Table 398. I2C register map and reset valuesp.2016
48 Universal synchronous/asynchronous receiver transmitter (USART/UART)p.201879
48.1 USART introductionp.201848.2 USART main featuresp.201948.3 USART extended featuresp.202048.4 USART implementationp.2020Table 399. USART / LPUART featuresp.202048.5 USART functional descriptionp.202148.5.1 USART block diagramp.2021Figure 570. USART block diagramp.202148.5.2 USART signalsp.202248.5.3 USART character descriptionp.2023Figure 571. Word length programmingp.202448.5.4 USART FIFOs and thresholdsp.202548.5.5 USART transmitterp.2025Figure 572. Configurable stop bitsp.2026Figure 573. TC/TXE behavior when transmittingp.202948.5.6 USART receiverp.2029Figure 574. Start bit detection when oversampling by 16 or 8p.2030Figure 575. usart_ker_ck clock divider block diagramp.2033Figure 576. Data sampling when oversampling by 16p.2034Figure 577. Data sampling when oversampling by 8p.2035Table 400. Noise detection from sampled datap.203548.5.7 USART baud rate generationp.203648.5.8 Tolerance of the USART receiver to clock deviationp.2037Table 401. Tolerance of the USART receiver when BRR [3:0] = 0000p.2038Table 402. Tolerance of the USART receiver when BRR[3:0] is different from 0000p.203948.5.9 USART auto baud rate detectionp.203948.5.10 USART multiprocessor communicationp.2041Figure 578. Mute mode using Idle line detectionp.2042Figure 579. Mute mode using address mark detectionp.204348.5.11 USART Modbus communicationp.204348.5.12 USART parity controlp.2044Table 403. USART frame formatsp.204448.5.13 USART LIN (local interconnection network) modep.2045Figure 580. Break detection in LIN mode (11-bit break length - LBDL bit is set)p.2046Figure 581. Break detection in LIN mode vs. Framing error detectionp.204748.5.14 USART synchronous modep.2047Figure 582. USART example of synchronous master transmissionp.2048Figure 583. USART data clock timing diagram in synchronous master mode (M bits = 00)p.2048Figure 584. USART data clock timing diagram in synchronous master mode (M bits = 01)p.2049Figure 585. USART data clock timing diagram in synchronous slave mode (M bits = 00)p.205048.5.15 USART single-wire Half-duplex communicationp.205148.5.16 USART receiver timeoutp.205148.5.17 USART Smartcard modep.2052Figure 586. ISO 7816-3 asynchronous protocolp.2052Figure 587. Parity error detection using the 1.5 stop bitsp.205448.5.18 USART IrDA SIR ENDEC blockp.2056Figure 588. IrDA SIR ENDEC block diagramp.2058Figure 589. IrDA data modulation (3/16) - Normal modep.205848.5.19 Continuous communication using USART and DMAp.2059Figure 590. Transmission using DMAp.2060Figure 591. Reception using DMAp.206148.5.20 RS232 Hardware flow control and RS485 Driver Enablep.2061Figure 592. Hardware flow control between 2 USARTsp.2061Figure 593. RS232 RTS flow controlp.2062Figure 594. RS232 CTS flow controlp.206348.5.21 USART low-power managementp.2064Figure 595. Wake-up event verified (wake-up event = address match, FIFO disabled)p.2066Figure 596. Wake-up event not verified (wake-up event = address match, FIFO disabled)p.206648.6 USART in low-power modesp.2067Table 404. Effect of low-power modes on the USARTp.206748.7 USART interruptsp.2068Table 405. USART interrupt requestsp.206848.8 USART registersp.206948.8.1 USART control register 1 (USART_CR1)p.206948.8.2 USART control register 1 [alternate] (USART_CR1)p.207348.8.3 USART control register 2 (USART_CR2)p.207648.8.4 USART control register 3 (USART_CR3)p.208048.8.5 USART baud rate register (USART_BRR)p.208548.8.6 USART guard time and prescaler register (USART_GTPR)p.208548.8.7 USART receiver timeout register (USART_RTOR)p.208648.8.8 USART request register (USART_RQR)p.208748.8.9 USART interrupt and status register (USART_ISR)p.208848.8.10 USART interrupt and status register [alternate] (USART_ISR)p.209448.8.11 USART interrupt flag clear register (USART_ICR)p.209948.8.12 USART receive data register (USART_RDR)p.210148.8.13 USART transmit data register (USART_TDR)p.210148.8.14 USART prescaler register (USART_PRESC)p.210248.8.15 USART register mapp.2103Table 406. USART register map and reset valuesp.2103
49 Low-power universal asynchronous receiver transmitter (LPUART)p.210555
49.1 LPUART introductionp.210549.2 LPUART main featuresp.210649.3 LPUART implementationp.2107Table 407. USART / LPUART featuresp.210749.4 LPUART functional descriptionp.210849.4.1 LPUART block diagramp.2108Figure 597. LPUART block diagramp.210849.4.2 LPUART signalsp.210949.4.3 LPUART character descriptionp.2109Figure 598. LPUART word length programmingp.211049.4.4 LPUART FIFOs and thresholdsp.211049.4.5 LPUART transmitterp.2111Figure 599. Configurable stop bitsp.2112Figure 600. TC/TXE behavior when transmittingp.211449.4.6 LPUART receiverp.2114Figure 601. lpuart_ker_ck clock divider block diagramp.211749.4.7 LPUART baud rate generationp.2118Table 408. Error calculation for programmed baud rates at lpuart_ker_ck_pres = 32.768 kHzp.2118Table 409. Error calculation for programmed baud rates at fCK = 100 MHzp.211949.4.8 Tolerance of the LPUART receiver to clock deviationp.2119Table 410. Tolerance of the LPUART receiverp.212049.4.9 LPUART multiprocessor communicationp.2120Figure 602. Mute mode using Idle line detectionp.2121Figure 603. Mute mode using address mark detectionp.212249.4.10 LPUART parity controlp.212249.4.11 LPUART single-wire Half-duplex communicationp.212349.4.12 Continuous communication using DMA and LPUARTp.2123Figure 604. Transmission using DMAp.2124Figure 605. Reception using DMAp.212549.4.13 RS232 Hardware flow control and RS485 Driver Enablep.2126Figure 606. Hardware flow control between 2 LPUARTsp.2126Figure 607. RS232 RTS flow controlp.2126Figure 608. RS232 CTS flow controlp.212749.4.14 LPUART low-power managementp.2128Figure 609. Wake-up event verified (wake-up event = address match, FIFO disabled)p.2130Figure 610. Wake-up event not verified (wake-up event = address match, FIFO disabled)p.213049.5 LPUART in low-power modesp.2131Table 412. Effect of low-power modes on the LPUARTp.213149.6 LPUART interruptsp.2132Table 413. LPUART interrupt requestsp.213249.7 LPUART registersp.213349.7.1 LPUART control register 1 (LPUART_CR1)p.213349.7.2 LPUART control register 1 [alternate] (LPUART_CR1)p.213649.7.3 LPUART control register 2 (LPUART_CR2)p.213949.7.4 LPUART control register 3 (LPUART_CR3)p.214149.7.5 LPUART baud rate register (LPUART_BRR)p.214449.7.6 LPUART request register (LPUART_RQR)p.214549.7.7 LPUART interrupt and status register (LPUART_ISR)p.214549.7.8 LPUART interrupt and status register [alternate] (LPUART_ISR)p.215049.7.9 LPUART interrupt flag clear register (LPUART_ICR)p.215349.7.10 LPUART receive data register (LPUART_RDR)p.215449.7.11 LPUART transmit data register (LPUART_TDR)p.215449.7.12 LPUART prescaler register (LPUART_PRESC)p.215549.7.13 LPUART register mapp.2156Table 414. LPUART register map and reset valuesp.2156
50 Serial peripheral interface (SPI)p.2158102
50.1 Introductionp.215850.2 SPI main featuresp.215850.3 SPI implementationp.2159Table 415. STM32H742xx, STM32H743/53xx and STM32H750xB SPI featuresp.215950.4 SPI functional descriptionp.215950.4.1 SPI block diagramp.2159Figure 611. SPI2S block diagramp.216050.4.2 SPI signalsp.216150.4.3 SPI communication general aspectsp.216150.4.4 Communications between one master and one slavep.2161Figure 612. Full-duplex single master/ single slave applicationp.2162Figure 613. Half-duplex single master/ single slave applicationp.2162Figure 614. Simplex single master/single slave application (master in transmit-only/ slave in receive-only mode)p.216350.4.5 Standard multislave communicationp.2164Figure 615. Master and three independent slaves at star topologyp.2164Figure 616. Master and three slaves at circular (daisy chain) topologyp.216650.4.6 Multimaster communicationp.2167Figure 617. Multimaster applicationp.216750.4.7 Slave select (SS) pin managementp.2167Figure 618. Scheme of SS control logicp.2169Figure 619. Data flow timing control (SSOE=1, SSOM=0, SSM=0)p.2169Figure 620. SS interleaving pulses between data (SSOE=1, SSOM=1,SSM=0)p.217050.4.8 Communication formatsp.2171Figure 621. Data clock timing diagramp.2172Figure 622. Data alignment when data size is not equal to 8-bit, 16-bit or 32-bitp.217350.4.9 Configuration of SPIp.217350.4.10 Procedure for enabling SPIp.217450.4.11 SPI data transmission and reception proceduresp.217450.4.12 Procedure for disabling the SPIp.217950.4.13 Data packingp.2180Figure 623. Packing data in FIFO for transmission and receptionp.218150.4.14 Communication using DMA (direct memory addressing)p.218150.5 SPI specific modes and controlp.218350.5.1 TI modep.2183Figure 624. TI mode transferp.218350.5.2 SPI error flagsp.2183Figure 625. Optional configurations of slave’s behavior at detection of underrun conditionp.218550.5.3 CRC computationp.218750.6 Low-power mode managementp.2188Figure 626. Low-power mode application examplep.218950.7 SPI wakeup and interruptsp.2191Table 416. SPI wakeup and interrupt requestsp.219150.8 I2S main featuresp.219250.9 I2S functional descriptionp.219350.9.1 I2S general descriptionp.219350.9.2 Pin sharing with SPI functionp.219350.9.3 Bitfields usable in I2S/PCM modep.2194Table 417. Bitfields usable in PCM/I2S modep.219450.9.4 Slave and master modesp.219550.9.5 Supported audio protocolsp.2195Figure 627. Waveform examplesp.2196Figure 628. Master I2S Philips protocol waveforms (16/32-bit full accuracy)p.2197Figure 629. I2S Philips standard waveformsp.2197Figure 630. Master MSB Justified 16-bit or 32-bit full-accuracy lengthp.2198Figure 631. Master MSB justified 16 or 24-bit data lengthp.2198Figure 632. Slave MSB justifiedp.2199Figure 633. LSB justified 16 or 24-bit data lengthp.2199Figure 634. Master PCM when the frame length is equal the data lengthp.2200Figure 635. Master PCM standard waveforms (16 or 24-bit data length)p.2200Figure 636. Slave PCM waveformsp.220150.9.6 Additional Serial Interface Flexibilityp.2201Table 418. WS and CK level before SPI/I2S is enabled when AFCNTR = 1p.2202Table 419. Serial data line swappingp.220250.9.7 Startup sequencep.2203Figure 637. Startup sequence, I2S Philips standard, masterp.2204Figure 638. Startup sequence, I2S Philips standard, slavep.220450.9.8 Stop sequencep.2205Figure 639. Stop sequence, I2S Philips standard, masterp.220550.9.9 Clock generatorp.2205Figure 640. I2S clock generator architecturep.2206Table 420. CLKGEN programming examples for usual I2S frequenciesp.220750.9.10 Internal FIFOsp.2208Figure 641. Data Formatp.220850.9.11 FIFOs status flagsp.220950.9.12 Handling of underrun situationp.2209Figure 642. Handling of underrun situationp.221050.9.13 Handling of overrun situationp.2210Figure 643. Handling of overrun situationp.221150.9.14 Frame error detectionp.2211Figure 644. Frame error detection, with FIXCH=0p.2212Figure 645. Frame error detection, with FIXCH=1p.221250.9.15 DMA Interfacep.221250.9.16 Programing examplesp.221450.10 I2S wakeup and interruptsp.2216Table 421. I2S interrupt requestsp.221650.11 SPI/I2S registersp.221750.11.1 SPI/I2S control register 1 (SPI_CR1)p.221750.11.2 SPI control register 2 (SPI_CR2)p.221950.11.3 SPI configuration register 1 (SPI_CFG1)p.221950.11.4 SPI configuration register 2 (SPI_CFG2)p.222250.11.5 SPI/I2S interrupt enable register (SPI_IER)p.222450.11.6 SPI/I2S status register (SPI_SR)p.222550.11.7 SPI/I2S interrupt/status flags clear register (SPI_IFCR)p.222850.11.8 SPI/I2S transmit data register (SPI_TXDR)p.222950.11.9 SPI/I2S receive data register (SPI_RXDR)p.222950.11.10 SPI polynomial register (SPI_CRCPOLY)p.223050.11.11 SPI transmitter CRC register (SPI_TXCRC)p.223050.11.12 SPI receiver CRC register (SPI_RXCRC)p.223150.11.13 SPI underrun data register (SPI_UDRDR)p.223250.11.14 SPI/I2S configuration register (SPI_I2SCFGR)p.223250.12 SPI register map and reset valuesp.2235Table 422. SPI register map and reset valuesp.2235
51 Serial audio interface (SAI)p.223776
51.1 Introductionp.223751.2 SAI main featuresp.223751.3 SAI implementationp.2238Table 423. STM32H743/753/745/755/747/757 SAI featuresp.223851.4 SAI functional descriptionp.223851.4.1 SAI block diagramp.2238Figure 646. SAI functional block diagramp.223951.4.2 SAI pins and internal signalsp.2240Table 424. SAI internal input/output signalsp.2240Table 425. SAI input/output pinsp.224051.4.3 Main SAI modesp.224051.4.4 SAI synchronization modep.2241Table 426. External synchronization selectionp.224251.4.5 Audio data sizep.224251.4.6 Frame synchronizationp.2243Figure 647. Audio framep.2243Figure 648. FS role is start of frame + channel side identification (FSDEF = TRIS = 1)p.2245Figure 649. FS role is start of frame (FSDEF = 0)p.224651.4.7 Slot configurationp.2246Figure 650. Slot size configuration with FBOFF = 0 in SAI_xSLOTRp.2247Figure 651. First bit offsetp.224751.4.8 SAI clock generatorp.2248Figure 652. Audio block clock generator overviewp.2248Table 427. Clock generator programming examplesp.225051.4.9 Internal FIFOsp.225051.4.10 PDM interfacep.2252Figure 653. PDM typical connection and timingp.2252Figure 654. Detailed PDM interface block diagramp.2253Figure 655. Start-up sequencep.2254Figure 656. SAI_ADR format in TDM, 32-bit slot widthp.2255Figure 657. SAI_ADR format in TDM, 16-bit slot widthp.2256Figure 658. SAI_ADR format in TDM, 8-bit slot widthp.2257Table 428. TDM settingsp.2257Table 429. TDM frame configuration examplesp.225951.4.11 AC’97 link controllerp.2260Figure 659. AC’97 audio framep.2260Figure 660. Example of typical AC’97 configuration on devices featuring at least 2 embedded SAIs (three external AC’97 decoders)p.226151.4.12 SPDIF outputp.2262Figure 661. SPDIF formatp.2262Table 430. SOPD patternp.2263Figure 662. SAI_xDR register orderingp.2263Table 431. Parity bit calculationp.2263Table 432. Audio sampling frequency versus symbol ratesp.226451.4.13 Specific featuresp.2265Figure 663. Data companding hardware in an audio block in the SAIp.2267Figure 664. Tristate strategy on SD output line on an inactive slotp.2268Figure 665. Tristate on output data line in a protocol like I2Sp.226951.4.14 Error flagsp.2269Figure 666. Overrun detection errorp.2270Figure 667. FIFO underrun eventp.227051.4.15 Disabling the SAIp.227251.4.16 SAI DMA interfacep.227251.5 SAI interruptsp.2273Table 433. SAI interrupt sourcesp.227351.6 SAI registersp.227451.6.1 SAI global configuration register (SAI_GCR)p.227451.6.2 SAI configuration register 1 (SAI_ACR1)p.227551.6.3 SAI configuration register 1 (SAI_BCR1)p.227751.6.4 SAI configuration register 2 (SAI_ACR2)p.228051.6.5 SAI configuration register 2 (SAI_BCR2)p.228251.6.6 SAI frame configuration register (SAI_AFRCR)p.228451.6.7 SAI frame configuration register (SAI_BFRCR)p.228651.6.8 SAI slot register (SAI_ASLOTR)p.228751.6.9 SAI slot register (SAI_BSLOTR)p.228851.6.10 SAI interrupt mask register (SAI_AIM)p.228951.6.11 SAI interrupt mask register (SAI_BIM)p.229151.6.12 SAI status register (SAI_ASR)p.229251.6.13 SAI status register (SAI_BSR)p.229451.6.14 SAI clear flag register (SAI_ACLRFR)p.229651.6.15 SAI clear flag register (SAI_BCLRFR)p.229751.6.16 SAI data register (SAI_ADR)p.229851.6.17 SAI data register (SAI_BDR)p.229951.6.18 SAI PDM control register (SAI_PDMCR)p.229951.6.19 SAI PDM delay register (SAI_PDMDLY)p.230151.6.20 SAI register mapp.2303Table 434. SAI register map and reset valuesp.2303
52 SPDIF receiver interface (SPDIFRX)p.230553
52.1 SPDIFRX interface introductionp.230552.2 SPDIFRX main featuresp.230552.3 SPDIFRX functional descriptionp.2305Figure 668. SPDIFRX block diagramp.230652.3.1 SPDIFRX pins and internal signalsp.2306Table 435. SPDIFRX internal input/output signalsp.2306Table 436. SPDIFRX pinsp.230652.3.2 S/PDIF protocol (IEC-60958)p.2307Figure 669. S/PDIF sub-frame formatp.2307Figure 670. S/PDIF block formatp.2307Figure 671. S/PDIF Preamblesp.2308Figure 672. Channel coding examplep.230952.3.3 SPDIFRX decoder (SPDIFRX_DC)p.2309Figure 673. SPDIFRX decoderp.2310Figure 674. Noise filtering and edge detectionp.2310Figure 675. Thresholdsp.2312Table 437. Transition sequence for preamblep.231252.3.4 SPDIFRX tolerance to clock deviationp.231352.3.5 SPDIFRX synchronizationp.2313Figure 676. Synchronization flowchartp.2314Figure 677. Synchronization process schedulingp.231552.3.6 SPDIFRX handlingp.2315Figure 678. SPDIFRX Statesp.231652.3.7 Data reception managementp.2317Figure 679. SPDIFRX_FMTx_DR register formatp.231852.3.8 Dedicated control flowp.2319Figure 680. Channel/user data formatp.231952.3.9 Reception errorsp.2320Figure 681. S/PDIF overrun error when RXSTEO = 0p.2321Figure 682. S/PDIF overrun error when RXSTEO = 1p.232252.3.10 Clocking strategyp.2322Table 438. Minimum spdifrx_ker_ck frequency versus audio sampling ratep.232252.3.11 DMA interfacep.232252.3.12 Interrupt generationp.2323Figure 683. SPDIFRX interface interrupt mapping diagramp.232352.3.13 Register protectionp.2324Table 439. Bit field property versus SPDIFRX statep.232452.4 Programming proceduresp.232552.4.1 Initialization phasep.232552.4.2 Handling of interrupts coming from SPDIFRXp.232652.4.3 Handling of interrupts coming from DMAp.232652.5 SPDIFRX interface registersp.232752.5.1 SPDIFRX control register (SPDIFRX_CR)p.232752.5.2 SPDIFRX interrupt mask register (SPDIFRX_IMR)p.232952.5.3 SPDIFRX status register (SPDIFRX_SR)p.233052.5.4 SPDIFRX interrupt flag clear register (SPDIFRX_IFCR)p.233252.5.5 SPDIFRX data input register (SPDIFRX_FMT0_DR)p.233352.5.6 SPDIFRX data input register (SPDIFRX_FMT1_DR)p.233352.5.7 SPDIFRX data input register (SPDIFRX_FMT2_DR)p.233452.5.8 SPDIFRX channel status register (SPDIFRX_CSR)p.233552.5.9 SPDIFRX debug information register (SPDIFRX_DIR)p.233552.5.10 SPDIFRX interface register mapp.2336Table 440. SPDIFRX interface register map and reset valuesp.2336
53 Single wire protocol master interface (SWPMI)p.233745
53.1 Introductionp.2337Figure 684. S1 signal codingp.2337Figure 685. S2 signal codingp.233753.2 SWPMI main featuresp.233853.3 SWPMI functional descriptionp.233953.3.1 SWPMI block diagramp.2339Figure 686. SWPMI block diagramp.233953.3.2 SWPMI pins and internal signalsp.2339Table 441. SWPMI input/output signals connected to package pins or ballsp.2339Table 442. SWPMI internal input/output signalsp.234053.3.3 SWP initialization and activationp.234053.3.4 SWP bus statesp.2341Figure 687. SWP bus statesp.234253.3.5 SWPMI_IO (internal transceiver) bypassp.234253.3.6 SWPMI bit ratep.234253.3.7 SWPMI frame handlingp.2343Figure 688. SWP frame structurep.234353.3.8 Transmission procedurep.2343Figure 689. SWPMI No software buffer mode transmissionp.2344Figure 690. SWPMI No software buffer mode transmission, consecutive framesp.2345Figure 691. SWPMI Multi software buffer mode transmissionp.234753.3.9 Reception procedurep.2348Figure 692. SWPMI No software buffer mode receptionp.2349Figure 693. SWPMI single software buffer mode receptionp.2350Figure 694. SWPMI Multi software buffer mode receptionp.235253.3.10 Error managementp.2352Figure 695. SWPMI single buffer mode reception with CRC errorp.235353.3.11 Loopback modep.235453.4 SWPMI low-power modesp.2354Table 443. Effect of low-power modes on SWPMIp.235453.5 SWPMI interruptsp.2355Table 444. Interrupt control bitsp.235553.6 SWPMI registersp.235653.6.1 SWPMI configuration/control register (SWPMI_CR)p.2356Table 445. Buffer modes selection for transmission/receptionp.235753.6.2 SWPMI Bitrate register (SWPMI_BRR)p.235753.6.3 SWPMI Interrupt and Status register (SWPMI_ISR)p.235853.6.4 SWPMI Interrupt Flag Clear register (SWPMI_ICR)p.235953.6.5 SWPMI Interrupt Enable register (SMPMI_IER)p.236053.6.6 SWPMI Receive Frame Length register (SWPMI_RFL)p.236253.6.7 SWPMI Transmit data register (SWPMI_TDR)p.236253.6.8 SWPMI Receive data register (SWPMI_RDR)p.236253.6.9 SWPMI Option register (SWPMI_OR)p.236353.6.10 SWPMI register map and reset value tablep.2364Table 446. SWPMI register map and reset valuesp.2364
54 Management data input/output (MDIOS)p.236531
54.1 MDIOS introductionp.236554.2 MDIOS main featuresp.236554.3 MDIOS functional descriptionp.236654.3.1 MDIOS block diagramp.2366Figure 696. MDIOS block diagramp.236654.3.2 MDIOS pins and internal signalsp.2366Table 447. MDIOS input/output signals connected to package pins or ballsp.2366Table 448. MDIOS internal input/output signalsp.236654.3.3 MDIOS protocolp.2366Figure 697. MDIO protocol write frame waveformp.2367Figure 698. MDIO protocol read frame waveformp.236754.3.4 MDIOS enabling and disablingp.236754.3.5 MDIOS datap.236854.3.6 MDIOS APB frequencyp.236954.3.7 Write/read flags and interruptsp.236954.3.8 MDIOS error managementp.237054.3.9 MDIOS in Stop modep.237154.3.10 MDIOS interruptsp.2371Table 449. Interrupt control bitsp.237154.4 MDIOS registersp.237154.4.1 MDIOS configuration register (MDIOS_CR)p.237154.4.2 MDIOS write flag register (MDIOS_WRFR)p.237254.4.3 MDIOS clear write flag register (MDIOS_CWRFR)p.237354.4.4 MDIOS read flag register (MDIOS_RDFR)p.237354.4.5 MDIOS clear read flag register (MDIOS_CRDFR)p.237454.4.6 MDIOS status register (MDIOS_SR)p.237454.4.7 MDIOS clear flag register (MDIOS_CLRFR)p.237554.4.8 MDIOS input data register x (MDIOS_DINRx)p.237554.4.9 MDIOS output data register x (MDIOS_DOUTRx)p.237654.4.10 MDIOS register mapp.2376Table 450. MDIOS register map and reset valuesp.2376
55 Secure digital input/output MultiMediaCard interface (SDMMC)p.2378105
55.1 SDMMC main featuresp.237855.2 SDMMC implementationp.2378Table 451. SDMMC featuresp.237855.3 SDMMC bus topologyp.2379Figure 699. SDMMC “no response” and “no data” operationsp.2379Figure 700. SDMMC (multiple) block read operationp.2379Figure 701. SDMMC (multiple) block write operationp.2380Figure 702. SDMMC (sequential) stream read operationp.2380Figure 703. SDMMC (sequential) stream write operationp.238055.4 SDMMC operation modesp.2381Table 452. SDMMC operation modes SD and SDIOp.2381Table 453. SDMMC operation modes e•MMCp.238155.5 SDMMC functional descriptionp.238255.5.1 SDMMC block diagramp.2382Figure 704. SDMMC block diagramp.238255.5.2 SDMMC pins and internal signalsp.2382Table 454. SDMMC internal input/output signalsp.2382Table 455. SDMMC pinsp.238355.5.3 General descriptionp.2383Figure 705. SDMMC Command and data phase relationp.2384Table 456. SDMMC Command and data phase selectionp.238455.5.4 SDMMC adapterp.2385Figure 706. Control unitp.2386Figure 707. Command/response pathp.2387Figure 708. Command path state machine (CPSM)p.2388Table 457. Command token formatp.2390Table 458. Short response with CRC token formatp.2391Table 459. Short response without CRC token formatp.2391Table 460. Long response with CRC token formatp.2391Table 461. Specific Commands overviewp.2392Table 462. Command path status flagsp.2393Table 463. Command path error handlingp.2393Figure 709. Data pathp.2394Figure 710. DDR mode data packet clockingp.2395Figure 711. DDR mode CRC status / boot acknowledgment clockingp.2395Figure 712. Data path state machine (DPSM)p.2396Table 464. Data token formatp.2401Table 465. Data path status flags and clear bitsp.2401Table 466. Data path error handlingp.2403Table 467. Data FIFO accessp.2404Table 468. Transmit FIFO status flagsp.2405Table 469. Receive FIFO status flagsp.2406Figure 713. CLKMUX unitp.240755.5.5 SDMMC AHB slave interfacep.240755.5.6 SDMMC AHB master interfacep.240755.5.7 MDMA request generationp.2409Table 470. SDMMC connections to MDMAp.241055.5.8 AHB and SDMMC_CK clock relationp.2410Table 471. AHB and SDMMC_CK clock frequency relationp.241055.6 Card functional descriptionp.241155.6.1 SD I/O modep.2411Table 472. SDIO special operation controlp.2411Figure 714. Asynchronous interrupt generationp.2412Figure 715. Synchronous interrupt period data readp.2412Figure 716. Synchronous interrupt period data writep.2413Figure 717. Asynchronous interrupt period data readp.2414Figure 718. Asynchronous interrupt period data writep.2414Table 473. 4-bit mode Start, interrupt, and CRC-status Signaling detectionp.2415Figure 719. Clock stop with SDMMC_CK for DS, HS, SDR12, SDR25p.2417Figure 720. Clock stop with SDMMC_CK for DDR50, SDR50, SDR104p.2417Figure 721. Read Wait with SDMMC_CK < 50 MHzp.2418Figure 722. Read Wait with SDMMC_CK > 50 MHzp.241955.6.2 CMD12 send timingp.2419Table 474. CMD12 use casesp.2419Figure 723. CMD12 stream timingp.242155.6.3 Sleep (CMD5)p.2422Figure 724. CMD5 Sleep Awake procedurep.242355.6.4 Interrupt mode (Wait-IRQ)p.242355.6.5 Boot operationp.2424Figure 725. Normal boot mode operationp.2425Figure 726. Alternative boot mode operationp.242655.6.6 Response R1b handlingp.2427Figure 727. Command response R1b busy signalingp.242755.6.7 Reset and card cycle powerp.2428Figure 728. SDMMC state controlp.2428Figure 729. Card cycle power / power up diagramp.242955.7 Hardware flow controlp.242955.8 Ultra-high-speed phase I (UHS-I) voltage switchp.2430Figure 730. CMD11 signal voltage switch sequencep.2430Figure 731. Voltage switch transceiver typical applicationp.243255.9 SDMMC interruptsp.2433Table 475. SDMMC interruptsp.243355.10 SDMMC registersp.243555.10.1 SDMMC power control register (SDMMC_POWER)p.243555.10.2 SDMMC clock control register (SDMMC_CLKCR)p.243655.10.3 SDMMC argument register (SDMMC_ARGR)p.243855.10.4 SDMMC command register (SDMMC_CMDR)p.243855.10.5 SDMMC command response register (SDMMC_RESPCMDR)p.244055.10.6 SDMMC response x register (SDMMC_RESPxR)p.2441Table 476. Response type and SDMMC_RESPxR registersp.244155.10.7 SDMMC data timer register (SDMMC_DTIMER)p.244155.10.8 SDMMC data length register (SDMMC_DLENR)p.244255.10.9 SDMMC data control register (SDMMC_DCTRL)p.244355.10.10 SDMMC data counter register (SDMMC_DCNTR)p.244455.10.11 SDMMC status register (SDMMC_STAR)p.244555.10.12 SDMMC interrupt clear register (SDMMC_ICR)p.244855.10.13 SDMMC mask register (SDMMC_MASKR)p.245055.10.14 SDMMC acknowledgment timer register (SDMMC_ACKTIMER)p.245355.10.15 SDMMC data FIFO registers x (SDMMC_FIFORx)p.245355.10.16 SDMMC DMA control register (SDMMC_IDMACTRLR)p.245455.10.17 SDMMC IDMA buffer size register (SDMMC_IDMABSIZER)p.245555.10.18 SDMMC IDMA buffer 0 base address register (SDMMC_IDMABASE0R)p.245555.10.19 SDMMC IDMA buffer 1 base address register (SDMMC_IDMABASE1R)p.245655.10.20 SDMMC register mapp.2456Table 477. SDMMC register mapp.2456
56 Controller area network with flexible data rate (FDCAN)p.2459150
56.1 Introductionp.2459Table 478. CAN subsystem I/O signalsp.2459Table 479. CAN subsystem I/O pinsp.2460Figure 732. CAN subsystemp.246156.2 FDCAN main featuresp.246256.3 FDCAN implementationp.2462Table 480. Main featuresp.246256.4 FDCAN functional descriptionp.2463Figure 733. FDCAN block diagramp.246356.4.1 Operating modesp.2464Table 481. DLC coding in FDCANp.2467Figure 734. Transceiver delay measurementp.2468Figure 735. Pin control in bus monitoring modep.2470Figure 736. Pin control in loop back modep.247256.4.2 Message RAMp.2473Figure 737. Message RAM configurationp.2473Figure 738. Standard message ID filter pathp.2476Figure 739. Extended message ID filter pathp.2477Table 482. Example of filter configuration for Rx buffersp.2479Table 483. Example of filter configuration for Debug messagesp.2480Table 484. Possible configurations for frame transmissionp.2480Table 485. Tx buffer/FIFO - queue element sizep.2481Figure 740. Example of mixed configuration dedicated Tx buffers / Tx FIFOp.2483Figure 741. Example of mixed configuration dedicated Tx buffers / Tx queuep.248356.4.3 FIFO acknowledge handlingp.248456.4.4 Bit timingp.2485Figure 742. Bit timingp.248556.4.5 Clock calibration on CANp.2486Figure 743. Bypass operationp.2487Figure 744. FSM calibrationp.248856.4.6 Applicationp.249056.4.7 TTCAN operations (FDCAN1 only)p.2491Table 486. First byte of level 1 reference messagep.2491Table 487. First four bytes of level 2 reference messagep.2492Table 488. First four bytes of level 0 reference messagep.249256.4.8 TTCAN configurationp.2492Table 489. TUR configuration examplep.249356.4.9 Message schedulingp.2494Table 490. System matrix, Node Ap.2498Table 491. Trigger list, Node Ap.249956.4.10 TTCAN gap controlp.250156.4.11 Stop watchp.250256.4.12 Local time, cycle time, global time, and external clock synchronizationp.2502Figure 745. Cycle time and global time synchronizationp.2503Figure 746. TTCAN level 0 and level 2 drift compensationp.250456.4.13 TTCAN error levelp.250556.4.14 TTCAN message handlingp.2506Table 492. Number of data bytes transmitted with a reference messagep.250656.4.15 TTCAN interrupt and error handlingp.250956.4.16 Level 0p.2510Figure 747. Level 0 schedule synchronization state machinep.2511Figure 748. Level 0 master to slave relationp.251256.4.17 Synchronization to external time schedulep.251256.4.18 FDCAN Rx buffer and FIFO elementp.2513Table 493. Rx buffer and FIFO elementp.2513Table 494. Rx buffer and FIFO element descriptionp.251356.4.19 FDCAN Tx buffer elementp.2515Table 495. Tx buffer and FIFO elementp.2515Table 496. Tx buffer element descriptionp.251556.4.20 FDCAN Tx event FIFO elementp.2517Table 497. Tx Event FIFO elementp.2517Table 498. Tx Event FIFO element descriptionp.251756.4.21 FDCAN standard message ID filter elementp.2518Table 499. Standard message ID filter elementp.2518Table 500. Standard message ID filter element field descriptionp.251956.4.22 FDCAN extended message ID filter elementp.2520Table 501. Extended message ID filter elementp.2520Table 502. Extended message ID filter element field descriptionp.252056.4.23 FDCAN trigger memory elementp.2521Table 503. Trigger memory elementp.2521Table 504. Trigger memory element descriptionp.252156.5 FDCAN registersp.252356.5.1 FDCAN core release register (FDCAN_CREL)p.252356.5.2 FDCAN Endian register (FDCAN_ENDN)p.252356.5.3 FDCAN data bit timing and prescaler register (FDCAN_DBTP)p.252456.5.4 FDCAN test register (FDCAN_TEST)p.252556.5.5 FDCAN RAM watchdog register (FDCAN_RWD)p.252556.5.6 FDCAN CC control register (FDCAN_CCCR)p.252656.5.7 FDCAN nominal bit timing and prescaler register (FDCAN_NBTP)p.252856.5.8 FDCAN timestamp counter configuration register (FDCAN_TSCC)p.252956.5.9 FDCAN timestamp counter value register (FDCAN_TSCV)p.253056.5.10 FDCAN timeout counter configuration register (FDCAN_TOCC)p.253056.5.11 FDCAN timeout counter value register (FDCAN_TOCV)p.253156.5.12 FDCAN error counter register (FDCAN_ECR)p.253256.5.13 FDCAN protocol status register (FDCAN_PSR)p.253256.5.14 FDCAN transmitter delay compensation register (FDCAN_TDCR)p.253456.5.15 FDCAN interrupt register (FDCAN_IR)p.253556.5.16 FDCAN interrupt enable register (FDCAN_IE)p.253856.5.17 FDCAN interrupt line select register (FDCAN_ILS)p.254056.5.18 FDCAN interrupt line enable register (FDCAN_ILE)p.254156.5.19 FDCAN global filter configuration register (FDCAN_GFC)p.254256.5.20 FDCAN standard ID filter configuration register (FDCAN_SIDFC)p.254356.5.21 FDCAN extended ID filter configuration register (FDCAN_XIDFC)p.254356.5.22 FDCAN extended ID and mask register (FDCAN_XIDAM)p.254456.5.23 FDCAN high priority message status register (FDCAN_HPMS)p.254556.5.24 FDCAN new data 1 register (FDCAN_NDAT1)p.254556.5.25 FDCAN new data 2 register (FDCAN_NDAT2)p.254656.5.26 FDCAN Rx FIFO 0 configuration register (FDCAN_RXF0C)p.254656.5.27 FDCAN Rx FIFO 0 status register (FDCAN_RXF0S)p.254756.5.28 FDCAN Rx FIFO 0 acknowledge register (FDCAN_RXF0A)p.254856.5.29 FDCAN Rx buffer configuration register (FDCAN_RXBC)p.254856.5.30 FDCAN Rx FIFO 1 configuration register (FDCAN_RXF1C)p.254956.5.31 FDCAN Rx FIFO 1 status register (FDCAN_RXF1S)p.255056.5.32 FDCAN Rx FIFO 1 acknowledge register (FDCAN_RXF1A)p.255156.5.33 FDCAN Rx buffer element size configuration register (FDCAN_RXESC)p.255156.5.34 FDCAN Tx buffer configuration register (FDCAN_TXBC)p.255256.5.35 FDCAN Tx FIFO/queue status register (FDCAN_TXFQS)p.255356.5.36 FDCAN Tx buffer element size configuration register (FDCAN_TXESC)p.255456.5.37 FDCAN Tx buffer request pending register (FDCAN_TXBRP)p.255456.5.38 FDCAN Tx buffer add request register (FDCAN_TXBAR)p.255556.5.39 FDCAN Tx buffer cancellation request register (FDCAN_TXBCR)p.255656.5.40 FDCAN Tx buffer transmission occurred register (FDCAN_TXBTO)p.255656.5.41 FDCAN Tx buffer cancellation finished register (FDCAN_TXBCF)p.255756.5.42 FDCAN Tx buffer transmission interrupt enable register (FDCAN_TXBTIE)p.255756.5.43 FDCAN Tx buffer cancellation finished interrupt enable register (FDCAN_TXBCIE)p.255856.5.44 FDCAN Tx event FIFO configuration register (FDCAN_TXEFC)p.255856.5.45 FDCAN Tx event FIFO status register (FDCAN_TXEFS)p.255956.5.46 FDCAN Tx event FIFO acknowledge register (FDCAN_TXEFA)p.256056.5.47 FDCAN register mapp.2560Table 505. FDCAN register map and reset valuesp.256056.6 TTCAN registersp.256456.6.1 FDCAN TT trigger memory configuration register (FDCAN_TTTMC)p.256456.6.2 FDCAN TT reference message configuration register (FDCAN_TTRMC)p.256456.6.3 FDCAN TT operation configuration register (FDCAN_TTOCF)p.256556.6.4 FDCAN TT matrix limits register (FDCAN_TTMLM)p.256756.6.5 FDCAN TUR configuration register (FDCAN_TURCF)p.256856.6.6 FDCAN TT operation control register (FDCAN_TTOCN)p.256956.6.7 FDCAN TT global time preset register (FDCAN_TTGTP)p.257156.6.8 FDCAN TT time mark register (FDCAN_TTTMK)p.257156.6.9 FDCAN TT interrupt register (FDCAN_TTIR)p.257256.6.10 FDCAN TT interrupt enable register (FDCAN_TTIE)p.257456.6.11 FDCAN TT interrupt line select register (FDCAN_TTILS)p.257656.6.12 FDCAN TT operation status register (FDCAN_TTOST)p.257756.6.13 FDCAN TUR numerator actual register (FDCAN_TURNA)p.257956.6.14 FDCAN TT local and global time register (FDCAN_TTLGT)p.258056.6.15 FDCAN TT cycle time and count register (FDCAN_TTCTC)p.258056.6.16 FDCAN TT capture time register (FDCAN_TTCPT)p.258156.6.17 FDCAN TT cycle sync mark register (FDCAN_TTCSM)p.258156.6.18 FDCAN TT trigger select register (FDCAN_TTTS)p.258256.6.19 FDCAN TT register mapp.2582Table 506. FDCAN TT register map and reset valuesp.258256.7 CCU registersp.258456.7.1 Clock calibration unit core release register (FDCAN_CCU_CREL)p.258456.7.2 Calibration configuration register (FDCAN_CCU_CCFG)p.258456.7.3 Calibration status register (FDCAN_CCU_CSTAT)p.258656.7.4 Calibration watchdog register (FDCAN_CCU_CWD)p.258656.7.5 Clock calibration unit interrupt register (FDCAN_CCU_IR)p.258756.7.6 Clock calibration unit interrupt enable register (FDCAN_CCU_IE)p.258856.7.7 CCU register mapp.2588Table 507. CCU register map and reset valuesp.2588
57 USB on-the-go high-speed (OTG_HS)p.2590161
57.1 Introductionp.2590Table 508. OTG_HS speeds supportedp.259157.2 OTG_HS main featuresp.259157.2.1 General featuresp.259157.2.2 Host-mode featuresp.259257.2.3 Peripheral-mode featuresp.259257.3 OTG_HS implementationp.2593Table 509. OTG_HS implementationp.259357.4 OTG_HS functional descriptionp.259357.4.1 OTG_HS block diagramp.2593Figure 749. USB1 OTG_HS high-speed block diagram (OTG_HS1)p.2594Figure 750. USB2 OTG_HS high-speed block diagram (OTG_HS2)p.259457.4.2 OTG_HS pin and internal signalsp.2595Table 510. OTG_FS input/output pinsp.2595Table 511. OTG_HS input/output pinsp.2595Table 512. OTG_HS input/output signalsp.259557.4.3 OTG_HS corep.259557.4.4 Embedded full-speed OTG PHY connected to OTG_HSp.259657.4.5 OTG detectionsp.259657.4.6 High-speed OTG PHY connected to OTG_HSp.259657.5 OTG_HS dual role device (DRD)p.2597Figure 751. OTG_HS A-B device connectionp.259757.5.1 ID line detectionp.259757.5.2 HNP dual role devicep.259757.5.3 SRP dual role devicep.259857.6 OTG_HS as a USB peripheralp.2598Figure 752. OTG_HS peripheral-only connectionp.259957.6.1 SRP-capable peripheralp.259957.6.2 Peripheral statesp.259957.6.3 Peripheral endpointsp.260057.7 OTG_HS as a USB hostp.2602Figure 753. OTG_HS host-only connectionp.260357.7.1 SRP-capable hostp.260357.7.2 USB host statesp.260357.7.3 Host channelsp.260557.7.4 Host schedulerp.260657.8 OTG_HS SOF triggerp.2607Figure 754. SOF connectivity (SOF trigger output to TIM and ITR1 connection)p.260757.8.1 Host SOFsp.260757.8.2 Peripheral SOFsp.260757.9 OTG_HS low-power modesp.2608Table 513. Compatibility of STM32 low power modes with the OTGp.260857.10 OTG_HS Dynamic update of the OTG_HFIR registerp.2609Figure 755. Updating OTG_HFIR dynamically (RLDCTRL = 1)p.260957.11 OTG_HS data FIFOsp.260957.11.1 Peripheral FIFO architecturep.2610Figure 756. Device-mode FIFO address mapping and AHB FIFO access mappingp.261057.11.2 Host FIFO architecturep.2611Figure 757. Host-mode FIFO address mapping and AHB FIFO access mappingp.261157.11.3 FIFO RAM allocationp.261257.12 OTG_HS interruptsp.2614Figure 758. Interrupt hierarchyp.261557.13 OTG_HS control and status registersp.261657.13.1 CSR memory mapp.2616Table 514. Core global control and status registers (CSRs)p.2616Table 515. Host-mode control and status registers (CSRs)p.2617Table 516. Device-mode control and status registersp.2619Table 517. Data FIFO (DFIFO) access register mapp.2621Table 518. Power and clock gating control and status registersp.262157.14 OTG_HS registersp.262157.14.1 OTG control and status register (OTG_GOTGCTL)p.262157.14.2 OTG interrupt register (OTG_GOTGINT)p.262457.14.3 OTG AHB configuration register (OTG_GAHBCFG)p.262657.14.4 OTG USB configuration register (OTG_GUSBCFG)p.2627Table 519. TRDT valuesp.263057.14.5 OTG reset register (OTG_GRSTCTL)p.263057.14.6 OTG core interrupt register (OTG_GINTSTS)p.263357.14.7 OTG interrupt mask register (OTG_GINTMSK)p.263757.14.8 OTG receive status debug read register (OTG_GRXSTSR)p.264157.14.9 OTG receive status debug read [alternate] (OTG_GRXSTSR)p.264257.14.10 OTG status read and pop registers (OTG_GRXSTSP)p.264357.14.11 OTG status read and pop registers [alternate] (OTG_GRXSTSP)p.264457.14.12 OTG receive FIFO size register (OTG_GRXFSIZ)p.264557.14.13 OTG host non-periodic transmit FIFO size register (OTG_HNPTXFSIZ)/Endpoint 0 Transmit FIFO size (OTG_DIEPTXF0)p.264557.14.14 OTG non-periodic transmit FIFO/queue status register (OTG_HNPTXSTS)p.264657.14.15 OTG general core configuration register (OTG_GCCFG)p.264757.14.16 OTG core ID register (OTG_CID)p.264957.14.17 OTG core LPM configuration register (OTG_GLPMCFG)p.264957.14.18 OTG host periodic transmit FIFO size register (OTG_HPTXFSIZ)p.265357.14.19 OTG device IN endpoint transmit FIFO x size register (OTG_DIEPTXFx)p.265357.14.20 Host-mode registersp.265457.14.21 OTG host configuration register (OTG_HCFG)p.265457.14.22 OTG host frame interval register (OTG_HFIR)p.265557.14.23 OTG host frame number/frame time remaining register (OTG_HFNUM)p.265657.14.24 OTG_Host periodic transmit FIFO/queue status register (OTG_HPTXSTS)p.265757.14.25 OTG host all channels interrupt register (OTG_HAINT)p.265857.14.26 OTG host all channels interrupt mask register (OTG_HAINTMSK)p.265857.14.27 OTG host frame list base address register (OTG_HFLBADDR)p.265957.14.28 OTG host port control and status register (OTG_HPRT)p.265957.14.29 OTG host channel x characteristics register (OTG_HCCHARx)p.266257.14.30 OTG host channel x split control register (OTG_HCSPLTx)p.266357.14.31 OTG host channel x interrupt register (OTG_HCINTx)p.266457.14.32 OTG host channel x interrupt mask register (OTG_HCINTMSKx)p.266557.14.33 OTG host channel x transfer size register (OTG_HCTSIZx)p.266757.14.34 OTG host channel x transfer size register (OTG_HCTSIZSGx)p.266857.14.35 OTG host channel x DMA address register in buffer DMA [alternate] (OTG_HCDMAx)p.267057.14.36 OTG host channel x DMA address register in scatter/gather DMA [alternate] (OTG_HCDMASGx)p.267057.14.37 OTG host channel-n DMA address buffer register (OTG_HCDMABx)p.267157.14.38 Device-mode registersp.267257.14.39 OTG device configuration register (OTG_DCFG)p.267257.14.40 OTG device control register (OTG_DCTL)p.2674Table 520. Minimum duration for soft disconnectp.267557.14.41 OTG device status register (OTG_DSTS)p.267657.14.42 OTG device IN endpoint common interrupt mask register (OTG_DIEPMSK)p.267757.14.43 OTG device OUT endpoint common interrupt mask register (OTG_DOEPMSK)p.267857.14.44 OTG device all endpoints interrupt register (OTG_DAINT)p.267957.14.45 OTG all endpoints interrupt mask register (OTG_DAINTMSK)p.268057.14.46 OTG device VBUS discharge time register (OTG_DVBUSDIS)p.268157.14.47 OTG device VBUS pulsing time register (OTG_DVBUSPULSE)p.268157.14.48 OTG device threshold control register (OTG_DTHRCTL)p.268257.14.49 OTG device IN endpoint FIFO empty interrupt mask register (OTG_DIEPEMPMSK)p.268357.14.50 OTG device each endpoint interrupt register (OTG_DEACHINT)p.268357.14.51 OTG device each endpoint interrupt mask register (OTG_DEACHINTMSK)p.268457.14.52 OTG device each IN endpoint-1 interrupt mask register (OTG_HS_DIEPEACHMSK1)p.268457.14.53 OTG device each OUT endpoint-1 interrupt mask register (OTG_HS_DOEPEACHMSK1)p.268557.14.54 OTG device IN endpoint x control register (OTG_DIEPCTLx)p.268757.14.55 OTG device IN endpoint x interrupt register (OTG_DIEPINTx)p.268957.14.56 OTG device IN endpoint 0 transfer size register (OTG_DIEPTSIZ0)p.269157.14.57 OTG device IN endpoint x DMA address register (OTG_DIEPDMAx)p.269157.14.58 OTG device IN endpoint transmit FIFO status register (OTG_DTXFSTSx)p.269257.14.59 OTG device IN endpoint x transfer size register (OTG_DIEPTSIZx)p.269257.14.60 OTG device control OUT endpoint 0 control register (OTG_DOEPCTL0)p.269357.14.61 OTG device OUT endpoint x interrupt register (OTG_DOEPINTx)p.269557.14.62 OTG device OUT endpoint 0 transfer size register (OTG_DOEPTSIZ0)p.269757.14.63 OTG device OUT endpoint x DMA address register (OTG_DOEPDMAx)p.269857.14.64 OTG device OUT endpoint x control register (OTG_DOEPCTLx)p.269857.14.65 OTG device OUT endpoint x transfer size register (OTG_DOEPTSIZx)p.270157.14.66 OTG power and clock gating control register (OTG_PCGCCTL)p.270257.14.67 OTG_HS register mapp.2703Table 521. OTG_HS register map and reset valuesp.270357.15 OTG_HS programming modelp.271557.15.1 Core initializationp.271557.15.2 Host initializationp.271657.15.3 Device initializationp.271757.15.4 DMA modep.271757.15.5 Host programming modelp.2718Figure 759. Transmit FIFO write taskp.2720Figure 760. Receive FIFO read taskp.2721Figure 761. Normal bulk/control OUT/SETUPp.2722Figure 762. Bulk/control IN transactionsp.2726Figure 763. Normal interrupt OUTp.2729Figure 764. Normal interrupt INp.2734Figure 765. Isochronous OUT transactionsp.2736Figure 766. Isochronous IN transactionsp.2739Figure 767. Normal bulk/control OUT/SETUP transactions - DMAp.2741Figure 768. Normal bulk/control IN transaction - DMAp.2743Figure 769. Normal interrupt OUT transactions - DMA modep.2744Figure 770. Normal interrupt IN transactions - DMA modep.2745Figure 771. Normal isochronous OUT transaction - DMA modep.2746Figure 772. Normal isochronous IN transactions - DMA modep.274757.15.6 Device programming modelp.2750Figure 773. Receive FIFO packet readp.2753Figure 774. Processing a SETUP packetp.2755Figure 775. Bulk OUT transactionp.276257.15.7 Worst case response timep.2770Figure 776. TRDT max timing casep.277157.15.8 OTG programming modelp.2772Figure 777. A-device SRPp.2772Figure 778. B-device SRPp.2773Figure 779. A-device HNPp.2774Figure 780. B-device HNPp.2776
58 Ethernet (ETH): media access control (MAC) with DMA controllerp.2778163
58.1 Ethernet introductionp.277858.2 Ethernet main featuresp.277858.2.1 Standard compliancep.277858.2.2 MAC featuresp.277858.2.3 Transaction layer (MTL) featuresp.278058.2.4 DMA block featuresp.278158.2.5 Bus interface featuresp.278158.3 Ethernet pins and internal signalsp.2782Table 522. Ethernet peripheral pinsp.2782Table 523. Ethernet internal input/output signalsp.278358.4 Ethernet architecturep.2783Figure 781. Ethernet high-level block diagramp.278458.4.1 DMA controllerp.2784Figure 782. DMA transmission flow (standard mode)p.2787Figure 783. DMA transmission flow (OSP mode)p.2789Figure 784. Receive DMA flowp.2791Table 524. Priority scheme for Tx DMA and Rx DMAp.279258.4.2 MTLp.279358.4.3 MACp.2793Figure 785. Overview of MAC transmission flowp.2795Figure 786. MAC reception flowp.279758.5 )Ethernet functional description: MACp.279858.5.1 Double VLAN processingp.2798Table 525. Double VLAN processing features in Tx pathp.2798Table 526. Double VLAN processing in Rx pathp.279958.5.2 Source address and VLAN insertion, replacement, or deletionp.2799Table 527. VLAN insertion or replacement based on VLTI bitp.280058.5.3 Packet filteringp.2801Figure 787. Packet filtering sequencep.2801Table 528. Destination address filteringp.2803Table 529. Source address filteringp.2804Table 530. VLAN match statusp.280558.5.4 IEEE 1588 timestamp supportp.2807Table 531. Ordinary clock: PTP messages for snapshotp.2808Table 532. End-to-end transparent clock: PTP messages for snapshotp.2809Table 533. Peer-to-peer transparent clock: PTP messages for snapshotp.2810Figure 788. Networked time synchronizationp.2810Figure 789. Propagation delay calculation in clocks supporting peer-to-peer path correctionp.2811Table 534. Egress and ingress latency for PHY interfacesp.2813Table 535. Minimum PTP clock frequency examplep.2814Table 536. Message format defined in IEEE 1588-2008p.2815Table 537. Message format defined in IEEE 1588-2008p.2815Table 538. IPv6-UDP PTP packet fields required for control and statusp.2816Table 539. Ethernet PTP packet fields required for control and statusp.2817Table 540. Timestamp Snapshot Dependency on ETH_MACTSCR bitsp.2819Figure 790. System time update using fine correction methodp.2821Table 541. PTP message generation criteriap.2825Table 542. Common PTP message header fieldsp.2827Table 543. MAC Transmit PTP mode and one-step timestamping operationp.283058.5.5 Checksum offload enginep.2832Table 544. Transmit checksum offload engine functions for different packet typesp.2835Table 545. Receive checksum offload engine functions for different packet typesp.283758.5.6 TCP segmentation offloadp.2838Figure 791. TCP segmentation offload overviewp.2838Figure 792. TCP segmentation offload flowp.2839Table 546. TSO: TCP and IP header fieldsp.2841Figure 793. Header and payload fields of segmented packetsp.284258.5.7 IPv4 ARP offloadp.284458.5.8 Loopbackp.284558.5.9 Flow controlp.2846Table 547. Pause packet fieldsp.2846Table 548. Tx MAC flow controlp.2847Table 549. Rx MAC flow controlp.284758.5.10 MAC management countersp.2849Table 550. Size of the maximum receive packetp.285058.5.11 Interrupts generated by the MACp.285158.5.12 MAC and MMC register descriptionsp.285158.6 Ethernet functional description: PHY interfacesp.2852Figure 794. Supported PHY interfacesp.285258.6.1 Station management agent (SMA)p.2852Figure 795. SMA Interface blockp.2852Table 551. MCD clock selectionp.2853Figure 796. MDIO packet structure (Clause 45)p.2853Table 552. MDIO Clause 45 frame structurep.2854Figure 797. MDIO packet structure (Clause 22)p.2854Table 553. MDIO Clause 22 frame structurep.2855Figure 798. SMA write operation flowp.2856Figure 799. Write data packetp.2857Figure 800. Read data packetp.285758.6.2 Media independent interface (MII)p.2859Figure 801. Media independent interface (MII) signalsp.285958.6.3 Reduced media independent interface (RMII)p.2860Figure 802. RMII block diagramp.2861Figure 803. Transmission bit orderp.2862Figure 804. Receive bit orderp.286358.7 Ethernet low-power modesp.286458.7.1 Low-power managementp.2864Table 554. Remote wake-up packet filter registerp.2866Table 555. Description of the remote wake-up filter fieldsp.2867Table 556. Remote wake-up packet and PMT interrupt generationp.286858.7.2 Energy Efficient Ethernet (EEE)p.2870Figure 805. LPI transitions (Transmit, 100 Mbds)p.2871Figure 806. LPI Tx clock gating (when LPITCSE = 1)p.2872Figure 807. LPI transitions (receive, 100 Mbps)p.287358.8 Ethernet interruptsp.287558.8.1 DMA interruptsp.2875Table 557. Transfer complete interrupt behaviorp.287658.8.2 MTL interruptsp.287658.8.3 MAC Interruptsp.287758.9 Ethernet programming modelp.287858.9.1 DMA initializationp.287858.9.2 MTL initializationp.287958.9.3 MAC initializationp.287958.9.4 Performing normal receive and transmit operationp.288058.9.5 Stopping and starting transmissionp.288158.9.6 Programming guidelines for switching to new descriptor list in RxDMAp.288158.9.7 Programming guidelines for switching the AHB clock frequencyp.288158.9.8 Programming guidelines for MII link state transitionsp.288258.9.9 Programming guidelines for IEEE 1588 timestampingp.288358.9.10 Programming guidelines for PTP offload featurep.288458.9.11 Programming guidelines for Energy Efficient Ethernet (EEE)p.288858.9.12 Programming guidelines for flexible pulse-per-second (PPS) outputp.289058.9.13 Programming guidelines for TSOp.289258.9.14 Programming guidelines to perform VLAN filtering on the receivep.289358.10 Descriptorsp.289358.10.1 Descriptor overviewp.289358.10.2 Descriptor structurep.2894Figure 808. Descriptor ring structurep.2894Figure 809. DMA descriptor ringp.289558.10.3 Transmit descriptorp.2896Figure 810. Transmit descriptor (read format)p.2896Table 558. TDES0 normal descriptor (read format)p.2896Table 559. TDES1 normal descriptor (read format)p.2897Table 560. TDES2 normal descriptor (read format)p.2897Table 561. TDES3 normal descriptor (read format)p.2898Figure 811. Transmit descriptor write-back formatp.2901Table 562. TDES0 normal descriptor (write-back format)p.2901Table 563. TDES1 normal descriptor (write-back format)p.2901Table 564. TDES2 normal descriptor (write-back format)p.2902Table 565. TDES3 normal descriptor (write-back format)p.2902Figure 812. Transmit context descriptor formatp.2905Table 566. TDES0 context descriptorp.2905Table 567. TDES1 context descriptorp.2906Table 568. TDES2 context descriptorp.2906Table 569. TDES3 context descriptorp.290658.10.4 Receive descriptorp.2909Figure 813. Receive normal descriptor (read format)p.2909Table 570. RDES0 normal descriptor (read format)p.2910Table 571. RDES1 normal descriptor (read format)p.2910Table 572. RDES2 normal descriptor (read format)p.2910Table 573. RDES3 normal descriptor (read format)p.2911Figure 814. Receive normal descriptor (write-back format)p.2912Table 574. RDES0 normal descriptor (write-back format)p.2912Table 575. RDES1 normal descriptor (write-back format)p.2913Table 576. RDES2 normal descriptor (write-back format)p.2915Table 577. RDES3 normal descriptor (write-back format)p.2916Figure 815. Receive context descriptorp.2919Table 578. RDES0 context descriptorp.2919Table 579. RDES1 context descriptorp.2920Table 580. RDES2 context descriptorp.2920Table 581. RDES3 context descriptorp.292058.11 Ethernet registersp.292158.11.1 Ethernet register mapsp.292158.11.2 Ethernet DMA registersp.2921Figure 816. Generation of ETH_DMAISR flagsp.2937Table 582. ETH_DMA common register map and reset valuesp.2944Table 583. ETH_DMA_CH register map and reset valuesp.294458.11.3 Ethernet MTL registersp.2947Table 584. ETH_MTL register map and reset valuesp.295758.11.4 Ethernet MAC and MMC registersp.2959Table 585. Giant Packet Status based on S2KP and JE Bitsp.2963Table 586. Packet Length based on the CST and ACS bitsp.2963Table 587. Ethernet MAC register map and reset valuesp.3045
59 HDMI-CEC controller (CEC)p.305641
59.1 HDMI-CEC introductionp.305659.2 HDMI-CEC controller main featuresp.305659.3 HDMI-CEC functional descriptionp.305759.3.1 HDMI-CEC pin and internal signalsp.3057Table 588. HDMI pinp.3057Table 589. HDMI-CEC internal input/output signalsp.305759.3.2 HDMI-CEC block diagramp.3058Figure 817. HDMI-CEC block diagramp.305859.3.3 Message descriptionp.3058Figure 818. Message structurep.3058Figure 819. Blocksp.305959.3.4 Bit timingp.3059Figure 820. Bit timingsp.305959.4 Arbitrationp.3059Figure 821. Signal free timep.3060Figure 822. Arbitration phasep.3060Figure 823. SFT of three nominal bit periodsp.306059.4.1 SFT option bitp.306159.5 Error handlingp.306159.5.1 Bit errorp.3061Figure 824. Error bit timingp.306159.5.2 Message errorp.306259.5.3 Bit rising error (BRE)p.306259.5.4 Short bit period error (SBPE)p.306259.5.5 Long bit period error (LBPE)p.3062Figure 825. Error handlingp.3063Table 590. Error handling timing parametersp.306359.5.6 Transmission error detection (TXERR)p.3064Figure 826. TXERR detectionp.3064Table 591. TXERR timing parametersp.306459.6 HDMI-CEC interruptsp.3065Table 592. HDMI-CEC interruptsp.306559.7 HDMI-CEC registersp.306659.7.1 CEC control register (CEC_CR)p.306659.7.2 CEC configuration register (CEC_CFGR)p.306759.7.3 CEC Tx data register (CEC_TXDR)p.306959.7.4 CEC Rx data register (CEC_RXDR)p.306959.7.5 CEC interrupt and status register (CEC_ISR)p.306959.7.6 CEC interrupt enable register (CEC_IER)p.307159.7.7 HDMI-CEC register mapp.3073Table 593. HDMI-CEC register map and reset valuesp.3073
60 Debug infrastructurep.307472
60.1 Introductionp.307460.2 Debug infrastructure featuresp.307560.3 Debug infrastructure functional descriptionp.307560.3.1 Debug infrastructure block diagramp.3075Figure 827. Block diagram of debug infrastructurep.307560.3.2 Debug infrastructure pins and internal signalsp.3076Table 594. JTAG/Serial-wire debug port pinsp.3076Table 595. Trace port pinsp.3076Table 596. Serial-wire trace port pinsp.3076Table 597. Trigger pinsp.307660.3.3 Debug infrastructure powering, clocking and resetp.3077Figure 828. Power domains of debug infrastructurep.3077Figure 829. Clock domains of debug infrastructurep.307860.4 Debug access port functional descriptionp.307960.4.1 Serial-wire and JTAG debug port (SWJ-DP)p.3079Table 598. Packet requestp.3080Table 599. ACK responsep.3080Table 600. Data transferp.3080Figure 830. SWD successful data transferp.3081Figure 831. JTAG TAP state machinep.3082Table 601. JTAG-DP data registersp.3083Table 602. Debug port registersp.308560.4.2 Access portsp.3093Figure 832. Debug and access port connectionsp.3093Table 603. MEM-AP registersp.309560.5 Trace and debug subsystem functional descriptionp.309960.5.1 System ROM tablesp.3099Table 604. System ROM table 1p.3099Table 605. System ROM table 2p.3100Figure 833. APB-D CoreSight component topologyp.3101Table 606. System ROM table 1 register map and reset valuesp.3106Table 607. System ROM table 2 register map and reset valuesp.310760.5.2 Global timestamp generator (TSG)p.3108Figure 834. Global timestamp distributionp.3109Table 608. TSG register map and reset valuesp.311560.5.3 Cross trigger interfaces (CTI) and matrix (CTM)p.3115Figure 835. Embedded cross triggerp.3116Table 609. System CTI inputsp.3116Table 610. System CTI outputsp.3117Table 611. Cortex-M7 CTI inputsp.3117Table 612. Cortex-M7 CTI outputsp.3118Figure 836. Mapping of trigger inputs to outputsp.3118Table 613. CTI register map and reset valuesp.313360.5.4 Trace funnel (CSTF)p.3135Table 614. CSTF register map and reset valuesp.314460.5.5 Embedded trace FIFO (ETF)p.3145Figure 837. ETF state transition diagramp.3147Table 615. ETF register map and reset valuesp.316560.5.6 Trace port interface unit (TPIU)p.3167Table 616. TPIU register map and reset valuesp.318360.5.7 Serial wire output (SWO) and SWO trace funnel (SWTF)p.3185Table 617. SWO register map and reset valuesp.3195Table 618. SWTF register map and reset valuesp.320660.5.8 Microcontroller debug unit (DBGMCU)p.3208Table 619. DBGMCU register map and reset valuesp.321460.6 Cortex-M7 debug functional descriptionp.321460.6.1 Cortex-M7 ROM tablesp.3215Table 620. Cortex-M7 processor ROM tablep.3215Table 621. Cortex-M7 PPB ROM tablep.3215Figure 838. Cortex-M7 CoreSight topologyp.3216Table 622. Cortex-M7 processor ROM table register map and reset valuesp.3221Table 623. Cortex-M7 PPB ROM table register map and reset valuesp.322660.6.2 Cortex-M7 data watchpoint and trace unit (DWT)p.3227Table 624. Cortex-M7 DWT register map and reset valuesp.323860.6.3 Cortex-M7 instrumentation trace macrocell (ITM)p.3240Table 625. Cortex-M7 ITM register map and reset valuesp.324860.6.4 Cortex-M7 breakpoint unit (FPB)p.3249Table 626. Cortex-M7 FPB register map and reset valuesp.325560.6.5 Cortex-M7 embedded trace macrocell (ETM)p.3257Table 627. Cortex-M7 ETM register map and reset valuesp.328560.6.6 Cortex-M7 cross trigger interface (CTI)p.328960.7 References for debug infrastructurep.3289
Nothing matches.