RM0436-STM32MP157
This reference manual targets application developers. It provides complete information on how to use the STM32MP157 microprocessor memory and peripherals.
The STM32MP157 is a family of microprocessors with different packages and peripherals.
Refer to the corresponding datasheets for ordering information, mechanical and electrical device characteristics.
For information on the Arm® Cortex®-A7 and Cortex®-M4 cores, refer to the Cortex®-A7 and Cortex®-M4 Technical Reference Manuals.
The STM32MP157 microprocessors include ST state-of-the-art patented technology.
Related documents
- • Cortex®-A7 Technical Reference Manual, available from: http://infocenter.arm.com
- • Cortex®-M4 Technical Reference Manual, available from: http://infocenter.arm.com
- • STM32MP157x datasheet
- • STM32 Cortex®-M4 MCUs and MPUs programming manual (PM0214)
- • STM32MP151x/3x/7x device errata (ES0438)
Contents
| 1 | Documentation conventions | 121 |
| 1.1 | General information | 121 |
| 1.2 | List of abbreviations for registers | 121 |
| 1.3 | Register reset value | 122 |
| 1.4 | Glossary | 122 |
| 1.5 | Availability of peripherals | 122 |
| 2 | Memory and bus architecture | 123 |
| 2.1 | System architecture | 123 |
| 2.1.1 | Bus architecture | 123 |
| 2.1.2 | Memory Map organization | 125 |
| 2.2 | AXI interconnect matrix (AXIM) | 128 |
| 2.2.1 | AXIM features | 128 |
| 2.2.2 | AXIM interconnect configuration | 129 |
| 2.2.3 | Master ports description | 130 |
| 2.2.4 | Master ports main characteristics | 130 |
| 2.2.5 | Master ports security characteristics | 131 |
| 2.2.6 | Slave ports description | 132 |
| 2.2.7 | Slave ports main characteristics | 132 |
| 2.2.8 | Slave ports security characteristics | 133 |
| 2.3 | Multi-layer AHB interconnect | 133 |
| 2.3.1 | Multi-layer AHB features | 133 |
| 2.3.2 | Multi-layer AHB interconnect configuration | 133 |
| 2.3.3 | Multi-layer AHB master ports characteristics | 134 |
| 2.3.4 | Multi-layer AHB slave ports characteristics | 135 |
| 2.4 | AXIMC registers | 136 |
| 2.4.1 | AXIMC peripheral ID4 register (AXIMC_PERIPH_ID_4) | 136 |
| 2.4.2 | AXIMC peripheral ID5 register (AXIMC_PERIPH_ID_5) | 136 |
| 2.4.3 | AXIMC peripheral ID6 register (AXIMC_PERIPH_ID_6) | 137 |
| 2.4.4 | AXIMC peripheral ID7 register (AXIMC_PERIPH_ID_7) | 137 |
| 2.4.5 | AXIMC peripheral ID0 register (AXIMC_PERIPH_ID_0) | 137 |
| 2.4.6 | AXIMC peripheral ID1 register (AXIMC_PERIPH_ID_1) | 138 |
| 2.4.7 | AXIMC peripheral ID2 register (AXIMC_PERIPH_ID_2) | 138 |
| 2.4.8 | AXIMC peripheral ID3 register (AXIMC_PERIPH_ID_3) ..... | 138 |
| 2.4.9 | AXIMC component ID0 register (AXIMC_COMP_ID_0) ..... | 139 |
| 2.4.10 | AXIMC component ID1 register (AXIMC_COMP_ID_1) ..... | 139 |
| 2.4.11 | AXIMC component ID2 register (AXIMC_COMP_ID_2) ..... | 140 |
| 2.4.12 | AXIMC component ID3 register (AXIMC_COMP_ID_3) ..... | 140 |
| 2.4.13 | AXIMC master x packing functionality register (AXIMC_Mx_FN_MOD2) ..... | 140 |
| 2.4.14 | AXIMC master x AHB conversion override functionality register (AXIMC_Mx_FN_MOD_AHB) ..... | 141 |
| 2.4.15 | AXIMC master x read priority register (AXIMC_Mx_READ_QOS) ... | 142 |
| 2.4.16 | AXIMC master x write priority register (AXIMC_Mx_WRITE_QOS) .. | 142 |
| 2.4.17 | AXIMC master x issuing capability override functionality register (AXIMC_Mx_FN_MOD) ..... | 143 |
| 2.4.18 | AXIMC master x packing functionality register (AXIMC_Mx_FN_MOD2) ..... | 143 |
| 2.4.19 | AXIMC master x AHB conversion override functionality register (AXIMC_Mx_FN_MOD_AHB) ..... | 144 |
| 2.4.20 | AXIMC master x read priority register (AXIMC_Mx_READ_QOS) ... | 144 |
| 2.4.21 | AXIMC master x write priority register (AXIMC_Mx_WRITE_QOS) .. | 145 |
| 2.4.22 | AXIMC master x issuing capability override functionality register (AXIMC_Mx_FN_MOD) ..... | 145 |
| 2.4.23 | AXIMC master x read priority register (AXIMC_Mx_READ_QOS) ... | 146 |
| 2.4.24 | AXIMC master x write priority register (AXIMC_Mx_WRITE_QOS) .. | 146 |
| 2.4.25 | AXIMC master x packing functionality register (AXIMC_Mx_FN_MOD) ..... | 147 |
| 2.4.26 | AXIMC master x read priority register (AXIMC_Mx_READ_QOS) ... | 147 |
| 2.4.27 | AXIMC master x write priority register (AXIMC_Mx_WRITE_QOS) .. | 148 |
| 2.4.28 | AXIMC master x issuing capability override functionality register (AXIMC_Mx_FN_MOD) ..... | 148 |
| 2.4.29 | AXIMC long burst capability inhibition register (AXIMC_FN_MOD_LB) ..... | 149 |
| 2.4.30 | AXIMC master x read priority register (AXIMC_Mx_READ_QOS) ... | 149 |
| 2.4.31 | AXIMC master x write priority register (AXIMC_Mx_WRITE_QOS) .. | 150 |
| 2.4.32 | AXIMC master x issuing capability override functionality register (AXIMC_Mx_FN_MOD) ..... | 150 |
| 2.4.33 | AXIMC register map ..... | 151 |
| 2.5 | Memory organization ..... | 159 |
| 2.5.1 | Introduction ..... | 159 |
| 2.5.2 | Memory map and register boundary addresses ..... | 160 |
| 3 | Boot and security and OTP control (BSEC) ..... | 171 |
| 3.1 | Introduction ..... | 171 |
| 3.2 | BSEC main features ..... | 171 |
| 3.3 | BSEC functional description ..... | 172 |
| 3.3.1 | BSEC block diagram ..... | 172 |
| 3.3.2 | Interface to OTP ..... | 173 |
| 3.3.3 | OTP security modes ..... | 173 |
| 3.3.4 | Automatic OTP load on system-reset ..... | 174 |
| 3.3.5 | OTP words status ..... | 175 |
| 3.3.6 | OTP operations ..... | 176 |
| 3.3.7 | JTAG registers ..... | 178 |
| 3.3.8 | BSEC lock registers ..... | 178 |
| 3.3.9 | Debug control ..... | 178 |
| 3.3.10 | Sticky lock register ..... | 179 |
| 3.4 | OTP layout ..... | 179 |
| 3.4.1 | DMA requests ..... | 179 |
| 3.4.2 | TrustZone awareness ..... | 179 |
| 3.4.3 | BSEC clocking and initialization ..... | 180 |
| 3.5 | BSEC interrupts ..... | 180 |
| 3.6 | BSEC registers ..... | 180 |
| 3.6.1 | BSEC OTP configuration register (BSEC_OTP_CONFIG) ..... | 181 |
| 3.6.2 | BSEC OTP control register (BSEC_OTP_CONTROL) ..... | 181 |
| 3.6.3 | BSEC OTP write data register (BSEC_OTP_WRDATA) ..... | 182 |
| 3.6.4 | BSEC OTP status register (BSEC_OTP_STATUS) ..... | 182 |
| 3.6.5 | BSEC OTP lock configuration register (BSEC_OTP_LOCK) ..... | 183 |
| 3.6.6 | BSEC debug configuration register (BSEC_ENABLE) ..... | 184 |
| 3.6.7 | BSEC OTP disturbed status register x (BSEC_OTP_DISTURBEDx) .. | 185 |
| 3.6.8 | BSEC OTP error status register x (BSEC_OTP_ERRORx) ..... | 186 |
| 3.6.9 | BSEC OTP lock status register x (BSEC_OTP_WRLOCKEDx) ..... | 186 |
| 3.6.10 | BSEC OTP sticky programming lock register x (BSEC_OTP_SPLOCKx) ..... | 187 |
| 3.6.11 | BSEC OTP shadow write sticky lock register x (BSEC_OTP_SWLOCKx) ..... | 188 |
| 3.6.12 | BSEC OTP shadow read sticky lock register x (BSEC_OTP_SRLOCKx) ..... | 189 |
| 3.6.13 | BSEC JTAG input register (BSEC_JTAGIN) ..... | 189 |
| 3.6.14 | BSEC JTAG output register (BSEC_JTAGOUT) ..... | 190 |
| 3.6.15 | BSEC scratch register (BSEC_SCRATCH) ..... | 190 |
| 3.6.16 | BSEC shadow register x (BSEC_OTP_DATAx) ..... | 190 |
| 3.6.17 | BSEC hardware configuration register (BSEC_HWCFGR) ..... | 191 |
| 3.6.18 | BSEC version register (BSEC_VERR) ..... | 192 |
| 3.6.19 | BSEC identification register (BSEC_IPIDR) ..... | 192 |
| 3.6.20 | BSEC size identification register (BSEC_SIDR) ..... | 192 |
| 3.6.21 | BSEC register map ..... | 193 |
| 4 | OTP mapping (OTP) ..... | 196 |
| 5 | DDR3/LPDDR2/LPDDR3 controller (DDRCTRL) ..... | 208 |
| 5.1 | Introduction ..... | 208 |
| 5.2 | DDRCTRL features ..... | 208 |
| 5.3 | DDRCTRL block diagram ..... | 209 |
| 5.4 | DDRCTRL architecture overview ..... | 210 |
| 5.4.1 | AXI Port Interface (XPI) ..... | 210 |
| 5.4.2 | Port arbiter (PA) ..... | 211 |
| 5.4.3 | Host Interface (HIF) ..... | 212 |
| 5.4.4 | DDR scheduler (DDRC) ..... | 213 |
| 5.4.5 | APB Interface (APB) ..... | 213 |
| 5.4.6 | DFI Interface (DFI) ..... | 213 |
| 5.5 | DDRCTRL functional description ..... | 214 |
| 5.5.1 | Transaction service control (TSC) and quality of service (QoS) .... | 214 |
| 5.5.2 | Paging policy options ..... | 215 |
| 5.5.3 | Power saving features ..... | 215 |
| 5.5.4 | Address mapper ..... | 216 |
| 5.5.5 | DRAM timing parameters ..... | 217 |
| 5.5.6 | SDRAM initialization sequence ..... | 217 |
| 5.5.7 | Refresh controls ..... | 217 |
| 5.5.8 | ZQ calibration ..... | 218 |
| 5.6 | DDRCTRL configuration ..... | 218 |
| 5.7 | DDRCTRL registers ..... | 219 |
| 5.7.1 | DDRCTRL master register 0 (DDRCTRL_MSTR) ..... | 219 |
| 5.7.2 | DDRCTRL operating mode status register (DDRCTRL_STAT) .... | 221 |
| 5.7.3 | DDRCTRL mode register read/write control register 0 (DDRCTRL_MRCTRL0) ..... | 223 |
| 5.7.4 | DDRCTRL mode register read/write control register 1 (DDRCTRL_MRCTRL1) ..... | 224 |
| 5.7.5 | DDRCTRL mode register read/write status register (DDRCTRL_MRSTAT) ..... | 225 |
| 5.7.6 | DDRCTRL temperature derate enable register (DDRCTRL_DERATEEN) ..... | 225 |
| 5.7.7 | DDRCTRL temperature derate interval register (DDRCTRL_DERATEINT) ..... | 226 |
| 5.7.8 | DDRCTRL low power control register (DDRCTRL_PWRCTRL) ..... | 227 |
| 5.7.9 | DDRCTRL low power timing register (DDRCTRL_PWRTMG) ..... | 228 |
| 5.7.10 | DDRCTRL hardware low power control register (DDRCTRL_HWLPCTL) ..... | 229 |
| 5.7.11 | DDRCTRL refresh control register 0 (DDRCTRL_RFSHCTL0) ..... | 230 |
| 5.7.12 | DDRCTRL refresh control register 3 (DDRCTRL_RFSHCTL3) ..... | 232 |
| 5.7.13 | DDRCTRL refresh timing register (DDRCTRL_RFSHTMG) ..... | 233 |
| 5.7.14 | DDRCTRL CRC parity control register 0 (DDRCTRL_CRCPARCTL0) ..... | 234 |
| 5.7.15 | DDRCTRL CRC parity status register (DDRCTRL_CRCPARSTAT) ..... | 235 |
| 5.7.16 | DDRCTRL SDRAM initialization register 0 (DDRCTRL_INIT0) ..... | 236 |
| 5.7.17 | DDRCTRL SDRAM initialization register 1 (DDRCTRL_INIT1) ..... | 237 |
| 5.7.18 | DDRCTRL SDRAM initialization register 2 (DDRCTRL_INIT2) ..... | 237 |
| 5.7.19 | DDRCTRL SDRAM initialization register 3 (DDRCTRL_INIT3) ..... | 238 |
| 5.7.20 | DDRCTRL SDRAM initialization register 4 (DDRCTRL_INIT4) ..... | 239 |
| 5.7.21 | DDRCTRL SDRAM initialization register 5 (DDRCTRL_INIT5) ..... | 239 |
| 5.7.22 | DDRCTRL DIMM control register (DDRCTRL_DIMMCTL) ..... | 240 |
| 5.7.23 | DDRCTRL SDRAM timing register 0 (DDRCTRL_DRAMTMG0) ..... | 241 |
| 5.7.24 | DDRCTRL SDRAM timing register 1 (DDRCTRL_DRAMTMG1) ..... | 242 |
| 5.7.25 | DDRCTRL SDRAM timing register 2 (DDRCTRL_DRAMTMG2) ..... | 243 |
| 5.7.26 | DDRCTRL SDRAM timing register 3 (DDRCTRL_DRAMTMG3) ..... | 246 |
| 5.7.27 | DDRCTRL SDRAM timing register 4 (DDRCTRL_DRAMTMG4) ..... | 247 |
| 5.7.28 | DDRCTRL SDRAM timing register 5 (DDRCTRL_DRAMTMG5) ..... | 248 |
| 5.7.29 | DDRCTRL SDRAM timing register 6 (DDRCTRL_DRAMTMG6) ..... | 250 |
| 5.7.30 | DDRCTRL SDRAM timing register 7 (DDRCTRL_DRAMTMG7) ..... | 251 |
| 5.7.31 | DDRCTRL SDRAM timing register 8 (DDRCTRL_DRAMTMG8) ..... | 252 |
| 5.7.32 | DDRCTRL SDRAM timing register 14 (DDRCTRL_DRAMTMG14) ..... | 252 |
| 5.7.33 | DDRCTRL SDRAM timing register 15 (DDRCTRL_DRAMTMG15) ..... | 253 |
| 5.7.34 | DDRCTRL ZQ control register 0 (DDRCTRL_ZQCTL0) ..... | 254 |
| 5.7.35 | DDRCTRL ZQ control register 1 (DDRCTRL_ZQCTL1) ..... | 255 |
| 5.7.36 | DDRCTRL ZQ control register 2 (DDRCTRL_ZQCTL2) ..... | 256 |
| 5.7.37 | DDRCTRL ZQ status register (DDRCTRL_ZQSTAT) ..... | 256 |
| 5.7.38 | DDRCTRL DFI timing register 0 (DDRCTRL_DFITMG0) ..... | 257 |
| 5.7.39 | DDRCTRL DFI timing register 1 (DDRCTRL_DFITMG1) ..... | 258 |
| 5.7.40 | DDRCTRL low power configuration register 0 (DDRCTRL_DFILPCFG0) ..... | 259 |
| 5.7.41 | DDRCTRL DFI update register 0 (DDRCTRL_DFIUPD0) ..... | 262 |
| 5.7.42 | DDRCTRL DFI update register 1 (DDRCTRL_DFIUPD1) ..... | 263 |
| 5.7.43 | DDRCTRL DFI update register 2 (DDRCTRL_DFIUPD2) ..... | 264 |
| 5.7.44 | DDRCTRL DFI miscellaneous control register (DDRCTRL_DFIMISC) | 264 |
| 5.7.45 | DDRCTRL DFI status register (DDRCTRL_DFISTAT) ..... | 265 |
| 5.7.46 | DDRCTRL DFI PHY master register (DDRCTRL_DFIPHYMSTR) ... | 266 |
| 5.7.47 | DDRCTRL address map register 1 (DDRCTRL_ADDRMAP1) ..... | 266 |
| 5.7.48 | DDRCTRL address map register 2 (DDRCTRL_ADDRMAP2) ..... | 267 |
| 5.7.49 | DDRCTRL address map register 3 (DDRCTRL_ADDRMAP3) ..... | 269 |
| 5.7.50 | DDRCTRL address map register 4 (DDRCTRL_ADDRMAP4) ..... | 272 |
| 5.7.51 | DDRCTRL address map register 5 (DDRCTRL_ADDRMAP5) ..... | 273 |
| 5.7.52 | DDRCTRL address register 6 (DDRCTRL_ADDRMAP6) ..... | 274 |
| 5.7.53 | DDRCTRL address map register 9 (DDRCTRL_ADDRMAP9) ..... | 276 |
| 5.7.54 | DDRCTRL address map register 10 (DDRCTRL_ADDRMAP10) ... | 277 |
| 5.7.55 | DDRCTRL address map register 11 (DDRCTRL_ADDRMAP11) ... | 278 |
| 5.7.56 | DDRCTRL ODT configuration register (DDRCTRL_ODTCFG) ..... | 278 |
| 5.7.57 | DDRCTRL ODT/Rank map register (DDRCTRL_ODTMAP) ..... | 280 |
| 5.7.58 | DDRCTRL scheduler control register (DDRCTRL_SCHED) ..... | 281 |
| 5.7.59 | DDRCTRL scheduler control register 1 (DDRCTRL_SCHED1) ... | 282 |
| 5.7.60 | DDRCTRL high priority read CAM register 1 (DDRCTRL_PERFHPR1) ..... | 283 |
| 5.7.61 | DDRCTRL low priority read CAM register 1 (DDRCTRL_PERFLPR1) | 284 |
| 5.7.62 | DDRCTRL write CAM register 1 (DDRCTRL_PERFWR1) ..... | 284 |
| 5.7.63 | DDRCTRL debug register 0 (DDRCTRL_DBG0) ..... | 285 |
| 5.7.64 | DDRCTRL debug register 1 (DDRCTRL_DBG1) ..... | 286 |
| 5.7.65 | DDRCTRL CAM debug register (DDRCTRL_DBGCAM) ..... | 286 |
| 5.7.66 | DDRCTRL command debug register (DDRCTRL_DBGCMD) ..... | 288 |
| 5.7.67 | DDRCTRL status debug register (DDRCTRL_DBGSTAT) ..... | 289 |
| 5.7.68 | DDRCTRL software register programming control enable (DDRCTRL_SWCTL) ..... | 290 |
| 5.7.69 | DDRCTRL software register programming control status (DDRCTRL_SWSTAT) ..... | 290 |
| 5.7.70 | DDRCTRL AXI Poison configuration register (DDRCTRL_POISONCFG) ..... | 291 |
| 5.7.71 | DDRCTRL AXI Poison status register (DDRCTRL_POISONSTAT) .. | 292 |
| 5.7.72 | DDRCTRL port status register (DDRCTRL_PSTAT) ..... | 293 |
| 5.7.73 | DDRCTRL port common configuration register (DDRCTRL_PCCFG) ..... | 294 |
| 5.7.74 | DDRCTRL port x configuration read register (DDRCTRL_PCFGR_x) ..... | 295 |
| 5.7.75 | DDRCTRL port x configuration write register (DDRCTRL_PCFGW_x) ..... | 296 |
| 5.7.76 | DDRCTRL port x control register (DDRCTRL_PCTRL_x) ..... | 297 |
| 5.7.77 | DDRCTRL port x read QoS configuration register 0 (DDRCTRL_PCFGQOS0_x) ..... | 298 |
| 5.7.78 | DDRCTRL port x read QoS configuration register 1 (DDRCTRL_PCFGQOS1_x) ..... | 299 |
| 5.7.79 | DDRCTRL port x write QoS configuration register 0 (DDRCTRL_PCFGWQOS0_x) ..... | 300 |
| 5.7.80 | DDRCTRL port x write QoS configuration register 1 (DDRCTRL_PCFGWQOS1_x) ..... | 301 |
| 5.7.81 | DDRCTRL registers summary ..... | 302 |
| 6 | TrustZone® address space controller for DDR (TZC) ..... | 319 |
| 6.1 | Introduction ..... | 319 |
| 6.2 | TZC features ..... | 319 |
| 6.3 | TZC block diagram ..... | 320 |
| 6.4 | TZC functional description ..... | 321 |
| 6.5 | TZC application programming examples ..... | 322 |
| 6.5.1 | DMA requests ..... | 326 |
| 6.5.2 | Interrupts ..... | 326 |
| 6.6 | TZC registers ..... | 327 |
| 6.6.1 | TZC configuration register (TZC_BUILD_CONFIG) ..... | 327 |
| 6.6.2 | TZC action register (TZC_ACTION) ..... | 327 |
| 6.6.3 | TZC gate keeper register (TZC_GATE_KEEPER) ..... | 328 |
| 6.6.4 | TZC speculation control register (TZC_SPECULATION_CTRL) .... | 329 |
| 6.6.5 | TZC interrupt status register (TZC_INT_STATUS) ..... | 329 |
| 6.6.6 | TZC interrupt clear register (TZC_INT_CLEAR) ..... | 330 |
| 6.6.7 | TZC fail address low register x (TZC_FAIL_ADDRESS_LOWx) .... | 330 |
| 6.6.8 | TZC fail address high register x (TZC_FAIL_ADDRESS_HIGHx) .... | 331 |
| 6.6.9 | TZC fail control register x (TZC_FAIL_CONTROLx) ..... | 331 |
| 6.6.10 | TZC fail ID register x (TZC_FAIL_IDx) ..... | 332 |
| 6.6.11 | TZC region 0 base address low register (TZC_REGION_BASE_LOW0) ..... | 332 |
| 6.6.12 | TZC region x base address high register (TZC_REGION_BASE_HIGHx) 333 | |
| 6.6.13 | TZC region 0 top address low register (TZC_REGION_TOP_LOW0) ..... | 333 |
| 6.6.14 | TZC region x top address high register (TZC_REGION_TOP_HIGHx) | 334 |
| 6.6.15 | TZC region 0 attribute register (TZC_REGION_ATTRIBUTE0) ..... | 334 |
| 6.6.16 | TZC region x ID access register (TZC_REGION_ID_ACCESSx) .... | 335 |
| 6.6.17 | TZC region x base address low register (TZC_REGION_BASE_LOWx) ..... | 335 |
| 6.6.18 | TZC region x top address low register (TZC_REGION_TOP_LOWx) ..... | 336 |
| 6.6.19 | TZC region x attribute register (TZC_REGION_ATTRIBUTEx) ..... | 336 |
| 6.6.20 | TZC peripheral ID 4 register (TZC_PID4) ..... | 337 |
| 6.6.21 | TZC peripheral ID 5 register (TZC_PID5) ..... | 337 |
| 6.6.22 | TZC peripheral ID 6 register (TZC_PID6) ..... | 337 |
| 6.6.23 | TZC peripheral ID 7 register (TZC_PID7) ..... | 338 |
| 6.6.24 | TZC peripheral ID 0 register (TZC_PID0) ..... | 338 |
| 6.6.25 | TZC peripheral ID 1 register (TZC_PID1) ..... | 339 |
| 6.6.26 | TZC peripheral ID 2 register (TZC_PID2) ..... | 339 |
| 6.6.27 | TZC peripheral ID 3 register (TZC_PID3) ..... | 339 |
| 6.6.28 | TZC component ID 0 register (TZC_CID0) ..... | 340 |
| 6.6.29 | TZC component ID 1 register (TZC_CID1) ..... | 340 |
| 6.6.30 | TZC component ID 2 register (TZC_CID2) ..... | 341 |
| 6.6.31 | TZC component ID 3 register (TZC_CID3) ..... | 341 |
| 6.6.32 | TZC register map ..... | 342 |
| 7 | DDR physical interface control (DDRPHYC) ..... | 348 |
| 7.1 | DDRPHYC features ..... | 348 |
| 7.2 | DDRPHYC block diagram ..... | 348 |
| 7.3 | DDRPHYC SDRAM interface ..... | 349 |
| 7.4 | DDRPHY (DDR multiPHY IP core) ..... | 351 |
| 7.4.1 | DDRPHY overview ..... | 351 |
| 7.4.2 | Delay locked loop (DLL) ..... | 352 |
| 7.4.3 | Interface timing modules (ITMs) ..... | 355 |
| 7.4.4 | SSTL IO's ..... | 359 |
| 7.5 | PUBL ..... | 361 |
| 7.5.1 | PHY and SDRAM initialization . . . . . | 362 |
| 7.5.2 | DDR3 initialization sequence . . . . . | 364 |
| 7.5.3 | LPDDR2 initialization sequence . . . . . | 365 |
| 7.5.4 | Initialization trigger and bypass . . . . . | 365 |
| 7.5.5 | DATA training . . . . . | 366 |
| 7.5.6 | DQS gate training (DQSTRN) . . . . . | 366 |
| 7.5.7 | Read valid training (RVTRN) . . . . . | 372 |
| 7.6 | PUBL timings and DFI interface . . . . . | 372 |
| 7.6.1 | Introduction . . . . . | 372 |
| 7.6.2 | Write timing . . . . . | 373 |
| 7.6.3 | Read timing . . . . . | 374 |
| 7.6.4 | DDRPHY read/write latency . . . . . | 375 |
| 7.6.5 | DFI 2.1 overview . . . . . | 376 |
| 7.7 | PUBL registers . . . . . | 378 |
| 7.7.1 | DDRPHYC revision ID register (DDRPHYC_RIDR) . . . . . | 378 |
| 7.7.2 | DDRPHYC PHY initialization register (DDRPHYC_PIR) . . . . . | 378 |
| 7.7.3 | DDRPHYC PHY global control register (DDRPHYC_PGCR) . . . . . | 381 |
| 7.7.4 | DDRPHYC PHY global status register (DDRPHYC_PGSR) . . . . . | 383 |
| 7.7.5 | DDRPHYC DDR DLL global control register (DDRPHYC_DLLGCR) . . . . . | 384 |
| 7.7.6 | DDRPHYC AC DLL control register (DDRPHYC_ACDLLCR) . . . . . | 386 |
| 7.7.7 | DDRPHYC PT register 0 (DDRPHYC_PTR0) . . . . . | 387 |
| 7.7.8 | DDRPHYC PT register 1 (DDRPHYC_PTR1) . . . . . | 387 |
| 7.7.9 | DDRPHYC PT register 2 (DDRPHYC_PTR2) . . . . . | 388 |
| 7.7.10 | DDRPHYC ACIOC register (DDRPHYC_ACIOCR) . . . . . | 389 |
| 7.7.11 | DDRPHYC DXCC register (DDRPHYC_DXCCR) . . . . . | 390 |
| 7.7.12 | DDRPHYC DSGC register (DDRPHYC_DSGCR) . . . . . | 391 |
| 7.7.13 | DDRPHYC DC register (DDRPHYC_DCR) . . . . . | 394 |
| 7.7.14 | DDRPHYC DTP register 0 (DDRPHYC_DTPR0) . . . . . | 395 |
| 7.7.15 | DDRPHYC DTP register 1 (DDRPHYC_DTPR1) . . . . . | 396 |
| 7.7.16 | DDRPHYC DTP register 2 (DDRPHYC_DTPR2) . . . . . | 398 |
| 7.7.17 | DDRPHYC MR0 register for DDR3 (DDRPHYC_DDR3_MR0) . . . . . | 398 |
| 7.7.18 | DDRPHYC MR1 register for DDR3 (DDRPHYC_DDR3_MR1) . . . . . | 400 |
| 7.7.19 | DDRPHYC MR1 register for LPDDR2 [alternate] (DDRPHYC_LPDDR2_MR1) . . . . . | 401 |
| 7.7.20 | DDRPHYC MR1 register for LPDDR3 [alternate] (DDRPHYC_LPDDR3_MR1) . . . . . | 402 |
| 7.7.21 | DDRPHYC MR2 register for DDR3 (DDRPHYC_DDR3_MR2) . . . . . | 403 |
| 7.7.22 | DDRPHYC MR2 register for LPDDR2 [alternate] (DDRPHYC_LPDDR2_MR2) . . . . . | 404 |
| 7.7.23 | DDRPHYC MR2 register for LPDDR3 [alternate] (DDRPHYC_LPDDR3_MR2) . . . . . | 404 |
| 7.7.24 | DDRPHYC MR3 register for DDR3 (DDRPHYC_DDR3_MR3) . . . . . | 405 |
| 7.7.25 | DDRPHYC MR3 register for LPDDR2 [alternate] (DDRPHYC_LPDDR2_MR3) . . . . . | 405 |
| 7.7.26 | DDRPHYC MR3 register for LPDDR3 [alternate] (DDRPHYC_LPDDR3_MR3) . . . . . | 406 |
| 7.7.27 | DDRPHYC ODTc register (DDRPHYC_ODTCR) . . . . . | 406 |
| 7.7.28 | DDRPHYC DTA register (DDRPHYC_DTAR) . . . . . | 407 |
| 7.7.29 | DDRPHYC DTD register 0 (DDRPHYC_DTDR0) . . . . . | 407 |
| 7.7.30 | DDRPHYC DTD register 1 (DDRPHYC_DTDR1) . . . . . | 408 |
| 7.7.31 | DDRPHYC general purpose register 0 (DDRPHYC_GPR0) . . . . . | 408 |
| 7.7.32 | DDRPHYC general purpose register 1 (DDRPHYC_GPR1) . . . . . | 408 |
| 7.7.33 | DDRPHYC ZQ0C register 0 (DDRPHYC_ZQ0CR0) . . . . . | 409 |
| 7.7.34 | DDRPHYC ZQ0CR1 register (DDRPHYC_ZQ0CR1) . . . . . | 410 |
| 7.7.35 | DDRPHYC ZQ0S register 0 (DDRPHYC_ZQ0SR0) . . . . . | 411 |
| 7.7.36 | DDRPHYC ZQ0S register 1 (DDRPHYC_ZQ0SR1) . . . . . | 411 |
| 7.7.37 | DDRPHYC byte lane n GC register (DDRPHYC_DXnGCR) . . . . . | 412 |
| 7.7.38 | DDRPHYC byte lane n GS register 0 (DDRPHYC_DXnGSR0) . . . . . | 415 |
| 7.7.39 | DDRPHYC byte lane n GS register 1 (DDRPHYC_DXnGSR1) . . . . . | 415 |
| 7.7.40 | DDRPHYC byte lane n DLLC register (DDRPHYC_DXnDLLCR) . . . . . | 416 |
| 7.7.41 | DDRPHYC byte lane n DQT register (DDRPHYC_DXnDQTR) . . . . . | 418 |
| 7.7.42 | DDRPHYC byte lane n DQST register (DDRPHYC_DXnDQSTR) . . . . . | 419 |
| 7.7.43 | DDRPHYC register map . . . . . | 421 |
| 8 | DDR performance monitor (DDRPERFM) . . . . . | 427 |
| 8.1 | Introduction . . . . . | 427 |
| 8.2 | Features . . . . . | 427 |
| 8.3 | Block diagram . . . . . | 428 |
| 8.4 | Functional description . . . . . | 428 |
| 8.5 | Application information . . . . . | 431 |
| 8.5.1 | Signal set 0: to monitor the DDR utilization . . . . . | 431 |
| 8.5.2 | Signal set 1: to monitor the HPR and LPR stores . . . . . | 431 |
| 8.5.3 | Signal set 2: to monitor the refresh and self-refresh duration . . . . . | 431 |
| 8.5.4 | Signal set 3: to monitor the DDR stalling . . . . . | 431 |
| 8.6 | DDRPERFM registers . . . . . | 432 |
| 8.6.1 | DDRPERFM control register (DDRPERFM_CTL) . . . . . | 432 |
| 8.6.2 | DDRPERFM configurationl register (DDRPERFM_CFG) . . . . . | 432 |
| 8.6.3 | DDRPERFM status register (DDRPERFM_STATUS) . . . . . | 433 |
| 8.6.4 | DDRPERFM counter clear register (DDRPERFM_CCR) . . . . . | 433 |
| 8.6.5 | DDRPERFM interrupt enable register (DDRPERFM_IER) . . . . . | 434 |
| 8.6.6 | DDRPERFM interrupt status register (DDRPERFM_ISR) . . . . . | 434 |
| 8.6.7 | DDRPERFM interrupt clear register (DDRPERFM_ICR) . . . . . | 435 |
| 8.6.8 | DDRPERFM time counter register (DDRPERFM_TCNT) . . . . . | 435 |
| 8.6.9 | DDRPERFM event counter x register (DDRPERFM_CNTx) . . . . . | 436 |
| 8.6.10 | DDRPERFM hardware configuration register (DDRPERFM_HWCFG) . . . . . | 436 |
| 8.6.11 | DDRPERFM version register (DDRPERFM_VER) . . . . . | 436 |
| 8.6.12 | DDRPERFM ID register (DDRPERFM_ID) . . . . . | 437 |
| 8.6.13 | DDRPERFM magic ID register (DDRPERFM_SID) . . . . . | 437 |
| 8.6.14 | DDRPERFM register map . . . . . | 437 |
| 9 | Power control (PWR) . . . . . | 439 |
| 9.1 | PWR main features . . . . . | 439 |
| 9.2 | PWR block diagram . . . . . | 440 |
| 9.2.1 | PWR pin overview . . . . . | 441 |
| 9.3 | PWR power supplies . . . . . | 443 |
| 9.3.1 | PWR core domain . . . . . | 445 |
| 9.3.2 | PWR supply system startup sequence . . . . . | 446 |
| 9.3.3 | PWR supply Stop sequence . . . . . | 447 |
| 9.3.4 | PWR supply LP-Stop sequence . . . . . | 448 |
| 9.3.5 | PWR supply LPLV-Stop sequence . . . . . | 449 |
| 9.3.6 | PWR supply Standby sequence . . . . . | 450 |
| 9.3.7 | PWR supply VBAT sequence from Standby. . . . . | 451 |
| 9.3.8 | PWR VSW domain . . . . . | 451 |
| 9.3.9 | PWR VBAT battery charging . . . . . | 454 |
| 9.3.10 | PWR analog supply . . . . . | 454 |
| 9.3.11 | PWR 1V8 regulator . . . . . | 455 |
| 9.3.12 | PWR 1V1 regulator . . . . . | 455 |
| 9.3.13 | PWR DSI regulator . . . . . | 455 |
| 9.4 | PWR power supply supervision . . . . . | 456 |
| 9.4.1 | PWR power-on reset (POR)/power-down reset (PDR) . . . . . | 456 |
| 9.4.2 | PWR brownout reset (BOR) . . . . . | 457 |
| 9.4.3 | PWR VDDCORE OK reset . . . . . | 458 |
| 9.4.4 | PWR programmable voltage detector (PVD) . . . . . | 459 |
| 9.4.5 | PWR analog voltage detector (AVD) . . . . . | 460 |
| 9.4.6 | PWR battery voltage thresholds . . . . . | 461 |
| 9.4.7 | PWR temperature thresholds . . . . . | 462 |
| 9.5 | PWR power management . . . . . | 463 |
| 9.5.1 | PWR operating modes . . . . . | 464 |
| 9.5.2 | PWR power modes . . . . . | 472 |
| 9.5.3 | PWR system wakeup . . . . . | 475 |
| 9.6 | PWR low-power modes . . . . . | 476 |
| 9.6.1 | PWR slowing down the CPU clocks and/or the bus matrix clocks . . . | 476 |
| 9.6.2 | PWR controlling peripheral clocks . . . . . | 476 |
| 9.6.3 | PWR entering to low-power modes . . . . . | 476 |
| 9.6.4 | PWR exiting from low-power modes . . . . . | 477 |
| 9.6.5 | PWR CSleep mode . . . . . | 478 |
| 9.6.6 | PWR CStop mode . . . . . | 479 |
| 9.6.7 | PWR CStandby mode . . . . . | 480 |
| 9.6.8 | PWR Stop mode . . . . . | 481 |
| 9.6.9 | PWR LP-Stop and LPLV-Stop modes . . . . . | 483 |
| 9.6.10 | PWR Standby mode . . . . . | 484 |
| 9.6.11 | PWR debug Stop . . . . . | 486 |
| 9.6.12 | PWR debug Standby . . . . . | 486 |
| 9.7 | PWR WKUP pins . . . . . | 486 |
| 9.8 | PWR_ON and PWR_LP pins . . . . . | 486 |
| 9.9 | PWR interrupts . . . . . | 487 |
| 9.10 | PWR TrustZone security . . . . . | 488 |
| 9.11 | PWR registers . . . . . | 489 |
| 9.11.1 | PWR control register 1 (PWR_CR1) . . . . . | 489 |
| 9.11.2 | PWR control status register 1 (PWR_CSR1) . . . . . | 491 |
| 9.11.3 | PWR control register 2 (PWR_CR2) . . . . . | 492 |
| 9.11.4 | PWR control register 3 (PWR_CR3) . . . . . | 493 |
| 9.11.5 | PWR MPU control register (PWR_MPUCR) . . . . . | 495 |
| 9.11.6 | PWR MCU control register (PWR_MCUCR) . . . . . | 497 |
| 9.11.7 | PWR wakeup control register (PWR_WKUPCR) . . . . . | 498 |
| 9.11.8 | PWR wakeup flag register (PWR_WKUPFR) . . . . . | 499 |
| 9.11.9 | PWR MPU wakeup enable register (PWR_MPUWKUPENR) . . . . . | 500 |
| 9.11.10 | PWR MCU wakeup enable register (PWR_MCUWKUPENR) . . . . . | 501 |
| 9.11.11 | PWR IP version register (PWR_VER) ..... | 501 |
| 9.11.12 | PWR IP identification register (PWR_ID) ..... | 502 |
| 9.11.13 | PWR size ID register (PWR_SID) ..... | 502 |
| 9.11.14 | PWR register map ..... | 502 |
| 10 | Reset and clock control (RCC) ..... | 504 |
| 10.1 | RCC main features ..... | 504 |
| 10.2 | RCC block diagram ..... | 505 |
| 10.2.1 | RCC pin overview ..... | 506 |
| 10.3 | RCC functional description - reset part ..... | 507 |
| 10.3.1 | The power-on/off resets ..... | 507 |
| 10.3.2 | The application and system resets ..... | 508 |
| 10.3.3 | The local resets ..... | 509 |
| 10.3.4 | Resets generated by the CPUs ..... | 510 |
| 10.3.5 | Watchdog reset ..... | 511 |
| 10.3.6 | Backup domain reset ..... | 511 |
| 10.3.7 | Coresight debug reset ..... | 512 |
| 10.3.8 | Option bytes loading ..... | 512 |
| 10.3.9 | Peripheral reset ..... | 512 |
| 10.3.10 | Reset pulse control (RPCTL) ..... | 512 |
| 10.3.11 | Reset delay control (RDCTL) ..... | 514 |
| 10.3.12 | Reset coverage summary ..... | 516 |
| 10.3.13 | Reset source identification ..... | 518 |
| 10.3.14 | Power-on and wakeup sequences ..... | 520 |
| 10.4 | RCC functional description - clock part ..... | 525 |
| 10.4.1 | Clock naming convention ..... | 527 |
| 10.4.2 | Oscillators description ..... | 527 |
| 10.4.3 | Clock security system (CSS) ..... | 535 |
| 10.4.4 | Clock output generation (MCO1 and MCO2) ..... | 537 |
| 10.4.5 | PLLs description ..... | 537 |
| 10.4.6 | Sub-system clocks ..... | 544 |
| 10.4.7 | Clock generation in Stop and Standby modes ..... | 548 |
| 10.4.8 | Peripheral clock distribution ..... | 556 |
| 10.4.9 | General clock concept overview ..... | 601 |
| 10.4.10 | Peripheral allocation ..... | 603 |
| 10.4.11 | Peripheral clock gating control ..... | 604 |
| 10.4.12 | Processors and interconnect clocks gating ..... | 607 |
| 10.4.13 | Low-power emulation mode ..... | 614 |
| 10.4.14 | RCC TrustZone function ..... | 615 |
| 10.5 | RCC interrupts ..... | 616 |
| 10.6 | RCC application information ..... | 618 |
| 10.6.1 | Handling dynamic clock switching ..... | 618 |
| 10.6.2 | PLL programming ..... | 624 |
| 10.6.3 | Configuring the sub-system clocks ..... | 629 |
| 10.6.4 | The clock calibration using TIMx ..... | 631 |
| 10.6.5 | Clock restore sequence examples ..... | 633 |
| 10.7 | RCC registers ..... | 637 |
| 10.7.1 | Register mapping ..... | 643 |
| 10.7.2 | RCC TrustZone control register (RCC_TZCR) ..... | 644 |
| 10.7.3 | RCC oscillator clock enable set register (RCC_OCENSET) ..... | 645 |
| 10.7.4 | RCC oscillator clock enable clear register (RCC_OCENCLR) ..... | 647 |
| 10.7.5 | RCC oscillator clock ready register (RCC_OCRDYR) ..... | 649 |
| 10.7.6 | RCC debug configuration register (RCC_DBGCFGR) ..... | 651 |
| 10.7.7 | RCC HSI configuration register (RCC_HSICFGR) ..... | 652 |
| 10.7.8 | RCC CSI configuration register (RCC_CSICFGR) ..... | 653 |
| 10.7.9 | RCC MCO1 configuration register (RCC_MCO1CFGR) ..... | 654 |
| 10.7.10 | RCC MCO2 configuration register (RCC_MCO2CFGR) ..... | 654 |
| 10.7.11 | RCC MPU clock selection register (RCC_MPCKSELR) ..... | 655 |
| 10.7.12 | RCC AXI sub-system clock selection register (RCC_ASSCKSELR) .. | 657 |
| 10.7.13 | RCC MCU sub-system clock selection register (RCC_MSSCKSELR) ..... | 657 |
| 10.7.14 | RCC PLL 1 and 2 reference clock selection register (RCC_RCK12SELR) ..... | 658 |
| 10.7.15 | RCC PLL 3 reference clock selection register (RCC_RCK3SELR) .. | 660 |
| 10.7.16 | RCC PLL4 reference clock selection register (RCC_RCK4SELR) .. | 661 |
| 10.7.17 | RCC TIM group 1 prescaler register (RCC_TIMG1PRER) ..... | 662 |
| 10.7.18 | RCC TIM group 2 prescaler register (RCC_TIMG2PRER) ..... | 663 |
| 10.7.19 | RCC RTC clock division register (RCC_RTCDIVR) ..... | 664 |
| 10.7.20 | RCC MPU clock divider register (RCC_MPCKDIVR) ..... | 665 |
| 10.7.21 | RCC AXI clock divider register (RCC_AXIDIVR) ..... | 665 |
| 10.7.22 | RCC APB4 clock divider register (RCC_APB4DIVR) ..... | 667 |
| 10.7.23 | RCC APB5 clock divider register (RCC_APB5DIVR) ..... | 668 |
| 10.7.24 | RCC MCU clock divider register (RCC_MCUDIVR) ..... | 669 |
| 10.7.25 | RCC APB1 clock divider register (RCC_APB1DIVR) ..... | 669 |
| 10.7.26 | RCC APB2 clock divider register (RCC_APB2DIVR) ..... | 671 |
| 10.7.27 | RCC APB3 clock divider register (RCC_APB3DIVR) ..... | 672 |
| 10.7.28 | RCC PLL1 control register (RCC_PLL1CR) ..... | 673 |
| 10.7.29 | RCC PLL1 configuration register 1 (RCC_PLL1CFGR1) ..... | 675 |
| 10.7.30 | RCC PLL1 configuration register 2 (RCC_PLL1CFGR2) ..... | 675 |
| 10.7.31 | RCC PLL1 fractional register (RCC_PLL1FRACR) ..... | 676 |
| 10.7.32 | RCC PLL1 clock spreading generator register (RCC_PLL1CSGR) .. | 677 |
| 10.7.33 | RCC PLL2 control register (RCC_PLL2CR) ..... | 678 |
| 10.7.34 | RCC PLL2 configuration register 1 (RCC_PLL2CFGR1) ..... | 680 |
| 10.7.35 | RCC PLL2 configuration register 2 (RCC_PLL2CFGR2) ..... | 680 |
| 10.7.36 | RCC PLL2 fractional register (RCC_PLL2FRACR) ..... | 681 |
| 10.7.37 | RCC PLL2 clock spreading generator register (RCC_PLL2CSGR) .. | 682 |
| 10.7.38 | RCC PLL3 control register (RCC_PLL3CR) ..... | 683 |
| 10.7.39 | RCC PLL3 configuration register 1 (RCC_PLL3CFGR1) ..... | 685 |
| 10.7.40 | RCC PLL3 configuration register 2 (RCC_PLL3CFGR2) ..... | 686 |
| 10.7.41 | RCC PLL3 fractional register (RCC_PLL3FRACR) ..... | 687 |
| 10.7.42 | RCC PLL4 control register (RCC_PLL4CR) ..... | 687 |
| 10.7.43 | RCC PLL4 configuration register 1 (RCC_PLL4CFGR1) ..... | 689 |
| 10.7.44 | RCC PLL4 configuration register 2 (RCC_PLL4CFGR2) ..... | 690 |
| 10.7.45 | RCC PLL4 fractional register (RCC_PLL4FRACR) ..... | 690 |
| 10.7.46 | RCC I2C1,2 kernel clock selection register (RCC_I2C12CKSELR) .. | 691 |
| 10.7.47 | RCC I2C3,5 kernel clock selection register (RCC_I2C35CKSELR) .. | 693 |
| 10.7.48 | RCC I2C4, 6 kernel clock selection register (RCC_I2C46CKSELR) ..... | 694 |
| 10.7.49 | RCC SAI1 kernel clock selection register (RCC_SAI1CKSELR) .... | 695 |
| 10.7.50 | RCC SAI2 kernel clock selection register (RCC_SAI2CKSELR) .... | 696 |
| 10.7.51 | RCC SAI3 kernel clock selection register (RCC_SAI3CKSELR) .... | 697 |
| 10.7.52 | RCC SAI4 kernel clock selection register (RCC_SAI4CKSELR) .... | 697 |
| 10.7.53 | RCC SPI/I2S1 kernel clock selection register (RCC_SPI2S1CKSELR) ..... | 698 |
| 10.7.54 | RCC SPI/I2S2,3 kernel clock selection register (RCC_SPI2S23CKSELR) ..... | 699 |
| 10.7.55 | RCC SPI4,5 kernel clock selection register (RCC_SPI45CKSELR) .. | 700 |
| 10.7.56 | RCC SPI6 kernel clock selection register (RCC_SPI6CKSELR) .... | 701 |
| 10.7.57 | RCC USART6 kernel clock selection register (RCC_UART6CKSELR) ..... | 702 |
| 10.7.58 | RCC UART2,4 kernel clock selection register (RCC_UART24CKSELR) ..... | 703 |
| 10.7.59 | RCC UART3,5 kernel clock selection register (RCC_UART35CKSELR) . . . . . | 704 |
| 10.7.60 | RCC UART7,8 kernel clock selection register (RCC_UART78CKSELR) . . . . . | 705 |
| 10.7.61 | RCC USART1 kernel clock selection register (RCC_UART1CKSELR) . . . . . | 706 |
| 10.7.62 | RCC SDMMC1 and 2 kernel clock selection register (RCC_SDMMC12CKSELR) . . . . . | 707 |
| 10.7.63 | RCC SDMMC3 kernel clock selection register (RCC_SDMMC3CKSELR) . . . . . | 708 |
| 10.7.64 | RCC ethernet kernel clock selection register (RCC_ETHCKSELR) . . . | 709 |
| 10.7.65 | RCC QUADSPI kernel clock selection register (RCC_QSPICKSELR) . . . . . | 710 |
| 10.7.66 | RCC FMC kernel clock selection register (RCC_FMCKSELR) . . . . . | 711 |
| 10.7.67 | RCC FDCAN kernel clock selection register (RCC_FDCANCKSELR) . . . . . | 712 |
| 10.7.68 | RCC SPDIFRX kernel clock selection register (RCC_SPDIFCKSELR) . . . . . | 713 |
| 10.7.69 | RCC CEC kernel clock selection register (RCC_CECCKSELR) . . . . . | 714 |
| 10.7.70 | RCC USB kernel clock selection register (RCC_USBCKSELR) . . . . . | 715 |
| 10.7.71 | RCC RNG1 kernel clock selection register (RCC_RNG1CKSELR) . . . | 716 |
| 10.7.72 | RCC RNG2 kernel clock selection register (RCC_RNG2CKSELR) . . . | 717 |
| 10.7.73 | RCC common peripheral clock selection register (RCC_CPERCKSELR) . . . . . | 718 |
| 10.7.74 | RCC STGEN clock selection register (RCC_STGENCKSELR) . . . . . | 719 |
| 10.7.75 | RCC DDR interface control register (RCC_DDRITFCR) . . . . . | 720 |
| 10.7.76 | RCC DSI kernel clock selection register (RCC_DSICKSELR) . . . . . | 725 |
| 10.7.77 | RCC ADC kernel clock selection register (RCC_ADCCKSELR) . . . . . | 726 |
| 10.7.78 | RCC LPTIM4 and 5 kernel clock selection register (RCC_LPTIM45CKSELR) . . . . . | 727 |
| 10.7.79 | RCC LPTIM2 and 3 kernel clock selection register (RCC_LPTIM23CKSELR) . . . . . | 728 |
| 10.7.80 | RCC LPTIM1 kernel clock selection register (RCC_LPTIM1CKSELR) . . . . . | 729 |
| 10.7.81 | RCC boot control register (RCC_MP_BOOTCR) . . . . . | 730 |
| 10.7.82 | RCC stop request set register (RCC_MP_SREQSETR) . . . . . | 731 |
| 10.7.83 | RCC stop request clear register (RCC_MP_SREQCLRR) . . . . . | 732 |
| 10.7.84 | RCC global control register (RCC_MP_GCR) . . . . . | 733 |
| 10.7.85 | RCC application reset control register (RCC_MP_AP_RSTCR) . . . . . | 734 |
| 10.7.86 | RCC application reset status register (RCC_MP_AP_RSTSR) . . . . . | 735 |
| 10.7.87 | RCC backup domain control register (RCC_BDCR) . . . . . | 736 |
| 10.7.88 | RCC reset duration and LSI control register (RCC_RDLSICR) . . . . . | 737 |
| 10.7.89 | RCC clock source interrupt enable register (RCC_MP_CIER) . . . . . | 740 |
| 10.7.90 | RCC clock source interrupt flag register (RCC_MP_CIFR) . . . . . | 742 |
| 10.7.91 | RCC clock source interrupt enable register (RCC_MC_CIER) . . . . . | 743 |
| 10.7.92 | RCC clock source interrupt flag register (RCC_MC_CIFR) . . . . . | 746 |
| 10.7.93 | RCC PWR_LP delay control register (RCC_PWRLPDLYCR) . . . . . | 748 |
| 10.7.94 | RCC APB1 peripheral reset set register (RCC_APB1RSTSETR) . . . . | 748 |
| 10.7.95 | RCC APB1 peripheral reset clear register (RCC_APB1RSTCLRR) . . | 752 |
| 10.7.96 | RCC APB2 peripheral reset set register (RCC_APB2RSTSETR) . . . . | 755 |
| 10.7.97 | RCC APB2 peripheral reset clear register (RCC_APB2RSTCLRR) . . | 756 |
| 10.7.98 | RCC APB3 peripheral reset set register (RCC_APB3RSTSETR) . . . . | 758 |
| 10.7.99 | RCC APB3 peripheral reset clear register (RCC_APB3RSTCLRR) . . | 761 |
| 10.7.100 | RCC AHB2 peripheral reset set register (RCC_AHB2RSTSETR) . . . . | 763 |
| 10.7.101 | RCC AHB2 peripheral reset clear register (RCC_AHB2RSTCLRR) . . | 765 |
| 10.7.102 | RCC AHB3 peripheral reset set register (RCC_AHB3RSTSETR) . . . . | 767 |
| 10.7.103 | RCC AHB3 peripheral reset clear register (RCC_AHB3RSTCLRR) . . | 769 |
| 10.7.104 | RCC AHB4 peripheral reset set register (RCC_AHB4RSTSETR) . . . . | 771 |
| 10.7.105 | RCC AHB4 peripheral reset clear register (RCC_AHB4RSTCLRR) . . | 773 |
| 10.7.106 | RCC APB4 peripheral reset set register (RCC_APB4RSTSETR) . . . . | 775 |
| 10.7.107 | RCC APB4 peripheral reset clear register (RCC_APB4RSTCLRR) . . | 775 |
| 10.7.108 | RCC APB5 peripheral reset set register (RCC_APB5RSTSETR) . . . . | 776 |
| 10.7.109 | RCC APB5 peripheral reset clear register (RCC_APB5RSTCLRR) . . | 778 |
| 10.7.110 | RCC AHB5 peripheral reset set register (RCC_AHB5RSTSETR) . . . . | 779 |
| 10.7.111 | RCC AHB5 peripheral reset clear register (RCC_AHB5RSTCLRR) . . | 780 |
| 10.7.112 | RCC AHB6 peripheral reset set register (RCC_AHB6RSTSETR) . . . . | 781 |
| 10.7.113 | RCC AHB6 peripheral reset clear register (RCC_AHB6RSTCLRR) . . | 783 |
| 10.7.114 | RCC AHB6 secure peripheral reset set register (RCC_TZAHB6RSTSETR) . . . . . | 785 |
| 10.7.115 | RCC AHB6 secure peripheral reset clear register (RCC_TZAHB6RSTCLRR) . . . . . | 786 |
| 10.7.116 | RCC global reset control set register (RCC_MP_GRSTCSETR) . . . . . | 787 |
| 10.7.117 | RCC APB1 peripheral enable for MPU set register (RCC_MP_APB1ENSETR) . . . . . | 788 |
| 10.7.118 | RCC APB1 peripheral enable for MCU set register (RCC_MC_APB1ENSETR) . . . . . | 792 |
| 10.7.119 | RCC APB1 peripheral enable for MPU clear register (RCC_MP_APB1ENCLRR) . . . . . | 796 |
| 10.7.120 RCC APB1 peripheral enable for MCU clear register (RCC_MC_APB1ENCLRR) ..... | 800 |
| 10.7.121 RCC APB2 peripheral enable for MPU set register (RCC_MP_APB2ENSETR) ..... | 804 |
| 10.7.122 RCC APB2 peripheral enable for MCU set register (RCC_MC_APB2ENSETR) ..... | 807 |
| 10.7.123 RCC APB2 peripheral enable for MPU clear register (RCC_MP_APB2ENCLRR) ..... | 810 |
| 10.7.124 RCC APB2 peripheral enable for MCU clear register (RCC_MC_APB2ENCLRR) ..... | 813 |
| 10.7.125 RCC APB3 peripheral enable for MPU set register (RCC_MP_APB3ENSETR) ..... | 816 |
| 10.7.126 RCC APB3 peripheral enable for MCU set register (RCC_MC_APB3ENSETR) ..... | 818 |
| 10.7.127 RCC APB3 peripheral enable for MPU clear register (RCC_MP_APB3ENCLRR) ..... | 819 |
| 10.7.128 RCC APB3 peripheral enable for MCU clear register (RCC_MC_APB3ENCLRR) ..... | 822 |
| 10.7.129 RCC APB4 peripheral enable for MCU set register (RCC_MC_APB4ENSETR) ..... | 823 |
| 10.7.130 RCC APB4 peripheral enable for MPU set register (RCC_MP_APB4ENSETR) ..... | 825 |
| 10.7.131 RCC APB4 peripheral enable for MCU clear register (RCC_MC_APB4ENCLRR) ..... | 827 |
| 10.7.132 RCC APB4 peripheral enable for MPU clear register (RCC_MP_APB4ENCLRR) ..... | 829 |
| 10.7.133 RCC APB5 peripheral enable for MCU set register (RCC_MC_APB5ENSETR) ..... | 831 |
| 10.7.134 RCC APB5 peripheral enable for MPU set register (RCC_MP_APB5ENSETR) ..... | 833 |
| 10.7.135 RCC APB5 peripheral enable for MCU clear register (RCC_MC_APB5ENCLRR) ..... | 834 |
| 10.7.136 RCC APB5 peripheral enable for MPU clear register (RCC_MP_APB5ENCLRR) ..... | 837 |
| 10.7.137 RCC AHB5 peripheral enable for MCU set register (RCC_MC_AHB5ENSETR) ..... | 838 |
| 10.7.138 RCC AHB5 peripheral enable for MPU set register (RCC_MP_AHB5ENSETR) ..... | 840 |
| 10.7.139 RCC AHB5 peripheral enable for MCU clear register (RCC_MC_AHB5ENCLRR) ..... | 842 |
| 10.7.140 RCC AHB5 peripheral enable for MPU clear register (RCC_MP_AHB5ENCLRR) ..... | 844 |
| 10.7.141 RCC AHB6 peripheral enable for MPU set register (RCC_MP_AHB6ENSETR) ..... | 846 |
| 10.7.142 RCC AHB6 peripheral enable for MCU set register (RCC_MC_AHB6ENSETR) ..... | 848 |
| 10.7.143 RCC AHB6 peripheral enable for MPU clear register (RCC_MP_AHB6ENCLRR) ..... | 850 |
| 10.7.144 RCC AHB6 peripheral enable for MCU clear register (RCC_MC_AHB6ENCLRR) ..... | 852 |
| 10.7.145 RCC AHB6 secure peripheral enable for MPU set register (RCC_MP_TZAHB6ENSETR) ..... | 854 |
| 10.7.146 RCC AHB6 secure peripheral enable for MPU clear register (RCC_MP_TZAHB6ENCLRR) ..... | 855 |
| 10.7.147 RCC AHB2 peripheral enable for MPU set register (RCC_MP_AHB2ENSETR) ..... | 855 |
| 10.7.148 RCC AHB2 peripheral enable for MCU set register (RCC_MC_AHB2ENSETR) ..... | 857 |
| 10.7.149 RCC AHB2 peripheral enable for MPU clear register (RCC_MP_AHB2ENCLRR) ..... | 859 |
| 10.7.150 RCC AHB2 peripheral enable for MCU clear register (RCC_MC_AHB2ENCLRR) ..... | 861 |
| 10.7.151 RCC AHB3 peripheral enable for MPU set register (RCC_MP_AHB3ENSETR) ..... | 863 |
| 10.7.152 RCC AHB3 peripheral enable for MCU set register (RCC_MC_AHB3ENSETR) ..... | 865 |
| 10.7.153 RCC AHB3 peripheral enable for MPU clear register (RCC_MP_AHB3ENCLRR) ..... | 867 |
| 10.7.154 RCC AHB3 peripheral enable for MCU clear register (RCC_MC_AHB3ENCLRR) ..... | 869 |
| 10.7.155 RCC AHB4 peripheral enable for MPU set register (RCC_MP_AHB4ENSETR) ..... | 871 |
| 10.7.156 RCC AHB4 peripheral enable for MCU set register (RCC_MC_AHB4ENSETR) ..... | 873 |
| 10.7.157 RCC AHB4 peripheral enable for MPU clear register (RCC_MP_AHB4ENCLRR) ..... | 875 |
| 10.7.158 RCC AHB4 peripheral enable for MCU clear register (RCC_MC_AHB4ENCLRR) ..... | 877 |
| 10.7.159 RCC AXI peripheral enable for MCU set register (RCC_MC_AXIMENSETR) ..... | 879 |
| 10.7.160 RCC AXI peripheral enable for MCU clear register (RCC_MC_AXIMENCLRR) ..... | 880 |
| 10.7.161 RCC MLAHB peripheral enable for MCU set register (RCC_MC_MLAHBENSETR) ..... | 881 |
| 10.7.162 RCC MLAHB peripheral enable for MCU clear register (RCC_MC_MLAHBENCLRR) ..... | 882 |
| 10.7.163 RCC MLAHB peripheral enable for MPU set register (RCC_MP_MLAHBENSETR) ..... | 883 |
| 10.7.164 RCC MLAHB peripheral enable for MPU clear register (RCC_MP_MLAHBENCLRR) ..... | 884 |
| 10.7.165 RCC APB1 sleep clock enable for MPU set register (RCC_MP_APB1LPENSETR) ..... | 885 |
| 10.7.166 RCC APB1 sleep clock enable for MCU set register (RCC_MC_APB1LPENSETR) ..... | 889 |
| 10.7.167 RCC APB1 sleep clock enable MPU clear register (RCC_MP_APB1LPENCLRR) ..... | 894 |
| 10.7.168 RCC APB1 sleep clock enable MCU clear register (RCC_MC_APB1LPENCLRR) ..... | 898 |
| 10.7.169 RCC APB2 sleep clock enable for MPU set register (RCC_MP_APB2LPENSETR) ..... | 903 |
| 10.7.170 RCC APB2 sleep clock enable for MCU set register (RCC_MC_APB2LPENSETR) ..... | 906 |
| 10.7.171 RCC APB2 sleep clock enable for MPU clear register (RCC_MP_APB2LPENCLRR) ..... | 909 |
| 10.7.172 RCC APB2 sleep clock enable for MCU clear register (RCC_MC_APB2LPENCLRR) ..... | 912 |
| 10.7.173 RCC APB3 sleep clock enable for MPU set register (RCC_MP_APB3LPENSETR) ..... | 915 |
| 10.7.174 RCC APB3 sleep clock enable for MCU set register (RCC_MC_APB3LPENSETR) ..... | 917 |
| 10.7.175 RCC APB3 sleep clock enable for MPU clear register (RCC_MP_APB3LPENCLRR) ..... | 918 |
| 10.7.176 RCC APB3 sleep clock enable for MCU clear register (RCC_MC_APB3LPENCLRR) ..... | 921 |
| 10.7.177 RCC APB4 sleep clock enable for MCU set register (RCC_MC_APB4LPENSETR) ..... | 922 |
| 10.7.178 RCC APB4 sleep clock enable for MPU set register (RCC_MP_APB4LPENSETR) ..... | 925 |
| 10.7.179 RCC APB4 sleep clock enable for MCU clear register (RCC_MC_APB4LPENCLRR) ..... | 927 |
| 10.7.180 RCC APB4 sleep clock enable for MPU clear register (RCC_MP_APB4LPENCLRR) ..... | 929 |
| 10.7.181 RCC APB5 sleep clock enable for MCU set register (RCC_MC_APB5LPENSETR) ..... | 931 |
| 10.7.182 RCC APB5 sleep clock enable for MPU set register (RCC_MP_APB5LPENSETR) ..... | 933 |
| 10.7.183 RCC APB5 sleep clock enable for MCU clear register (RCC_MC_APB5LPENCLRR) ..... | 936 |
| 10.7.184 RCC APB5 sleep clock enable for MPU clear register (RCC_MP_APB5LPENCLRR) ..... | 938 |
| 10.7.185 RCC AHB5 peripheral enable for MPU set register (RCC_MP_AHB5LPENSETR) ..... | 941 |
| 10.7.186 RCC AHB5 peripheral enable for MCU set register (RCC_MC_AHB5LPENSETR) ..... | 943 |
| 10.7.187 RCC AHB5 sleep clock enable for MPU clear register (RCC_MP_AHB5LPENCLRR) ..... | 945 |
| 10.7.188 RCC AHB5 sleep clock enable for MCU clear register (RCC_MC_AHB5LPENCLRR) ..... | 947 |
| 10.7.189 RCC AHB6 sleep clock enable for MPU set register (RCC_MP_AHB6LPENSETR) ..... | 949 |
| 10.7.190 RCC AHB6 sleep clock enable for MCU set register (RCC_MC_AHB6LPENSETR) ..... | 952 |
| 10.7.191 RCC AHB6 sleep clock enable for MPU clear register (RCC_MP_AHB6LPENCLRR) ..... | 955 |
| 10.7.192 RCC AHB6 sleep clock enable for MCU clear register (RCC_MC_AHB6LPENCLRR) ..... | 958 |
| 10.7.193 RCC AHB6 secure sleep clock enable for MPU set register (RCC_MP_TZAHB6LPENSETR) ..... | 961 |
| 10.7.194 RCC AHB6 secure sleep clock enable for MPU clear register (RCC_MP_TZAHB6LPENCLRR) ..... | 962 |
| 10.7.195 RCC AHB2 sleep clock enable for MPU set register (RCC_MP_AHB2LPENSETR) ..... | 963 |
| 10.7.196 RCC AHB2 sleep clock enable for MCU set register (RCC_MC_AHB2LPENSETR) ..... | 965 |
| 10.7.197 RCC AHB2 sleep clock enable for MPU clear register (RCC_MP_AHB2LPENCLRR) ..... | 967 |
| 10.7.198 RCC AHB2 sleep clock enable for MCU clear register (RCC_MC_AHB2LPENCLRR) ..... | 969 |
| 10.7.199 RCC AHB3 sleep clock enable for MPU set register (RCC_MP_AHB3LPENSETR) ..... | 971 |
| 10.7.200 RCC AHB3 sleep clock enable for MCU set register (RCC_MC_AHB3LPENSETR) ..... | 973 |
| 10.7.201 RCC AHB3 sleep clock enable for MPU clear register (RCC_MP_AHB3LPENCLRR) ..... | 975 |
| 10.7.202 RCC AHB3 sleep clock enable for MCU clear register (RCC_MC_AHB3LPENCLRR) ..... | 977 |
| 10.7.203 RCC AHB4 sleep clock enable for MPU set register (RCC_MP_AHB4LPENSETR) ..... | 979 |
| 10.7.204 | RCC AHB4 sleep clock enable for MCU set register (RCC_MC_AHB4LPENSETR) ..... | 981 |
| 10.7.205 | RCC AHB4 sleep clock enable for MPU clear register (RCC_MP_AHB4LPENCLRR) ..... | 982 |
| 10.7.206 | RCC AHB4 sleep clock enable for MCU clear register (RCC_MC_AHB4LPENCLRR) ..... | 985 |
| 10.7.207 | RCC AXI sleep clock enable for MPU set register (RCC_MP_AXIMLPENSETR) ..... | 986 |
| 10.7.208 | RCC AXI sleep clock enable for MCU set register (RCC_MC_AXIMLPENSETR) ..... | 988 |
| 10.7.209 | RCC AXI sleep clock enable for MPU clear register (RCC_MP_AXIMLPENCLRR) ..... | 989 |
| 10.7.210 | RCC AXI sleep clock enable for MCU clear register (RCC_MC_AXIMLPENCLRR) ..... | 990 |
| 10.7.211 | RCC MLAHB sleep clock enable for MPU set register (RCC_MP_MLAHBLPENSETR) ..... | 991 |
| 10.7.212 | RCC MLAHB sleep clock enable for MCU set register (RCC_MC_MLAHBLPENSETR) ..... | 992 |
| 10.7.213 | RCC MLAHB sleep clock enable for MPU clear register (RCC_MP_MLAHBLPENCLRR) ..... | 993 |
| 10.7.214 | RCC MLAHB sleep clock enable for MCU clear register (RCC_MC_MLAHBLPENCLRR) ..... | 994 |
| 10.7.215 | RCC BOOTROM reset status clear register (RCC_BR_RSTSCLRR) ..... | 995 |
| 10.7.216 | RCC MCU reset status clear register (RCC_MC_RSTSCLRR) ..... | 997 |
| 10.7.217 | RCC MPU reset status clear register (RCC_MP_RSTSCLRR) ..... | 998 |
| 10.7.218 | RCC MPU reset status set register (RCC_MP_RSTSSETR) ..... | 1001 |
| 10.7.219 | RCC IWDG clock freeze set register (RCC_MP_IWDGFZSETR) ..... | 1003 |
| 10.7.220 | RCC IWDG clock freeze clear register (RCC_MP_IWDGFZCLRR) ..... | 1004 |
| 10.7.221 | RCC version register (RCC_VERR) ..... | 1005 |
| 10.7.222 | RCC ID register (RCC_IDR) ..... | 1005 |
| 10.7.223 | RCC size ID register (RCC_SIDR) ..... | 1005 |
| 10.8 | RCC register map ..... | 1006 |
| 11 | Hardware semaphore (HSEM) ..... | 1036 |
| 11.1 | Introduction ..... | 1036 |
| 11.2 | Main features ..... | 1036 |
| 11.3 | Functional description ..... | 1037 |
| 11.3.1 | HSEM block diagram ..... | 1037 |
| 11.3.2 | HSEM internal signals ..... | 1037 |
| 11.3.3 | HSEM lock procedures ..... | 1037 |
| 11.3.4 | HSEM write/read/read lock register address ..... | 1039 |
| 11.3.5 | HSEM unlock procedures ..... | 1039 |
| 11.3.6 | HSEM COREID semaphore clear ..... | 1040 |
| 11.3.7 | HSEM interrupts ..... | 1040 |
| 11.3.8 | AHB bus master ID verification ..... | 1042 |
| 11.4 | HSEM registers ..... | 1043 |
| 11.4.1 | HSEM register semaphore x (HSEM_Rx) ..... | 1043 |
| 11.4.2 | HSEM read lock register semaphore x (HSEM_RLRx) ..... | 1044 |
| 11.4.3 | HSEM interrupt enable register (HSEM_CnIER) ..... | 1045 |
| 11.4.4 | HSEM interrupt clear register (HSEM_CnICR) ..... | 1045 |
| 11.4.5 | HSEM interrupt status register (HSEM_CnISR) ..... | 1045 |
| 11.4.6 | HSEM interrupt status register (HSEM_CnMISR) ..... | 1046 |
| 11.4.7 | HSEM clear register (HSEM_CR) ..... | 1046 |
| 11.4.8 | HSEM clear semaphore key register (HSEM_KEYR) ..... | 1047 |
| 11.4.9 | HSEM hardware configuration register 2 (HSEM_HWCFGR2) .... | 1047 |
| 11.4.10 | HSEM hardware configuration register 1 (HSEM_HWCFGR1) .... | 1048 |
| 11.4.11 | HSEM version register (HSEM_VERR) ..... | 1048 |
| 11.4.12 | HSEM identification register (HSEM_IPIDR) ..... | 1048 |
| 11.4.13 | HSEM size identification register (HSEM_SIDR) ..... | 1049 |
| 11.4.14 | HSEM register map ..... | 1050 |
| 12 | Inter-processor communication controller (IPCC) ..... | 1052 |
| 12.1 | Introduction ..... | 1052 |
| 12.2 | IPCC main features ..... | 1052 |
| 12.3 | IPCC functional description ..... | 1052 |
| 12.3.1 | IPCC block diagram ..... | 1053 |
| 12.3.2 | IPCC Simplex channel mode ..... | 1053 |
| 12.3.3 | IPCC Half-duplex channel mode ..... | 1056 |
| 12.3.4 | IPCC interrupts ..... | 1059 |
| 12.4 | IPCC registers ..... | 1060 |
| 12.4.1 | IPCC processor 1 control register (IPCC_C1CR) ..... | 1060 |
| 12.4.2 | IPCC processor 1 mask register (IPCC_C1MR) ..... | 1060 |
| 12.4.3 | IPCC processor 1 status set clear register (IPCC_C1SCR) ..... | 1061 |
| 12.4.4 | IPCC processor 1 to processor 2 status register (IPCC_C1TOC2SR) ..... | 1061 |
| 12.4.5 | IPCC processor 2 control register (IPCC_C2CR) ..... | 1062 |
| 12.4.6 | IPCC processor 2 mask register (IPCC_C2MR) ..... | 1062 |
| 12.4.7 | IPCC processor 2 status set clear register (IPCC_C2SCR) ..... | 1063 |
| 12.4.8 | IPCC processor 2 to processor 1 status register (IPCC_C2TOC1SR) ..... | 1064 |
| 12.4.9 | IPCC hardware configuration register (IPCC_HWCFGR) ..... | 1064 |
| 12.4.10 | IPCC version register (IPCC_VERR) ..... | 1065 |
| 12.4.11 | IPCC identification register (IPCC_IPIDR) ..... | 1065 |
| 12.4.12 | IPCC size identification register (IPCC_SIDR) ..... | 1065 |
| 12.4.13 | IPCC register map ..... | 1066 |
| 13 | General-purpose I/Os (GPIO) ..... | 1067 |
| 13.1 | Introduction ..... | 1067 |
| 13.2 | GPIO main features ..... | 1067 |
| 13.3 | GPIO functional description ..... | 1067 |
| 13.3.1 | General-purpose I/O (GPIO) ..... | 1069 |
| 13.3.2 | I/O pin alternate function multiplexer and mapping ..... | 1070 |
| 13.3.3 | I/O port control registers ..... | 1071 |
| 13.3.4 | I/O port data registers ..... | 1071 |
| 13.3.5 | I/O data bitwise handling ..... | 1071 |
| 13.3.6 | GPIO locking mechanism ..... | 1071 |
| 13.3.7 | I/O alternate function input/output ..... | 1072 |
| 13.3.8 | External interrupt/wakeup lines ..... | 1072 |
| 13.3.9 | Input configuration ..... | 1072 |
| 13.3.10 | Output configuration ..... | 1073 |
| 13.3.11 | I/O compensation cell ..... | 1074 |
| 13.3.12 | Alternate function configuration ..... | 1074 |
| 13.3.13 | Analog configuration ..... | 1075 |
| 13.3.14 | Using the HSE or LSE oscillator pins as GPIOs ..... | 1076 |
| 13.3.15 | Using the GPIO pins in the backup supply domain ..... | 1076 |
| 13.3.16 | TrustZone security (only for GPIOZ) ..... | 1076 |
| 13.4 | GPIO registers ..... | 1078 |
| 13.4.1 | GPIO port mode register (GPIOx_MODER) (x = A to K, Z) ..... | 1078 |
| 13.4.2 | GPIO port output type register (GPIOx_OTYPER) (x = A to K, Z) ..... | 1078 |
| 13.4.3 | GPIO port output speed register (GPIOx_OSPEEDR) (x = A to K, Z) ..... | 1079 |
| 13.4.4 | GPIO port pull-up/pull-down register (GPIOx_PUPDR) (x = A to K, Z) | 1079 |
| 13.4.5 | GPIO port input data register (GPIOx_IDR) (x = A to K, Z) | 1079 |
| 13.4.6 | GPIO port output data register (GPIOx_ODR) (x = A to K, Z) | 1080 |
| 13.4.7 | GPIO port bit set/reset register (GPIOx_BSRR) (x = A to K, Z) | 1080 |
| 13.4.8 | GPIO port configuration lock register (GPIOx_LCKR) (x = A to K, Z) | 1081 |
| 13.4.9 | GPIO alternate function low register (GPIOx_AFRL) (x = A to K, Z) | 1082 |
| 13.4.10 | GPIO alternate function high register (GPIOx_AFRH) (x = A to K, Z) | 1083 |
| 13.4.11 | GPIO port bit reset register (GPIOx_BRR) (x = A to K, Z) | 1084 |
| 13.4.12 | GPIO secure configuration register (GPIOZ_SECCFGR) | 1084 |
| 13.4.13 | GPIO hardware configuration register 10 (GPIOx_HWCFGR10) (x = A to K, Z) | 1085 |
| 13.4.14 | GPIO hardware configuration register 9 (GPIOx_HWCFGR9) (x = A to K, Z) | 1086 |
| 13.4.15 | GPIO hardware configuration register 8 (GPIOx_HWCFGR8) (x = A to K, Z) | 1086 |
| 13.4.16 | GPIO hardware configuration register 7 (GPIOx_HWCFGR7) (x = A to K, Z) | 1087 |
| 13.4.17 | GPIO hardware configuration register 6 (GPIOx_HWCFGR6) (x = A to K, Z) | 1087 |
| 13.4.18 | GPIO hardware configuration register 5 (GPIOx_HWCFGR5) (x = A to K, Z) | 1088 |
| 13.4.19 | GPIO hardware configuration register 4 (GPIOx_HWCFGR4) (x = A to K, Z) | 1088 |
| 13.4.20 | GPIO hardware configuration register 3 (GPIOx_HWCFGR3) (x = A to K, Z) | 1088 |
| 13.4.21 | GPIO hardware configuration register 2 (GPIOx_HWCFGR2) (x = A to K, Z) | 1089 |
| 13.4.22 | GPIO hardware configuration register 1 (GPIOx_HWCFGR1) (x = A to K, Z) | 1089 |
| 13.4.23 | GPIO hardware configuration register 0 (GPIOx_HWCFGR0) (x = A to K, Z) | 1089 |
| 13.4.24 | GPIO version register (GPIOx_VERR) (x = A to K, Z) | 1090 |
| 13.4.25 | GPIO identification register (GPIOx_IPIDR) (x = A to K, Z) | 1090 |
| 13.4.26 | GPIO size identification register (GPIOx_SIDR) (x = A to K, Z) | 1091 |
| 13.4.27 | GPIO register map | 1092 |
| 14 | System configuration controller (SYSCFG) ..... | 1094 |
| 14.1 | I/O compensation cell ..... | 1094 |
| 14.2 | Ethernet clock source ..... | 1096 |
| 14.3 | SYSCFG registers ..... | 1097 |
| 14.3.1 | SYSCFG boot pins control register (SYSCFG_BOOTR) ..... | 1097 |
| 14.3.2 | SYSCFG peripheral mode configuration set register (SYSCFG_PMCSETR) ..... | 1098 |
| 14.3.3 | SYSCFG peripheral mode configuration clear register (SYSCFG_PMCCLRR) ..... | 1100 |
| 14.3.4 | SYSCFG IO control set register (SYSCFG_IOCTRLSETR) ..... | 1103 |
| 14.3.5 | SYSCFG IO control clear register (SYSCFG_IOCTRLCLRR) ..... | 1104 |
| 14.3.6 | SYSCFG interconnect control register (SYSCFG_ICNR) ..... | 1106 |
| 14.3.7 | SYSCFG compensation cell control register (SYSCFG_CMPCR) .. | 1108 |
| 14.3.8 | SYSCFG compensation cell enable set register (SYSCFG_CMPENSETR) ..... | 1109 |
| 14.3.9 | SYSCFG compensation cell enable clear register (SYSCFG_CMPENCLRR) ..... | 1110 |
| 14.3.10 | SYSCFG control timer break register (SYSCFG_CBR) ..... | 1111 |
| 14.3.11 | SYSCFG version register (SYSCFG_VERR) ..... | 1112 |
| 14.3.12 | SYSCFG identification register (SYSCFG_IPIDR) ..... | 1112 |
| 14.3.13 | SYSCFG size identification register (SYSCFG_SIDR) ..... | 1113 |
| 14.3.14 | SYSCFG interface register map ..... | 1114 |
| 15 | Extended TrustZone® protection controller (ETZPC) ..... | 1116 |
| 15.1 | ETZPC introduction ..... | 1116 |
| 15.2 | ETZPC features ..... | 1116 |
| 15.3 | Extended TrustZone architecture and ETZPC ..... | 1116 |
| 15.4 | ETZPC functional description ..... | 1118 |
| 15.5 | STM32MP157 security architecture ..... | 1118 |
| 15.6 | STM32MP157 MCU resource isolation ..... | 1121 |
| 15.7 | ETZPC registers ..... | 1128 |
| 15.7.1 | ETZPC ROM secure size definition (ETZPC_TZMA0_SIZE) ..... | 1129 |
| 15.7.2 | ETZPC RAM secure size definition (ETZPC_TZMA1_SIZE) ..... | 1130 |
| 15.7.3 | ETZPC securable peripheral control register x (ETZPC_DECPROTx) ..... | 1131 |
| 15.7.4 | ETZPC decprot lock x register (ETZPC_DECPROT_LOCKx) ..... | 1132 |
| 15.7.5 | ETZPC HW configuration register (ETZPC_HWCFGR) ..... | 1136 |
| 15.7.6 | ETZPC version register (ETZPC_VERR) ..... | 1136 |
| 15.7.7 | ETZPC identification register (ETZPC_IDR) ..... | 1137 |
| 15.7.8 | ETZPC size identification register (ETZPC_SIDR) ..... | 1137 |
| 15.7.9 | ETZPC register map ..... | 1138 |
| 16 | Block interconnects ..... | 1140 |
| 16.1 | Peripheral interconnects ..... | 1140 |
| 16.1.1 | Introduction ..... | 1140 |
| 16.1.2 | Connection overview ..... | 1140 |
| 16.2 | MDMA ..... | 1159 |
| 17 | MDMA controller (MDMA) ..... | 1161 |
| 17.1 | MDMA introduction ..... | 1161 |
| 17.2 | MDMA main features ..... | 1161 |
| 17.3 | MDMA functional description ..... | 1163 |
| 17.3.1 | MDMA block diagram ..... | 1163 |
| 17.3.2 | MDMA internal signals ..... | 1163 |
| 17.3.3 | MDMA overview ..... | 1163 |
| 17.3.4 | MDMA channel ..... | 1165 |
| 17.3.5 | Source, destination and transfer modes ..... | 1165 |
| 17.3.6 | Pointer update ..... | 1165 |
| 17.3.7 | MDMA buffer transfer ..... | 1166 |
| 17.3.8 | Request arbitration ..... | 1167 |
| 17.3.9 | FIFO ..... | 1167 |
| 17.3.10 | Block transfer ..... | 1167 |
| 17.3.11 | Block repeat mode ..... | 1168 |
| 17.3.12 | Linked-list mode ..... | 1168 |
| 17.3.13 | MDMA transfer completion ..... | 1168 |
| 17.3.14 | MDMA transfer suspension ..... | 1168 |
| 17.3.15 | Error management ..... | 1169 |
| 17.4 | MDMA interrupts ..... | 1169 |
| 17.5 | MDMA registers ..... | 1170 |
| 17.5.1 | MDMA global interrupt status register (MDMA_GISR0) ..... | 1170 |
| 17.5.2 | MDMA secure global interrupt status register (MDMA_SGISR0) ..... | 1170 |
| 17.5.3 | MDMA channel x interrupt status register (MDMA_CxISR) ..... | 1171 |
| 17.5.4 | MDMA channel x interrupt flag clear register (MDMA_CxIFCR) .... | 1172 |
| 17.5.5 | MDMA channel x error status register (MDMA_CxESR) . . . . . | 1173 |
| 17.5.6 | MDMA channel x control register (MDMA_CxCR) . . . . . | 1174 |
| 17.5.7 | MDMA channel x transfer configuration register (MDMA_CxTCR) . . . | 1176 |
| 17.5.8 | MDMA channel x block number of data register (MDMA_CxBNDTR) . . . | 1179 |
| 17.5.9 | MDMA channel x source address register (MDMA_CxSAR) . . . . . | 1180 |
| 17.5.10 | MDMA channel x destination address register (MDMA_CxDAR) . . . . . | 1181 |
| 17.5.11 | MDMA channel x block repeat address update register (MDMA_CxBRUR) . . . . . | 1181 |
| 17.5.12 | MDMA channel x link address register (MDMA_CxLAR) . . . . . | 1182 |
| 17.5.13 | MDMA channel x trigger and bus selection register (MDMA_CxTBR) . . . . . | 1183 |
| 17.5.14 | MDMA channel x mask address register (MDMA_CxMAR) . . . . . | 1183 |
| 17.5.15 | MDMA channel x mask data register (MDMA_CxMDR) . . . . . | 1184 |
| 17.5.16 | MDMA register map . . . . . | 1184 |
| 18 | Direct memory access controller (DMA) . . . . . | 1186 |
| 18.1 | DMA introduction . . . . . | 1186 |
| 18.2 | DMA main features . . . . . | 1186 |
| 18.3 | DMA functional description . . . . . | 1188 |
| 18.3.1 | DMA block diagram . . . . . | 1188 |
| 18.3.2 | DMA overview . . . . . | 1188 |
| 18.3.3 | DMA transactions . . . . . | 1189 |
| 18.3.4 | DMA request mapping . . . . . | 1189 |
| 18.3.5 | Arbiter . . . . . | 1189 |
| 18.3.6 | DMA streams . . . . . | 1190 |
| 18.3.7 | Source, destination and transfer modes . . . . . | 1190 |
| 18.3.8 | Pointer incrementation . . . . . | 1193 |
| 18.3.9 | Circular mode . . . . . | 1194 |
| 18.3.10 | Double-buffer mode . . . . . | 1194 |
| 18.3.11 | Programmable data width, packing/unpacking, endianness . . . . . | 1195 |
| 18.3.12 | Single and burst transfers . . . . . | 1196 |
| 18.3.13 | FIFO . . . . . | 1197 |
| 18.3.14 | DMA transfer completion . . . . . | 1200 |
| 18.3.15 | DMA transfer suspension . . . . . | 1201 |
| 18.3.16 | Flow controller . . . . . | 1202 |
| 18.3.17 | Summary of the possible DMA configurations . . . . . | 1203 |
| 18.3.18 | Stream configuration procedure . . . . . | 1203 |
| 18.3.19 | Error management | 1204 |
| 18.4 | DMA interrupts | 1205 |
| 18.5 | DMA registers | 1206 |
| 18.5.1 | DMA low interrupt status register (DMA_LISR) | 1206 |
| 18.5.2 | DMA high interrupt status register (DMA_HISR) | 1207 |
| 18.5.3 | DMA low interrupt flag clear register (DMA_LIFCR) | 1208 |
| 18.5.4 | DMA high interrupt flag clear register (DMA_HIFCR) | 1208 |
| 18.5.5 | DMA stream x configuration register (DMA_SxCR) | 1209 |
| 18.5.6 | DMA stream x number of data register (DMA_SxNDTR) | 1212 |
| 18.5.7 | DMA stream x peripheral address register (DMA_SxPAR) | 1212 |
| 18.5.8 | DMA stream x memory 0 address register (DMA_SxM0AR) | 1213 |
| 18.5.9 | DMA stream x memory 1 address register (DMA_SxM1AR) | 1213 |
| 18.5.10 | DMA stream x FIFO control register (DMA_SxFCR) | 1214 |
| 18.5.11 | DMA hardware configuration 2 register (DMA_HWCFGR2) | 1215 |
| 18.5.12 | DMA hardware configuration 1 register (DMA_HWCFGR1) | 1216 |
| 18.5.13 | DMA version register (DMA_VERR) | 1217 |
| 18.5.14 | DMA identification register (DMA_IPDR) | 1217 |
| 18.5.15 | DMA size identification register (DMA_SIDR) | 1218 |
| 18.5.16 | DMA register map | 1218 |
| 19 | DMA request multiplexer (DMAMUX) | 1223 |
| 19.1 | Introduction | 1223 |
| 19.2 | DMAMUX main features | 1224 |
| 19.3 | DMAMUX implementation | 1224 |
| 19.3.1 | DMAMUX instantiation | 1224 |
| 19.3.2 | DMAMUX mapping | 1224 |
| 19.4 | DMAMUX functional description | 1227 |
| 19.4.1 | DMAMUX block diagram | 1227 |
| 19.4.2 | DMAMUX signals | 1228 |
| 19.4.3 | DMAMUX channels | 1228 |
| 19.4.4 | DMAMUX request line multiplexer | 1228 |
| 19.4.5 | DMAMUX request generator | 1231 |
| 19.5 | DMAMUX interrupts | 1232 |
| 19.6 | DMAMUX registers | 1233 |
| 19.6.1 | DMAMUX request line multiplexer channel x configuration register (DMAMUX_CxCR) ..... | 1233 |
| 19.6.2 | DMAMUX request line multiplexer interrupt channel status register (DMAMUX_CSR) ..... | 1234 |
| 19.6.3 | DMAMUX request line multiplexer interrupt clear flag register (DMAMUX_CFR) ..... | 1234 |
| 19.6.4 | DMAMUX request generator channel x configuration register (DMAMUX_RGxCR) ..... | 1235 |
| 19.6.5 | DMAMUX request generator interrupt status register (DMAMUX_RGSR) ..... | 1236 |
| 19.6.6 | DMAMUX request generator interrupt clear flag register (DMAMUX_RGCFR) ..... | 1236 |
| 19.6.7 | DMAMUX size identification register (DMAMUX_SIDR) ..... | 1237 |
| 19.6.8 | DMAMUX IP identification register (DMAMUX_IPIDR) ..... | 1237 |
| 19.6.9 | DMAMUX version register (DMAMUX_VERR) ..... | 1237 |
| 19.6.10 | DMAMUX hardware configuration 1 register (DMAMUX_HWCFGR1) ..... | 1238 |
| 19.6.11 | DMAMUX hardware configuration 2 register (DMAMUX_HWCFGR2) ..... | 1238 |
| 19.6.12 | DMAMUX register map ..... | 1239 |
| 20 | Graphic processor unit (GPU) ..... | 1242 |
| 20.1 | Introduction ..... | 1242 |
| 20.2 | GPU main features ..... | 1242 |
| 20.3 | GPU general description ..... | 1243 |
| 21 | Interrupt list ..... | 1244 |
| 21.1 | NVIC interrupts ..... | 1244 |
| 21.2 | GIC Interrupts ..... | 1249 |
| 21.3 | EXTI events ..... | 1256 |
| 22 | Nested Vectored Interrupt Controllers (NVIC) ..... | 1260 |
| 22.1 | NVIC features ..... | 1260 |
| 22.2 | SysTick calibration value register ..... | 1260 |
| 22.3 | Interrupt and exception vectors ..... | 1260 |
| 23 | Global interrupt controller (GIC) ..... | 1261 |
| 23.1 | Introduction ..... | 1261 |
| 23.2 | GIC main features ..... | 1261 |
| 23.3 | GIC functional description | 1261 |
| 23.4 | Interrupt sources | 1262 |
| 23.4.1 | Software generated interrupts (SGI) | 1262 |
| 23.4.2 | Private peripheral interrupts (PPI) | 1263 |
| 23.4.3 | Shared peripheral interrupts (SPI) | 1264 |
| 23.4.4 | Interrupt priority formats | 1264 |
| 23.5 | GIC distributor (GICD) | 1264 |
| 23.5.1 | GICD control register (GICD_CTLR) | 1264 |
| 23.5.2 | GICD control non-secure access register (GICD_CTLRNS) | 1265 |
| 23.5.3 | GICD interrupt controller type register (GICD_TYPER) | 1265 |
| 23.5.4 | GICD implementer identification register (GICD_IIDR) | 1266 |
| 23.5.5 | GICD interrupt group register x (GICD_IGROUPRx) | 1266 |
| 23.5.6 | GICD interrupt set-enable register (GICD_ISENABLER0) | 1267 |
| 23.5.7 | GICD interrupt set-enable register x (GICD_ISENABLERx) | 1267 |
| 23.5.8 | GICD interrupt clear-enable register (GICD_ICENABLER0) | 1267 |
| 23.5.9 | GICD interrupt clear-enable register x (GICD_ICENABLERx) | 1268 |
| 23.5.10 | GICD interrupt set-pending register x (GICD_ISPENDRx) | 1268 |
| 23.5.11 | GICD interrupt clear-pending register x (GICD_ICPENDRx) | 1268 |
| 23.5.12 | GICD interrupt set-active register x (GICD_ISACTIVERx) | 1269 |
| 23.5.13 | GICD interrupt clear-active register x (GICD_ICACTIVERx) | 1269 |
| 23.5.14 | GICD interrupt priority register x (GICD_IPRIORITYRx) | 1269 |
| 23.5.15 | GICD interrupt processor target register x (GICD_ITARGETSRx) | 1270 |
| 23.5.16 | GICD interrupt processor target register x (GICD_ITARGETSRx) | 1271 |
| 23.5.17 | GICD interrupt configuration register (GICD_ICFGR0) | 1271 |
| 23.5.18 | GICD interrupt configuration register (GICD_ICFGR1) | 1272 |
| 23.5.19 | GICD interrupt configuration register x (GICD_ICFGRx) | 1273 |
| 23.5.20 | GICD private peripheral interrupt status register (GICD_PPISR) | 1274 |
| 23.5.21 | GICD shared peripheral interrupt register x (GICD_SPISRx) | 1275 |
| 23.5.22 | GICD software generated interrupt register (GICD_SGIR) | 1275 |
| 23.5.23 | GICD SGI clear-pending register x (GICD_CPENDSGIRx) | 1276 |
| 23.5.24 | GICD SGI set-pending register x (GICD_SPENDSGIRx) | 1278 |
| 23.5.25 | GICD peripheral ID4 register (GICD_PIDR4) | 1279 |
| 23.5.26 | GICD peripheral ID5 to ID7 register x (GICD_PIDRx) | 1279 |
| 23.5.27 | GICD peripheral ID0 register (GICD_PIDR0) | 1280 |
| 23.5.28 | GICD peripheral ID1 register (GICD_PIDR1) | 1280 |
| 23.5.29 | GICD peripheral ID2 register (GICD_PIDR2) | 1280 |
| 23.5.30 | GICD peripheral ID3 register (GICD_PIDR3) | 1281 |
| 23.5.31 | GICD component ID0 register (GICD_CIDR0) ..... | 1281 |
| 23.5.32 | GICD component ID1 register (GICD_CIDR1) ..... | 1281 |
| 23.5.33 | GICD component ID2 register (GICD_CIDR2) ..... | 1282 |
| 23.5.34 | GICD component ID3 register (GICD_CIDR3) ..... | 1282 |
| 23.5.35 | GICD register map ..... | 1282 |
| 23.6 | GIC CPU Interface (GICC) ..... | 1286 |
| 23.6.1 | GICC control register (GICC_CTLR) ..... | 1286 |
| 23.6.2 | GICC control non-secure access register (GICC_CTLRNS) ..... | 1287 |
| 23.6.3 | GICC input priority mask register (GICC_PMR) ..... | 1288 |
| 23.6.4 | GICC binary point register (GICC_BPR) ..... | 1288 |
| 23.6.5 | GICC binary point non-secure access register (GICC_BPRNS) .... | 1289 |
| 23.6.6 | GICC interrupt acknowledge register (GICC_IAR) ..... | 1289 |
| 23.6.7 | GICC end of interrupt register (GICC_EOIR) ..... | 1290 |
| 23.6.8 | GICC running priority register (GICC_RPR) ..... | 1290 |
| 23.6.9 | GICC highest priority pending interrupt register (GICC_HPPIR) .... | 1291 |
| 23.6.10 | GICC aliased binary point register (GICC_ABPR) ..... | 1291 |
| 23.6.11 | GICC aliased interrupt acknowledge register (GICC_AIAR) ..... | 1292 |
| 23.6.12 | GICC aliased end of interrupt register (GICC_AEOIR) ..... | 1292 |
| 23.6.13 | GICC aliased highest priority pending interrupt register (GICC_AHPPIR) ..... | 1293 |
| 23.6.14 | GICC active priority register (GICC_APR0) ..... | 1293 |
| 23.6.15 | GICC non-secure active priority register (GICC_NSAPR0) ..... | 1294 |
| 23.6.16 | GICC interface identification register (GICC_IIDR) ..... | 1294 |
| 23.6.17 | GICC deactivate interrupt register (GICC_DIR) ..... | 1294 |
| 23.6.18 | GICC register map ..... | 1295 |
| 23.7 | GIC virtual interface control, common (GICH) ..... | 1297 |
| 23.7.1 | GICH hypervisor control register (GICH_HCR) ..... | 1297 |
| 23.7.2 | GICH VGIC type register (GICH_VTR) ..... | 1298 |
| 23.7.3 | GICH virtual machine control register (GICH_VMCR) ..... | 1298 |
| 23.7.4 | GICH maintenance interrupt status register (GICH_MISR) ..... | 1299 |
| 23.7.5 | GICH end of interrupt status register (GICH_EISR0) ..... | 1300 |
| 23.7.6 | GICH empty list status register (GICH_ELSR0) ..... | 1300 |
| 23.7.7 | GICH active priority register (GICH_APR0) ..... | 1301 |
| 23.7.8 | GICH list register x (GICH_LRx) ..... | 1301 |
| 23.7.9 | GICH register map ..... | 1302 |
| 23.8 | GIC virtual CPU interface (GICV) ..... | 1303 |
| 23.8.1 | GICV virtual machine control register (GICV_CTLR) ..... | 1303 |
| 23.8.2 | GICV VM priority mask register (GICV_PMR) . . . . . | 1304 |
| 23.8.3 | GICV VM binary point register (GICV_BPR) . . . . . | 1305 |
| 23.8.4 | GICV VM interrupt acknowledge register (GICV_IAR) . . . . . | 1305 |
| 23.8.5 | GICV VM end of interrupt register (GICV_EOIR) . . . . . | 1305 |
| 23.8.6 | GICV VM running priority register (GICV_RPR) . . . . . | 1306 |
| 23.8.7 | GICV VM highest priority pending interrupt register (GICV_HPPIR) . . . . . | 1306 |
| 23.8.8 | GICV VM aliased binary point register (GICV_ABPR) . . . . . | 1307 |
| 23.8.9 | GICV VM aliased interrupt register (GICV_AIAR) . . . . . | 1307 |
| 23.8.10 | GICV VM aliased end of interrupt register (GICV_AEOIR) . . . . . | 1308 |
| 23.8.11 | GICV VM aliased highest priority pending interrupt register (GICV_AHPPIR) . . . . . | 1308 |
| 23.8.12 | GICV VM active priority register (GICV_APR0) . . . . . | 1309 |
| 23.8.13 | GICV VM CPU interface identification register (GICV_IIDR) . . . . . | 1309 |
| 23.8.14 | GICV VM deactivate interrupt register (GICV_DIR) . . . . . | 1309 |
| 23.8.15 | GICV register map . . . . . | 1310 |
| 24 | Extended interrupt and event controller (EXTI) . . . . . | 1312 |
| 24.1 | EXTI main features . . . . . | 1312 |
| 24.2 | EXTI block diagram . . . . . | 1313 |
| 24.2.1 | EXTI connections between peripherals and CPU . . . . . | 1314 |
| 24.3 | EXTI functional description . . . . . | 1315 |
| 24.3.1 | EXTI configurable event input wakeup . . . . . | 1316 |
| 24.3.2 | EXTI direct event input wakeup . . . . . | 1317 |
| 24.3.3 | EXTI mux selection . . . . . | 1317 |
| 24.4 | EXTI functional behavior . . . . . | 1318 |
| 24.5 | EXTI TrustZone security . . . . . | 1319 |
| 24.6 | EXTI registers . . . . . | 1321 |
| 24.6.1 | EXTI rising trigger selection register (EXTI_RTSR1) . . . . . | 1321 |
| 24.6.2 | EXTI falling trigger selection register (EXTI_FTSR1) . . . . . | 1322 |
| 24.6.3 | EXTI software interrupt event register (EXTI_SWIER1) . . . . . | 1322 |
| 24.6.4 | EXTI rising edge pending register (EXTI_RPR1) . . . . . | 1323 |
| 24.6.5 | EXTI falling edge pending register (EXTI_FPR1) . . . . . | 1323 |
| 24.6.6 | EXTI TrustZone enable register (EXTI_TZENR1) . . . . . | 1324 |
| 24.6.7 | EXTI rising trigger selection register (EXTI_RTSR2) . . . . . | 1324 |
| 24.6.8 | EXTI falling trigger selection register (EXTI_FTSR2) . . . . . | 1325 |
| 24.6.9 | EXTI software interrupt event register (EXTI_SWIER2) . . . . . | 1325 |
| 24.6.10 | EXTI rising edge pending register (EXTI_RPR2) . . . . . | 1325 |
| 24.6.11 | EXTI falling edge pending register (EXTI_FPR2) ..... | 1326 |
| 24.6.12 | EXTI TrustZone enable register (EXTI_TZENR2) ..... | 1326 |
| 24.6.13 | EXTI rising trigger selection register (EXTI_RTSR3) ..... | 1327 |
| 24.6.14 | EXTI falling trigger selection register (EXTI_FTSR3) ..... | 1328 |
| 24.6.15 | EXTI software interrupt event register (EXTI_SWIER3) ..... | 1329 |
| 24.6.16 | EXTI rising edge pending register (EXTI_RPR3) ..... | 1331 |
| 24.6.17 | EXTI falling edge pending register (EXTI_FPR3) ..... | 1333 |
| 24.6.18 | EXTI TrustZone enable register (EXTI_TZENR3) ..... | 1334 |
| 24.6.19 | EXTI external interrupt selection register 1 (EXTI_EXTICR1) ..... | 1334 |
| 24.6.20 | EXTI external interrupt selection register 2 (EXTI_EXTICR2) ..... | 1336 |
| 24.6.21 | EXTI external interrupt selection register 3 (EXTI_EXTICR3) ..... | 1338 |
| 24.6.22 | EXTI external interrupt selection register 4 (EXTI_EXTICR4) ..... | 1340 |
| 24.6.23 | EXTI CPU wakeup with interrupt mask register (EXTI_C1IMR1) ... | 1342 |
| 24.6.24 | EXTI CPU2 wakeup with interrupt mask register (EXTI_C2IMR1) .. | 1343 |
| 24.6.25 | EXTI CPU2 wakeup with event mask register (EXTI_C2EMR1) ... | 1343 |
| 24.6.26 | EXTI CPU wakeup with interrupt mask register (EXTI_C1IMR2) ... | 1344 |
| 24.6.27 | EXTI CPU2 wakeup with interrupt mask register (EXTI_C2IMR2) .. | 1345 |
| 24.6.28 | EXTI CPU2 wakeup with event mask register (EXTI_C2EMR2) ... | 1345 |
| 24.6.29 | EXTI CPU wakeup with interrupt mask register (EXTI_C1IMR3) ... | 1345 |
| 24.6.30 | EXTI CPUm wakeup with interrupt mask register (EXTI_C2IMR3) .. | 1346 |
| 24.6.31 | EXTI CPU2 wakeup with event mask register (EXTI_C2EMR3) ... | 1346 |
| 24.6.32 | EXTI hardware configuration register x (EXTI_HWCFGRx) ..... | 1347 |
| 24.6.33 | EXTI hardware configuration register x (EXTI_HWCFGRx) ..... | 1347 |
| 24.6.34 | EXTI hardware configuration register x (EXTI_HWCFGRx) ..... | 1348 |
| 24.6.35 | EXTI hardware configuration register x (EXTI_HWCFGRx) ..... | 1348 |
| 24.6.36 | EXTI hardware configuration register 1 (EXTI_HWCFGR1) ..... | 1348 |
| 24.6.37 | EXTI IP version register (EXTI_VERR) ..... | 1349 |
| 24.6.38 | EXTI identification register (EXTI_IPIDR) ..... | 1349 |
| 24.6.39 | EXTI size ID register (EXTI_SIDR) ..... | 1350 |
| 24.6.40 | EXTI register map ..... | 1351 |
| 25 | Cyclic redundancy check calculation unit (CRC) ..... | 1355 |
| 25.1 | Introduction ..... | 1355 |
| 25.2 | CRC main features ..... | 1355 |
| 25.3 | CRC functional description ..... | 1356 |
| 25.3.1 | CRC block diagram ..... | 1356 |
| 25.3.2 | CRC internal signals ..... | 1356 |
| 25.3.3 | CRC operation ..... | 1356 |
| 25.4 | CRC registers ..... | 1358 |
| 25.4.1 | CRC data register (CRC_DR) ..... | 1358 |
| 25.4.2 | CRC independent data register (CRC_IDR) ..... | 1358 |
| 25.4.3 | CRC control register (CRC_CR) ..... | 1359 |
| 25.4.4 | CRC initial value (CRC_INIT) ..... | 1360 |
| 25.4.5 | CRC polynomial (CRC_POL) ..... | 1360 |
| 25.4.6 | CRC hardware configuration register (CRC_HWCFGR) ..... | 1360 |
| 25.4.7 | CRC version register (CRC_VERR) ..... | 1361 |
| 25.4.8 | CRC identification register (CRC_IPIDR) ..... | 1361 |
| 25.4.9 | CRC size identification register (CRC_SIDR) ..... | 1362 |
| 25.4.10 | CRC register map ..... | 1362 |
| 26 | Flexible memory controller (FMC) ..... | 1364 |
| 26.1 | FMC main features ..... | 1364 |
| 26.2 | FMC implementation ..... | 1365 |
| 26.3 | FMC block diagram ..... | 1365 |
| 26.4 | FMC internal signals ..... | 1366 |
| 26.5 | AHB interface ..... | 1366 |
| 26.6 | AXI interface ..... | 1367 |
| 26.6.1 | Supported memories and transactions ..... | 1367 |
| 26.7 | External device address mapping ..... | 1368 |
| 26.7.1 | NOR/PSRAM address mapping ..... | 1369 |
| 26.7.2 | NAND flash memory address mapping ..... | 1369 |
| 26.8 | NOR flash/PSRAM controller ..... | 1371 |
| 26.8.1 | External memory interface signals ..... | 1372 |
| 26.8.2 | Supported memories and transactions ..... | 1374 |
| 26.8.3 | General timing rules ..... | 1376 |
| 26.8.4 | NOR flash/PSRAM controller asynchronous transactions ..... | 1376 |
| 26.8.5 | Synchronous transactions ..... | 1396 |
| 26.8.6 | NOR/PSRAM controller registers ..... | 1402 |
| 26.9 | NAND flash controller ..... | 1414 |
| 26.9.1 | External memory interface signals ..... | 1415 |
| 26.9.2 | NAND flash supported memories and transactions ..... | 1416 |
| 26.9.3 | Timing diagrams for NAND flash memory ..... | 1417 |
| 26.9.4 | NAND flash operations ..... | 1418 |
| 26.9.5 | NAND flash prewait function | 1419 |
| 26.9.6 | NAND ECC controller | 1419 |
| 26.9.7 | FMC command sequencer | 1422 |
| 26.9.8 | NAND flash controller interrupt | 1429 |
| 26.9.9 | NAND flash controller registers | 1430 |
| 26.10 | FMC register map | 1454 |
| 27 | Quad-SPI interface (QUADSPI) | 1458 |
| 27.1 | Introduction | 1458 |
| 27.2 | QUADSPI main features | 1458 |
| 27.3 | QUADSPI functional description | 1458 |
| 27.3.1 | QUADSPI block diagram | 1458 |
| 27.3.2 | QUADSPI pins and internal signals | 1459 |
| 27.3.3 | QUADSPI command sequence | 1460 |
| 27.3.4 | QUADSPI signal interface protocol modes | 1462 |
| 27.3.5 | QUADSPI indirect mode | 1464 |
| 27.3.6 | QUADSPI automatic status-polling mode | 1466 |
| 27.3.7 | QUADSPI memory-mapped mode | 1466 |
| 27.3.8 | QUADSPI free-running clock mode | 1467 |
| 27.3.9 | QUADSPI flash memory configuration | 1467 |
| 27.3.10 | QUADSPI delayed data sampling | 1468 |
| 27.3.11 | QUADSPI configuration | 1468 |
| 27.3.12 | QUADSPI use | 1469 |
| 27.3.13 | Sending the instruction only once | 1470 |
| 27.3.14 | QUADSPI error management | 1471 |
| 27.3.15 | QUADSPI busy bit and abort functionality | 1471 |
| 27.3.16 | NCS behavior | 1471 |
| 27.4 | QUADSPI interrupts | 1473 |
| 27.5 | QUADSPI registers | 1474 |
| 27.5.1 | QUADSPI control register (QUADSPI_CR) | 1474 |
| 27.5.2 | QUADSPI device configuration register (QUADSPI_DCR) | 1477 |
| 27.5.3 | QUADSPI status register (QUADSPI_SR) | 1478 |
| 27.5.4 | QUADSPI flag clear register (QUADSPI_FCR) | 1479 |
| 27.5.5 | QUADSPI data length register (QUADSPI_DLR) | 1479 |
| 27.5.6 | QUADSPI communication configuration register (QUADSPI_CCR) | 1480 |
| 27.5.7 | QUADSPI address register (QUADSPI_AR) | 1482 |
| 27.5.8 | QUADSPI alternate-byte register (QUADSPI_ABR) . . . . . | 1482 |
| 27.5.9 | QUADSPI data register (QUADSPI_DR) . . . . . | 1483 |
| 27.5.10 | QUADSPI polling status mask register (QUADSPI_PSMKR) . . . . . | 1483 |
| 27.5.11 | QUADSPI polling status match register (QUADSPI_PSMAR) . . . . . | 1484 |
| 27.5.12 | QUADSPI polling interval register (QUADSPI_PIR) . . . . . | 1484 |
| 27.5.13 | QUADSPI low-power timeout register (QUADSPI_LPTR) . . . . . | 1485 |
| 27.5.14 | QUADSPI hardware configuration register (QUADSPI_HWCFGR) . . . . . | 1485 |
| 27.5.15 | QUADSPI version register (QUADSPI_VERR) . . . . . | 1485 |
| 27.5.16 | QUADSPI identification register (QUADSPI_IPIDR) . . . . . | 1486 |
| 27.5.17 | QUADSPI size identification register (QUADSPI_SIDR) . . . . . | 1486 |
| 27.5.18 | QUADSPI register map . . . . . | 1487 |
| 28 | Delay block (DLYB) . . . . . | 1489 |
| 28.1 | Introduction . . . . . | 1489 |
| 28.2 | DLYB main features . . . . . | 1489 |
| 28.3 | DLYB functional description . . . . . | 1489 |
| 28.3.1 | DLYB diagram . . . . . | 1489 |
| 28.3.2 | DLYB pins and internal signals . . . . . | 1490 |
| 28.3.3 | General description . . . . . | 1490 |
| 28.3.4 | Delay line length configuration procedure . . . . . | 1491 |
| 28.3.5 | Output clock phase configuration procedure . . . . . | 1491 |
| 28.4 | DLYB registers . . . . . | 1492 |
| 28.4.1 | DLYB control register (DLYB_CR) . . . . . | 1492 |
| 28.4.2 | DLYB configuration register (DLYB_CFGR) . . . . . | 1493 |
| 28.4.3 | DLYB register map . . . . . | 1493 |
| 29 | Analog-to-digital converters (ADC) . . . . . | 1494 |
| 29.1 | Introduction . . . . . | 1494 |
| 29.2 | ADC main features . . . . . | 1495 |
| 29.3 | ADC implementation . . . . . | 1496 |
| 29.4 | ADC functional description . . . . . | 1497 |
| 29.4.1 | ADC block diagram . . . . . | 1497 |
| 29.4.2 | ADC pins and internal signals . . . . . | 1498 |
| 29.4.3 | ADC clocks . . . . . | 1499 |
| 29.4.4 | ADC1/2 connectivity . . . . . | 1501 |
| 29.4.5 | Slave AHB interface . . . . . | 1503 |
| 29.4.6 | ADC deep-power-down mode (DEEPPWD) and ADC voltage regulator (ADVREGEN) ..... | 1503 |
| 29.4.7 | Single-ended and differential input channels ..... | 1504 |
| 29.4.8 | Calibration (ADCAL, ADCALDIF, ADCALLIN, ADC_CALFACT) .... | 1504 |
| 29.4.9 | ADC on-off control (ADEN, ADDIS, ADRDY) ..... | 1510 |
| 29.4.10 | Constraints when writing the ADC control bits ..... | 1511 |
| 29.4.11 | Channel selection (SQRx, JSQRx) ..... | 1512 |
| 29.4.12 | Channel preselection register (ADC_PCSEL) ..... | 1512 |
| 29.4.13 | Channel-wise programmable sampling time (SMPR1, SMPR2) .... | 1513 |
| 29.4.14 | Single conversion mode (CONT=0) ..... | 1514 |
| 29.4.15 | Continuous conversion mode (CONT=1) ..... | 1514 |
| 29.4.16 | Starting conversions (ADSTART, JADSTART) ..... | 1515 |
| 29.4.17 | Timing ..... | 1516 |
| 29.4.18 | Stopping an ongoing conversion (ADSTP, JADSTP) ..... | 1516 |
| 29.4.19 | Conversion on external trigger and trigger polarity (EXTSEL, EXTEN, JEXTSEL, JEXTEN) ..... | 1518 |
| 29.4.20 | Injected channel management ..... | 1521 |
| 29.4.21 | Discontinuous mode (DISCEN, DISCNUM, JDISCEN) ..... | 1523 |
| 29.4.22 | Queue of context for injected conversions ..... | 1524 |
| 29.4.23 | Programmable resolution (RES) - fast conversion mode ..... | 1532 |
| 29.4.24 | End of conversion, end of sampling phase (EOC, JEOC, EOSMP) .. | 1532 |
| 29.4.25 | End of conversion sequence (EOS, JEOS) ..... | 1532 |
| 29.4.26 | Timing diagrams example (single/continuous modes, hardware/software triggers) ..... | 1533 |
| 29.4.27 | Data management ..... | 1534 |
| 29.4.28 | Managing conversions using the DFSDM ..... | 1542 |
| 29.4.29 | Dynamic low-power features ..... | 1542 |
| 29.4.30 | Analog window watchdog (AWD1EN, JAWD1EN, AWD1SGL, AWD1CH, AWD2CH, AWD3CH, AWD_HTRy, AWD_LTRy, AWDy) .. | 1547 |
| 29.4.31 | Oversampler ..... | 1550 |
| 29.4.32 | Dual ADC modes ..... | 1556 |
| 29.4.33 | Temperature sensor ..... | 1571 |
| 29.4.34 | VBAT supply monitoring ..... | 1572 |
| 29.4.35 | Monitoring the internal voltage reference ..... | 1573 |
| 29.4.36 | VDDCORE supply voltage monitoring ..... | 1574 |
| 29.5 | ADC interrupts ..... | 1575 |
| 29.6 | ADC registers (for each ADC) ..... | 1577 |
| 29.6.1 | ADC interrupt and status register (ADC_ISR) ..... | 1577 |
| 29.6.2 | ADC interrupt enable register (ADC_IER) | 1580 |
| 29.6.3 | ADC control register (ADC_CR) | 1582 |
| 29.6.4 | ADC configuration register (ADC_CFGR) | 1587 |
| 29.6.5 | ADC configuration register 2 (ADC_CFGR2) | 1591 |
| 29.6.6 | ADC sample time register 1 (ADC_SMPR1) | 1593 |
| 29.6.7 | ADC sample time register 2 (ADC_SMPR2) | 1594 |
| 29.6.8 | ADC channel preselection register (ADC_PCSEL) | 1595 |
| 29.6.9 | ADC watchdog threshold register 1 (ADC_LTR1) | 1595 |
| 29.6.10 | ADC watchdog threshold register 1 (ADC_HTR1) | 1596 |
| 29.6.11 | ADC regular sequence register 1 (ADC_SQR1) | 1597 |
| 29.6.12 | ADC regular sequence register 2 (ADC_SQR2) | 1598 |
| 29.6.13 | ADC regular sequence register 3 (ADC_SQR3) | 1599 |
| 29.6.14 | ADC regular sequence register 4 (ADC_SQR4) | 1600 |
| 29.6.15 | ADC regular Data Register (ADC_DR) | 1601 |
| 29.6.16 | ADC injected sequence register (ADC_JSQR) | 1602 |
| 29.6.17 | ADC injected channel y offset register (ADC_OFRy) | 1604 |
| 29.6.18 | ADC injected channel y data register (ADC_JDRy) | 1605 |
| 29.6.19 | ADC analog watchdog 2 configuration register (ADC_AWD2CR) | 1605 |
| 29.6.20 | ADC analog watchdog 3 configuration register (ADC_AWD3CR) | 1606 |
| 29.6.21 | ADC watchdog lower threshold register 2 (ADC_LTR2) | 1606 |
| 29.6.22 | ADC watchdog higher threshold register 2 (ADC_HTR2) | 1607 |
| 29.6.23 | ADC watchdog lower threshold register 3 (ADC_LTR3) | 1607 |
| 29.6.24 | ADC watchdog higher threshold register 3 (ADC_HTR3) | 1608 |
| 29.6.25 | ADC differential mode selection register (ADC_DIFSEL) | 1608 |
| 29.6.26 | ADC calibration factors register (ADC_CALFACT) | 1609 |
| 29.6.27 | ADC calibration factor register 2 (ADC_CALFACT2) | 1609 |
| 29.6.28 | ADC2 option register (ADC2_OR) | 1610 |
| 29.7 | ADC common registers | 1610 |
| 29.7.1 | ADC common status register (ADC_CSR) | 1610 |
| 29.7.2 | ADC common control register (ADC_CCR) | 1613 |
| 29.7.3 | ADC common regular data register for dual mode (ADC_CDR) | 1616 |
| 29.7.4 | ADC common regular data register for 32-bit dual mode (ADC_CDR2) | 1616 |
| 29.7.5 | ADC hardware configuration register (ADC_HWCFGR0) | 1617 |
| 29.7.6 | ADC version register (ADC_VERR) | 1617 |
| 29.7.7 | ADC identification register (ADC_IPIDR) ..... | 1617 |
| 29.7.8 | ADC size identification register (ADC_SIDR) ..... | 1618 |
| 29.8 | ADC register map ..... | 1618 |
| 30 | Digital temperature sensor (DTS) ..... | 1623 |
| 30.1 | Introduction ..... | 1623 |
| 30.2 | DTS main features ..... | 1623 |
| 30.3 | DTS functional description ..... | 1624 |
| 30.3.1 | DTS block diagram ..... | 1624 |
| 30.3.2 | DTS internal signals ..... | 1624 |
| 30.3.3 | DTS block operation ..... | 1625 |
| 30.3.4 | Operating modes ..... | 1625 |
| 30.3.5 | Calibration ..... | 1625 |
| 30.3.6 | Prescaler ..... | 1625 |
| 30.3.7 | Temperature measurement principles ..... | 1626 |
| 30.3.8 | Sampling time ..... | 1627 |
| 30.3.9 | Quick measurement mode ..... | 1627 |
| 30.3.10 | Trigger input ..... | 1628 |
| 30.3.11 | On-off control and ready flag ..... | 1628 |
| 30.3.12 | Temperature measurement sequence ..... | 1629 |
| 30.4 | DTS low-power modes ..... | 1630 |
| 30.5 | DTS interrupts ..... | 1630 |
| 30.5.1 | Temperature window comparator ..... | 1630 |
| 30.5.2 | Synchronous interrupt ..... | 1630 |
| 30.5.3 | Asynchronous wakeup ..... | 1630 |
| 30.6 | DTS registers ..... | 1631 |
| 30.6.1 | Temperature sensor configuration register 1 (DTS_CFGR1) ..... | 1631 |
| 30.6.2 | Temperature sensor T0 value register 1 (DTS_T0VALR1) ..... | 1633 |
| 30.6.3 | Temperature sensor ramp value register (DTS_RAMPVALR) ..... | 1633 |
| 30.6.4 | Temperature sensor interrupt threshold register 1 (DTS_ITR1) ..... | 1634 |
| 30.6.5 | Temperature sensor data register (DTS_DR) ..... | 1634 |
| 30.6.6 | Temperature sensor status register (DTS_SR) ..... | 1635 |
| 30.6.7 | Temperature sensor interrupt enable register (DTS_ITENR) ..... | 1636 |
| 30.6.8 | Temperature sensor clear interrupt flag register (DTS_ICIFR) ..... | 1637 |
| 30.6.9 | Temperature sensor option register (DTS_OR) ..... | 1638 |
| 30.6.10 | DTS register map ..... | 1639 |
| 31 | Digital-to-analog converter (DAC) | 1640 |
| 31.1 | Introduction | 1640 |
| 31.2 | DAC main features | 1640 |
| 31.3 | DAC implementation | 1641 |
| 31.4 | DAC functional description | 1642 |
| 31.4.1 | DAC block diagram | 1642 |
| 31.4.2 | DAC pins and internal signals | 1643 |
| 31.4.3 | DAC channel enable | 1644 |
| 31.4.4 | DAC data format | 1644 |
| 31.4.5 | DAC conversion | 1646 |
| 31.4.6 | DAC output voltage | 1646 |
| 31.4.7 | DAC trigger selection | 1647 |
| 31.4.8 | DMA requests | 1647 |
| 31.4.9 | Noise generation | 1648 |
| 31.4.10 | Triangle-wave generation | 1649 |
| 31.4.11 | DAC channel modes | 1650 |
| 31.4.12 | DAC channel buffer calibration | 1653 |
| 31.4.13 | DAC channel conversion modes | 1654 |
| 31.4.14 | Dual DAC channel conversion modes (if dual channels are available) | 1655 |
| 31.5 | DAC in low-power modes | 1659 |
| 31.6 | DAC interrupts | 1660 |
| 31.7 | DAC registers | 1660 |
| 31.7.1 | DAC control register (DAC_CR) | 1660 |
| 31.7.2 | DAC software trigger register (DAC_SWTRGR) | 1664 |
| 31.7.3 | DAC channel1 12-bit right-aligned data holding register (DAC_DHR12R1) | 1664 |
| 31.7.4 | DAC channel1 12-bit left aligned data holding register (DAC_DHR12L1) | 1665 |
| 31.7.5 | DAC channel1 8-bit right aligned data holding register (DAC_DHR8R1) | 1665 |
| 31.7.6 | DAC channel2 12-bit right aligned data holding register (DAC_DHR12R2) | 1666 |
| 31.7.7 | DAC channel2 12-bit left aligned data holding register (DAC_DHR12L2) | 1666 |
| 31.7.8 | DAC channel2 8-bit right-aligned data holding register (DAC_DHR8R2) | 1667 |
| 31.7.9 | Dual DAC 12-bit right-aligned data holding register (DAC_DHR12RD) | 1667 |
| 31.7.10 | Dual DAC 12-bit left aligned data holding register (DAC_DHR12LD) | 1668 |
| 31.7.11 | Dual DAC 8-bit right aligned data holding register (DAC_DHR8RD) | 1668 |
| 31.7.12 | DAC channel1 data output register (DAC_DOR1) | 1669 |
| 31.7.13 | DAC channel2 data output register (DAC_DOR2) | 1669 |
| 31.7.14 | DAC status register (DAC_SR) | 1669 |
| 31.7.15 | DAC calibration control register (DAC_CCR) | 1671 |
| 31.7.16 | DAC mode control register (DAC_MCR) | 1671 |
| 31.7.17 | DAC channel1 sample and hold sample time register (DAC_SHSR1) | 1673 |
| 31.7.18 | DAC channel2 sample and hold sample time register (DAC_SHSR2) | 1673 |
| 31.7.19 | DAC sample and hold time register (DAC_SHHR) | 1673 |
| 31.7.20 | DAC sample and hold refresh time register (DAC_SHRR) | 1674 |
| 31.7.21 | DAC hardware configuration register (DAC_HWCFGR0) | 1675 |
| 31.7.22 | DAC version register (DAC_VERR) | 1676 |
| 31.7.23 | DAC identification register (DAC_IPIDR) | 1676 |
| 31.7.24 | DAC size identification register (DAC_SIDR) | 1676 |
| 31.7.25 | DAC register map | 1677 |
| 32 | Voltage reference buffer (VREFBUF) | 1680 |
| 32.1 | Introduction | 1680 |
| 32.2 | VREFBUF functional description | 1680 |
| 32.3 | VREFBUF registers | 1681 |
| 32.3.1 | VREFBUF control and status register (VREFBUF_CSR) | 1681 |
| 32.3.2 | VREFBUF calibration control register (VREFBUF_CCR) | 1682 |
| 32.3.3 | VREFBUF register map | 1682 |
| 33 | Digital filter for sigma delta modulators (DFSDM) | 1683 |
| 33.1 | Introduction | 1683 |
| 33.2 | DFSDM main features | 1684 |
| 33.3 | DFSDM implementation | 1685 |
| 33.4 | DFSDM functional description | 1686 |
| 33.4.1 | DFSDM block diagram | 1686 |
| 33.4.2 | DFSDM pins and internal signals | 1687 |
| 33.4.3 | DFSDM reset and clocks ..... | 1688 |
| 33.4.4 | Serial channel transceivers ..... | 1689 |
| 33.4.5 | Configuring the input serial interface ..... | 1699 |
| 33.4.6 | Parallel data inputs ..... | 1699 |
| 33.4.7 | Channel selection ..... | 1702 |
| 33.4.8 | Digital filter configuration ..... | 1702 |
| 33.4.9 | Integrator unit ..... | 1703 |
| 33.4.10 | Analog watchdog ..... | 1704 |
| 33.4.11 | Short-circuit detector ..... | 1706 |
| 33.4.12 | Extreme detector ..... | 1707 |
| 33.4.13 | Data unit block ..... | 1707 |
| 33.4.14 | Signed data format ..... | 1708 |
| 33.4.15 | Launching conversions ..... | 1709 |
| 33.4.16 | Continuous and fast continuous modes ..... | 1709 |
| 33.4.17 | Request precedence ..... | 1710 |
| 33.4.18 | Power optimization in run mode ..... | 1711 |
| 33.5 | DFSDM interrupts ..... | 1711 |
| 33.6 | DFSDM DMA transfer ..... | 1713 |
| 33.7 | DFSDM channel y registers (y=0..7) ..... | 1713 |
| 33.7.1 | DFSDM channel y configuration register (DFSDM_CHyCFGR1) ..... | 1713 |
| 33.7.2 | DFSDM channel y configuration register (DFSDM_CHyCFGR2) ..... | 1715 |
| 33.7.3 | DFSDM channel y analog watchdog and short-circuit detector register (DFSDM_CHyAWSCDR) ..... | 1716 |
| 33.7.4 | DFSDM channel y watchdog filter data register (DFSDM_CHyWDATR) ..... | 1717 |
| 33.7.5 | DFSDM channel y data input register (DFSDM_CHyDATINR) ..... | 1717 |
| 33.7.6 | DFSDM channel y delay register (DFSDM_CHyDLYR) ..... | 1718 |
| 33.8 | DFSDM filter x module registers (x=0..5) ..... | 1719 |
| 33.8.1 | DFSDM filter x control register 1 (DFSDM_FLTxCR1) ..... | 1719 |
| 33.8.2 | DFSDM filter x control register 2 (DFSDM_FLTxCR2) ..... | 1722 |
| 33.8.3 | DFSDM filter x interrupt and status register (DFSDM_FLTxISR) ..... | 1723 |
| 33.8.4 | DFSDM filter x interrupt flag clear register (DFSDM_FLTxICR) ..... | 1725 |
| 33.8.5 | DFSDM filter x injected channel group selection register (DFSDM_FLTxJCHGR) ..... | 1726 |
| 33.8.6 | DFSDM filter x control register (DFSDM_FLTxFCR) ..... | 1726 |
| 33.8.7 | DFSDM filter x data register for injected group (DFSDM_FLTxJDATAR) ..... | 1727 |
| 33.8.8 | DFSDM filter x data register for the regular channel (DFSDM_FLTxRDATAR) ..... | 1728 |
| 33.8.9 | DFSDM filter x analog watchdog high threshold register (DFSDM_FLTxAWHTR) ..... | 1729 |
| 33.8.10 | DFSDM filter x analog watchdog low threshold register (DFSDM_FLTxAWLTR) ..... | 1729 |
| 33.8.11 | DFSDM filter x analog watchdog status register (DFSDM_FLTxAWSR) ..... | 1730 |
| 33.8.12 | DFSDM filter x analog watchdog clear flag register (DFSDM_FLTxAWCFR) ..... | 1731 |
| 33.8.13 | DFSDM filter x extremes detector maximum register (DFSDM_FLTxEXMAX) ..... | 1731 |
| 33.8.14 | DFSDM filter x extremes detector minimum register (DFSDM_FLTxEXMIN) ..... | 1732 |
| 33.8.15 | DFSDM filter x conversion timer register (DFSDM_FLTxCNVTIMR) . | 1732 |
| 33.9 | DFSDM version registers ..... | 1734 |
| 33.9.1 | DFSDM hardware configuration register (DFSDM_HWCFGR) .... | 1734 |
| 33.9.2 | DFSDM version register (DFSDM_VERR) ..... | 1734 |
| 33.9.3 | DFSDM identification register (DFSDM_IPIDR) ..... | 1735 |
| 33.9.4 | DFSDM size identification register (DFSDM_SIDR) ..... | 1735 |
| 33.9.5 | DFSDM register map ..... | 1736 |
| 34 | Digital camera interface (DCMI) ..... | 1749 |
| 34.1 | Introduction ..... | 1749 |
| 34.2 | DCMI main features ..... | 1749 |
| 34.3 | DCMI functional description ..... | 1749 |
| 34.3.1 | DCMI block diagram ..... | 1750 |
| 34.3.2 | DCMI pins and internal signals ..... | 1750 |
| 34.3.3 | DCMI clocks ..... | 1751 |
| 34.3.4 | DCMI DMA interface ..... | 1751 |
| 34.3.5 | DCMI physical interface ..... | 1751 |
| 34.3.6 | DCMI synchronization ..... | 1753 |
| 34.3.7 | DCMI capture modes ..... | 1755 |
| 34.3.8 | DCMI crop feature ..... | 1756 |
| 34.3.9 | DCMI JPEG format ..... | 1757 |
| 34.3.10 | DCMI FIFO ..... | 1757 |
| 34.3.11 | DCMI data format description ..... | 1758 |
| 34.4 | DCMI interrupts ..... | 1760 |
| 34.5 | DCMI registers | 1760 |
| 34.5.1 | DCMI control register (DCMI_CR) | 1760 |
| 34.5.2 | DCMI status register (DCMI_SR) | 1763 |
| 34.5.3 | DCMI raw interrupt status register (DCMI_RIS) | 1763 |
| 34.5.4 | DCMI interrupt enable register (DCMI_IER) | 1764 |
| 34.5.5 | DCMI masked interrupt status register (DCMI_MIS) | 1765 |
| 34.5.6 | DCMI interrupt clear register (DCMI_ICR) | 1766 |
| 34.5.7 | DCMI embedded synchronization code register (DCMI_ESCR) | 1767 |
| 34.5.8 | DCMI embedded synchronization unmask register (DCMI_ESUR) | 1767 |
| 34.5.9 | DCMI crop window start (DCMI_CWSTRT) | 1768 |
| 34.5.10 | DCMI crop window size (DCMI_CWSIZE) | 1769 |
| 34.5.11 | DCMI data register (DCMI_DR) | 1769 |
| 34.5.12 | DCMI register map | 1770 |
| 35 | LCD-TFT display controller (LTDC) | 1771 |
| 35.1 | Introduction | 1771 |
| 35.2 | LTDC main features | 1771 |
| 35.3 | LTDC functional description | 1772 |
| 35.3.1 | LTDC block diagram | 1772 |
| 35.3.2 | LTDC pins and internal signals | 1772 |
| 35.3.3 | LTDC reset and clocks | 1773 |
| 35.4 | LTDC programmable parameters | 1775 |
| 35.4.1 | LTDC global configuration parameters | 1775 |
| 35.4.2 | Layer programmable parameters | 1777 |
| 35.5 | LTDC interrupts | 1781 |
| 35.6 | LTDC programming procedure | 1782 |
| 35.7 | LTDC registers | 1783 |
| 35.7.1 | LTDC identification register (LTDC_IDR) | 1783 |
| 35.7.2 | LTDC layer count register (LTDC_LCR) | 1783 |
| 35.7.3 | LTDC synchronization size configuration register (LTDC_SSCR) | 1784 |
| 35.7.4 | LTDC back porch configuration register (LTDC_BPCR) | 1784 |
| 35.7.5 | LTDC active width configuration register (LTDC_AWCR) | 1785 |
| 35.7.6 | LTDC total width configuration register (LTDC_TWCR) | 1786 |
| 35.7.7 | LTDC global control register (LTDC_GCR) | 1786 |
| 35.7.8 | LTDC global configuration 1 register (LTDC_GC1R) | 1787 |
| 35.7.9 | LTDC global configuration 2 register (LTDC_GC2R) | 1788 |
| 35.7.10 | LTDC shadow reload configuration register (LTDC_SRCR) ..... | 1789 |
| 35.7.11 | LTDC background color configuration register (LTDC_BCCR) ..... | 1789 |
| 35.7.12 | LTDC interrupt enable register (LTDC_IER) ..... | 1790 |
| 35.7.13 | LTDC interrupt status register (LTDC_ISR) ..... | 1791 |
| 35.7.14 | LTDC interrupt clear register (LTDC_ICR) ..... | 1791 |
| 35.7.15 | LTDC line interrupt position configuration register (LTDC_LIPCR) .. | 1792 |
| 35.7.16 | LTDC current position status register (LTDC_CPSR) ..... | 1792 |
| 35.7.17 | LTDC current display status register (LTDC_CDSR) ..... | 1793 |
| 35.7.18 | LTDC layer x control register (LTDC_LxCR) ..... | 1793 |
| 35.7.19 | LTDC layer x window horizontal position configuration register (LTDC_LxWHPCR) ..... | 1794 |
| 35.7.20 | LTDC layer x window vertical position configuration register (LTDC_LxWVPCR) ..... | 1795 |
| 35.7.21 | LTDC layer x color keying configuration register (LTDC_LxCKCR) ..... | 1796 |
| 35.7.22 | LTDC layer x pixel format configuration register (LTDC_LxPFCR) ..... | 1796 |
| 35.7.23 | LTDC layer x constant alpha configuration register (LTDC_LxCACR) ..... | 1797 |
| 35.7.24 | LTDC layer x default color configuration register (LTDC_LxDCCR) ..... | 1797 |
| 35.7.25 | LTDC layer x blending factors configuration register (LTDC_LxBFCR) ..... | 1798 |
| 35.7.26 | LTDC layer x color frame buffer address register (LTDC_LxCFBAR) ..... | 1799 |
| 35.7.27 | LTDC layer x color frame buffer length register (LTDC_LxCFBLR) ..... | 1799 |
| 35.7.28 | LTDC layer x color frame buffer line number register (LTDC_LxCFBLNR) ..... | 1800 |
| 35.7.29 | LTDC layer x CLUT write register (LTDC_LxCLUTWR) ..... | 1800 |
| 35.7.30 | LTDC register map ..... | 1801 |
| 36 | DSI Host (DSI) ..... | 1805 |
| 36.1 | Introduction ..... | 1805 |
| 36.2 | Standard and references ..... | 1805 |
| 36.3 | DSI Host main features ..... | 1806 |
| 36.4 | DSI Host functional description ..... | 1807 |
| 36.4.1 | General description ..... | 1807 |
| 36.4.2 | DSI Host pins and internal signals ..... | 1807 |
| 36.4.3 | Supported resolutions and frame rates ..... | 1808 |
| 36.4.4 | System level architecture . . . . . | 1808 |
| 36.5 | Functional description: video mode on LTDC interface . . . . . | 1811 |
| 36.5.1 | Video transmission mode . . . . . | 1813 |
| 36.5.2 | Updating the LTDC interface configuration in video mode . . . . . | 1814 |
| 36.6 | Functional description: adapted command mode on LTDC interface . . . . . | 1816 |
| 36.7 | Functional description: APB register interface . . . . . | 1820 |
| 36.7.1 | Packet transmission using the generic interface . . . . . | 1820 |
| 36.8 | Functional description: timeout counters . . . . . | 1824 |
| 36.8.1 | Contention error detection timeout counters . . . . . | 1824 |
| 36.8.2 | Peripheral response timeout counters . . . . . | 1825 |
| 36.9 | Functional description: transmission of commands . . . . . | 1830 |
| 36.9.1 | Transmission of commands in video mode . . . . . | 1830 |
| 36.9.2 | Transmission of commands in low-power mode . . . . . | 1832 |
| 36.9.3 | Transmission of commands in high-speed . . . . . | 1836 |
| 36.9.4 | Read command transmission . . . . . | 1836 |
| 36.9.5 | Clock lane in low-power mode . . . . . | 1837 |
| 36.10 | Functional description: virtual channels . . . . . | 1839 |
| 36.11 | Functional description: video mode pattern generator . . . . . | 1840 |
| 36.11.1 | Color bar pattern . . . . . | 1840 |
| 36.11.2 | Color coding . . . . . | 1842 |
| 36.11.3 | BER testing pattern . . . . . | 1842 |
| 36.11.4 | Video mode pattern generator resolution . . . . . | 1843 |
| 36.12 | Functional description: D-PHY management . . . . . | 1844 |
| 36.12.1 | D-PHY configuration . . . . . | 1844 |
| 36.12.2 | D-PHY HS2LP and LP2HS durations . . . . . | 1845 |
| 36.12.3 | Special D-PHY operations . . . . . | 1845 |
| 36.12.4 | Special low-power D-PHY functions . . . . . | 1846 |
| 36.12.5 | DSI PLL control . . . . . | 1846 |
| 36.12.6 | Regulator control . . . . . | 1847 |
| 36.12.7 | D-PHY band-gap control . . . . . | 1847 |
| 36.13 | Functional description: interrupts and errors . . . . . | 1847 |
| 36.13.1 | DSI Wrapper interrupts . . . . . | 1848 |
| 36.13.2 | DSI Host interrupts and errors . . . . . | 1848 |
| 36.14 | Programing procedure . . . . . | 1855 |
| 36.14.1 | Programing procedure overview . . . . . | 1855 |
| 36.14.2 | Configuring the D-PHY parameters . . . . . | 1855 |
| 36.14.3 | Configuring the DSI Host timing | 1856 |
| 36.14.4 | Configuring flow control and DBI interface | 1857 |
| 36.14.5 | Configuring the DSI Host LTDC interface | 1857 |
| 36.14.6 | Configuring the video mode | 1858 |
| 36.14.7 | Configuring the adapted command mode | 1862 |
| 36.14.8 | Configuring the video mode pattern generator | 1862 |
| 36.14.9 | Managing ULPM | 1863 |
| 36.15 | DSI Host registers | 1866 |
| 36.15.1 | DSI Host version register (DSI_VR) | 1866 |
| 36.15.2 | DSI Host control register (DSI_CR) | 1866 |
| 36.15.3 | DSI Host clock control register (DSI_CCR) | 1866 |
| 36.15.4 | DSI Host LTDC VCID register (DSI_LVCIDR) | 1867 |
| 36.15.5 | DSI Host LTDC color coding register (DSI_LCOLCR) | 1867 |
| 36.15.6 | DSI Host LTDC polarity configuration register (DSI_LPCR) | 1868 |
| 36.15.7 | DSI Host low-power mode configuration register (DSI_LPMCR) | 1868 |
| 36.15.8 | DSI Host protocol configuration register (DSI_PCR) | 1869 |
| 36.15.9 | DSI Host generic VCID register (DSI_GVCIDR) | 1870 |
| 36.15.10 | DSI Host mode configuration register (DSI_MCR) | 1870 |
| 36.15.11 | DSI Host video mode configuration register (DSI_VMCR) | 1870 |
| 36.15.12 | DSI Host video packet configuration register (DSI_VPCR) | 1872 |
| 36.15.13 | DSI Host video chunks configuration register (DSI_VCCR) | 1872 |
| 36.15.14 | DSI Host video null packet configuration register (DSI_VNPCR) | 1873 |
| 36.15.15 | DSI Host video HSA configuration register (DSI_VHSACR) | 1873 |
| 36.15.16 | DSI Host video HBP configuration register (DSI_VHBPCR) | 1874 |
| 36.15.17 | DSI Host video line configuration register (DSI_VLCR) | 1874 |
| 36.15.18 | DSI Host video VSA configuration register (DSI_VVSACR) | 1874 |
| 36.15.19 | DSI Host video VBP configuration register (DSI_VVBPCR) | 1875 |
| 36.15.20 | DSI Host video VFP configuration register (DSI_VVFPCR) | 1875 |
| 36.15.21 | DSI Host video VA configuration register (DSI_VVACR) | 1875 |
| 36.15.22 | DSI Host LTDC command configuration register (DSI_LCCR) | 1876 |
| 36.15.23 | DSI Host command mode configuration register (DSI_CMCR) | 1876 |
| 36.15.24 | DSI Host generic header configuration register (DSI_GHCR) | 1878 |
| 36.15.25 | DSI Host generic payload data register (DSI_GPDR) | 1878 |
| 36.15.26 | DSI Host generic packet status register (DSI_GPSR) | 1879 |
| 36.15.27 | DSI Host timeout counter configuration register 0 (DSI_TCCR0) | 1880 |
| 36.15.28 | DSI Host timeout counter configuration register 1 (DSI_TCCR1) | 1880 |
| 36.15.29 | DSI Host timeout counter configuration register 2 (DSI_TCCR2) | 1881 |
| 36.15.30 DSI Host timeout counter configuration register 3 (DSI_TCCR3) . . . | 1881 |
| 36.15.31 DSI Host timeout counter configuration register 4 (DSI_TCCR4) . . . | 1882 |
| 36.15.32 DSI Host timeout counter configuration register 5 (DSI_TCCR5) . . . | 1882 |
| 36.15.33 DSI Host clock lane configuration register (DSI_CLCR) . . . . . | 1883 |
| 36.15.34 DSI Host clock lane timer configuration register (DSI_CLTCR) . . . . . | 1883 |
| 36.15.35 DSI Host data lane timer configuration register (DSI_DLTCR) . . . . . | 1884 |
| 36.15.36 DSI Host PHY control register (DSI_PCTLR) . . . . . | 1884 |
| 36.15.37 DSI Host PHY configuration register (DSI_PCONFR) . . . . . | 1885 |
| 36.15.38 DSI Host PHY ULPS control register (DSI_PUCR) . . . . . | 1885 |
| 36.15.39 DSI Host PHY TX triggers configuration register (DSI_PTTCR) . . . . | 1886 |
| 36.15.40 DSI Host PHY status register (DSI_PSR) . . . . . | 1886 |
| 36.15.41 DSI Host interrupt and status register 0 (DSI_ISR0) . . . . . | 1887 |
| 36.15.42 DSI Host interrupt and status register 1 (DSI_ISR1) . . . . . | 1888 |
| 36.15.43 DSI Host interrupt enable register 0 (DSI_IER0) . . . . . | 1889 |
| 36.15.44 DSI Host interrupt enable register 1 (DSI_IER1) . . . . . | 1892 |
| 36.15.45 DSI Host force interrupt register 0 (DSI_FIR0) . . . . . | 1893 |
| 36.15.46 DSI Host force interrupt register 1 (DSI_FIR1) . . . . . | 1895 |
| 36.15.47 DSI Host data lane timer read configuration register (DSI_DLTRCR) . . . . . | 1896 |
| 36.15.48 DSI Host video shadow control register (DSI_VSCR) . . . . . | 1896 |
| 36.15.49 DSI Host LTDC current VCID register (DSI_LCVCIDR) . . . . . | 1897 |
| 36.15.50 DSI Host LTDC current color coding register (DSI_LCCCR) . . . . . | 1897 |
| 36.15.51 DSI Host low-power mode current configuration register (DSI_LPMCCR) . . . . . | 1898 |
| 36.15.52 DSI Host video mode current configuration register (DSI_VMCCR) . . . . . | 1898 |
| 36.15.53 DSI Host video packet current configuration register (DSI_VPCCR) . . . . . | 1899 |
| 36.15.54 DSI Host video chunks current configuration register (DSI_VCCCR) . . . . . | 1900 |
| 36.15.55 DSI Host video null packet current configuration register (DSI_VNPCCR) . . . . . | 1900 |
| 36.15.56 DSI Host video HSA current configuration register (DSI_VHSACCR) . . . . . | 1900 |
| 36.15.57 DSI Host video HBP current configuration register (DSI_VHBPCR) . . . . . | 1901 |
| 36.15.58 DSI Host video line current configuration register (DSI_VLCCR) . . . | 1901 |
| 36.15.59 DSI Host video VSA current configuration register (DSI_VVSACCR) . . . . . | 1902 |
| 36.15.60 | DSI Host video VBP current configuration register (DSI_VVBPCR) | 1902 |
| 36.15.61 | DSI Host video VFP current configuration register (DSI_VVFPCCR) | 1902 |
| 36.15.62 | DSI Host video VA current configuration register (DSI_VVACCR) | 1903 |
| 36.16 | DSI Wrapper registers | 1904 |
| 36.16.1 | DSI Wrapper configuration register (DSI_WCFGR) | 1904 |
| 36.16.2 | DSI Wrapper control register (DSI_WCR) | 1905 |
| 36.16.3 | DSI Wrapper interrupt enable register (DSI_WIER) | 1905 |
| 36.16.4 | DSI Wrapper interrupt and status register (DSI_WISR) | 1906 |
| 36.16.5 | DSI Wrapper interrupt flag clear register (DSI_WIFCR) | 1907 |
| 36.16.6 | DSI Wrapper PHY configuration register 0 (DSI_WPCR0) | 1908 |
| 36.16.7 | DSI Wrapper PHY configuration register 1 (DSI_WPCR1) | 1910 |
| 36.16.8 | DSI Wrapper regulator and PLL control register (DSI_WRPCR) | 1911 |
| 36.16.9 | DSI hardware configuration register (DSI_HWCFGR) | 1912 |
| 36.16.10 | DSI version register (DSI_VERR) | 1913 |
| 36.16.11 | DSI identification register (DSI_IPIDR) | 1913 |
| 36.16.12 | DSI size identification register (DSI_SIDR) | 1913 |
| 36.16.13 | DSI register map | 1914 |
| 37 | True random number generator (RNG) | 1919 |
| 37.1 | Introduction | 1919 |
| 37.2 | RNG main features | 1919 |
| 37.3 | RNG functional description | 1920 |
| 37.3.1 | RNG block diagram | 1920 |
| 37.3.2 | RNG internal signals | 1920 |
| 37.3.3 | Random number generation | 1921 |
| 37.3.4 | RNG initialization | 1923 |
| 37.3.5 | RNG operation | 1924 |
| 37.3.6 | RNG clocking | 1925 |
| 37.3.7 | Error management | 1925 |
| 37.3.8 | RNG low-power use | 1926 |
| 37.4 | RNG interrupts | 1926 |
| 37.5 | RNG processing time | 1926 |
| 37.6 | RNG entropy source validation | 1927 |
| 37.6.1 | Introduction | 1927 |
| 37.6.2 | Validation conditions | 1927 |
| 37.6.3 | Data collection | 1927 |
| 37.7 | RNG registers | 1928 |
| 37.7.1 | RNG control register (RNG_CR) | 1928 |
| 37.7.2 | RNG status register (RNG_SR) | 1928 |
| 37.7.3 | RNG data register (RNG_DR) | 1929 |
| 37.7.4 | RNG hardware configuration register (RNG_HWCFGR) | 1930 |
| 37.7.5 | RNG version register (RNG_VERR) | 1930 |
| 37.7.6 | RNG identification register (RNG_IPIDR) | 1931 |
| 37.7.7 | RNG size identification register (RNG_SIDR) | 1931 |
| 37.7.8 | RNG register map | 1931 |
| 38 | Hash processor (HASH) | 1933 |
| 38.1 | Introduction | 1933 |
| 38.2 | HASH main features | 1933 |
| 38.3 | HASH implementation | 1934 |
| 38.4 | HASH functional description | 1934 |
| 38.4.1 | HASH block diagram | 1934 |
| 38.4.2 | HASH internal signals | 1935 |
| 38.4.3 | About secure hash algorithms | 1935 |
| 38.4.4 | Message data feeding | 1935 |
| 38.4.5 | Message digest computing | 1937 |
| 38.4.6 | Message padding | 1938 |
| 38.4.7 | HMAC operation | 1940 |
| 38.4.8 | HASH suspend/resume operations | 1942 |
| 38.4.9 | HASH DMA interface | 1944 |
| 38.4.10 | HASH error management | 1944 |
| 38.4.11 | HASH processing time | 1945 |
| 38.5 | HASH interrupts | 1945 |
| 38.6 | HASH registers | 1946 |
| 38.6.1 | HASH control register (HASH_CR) | 1946 |
| 38.6.2 | HASH data input register (HASH_DIN) | 1948 |
| 38.6.3 | HASH start register (HASH_STR) | 1949 |
| 38.6.4 | HASH digest registers | 1950 |
| 38.6.5 | HASH interrupt enable register (HASH_IMR) | 1951 |
| 38.6.6 | HASH status register (HASH_SR) | 1952 |
| 38.6.7 | HASH context swap registers ..... | 1952 |
| 38.6.8 | HASH hardware configuration register (HASH_HWCFGR) ..... | 1953 |
| 38.6.9 | HASH version register (HASH_VERR) ..... | 1953 |
| 38.6.10 | HASH identification register (HASH_IPIDR) ..... | 1954 |
| 38.6.11 | HASH size identification register (HASH_SIDR) ..... | 1954 |
| 38.6.12 | HASH register map ..... | 1954 |
| 39 | Cryptographic processor (CRYP) ..... | 1957 |
| 39.1 | Introduction ..... | 1957 |
| 39.2 | CRYP main features ..... | 1957 |
| 39.3 | CRYP implementation ..... | 1958 |
| 39.4 | CRYP functional description ..... | 1959 |
| 39.4.1 | CRYP block diagram ..... | 1959 |
| 39.4.2 | CRYP internal signals ..... | 1960 |
| 39.4.3 | CRYP DES/TDES cryptographic core ..... | 1960 |
| 39.4.4 | CRYP AES cryptographic core ..... | 1961 |
| 39.4.5 | CRYP procedure to perform a cipher operation ..... | 1967 |
| 39.4.6 | CRYP busy state ..... | 1969 |
| 39.4.7 | Preparing the CRYP AES key for decryption ..... | 1970 |
| 39.4.8 | CRYP stealing and data padding ..... | 1970 |
| 39.4.9 | CRYP suspend/resume operations ..... | 1971 |
| 39.4.10 | CRYP DES/TDES basic chaining modes (ECB, CBC) ..... | 1972 |
| 39.4.11 | CRYP AES basic chaining modes (ECB, CBC) ..... | 1977 |
| 39.4.12 | CRYP AES counter mode (AES-CTR) ..... | 1982 |
| 39.4.13 | CRYP AES Galois/counter mode (GCM) ..... | 1986 |
| 39.4.14 | CRYP AES Galois message authentication code (GMAC) ..... | 1991 |
| 39.4.15 | CRYP AES Counter with CBC-MAC (CCM) ..... | 1992 |
| 39.4.16 | CRYP data registers and data swapping ..... | 1997 |
| 39.4.17 | CRYP key registers ..... | 2001 |
| 39.4.18 | CRYP initialization vector registers ..... | 2002 |
| 39.4.19 | CRYP DMA interface ..... | 2003 |
| 39.4.20 | CRYP error management ..... | 2005 |
| 39.5 | CRYP interrupts ..... | 2006 |
| 39.6 | CRYP processing time ..... | 2007 |
| 39.7 | CRYP registers ..... | 2008 |
| 39.7.1 | CRYP control register (CRYP_CR) ..... | 2008 |
| 39.7.2 | CRYP status register (CRYP_SR) ..... | 2010 |
| 39.7.3 | CRYP data input register (CRYP_DIN) ..... | 2011 |
| 39.7.4 | CRYP data output register (CRYP_DOUT) ..... | 2011 |
| 39.7.5 | CRYP DMA control register (CRYP_DMACR) ..... | 2012 |
| 39.7.6 | CRYP interrupt mask set/clear register (CRYP_IMSCR) ..... | 2013 |
| 39.7.7 | CRYP raw interrupt status register (CRYP_RISR) ..... | 2013 |
| 39.7.8 | CRYP masked interrupt status register (CRYP_MISR) ..... | 2014 |
| 39.7.9 | CRYP key register 0L (CRYP_K0LR) ..... | 2015 |
| 39.7.10 | CRYP key register 0R (CRYP_K0RR) ..... | 2015 |
| 39.7.11 | CRYP key register 1L (CRYP_K1LR) ..... | 2016 |
| 39.7.12 | CRYP key register 1R (CRYP_K1RR) ..... | 2016 |
| 39.7.13 | CRYP key register 2L (CRYP_K2LR) ..... | 2017 |
| 39.7.14 | CRYP key register 2R (CRYP_K2RR) ..... | 2017 |
| 39.7.15 | CRYP key register 3L (CRYP_K3LR) ..... | 2018 |
| 39.7.16 | CRYP key register 3R (CRYP_K3RR) ..... | 2018 |
| 39.7.17 | CRYP initialization vector register 0L (CRYP_IV0LR) ..... | 2019 |
| 39.7.18 | CRYP initialization vector register 0R (CRYP_IV0RR) ..... | 2019 |
| 39.7.19 | CRYP initialization vector register 1L (CRYP_IV1LR) ..... | 2020 |
| 39.7.20 | CRYP initialization vector register 1R (CRYP_IV1RR) ..... | 2020 |
| 39.7.21 | CRYP context swap GCM-CCM registers (CRYP_CSGCMCCMxR) ..... | 2020 |
| 39.7.22 | CRYP context swap GCM registers (CRYP_CSGCMxR) ..... | 2021 |
| 39.7.23 | CRYP hardware configuration register (CRYP_HWCFGR) ..... | 2021 |
| 39.7.24 | CRYP version register (CRYP_VERR) ..... | 2022 |
| 39.7.25 | CRYP identification (CRYP_IPIDR) ..... | 2022 |
| 39.7.26 | CRYP size identification register (CRYP_SIDR) ..... | 2023 |
| 39.7.27 | CRYP register map ..... | 2023 |
| 40 | Advanced-control timers (TIM1/TIM8) ..... | 2026 |
| 40.1 | TIM1/TIM8 introduction ..... | 2026 |
| 40.2 | TIM1/TIM8 main features ..... | 2026 |
| 40.3 | TIM1/TIM8 functional description ..... | 2028 |
| 40.3.1 | Time-base unit ..... | 2028 |
| 40.3.2 | Counter modes ..... | 2030 |
| 40.3.3 | Repetition counter ..... | 2041 |
| 40.3.4 | External trigger input ..... | 2043 |
| 40.3.5 | Clock selection ..... | 2044 |
| 40.3.6 | Capture/compare channels ..... | 2048 |
| 40.3.7 | Input capture mode ..... | 2050 |
| 40.3.8 | PWM input mode ..... | 2051 |
| 40.3.9 | Forced output mode ..... | 2052 |
| 40.3.10 | Output compare mode ..... | 2053 |
| 40.3.11 | PWM mode ..... | 2054 |
| 40.3.12 | Asymmetric PWM mode ..... | 2057 |
| 40.3.13 | Combined PWM mode ..... | 2058 |
| 40.3.14 | Combined 3-phase PWM mode ..... | 2059 |
| 40.3.15 | Complementary outputs and dead-time insertion ..... | 2060 |
| 40.3.16 | Using the break function ..... | 2062 |
| 40.3.17 | Bidirectional break inputs ..... | 2068 |
| 40.3.18 | Clearing the OCxREF signal on an external event ..... | 2069 |
| 40.3.19 | 6-step PWM generation ..... | 2071 |
| 40.3.20 | One-pulse mode ..... | 2072 |
| 40.3.21 | Retriggerable one pulse mode ..... | 2073 |
| 40.3.22 | Encoder interface mode ..... | 2074 |
| 40.3.23 | UIF bit remapping ..... | 2076 |
| 40.3.24 | Timer input XOR function ..... | 2077 |
| 40.3.25 | Interfacing with Hall sensors ..... | 2077 |
| 40.3.26 | Timer synchronization ..... | 2080 |
| 40.3.27 | ADC synchronization ..... | 2084 |
| 40.3.28 | DMA burst mode ..... | 2084 |
| 40.3.29 | Debug mode ..... | 2085 |
| 40.4 | TIM1/TIM8 registers ..... | 2086 |
| 40.4.1 | TIMx control register 1 (TIMx_CR1)(x = 1, 8) ..... | 2086 |
| 40.4.2 | TIMx control register 2 (TIMx_CR2)(x = 1, 8) ..... | 2087 |
| 40.4.3 | TIMx slave mode control register (TIMx_SMCR)(x = 1, 8) ..... | 2090 |
| 40.4.4 | TIMx DMA/interrupt enable register (TIMx_DIER)(x = 1, 8) ..... | 2092 |
| 40.4.5 | TIMx status register (TIMx_SR)(x = 1, 8) ..... | 2094 |
| 40.4.6 | TIMx event generation register (TIMx_EGR)(x = 1, 8) ..... | 2096 |
| 40.4.7 | TIMx capture/compare mode register 1 (TIMx_CCMR1)(x = 1, 8) .. | 2097 |
| 40.4.8 | TIMx capture/compare mode register 1 [alternate] (TIMx_CCMR1)(x = 1, 8) ..... | 2098 |
| 40.4.9 | TIMx capture/compare mode register 2 (TIMx_CCMR2)(x = 1, 8) .. | 2101 |
| 40.4.10 | TIMx capture/compare mode register 2 [alternate] (TIMx_CCMR2)(x = 1, 8) ..... | 2102 |
| 40.4.11 | TIMx capture/compare enable register (TIMx_CCER)(x = 1, 8) ..... | 2103 |
| 40.4.12 | TIMx counter (TIMx_CNT)(x = 1, 8) ..... | 2107 |
| 40.4.13 | TIMx prescaler (TIMx_PSC)(x = 1, 8) ..... | 2107 |
| 40.4.14 | TIMx auto-reload register (TIMx_ARR)(x = 1, 8) ..... | 2107 |
| 40.4.15 | TIMx repetition counter register (TIMx_RCR)(x = 1, 8) ..... | 2108 |
| 40.4.16 | TIMx capture/compare register 1 (TIMx_CCR1)(x = 1, 8) ..... | 2108 |
| 40.4.17 | TIMx capture/compare register 2 (TIMx_CCR2)(x = 1, 8) ..... | 2109 |
| 40.4.18 | TIMx capture/compare register 3 (TIMx_CCR3)(x = 1, 8) ..... | 2109 |
| 40.4.19 | TIMx capture/compare register 4 (TIMx_CCR4)(x = 1, 8) ..... | 2110 |
| 40.4.20 | TIMx break and dead-time register (TIMx_BDTR)(x = 1, 8) ..... | 2110 |
| 40.4.21 | TIMx DMA control register (TIMx_DCR)(x = 1, 8) ..... | 2114 |
| 40.4.22 | TIMx DMA address for full transfer (TIMx_DMAR)(x = 1, 8) ..... | 2115 |
| 40.4.23 | TIMx capture/compare mode register 3 (TIMx_CCMR3)(x = 1, 8) ..... | 2116 |
| 40.4.24 | TIMx capture/compare register 5 (TIMx_CCR5)(x = 1, 8) ..... | 2117 |
| 40.4.25 | TIMx capture/compare register 6 (TIMx_CCR6)(x = 1, 8) ..... | 2118 |
| 40.4.26 | TIM1 alternate function option register 1 (TIM1_AF1) ..... | 2118 |
| 40.4.27 | TIM1 Alternate function register 2 (TIM1_AF2) ..... | 2119 |
| 40.4.28 | TIM8 Alternate function option register 1 (TIM8_AF1) ..... | 2120 |
| 40.4.29 | TIM8 Alternate function option register 2 (TIM8_AF2) ..... | 2121 |
| 40.4.30 | TIM1 timer input selection register (TIM1_TISEL) ..... | 2122 |
| 40.4.31 | TIM8 timer input selection register (TIM8_TISEL) ..... | 2123 |
| 40.4.32 | TIM1 register map ..... | 2124 |
| 40.4.33 | TIM8 register map ..... | 2126 |
| 41 | General-purpose timers (TIM2/TIM3/TIM4/TIM5) ..... | 2129 |
| 41.1 | TIM2/TIM3/TIM4/TIM5 introduction ..... | 2129 |
| 41.2 | TIM2/TIM3/TIM4/TIM5 main features ..... | 2129 |
| 41.3 | TIM2/TIM3/TIM4/TIM5 functional description ..... | 2131 |
| 41.3.1 | Time-base unit ..... | 2131 |
| 41.3.2 | Counter modes | 2133 |
| 41.3.3 | Clock selection | 2143 |
| 41.3.4 | Capture/Compare channels | 2147 |
| 41.3.5 | Input capture mode | 2148 |
| 41.3.6 | PWM input mode | 2149 |
| 41.3.7 | Forced output mode | 2150 |
| 41.3.8 | Output compare mode | 2151 |
| 41.3.9 | PWM mode | 2152 |
| 41.3.10 | Asymmetric PWM mode | 2155 |
| 41.3.11 | Combined PWM mode | 2156 |
| 41.3.12 | Clearing the OCxREF signal on an external event | 2157 |
| 41.3.13 | One-pulse mode | 2159 |
| 41.3.14 | Retriggerable one pulse mode | 2160 |
| 41.3.15 | Encoder interface mode | 2161 |
| 41.3.16 | UIF bit remapping | 2163 |
| 41.3.17 | Timer input XOR function | 2163 |
| 41.3.18 | Timers and external trigger synchronization | 2164 |
| 41.3.19 | Timer synchronization | 2167 |
| 41.3.20 | DMA burst mode | 2172 |
| 41.3.21 | Debug mode | 2173 |
| 41.4 | TIM2/TIM3/TIM4/TIM5 registers | 2174 |
| 41.4.1 | TIMx control register 1 (TIMx_CR1)(x = 2 to 5) | 2174 |
| 41.4.2 | TIMx control register 2 (TIMx_CR2)(x = 2 to 5) | 2175 |
| 41.4.3 | TIMx slave mode control register (TIMx_SMCR)(x = 2 to 5) | 2177 |
| 41.4.4 | TIMx DMA/Interrupt enable register (TIMx_DIER)(x = 2 to 5) | 2180 |
| 41.4.5 | TIMx status register (TIMx_SR)(x = 2 to 5) | 2181 |
| 41.4.6 | TIMx event generation register (TIMx_EGR)(x = 2 to 5) | 2182 |
| 41.4.7 | TIMx capture/compare mode register 1 (TIMx_CCMR1)(x = 2 to 5) | 2183 |
| 41.4.8 | TIMx capture/compare mode register 1 [alternate] (TIMx_CCMR1) (x = 2 to 5) | 2185 |
| 41.4.9 | TIMx capture/compare mode register 2 (TIMx_CCMR2)(x = 2 to 5) | 2187 |
| 41.4.10 | TIMx capture/compare mode register 2 [alternate] (TIMx_CCMR2) (x = 2 to 5) | 2188 |
| 41.4.11 | TIMx capture/compare enable register (TIMx_CCER)(x = 2 to 5) | 2189 |
| 41.4.12 | TIMx counter (TIMx_CNT)(x = 2 to 5) | 2190 |
| 41.4.13 | TIMx counter [alternate] (TIMx_CNT)(x = 2 to 5) | 2191 |
| 41.4.14 | TIMx prescaler (TIMx_PSC)(x = 2 to 5) | 2191 |
| 41.4.15 | TIMx auto-reload register (TIMx_ARR)(x = 2 to 5) . . . . . | 2192 |
| 41.4.16 | TIMx capture/compare register 1 (TIMx_CCR1)(x = 2 to 5) . . . . . | 2192 |
| 41.4.17 | TIMx capture/compare register 2 (TIMx_CCR2)(x = 2 to 5) . . . . . | 2192 |
| 41.4.18 | TIMx capture/compare register 3 (TIMx_CCR3)(x = 2 to 5) . . . . . | 2193 |
| 41.4.19 | TIMx capture/compare register 4 (TIMx_CCR4)(x = 2 to 5) . . . . . | 2193 |
| 41.4.20 | TIMx DMA control register (TIMx_DCR)(x = 2 to 5) . . . . . | 2194 |
| 41.4.21 | TIMx DMA address for full transfer (TIMx_DMAR)(x = 2 to 5) . . . . . | 2195 |
| 41.4.22 | TIM2 alternate function option register 1 (TIM2_AF1) . . . . . | 2195 |
| 41.4.23 | TIM3 alternate function option register 1 (TIM3_AF1) . . . . . | 2195 |
| 41.4.24 | TIM4 alternate function option register 1 (TIM4_AF1) . . . . . | 2196 |
| 41.4.25 | TIM5 alternate function option register 1 (TIM5_AF1) . . . . . | 2196 |
| 41.4.26 | TIM2 timer input selection register (TIM2_TISEL) . . . . . | 2197 |
| 41.4.27 | TIM3 timer input selection register (TIM3_TISEL) . . . . . | 2198 |
| 41.4.28 | TIM4 timer input selection register (TIM4_TISEL) . . . . . | 2198 |
| 41.4.29 | TIM5 timer input selection register (TIM5_TISEL) . . . . . | 2199 |
| 41.4.30 | TIMx register map . . . . . | 2201 |
| 42 | General-purpose timers (TIM12/TIM13/TIM14) . . . . . | 2204 |
| 42.1 | TIM12/TIM13/TIM14 introduction . . . . . | 2204 |
| 42.2 | TIM12/TIM13/TIM14 main features . . . . . | 2204 |
| 42.2.1 | TIM12 main features . . . . . | 2204 |
| 42.2.2 | TIM13/TIM14 main features . . . . . | 2205 |
| 42.3 | TIM12/TIM13/TIM14 functional description . . . . . | 2207 |
| 42.3.1 | Time-base unit . . . . . | 2207 |
| 42.3.2 | Counter modes . . . . . | 2209 |
| 42.3.3 | Clock selection . . . . . | 2212 |
| 42.3.4 | Capture/compare channels . . . . . | 2214 |
| 42.3.5 | Input capture mode . . . . . | 2216 |
| 42.3.6 | PWM input mode (only for TIM12) . . . . . | 2217 |
| 42.3.7 | Forced output mode . . . . . | 2218 |
| 42.3.8 | Output compare mode . . . . . | 2219 |
| 42.3.9 | PWM mode . . . . . | 2220 |
| 42.3.10 | Combined PWM mode (TIM12 only) . . . . . | 2221 |
| 42.3.11 | One-pulse mode . . . . . | 2222 |
| 42.3.12 | Retriggerable one pulse mode (TIM12 only) . . . . . | 2224 |
| 42.3.13 | UIF bit remapping . . . . . | 2224 |
| 42.3.14 | Timer input XOR function . . . . . | 2225 |
| 42.3.15 | TIM12 external trigger synchronization | 2225 |
| 42.3.16 | Slave mode – combined reset + trigger mode | 2228 |
| 42.3.17 | Timer synchronization (TIM12) | 2229 |
| 42.3.18 | Using timer output as trigger for other timers (TIM13/TIM14) | 2229 |
| 42.3.19 | Debug mode | 2229 |
| 42.4 | TIM12 registers | 2229 |
| 42.4.1 | TIM12 control register 1 (TIM12_CR1) | 2229 |
| 42.4.2 | TIM12 control register 2 (TIM12_CR2) | 2230 |
| 42.4.3 | TIM12 slave mode control register (TIM12_SMCR) | 2231 |
| 42.4.4 | TIM12 Interrupt enable register (TIM12_DIER) | 2233 |
| 42.4.5 | TIM12 status register (TIM12_SR) | 2233 |
| 42.4.6 | TIM12 event generation register (TIM12_EGR) | 2234 |
| 42.4.7 | TIM12 capture/compare mode register 1 (TIM12_CCMR1) | 2235 |
| 42.4.8 | TIM12 capture/compare mode register 1 [alternate] (TIM12_CCMR1) | 2236 |
| 42.4.9 | TIM12 capture/compare enable register (TIM12_CCER) | 2239 |
| 42.4.10 | TIM12 counter (TIM12_CNT) | 2240 |
| 42.4.11 | TIM12 prescaler (TIM12_PSC) | 2241 |
| 42.4.12 | TIM12 auto-reload register (TIM12_ARR) | 2241 |
| 42.4.13 | TIM12 capture/compare register 1 (TIM12_CCR1) | 2241 |
| 42.4.14 | TIM12 capture/compare register 2 (TIM12_CCR2) | 2242 |
| 42.4.15 | TIM12 timer input selection register (TIM12_TISEL) | 2242 |
| 42.4.16 | TIM12 register map | 2243 |
| 42.5 | TIM13/TIM14 registers | 2245 |
| 42.5.1 | TIMx control register 1 (TIMx_CR1)(x = 13 to 14) | 2245 |
| 42.5.2 | TIMx Interrupt enable register (TIMx_DIER)(x = 13 to 14) | 2246 |
| 42.5.3 | TIMx status register (TIMx_SR)(x = 13 to 14) | 2246 |
| 42.5.4 | TIMx event generation register (TIMx_EGR)(x = 13 to 14) | 2247 |
| 42.5.5 | TIMx capture/compare mode register 1 (TIMx_CCMR1)(x = 13 to 14) | 2248 |
| 42.5.6 | TIMx capture/compare mode register 1 [alternate] (TIMx_CCMR1)(x = 13 to 14) | 2249 |
| 42.5.7 | TIMx capture/compare enable register (TIMx_CCER)(x = 13 to 14) | 2251 |
| 42.5.8 | TIMx counter (TIMx_CNT)(x = 13 to 14) | 2252 |
| 42.5.9 | TIMx prescaler (TIMx_PSC)(x = 13 to 14) | 2253 |
| 42.5.10 | TIMx auto-reload register (TIMx_ARR)(x = 13 to 14) | 2253 |
| 42.5.11 | TIMx capture/compare register 1 (TIMx_CCR1)(x = 13 to 14) | 2253 |
| 42.5.12 | TIM13 timer input selection register (TIM13_TISEL) . . . . . | 2254 |
| 42.5.13 | TIM14 timer input selection register (TIM14_TISEL) . . . . . | 2254 |
| 42.5.14 | TIM13/TIM14 register map . . . . . | 2255 |
| 43 | General-purpose timers (TIM15/TIM16/TIM17) . . . . . | 2257 |
| 43.1 | TIM15/TIM16/TIM17 introduction . . . . . | 2257 |
| 43.2 | TIM15 main features . . . . . | 2257 |
| 43.3 | TIM16/TIM17 main features . . . . . | 2258 |
| 43.4 | TIM15/TIM16/TIM17 functional description . . . . . | 2261 |
| 43.4.1 | Time-base unit . . . . . | 2261 |
| 43.4.2 | Counter modes . . . . . | 2263 |
| 43.4.3 | Repetition counter . . . . . | 2267 |
| 43.4.4 | Clock selection . . . . . | 2268 |
| 43.4.5 | Capture/compare channels . . . . . | 2270 |
| 43.4.6 | Input capture mode . . . . . | 2272 |
| 43.4.7 | PWM input mode (only for TIM15) . . . . . | 2273 |
| 43.4.8 | Forced output mode . . . . . | 2274 |
| 43.4.9 | Output compare mode . . . . . | 2275 |
| 43.4.10 | PWM mode . . . . . | 2276 |
| 43.4.11 | Combined PWM mode (TIM15 only) . . . . . | 2277 |
| 43.4.12 | Complementary outputs and dead-time insertion . . . . . | 2278 |
| 43.4.13 | Using the break function . . . . . | 2280 |
| 43.4.14 | Bidirectional break inputs . . . . . | 2285 |
| 43.4.15 | 6-step PWM generation . . . . . | 2286 |
| 43.4.16 | One-pulse mode . . . . . | 2288 |
| 43.4.17 | Retriggerable one pulse mode (TIM15 only) . . . . . | 2289 |
| 43.4.18 | UIF bit remapping . . . . . | 2290 |
| 43.4.19 | Timer input XOR function (TIM15 only) . . . . . | 2291 |
| 43.4.20 | External trigger synchronization (TIM15 only) . . . . . | 2292 |
| 43.4.21 | Slave mode – combined reset + trigger mode . . . . . | 2294 |
| 43.4.22 | DMA burst mode . . . . . | 2294 |
| 43.4.23 | Timer synchronization (TIM15) . . . . . | 2296 |
| 43.4.24 | Using timer output as trigger for other timers (TIM16/TIM17) . . . . . | 2296 |
| 43.4.25 | Debug mode . . . . . | 2296 |
| 43.5 | TIM15 registers . . . . . | 2297 |
| 43.5.1 | TIM15 control register 1 (TIM15_CR1) . . . . . | 2297 |
| 43.5.2 | TIM15 control register 2 (TIM15_CR2) . . . . . | 2298 |
| 43.5.3 | TIM15 slave mode control register (TIM15_SMCR) ..... | 2300 |
| 43.5.4 | TIM15 DMA/interrupt enable register (TIM15_DIER) ..... | 2301 |
| 43.5.5 | TIM15 status register (TIM15_SR) ..... | 2302 |
| 43.5.6 | TIM15 event generation register (TIM15_EGR) ..... | 2304 |
| 43.5.7 | TIM15 capture/compare mode register 1 (TIM15_CCMR1) ..... | 2305 |
| 43.5.8 | TIM15 capture/compare mode register 1 [alternate] (TIM15_CCMR1) ..... | 2306 |
| 43.5.9 | TIM15 capture/compare enable register (TIM15_CCER) ..... | 2309 |
| 43.5.10 | TIM15 counter (TIM15_CNT) ..... | 2312 |
| 43.5.11 | TIM15 prescaler (TIM15_PSC) ..... | 2312 |
| 43.5.12 | TIM15 auto-reload register (TIM15_ARR) ..... | 2312 |
| 43.5.13 | TIM15 repetition counter register (TIM15_RCR) ..... | 2313 |
| 43.5.14 | TIM15 capture/compare register 1 (TIM15_CCR1) ..... | 2313 |
| 43.5.15 | TIM15 capture/compare register 2 (TIM15_CCR2) ..... | 2314 |
| 43.5.16 | TIM15 break and dead-time register (TIM15_BDTR) ..... | 2314 |
| 43.5.17 | TIM15 DMA control register (TIM15_DCR) ..... | 2317 |
| 43.5.18 | TIM15 DMA address for full transfer (TIM15_DMAR) ..... | 2317 |
| 43.5.19 | TIM15 alternate register 1 (TIM15_AF1) ..... | 2318 |
| 43.5.20 | TIM15 input selection register (TIM15_TISEL) ..... | 2319 |
| 43.5.21 | TIM15 register map ..... | 2319 |
| 43.6 | TIM16/TIM17 registers ..... | 2322 |
| 43.6.1 | TIMx control register 1 (TIMx_CR1)(x = 16 to 17) ..... | 2322 |
| 43.6.2 | TIMx control register 2 (TIMx_CR2)(x = 16 to 17) ..... | 2323 |
| 43.6.3 | TIMx DMA/interrupt enable register (TIMx_DIER)(x = 16 to 17) .... | 2324 |
| 43.6.4 | TIMx status register (TIMx_SR)(x = 16 to 17) ..... | 2325 |
| 43.6.5 | TIMx event generation register (TIMx_EGR)(x = 16 to 17) ..... | 2326 |
| 43.6.6 | TIMx capture/compare mode register 1 (TIMx_CCMR1)(x = 16 to 17) ..... | 2327 |
| 43.6.7 | TIMx capture/compare mode register 1 [alternate] (TIMx_CCMR1)(x = 16 to 17) ..... | 2328 |
| 43.6.8 | TIMx capture/compare enable register (TIMx_CCER)(x = 16 to 17) .. | 2330 |
| 43.6.9 | TIMx counter (TIMx_CNT)(x = 16 to 17) ..... | 2332 |
| 43.6.10 | TIMx prescaler (TIMx_PSC)(x = 16 to 17) ..... | 2333 |
| 43.6.11 | TIMx auto-reload register (TIMx_ARR)(x = 16 to 17) ..... | 2333 |
| 43.6.12 | TIMx repetition counter register (TIMx_RCR)(x = 16 to 17) ..... | 2334 |
| 43.6.13 | TIMx capture/compare register 1 (TIMx_CCR1)(x = 16 to 17) .... | 2334 |
| 43.6.14 | TIMx break and dead-time register (TIMx_BDTR)(x = 16 to 17) .... | 2335 |
| 43.6.15 | TIMx DMA control register (TIMx_DCR)(x = 16 to 17) ..... | 2338 |
| 43.6.16 | TIMx DMA address for full transfer (TIMx_DMAR)(x = 16 to 17) . . . . . | 2338 |
| 43.6.17 | TIM16 alternate function register 1 (TIM16_AF1) . . . . . | 2339 |
| 43.6.18 | TIM16 input selection register (TIM16_TISEL) . . . . . | 2339 |
| 43.6.19 | TIM17 alternate function register 1 (TIM17_AF1) . . . . . | 2340 |
| 43.6.20 | TIM17 input selection register (TIM17_TISEL) . . . . . | 2341 |
| 43.6.21 | TIM16/TIM17 register map . . . . . | 2342 |
| 44 | Basic timers (TIM6/TIM7) . . . . . | 2344 |
| 44.1 | TIM6/TIM7 introduction . . . . . | 2344 |
| 44.2 | TIM6/TIM7 main features . . . . . | 2344 |
| 44.3 | TIM6/TIM7 functional description . . . . . | 2345 |
| 44.3.1 | Time-base unit . . . . . | 2345 |
| 44.3.2 | Counting mode . . . . . | 2347 |
| 44.3.3 | UIF bit remapping . . . . . | 2350 |
| 44.3.4 | Clock source . . . . . | 2350 |
| 44.3.5 | Debug mode . . . . . | 2351 |
| 44.4 | TIM6/TIM7 registers . . . . . | 2351 |
| 44.4.1 | TIMx control register 1 (TIMx_CR1)(x = 6 to 7) . . . . . | 2351 |
| 44.4.2 | TIMx control register 2 (TIMx_CR2)(x = 6 to 7) . . . . . | 2353 |
| 44.4.3 | TIMx DMA/Interrupt enable register (TIMx_DIER)(x = 6 to 7) . . . . . | 2353 |
| 44.4.4 | TIMx status register (TIMx_SR)(x = 6 to 7) . . . . . | 2354 |
| 44.4.5 | TIMx event generation register (TIMx_EGR)(x = 6 to 7) . . . . . | 2354 |
| 44.4.6 | TIMx counter (TIMx_CNT)(x = 6 to 7) . . . . . | 2354 |
| 44.4.7 | TIMx prescaler (TIMx_PSC)(x = 6 to 7) . . . . . | 2355 |
| 44.4.8 | TIMx auto-reload register (TIMx_ARR)(x = 6 to 7) . . . . . | 2355 |
| 44.4.9 | TIMx register map . . . . . | 2356 |
| 45 | Low-power timer (LPTIM) . . . . . | 2357 |
| 45.1 | Introduction . . . . . | 2357 |
| 45.2 | LPTIM main features . . . . . | 2357 |
| 45.3 | LPTIM implementation . . . . . | 2358 |
| 45.4 | LPTIM functional description . . . . . | 2358 |
| 45.4.1 | LPTIM block diagram . . . . . | 2358 |
| 45.4.2 | LPTIM pins and internal signals . . . . . | 2360 |
| 45.4.3 | LPTIM input and trigger mapping . . . . . | 2360 |
| 45.4.4 | LPTIM reset and clocks . . . . . | 2363 |
| 45.4.5 | Glitch filter | 2363 |
| 45.4.6 | Prescaler | 2364 |
| 45.4.7 | Trigger multiplexer | 2365 |
| 45.4.8 | Operating mode | 2365 |
| 45.4.9 | Timeout function | 2367 |
| 45.4.10 | Waveform generation | 2367 |
| 45.4.11 | Register update | 2368 |
| 45.4.12 | Counter mode | 2369 |
| 45.4.13 | Timer enable | 2369 |
| 45.4.14 | Timer counter reset | 2370 |
| 45.4.15 | Encoder mode | 2370 |
| 45.4.16 | Debug mode | 2372 |
| 45.5 | LPTIM low-power modes | 2372 |
| 45.6 | LPTIM interrupts | 2373 |
| 45.7 | LPTIM registers | 2373 |
| 45.7.1 | LPTIM interrupt and status register (LPTIM_ISR) | 2374 |
| 45.7.2 | LPTIM interrupt clear register (LPTIM_ICR) | 2375 |
| 45.7.3 | LPTIM interrupt enable register (LPTIM_IER) | 2375 |
| 45.7.4 | LPTIM configuration register (LPTIM_CFGR) | 2376 |
| 45.7.5 | LPTIM control register (LPTIM_CR) | 2379 |
| 45.7.6 | LPTIM compare register (LPTIM_CMP) | 2381 |
| 45.7.7 | LPTIM autoreload register (LPTIM_ARR) | 2381 |
| 45.7.8 | LPTIM counter register (LPTIM_CNT) | 2382 |
| 45.7.9 | LPTIM configuration register 2 (LPTIM_CFGR2) | 2382 |
| 45.7.10 | LPTIM x peripheral hardware configuration register (LPTIMx_HWCFGR)(x = 1 to 5) | 2383 |
| 45.7.11 | LPTIM peripheral version identification register (LPTIM_VERR) | 2384 |
| 45.7.12 | LPTIM peripheral type identification register (LPTIM_PIDR) | 2384 |
| 45.7.13 | LPTIM registers map size identification register (LPTIM_SIDR) | 2384 |
| 45.7.14 | LPTIM register map | 2386 |
| 46 | System timer generator (STGEN) | 2388 |
| 46.1 | STGEN introduction | 2388 |
| 46.2 | STGEN main features | 2388 |
| 46.3 | STGEN functional description | 2388 |
| 46.3.1 | STGEN block diagram | 2389 |
| 46.4 | STGEN registers | 2390 |
| 46.4.1 | STGENC control register (STGENC_CNTCR) ..... | 2390 |
| 46.4.2 | STGENC status register (STGENC_CNTSR) ..... | 2390 |
| 46.4.3 | STGENC value lower register (STGENC_CNTCVL) ..... | 2391 |
| 46.4.4 | STGENC value upper register (STGENC_CNTCVU) ..... | 2391 |
| 46.4.5 | STGENC base frequency register (STGENC_CNTFID0) ..... | 2392 |
| 46.4.6 | STGENC peripheral ID4 register (STGENC_PIDR4) ..... | 2392 |
| 46.4.7 | STGENC peripheral ID5 register (STGENC_PIDR5) ..... | 2393 |
| 46.4.8 | STGENC peripheral ID6 register (STGENC_PIDR6) ..... | 2393 |
| 46.4.9 | STGENC peripheral ID7 register (STGENC_PIDR7) ..... | 2393 |
| 46.4.10 | STGENC peripheral ID0 register (STGENC_PIDR0) ..... | 2394 |
| 46.4.11 | STGENC peripheral ID1 register (STGENC_PIDR1) ..... | 2394 |
| 46.4.12 | STGENC peripheral ID2 register (STGENC_PIDR2) ..... | 2394 |
| 46.4.13 | STGENC peripheral ID3 register (STGENC_PIDR3) ..... | 2395 |
| 46.4.14 | STGENC component ID0 register (STGENC_CIDR0) ..... | 2395 |
| 46.4.15 | STGENC component ID1 register (STGENC_CIDR1) ..... | 2396 |
| 46.4.16 | STGENC component ID2 register (STGENC_CIDR2) ..... | 2396 |
| 46.4.17 | STGENC component ID3 register (STGENC_CIDR3) ..... | 2397 |
| 46.4.18 | STGENR value lower register (STGENR_CNTCVL) ..... | 2397 |
| 46.4.19 | STGENR value upper register (STGENR_CNTCVU) ..... | 2397 |
| 46.4.20 | STGENR peripheral ID4 register (STGENR_PIDR4) ..... | 2398 |
| 46.4.21 | STGENR peripheral ID5 register (STGENR_PIDR5) ..... | 2398 |
| 46.4.22 | STGENR peripheral ID6 register (STGENR_PIDR6) ..... | 2398 |
| 46.4.23 | STGENR peripheral ID7 register (STGENR_PIDR7) ..... | 2399 |
| 46.4.24 | STGENR peripheral ID0 register (STGENR_PIDR0) ..... | 2399 |
| 46.4.25 | STGENR peripheral ID1 register (STGENR_PIDR1) ..... | 2399 |
| 46.4.26 | STGENR peripheral ID2 register (STGENR_PIDR2) ..... | 2400 |
| 46.4.27 | STGENR peripheral ID3 register (STGENR_PIDR3) ..... | 2400 |
| 46.4.28 | STGENR component ID0 register (STGENR_CIDR0) ..... | 2401 |
| 46.4.29 | STGENR component ID1 register (STGENR_CIDR1) ..... | 2401 |
| 46.4.30 | STGENR component ID2 register (STGENR_CIDR2) ..... | 2401 |
| 46.4.31 | STGENR component ID3 register (STGENR_CIDR3) ..... | 2402 |
| 46.4.32 | STGEN register map ..... | 2402 |
| 47 | Watchdogs overview ..... | 2405 |
| 47.1 | Watchdog main features ..... | 2405 |
| 47.2 | Watchdog brief functional description ..... | 2405 |
| 48 | Independent watchdog (IWDG) ..... | 2407 |
| 48.1 | Introduction ..... | 2407 |
| 48.2 | IWDG main features ..... | 2407 |
| 48.3 | IWDG implementation ..... | 2407 |
| 48.4 | IWDG functional description ..... | 2408 |
| 48.4.1 | IWDG block diagram ..... | 2408 |
| 48.4.2 | IWDG internal signals ..... | 2409 |
| 48.4.3 | Software and hardware watchdog modes ..... | 2409 |
| 48.4.4 | Window option ..... | 2410 |
| 48.4.5 | Debug ..... | 2413 |
| 48.4.6 | Register access protection ..... | 2413 |
| 48.5 | IWDG low power modes ..... | 2413 |
| 48.6 | IWDG interrupts ..... | 2414 |
| 48.7 | IWDG registers ..... | 2415 |
| 48.7.1 | IWDG key register (IWDG_KR) ..... | 2415 |
| 48.7.2 | IWDG prescaler register (IWDG_PR) ..... | 2416 |
| 48.7.3 | IWDG reload register (IWDG_RLR) ..... | 2417 |
| 48.7.4 | IWDG status register (IWDG_SR) ..... | 2417 |
| 48.7.5 | IWDG window register (IWDG_WINR) ..... | 2418 |
| 48.7.6 | IWDG early wake-up interrupt register (IWDG_EWCR) ..... | 2419 |
| 48.7.7 | IWDG hardware configuration register (IWDG_HWCFGR) ..... | 2419 |
| 48.7.8 | IWDG version register (IWDG_VERR) ..... | 2420 |
| 48.7.9 | IWDG identification register (IWDG_IDR) ..... | 2421 |
| 48.7.10 | IWDG size identification register (IWDG_SIDR) ..... | 2421 |
| 48.7.11 | IWDG register map ..... | 2422 |
| 49 | System window watchdog (WWDG) ..... | 2423 |
| 49.1 | Introduction ..... | 2423 |
| 49.2 | WWDG main features ..... | 2423 |
| 49.3 | WWDG functional description ..... | 2423 |
| 49.3.1 | WWDG block diagram ..... | 2424 |
| 49.3.2 | WWDG internal signals ..... | 2424 |
| 49.3.3 | Enabling the watchdog ..... | 2424 |
| 49.3.4 | Controlling the down-counter ..... | 2424 |
| 49.3.5 | How to program the watchdog timeout ..... | 2425 |
| 49.3.6 | Debug mode ..... | 2426 |
| 49.4 | WWDG interrupts | 2426 |
| 49.5 | WWDG registers | 2426 |
| 49.5.1 | WWDG control register (WWDG_CR) | 2427 |
| 49.5.2 | WWDG configuration register (WWDG_CFR) | 2427 |
| 49.5.3 | WWDG status register (WWDG_SR) | 2428 |
| 49.5.4 | WWDG register map | 2428 |
| 50 | Real-time clock (RTC) | 2429 |
| 50.1 | Introduction | 2429 |
| 50.2 | RTC main features | 2429 |
| 50.3 | RTC functional description | 2431 |
| 50.3.1 | RTC block diagram | 2431 |
| 50.3.2 | RTC pins and internal signals | 2433 |
| 50.3.3 | GPIOs controlled by the RTC and TAMP | 2434 |
| 50.3.4 | RTC secure protection modes | 2438 |
| 50.3.5 | Clock and prescalers | 2439 |
| 50.3.6 | Real-time clock and calendar | 2440 |
| 50.3.7 | Programmable alarms | 2440 |
| 50.3.8 | Periodic auto-wakeup | 2441 |
| 50.3.9 | RTC initialization and configuration | 2442 |
| 50.3.10 | Reading the calendar | 2443 |
| 50.3.11 | Resetting the RTC | 2444 |
| 50.3.12 | RTC synchronization | 2445 |
| 50.3.13 | RTC reference clock detection | 2445 |
| 50.3.14 | RTC smooth digital calibration | 2446 |
| 50.3.15 | Timestamp function | 2448 |
| 50.3.16 | Calibration clock output | 2449 |
| 50.3.17 | Tamper and alarm output | 2449 |
| 50.4 | RTC low-power modes | 2450 |
| 50.5 | RTC interrupts | 2450 |
| 50.6 | RTC registers | 2451 |
| 50.6.1 | RTC time register (RTC_TR) | 2452 |
| 50.6.2 | RTC date register (RTC_DR) | 2453 |
| 50.6.3 | RTC sub second register (RTC_SSR) | 2454 |
| 50.6.4 | RTC initialization control and status register (RTC_ICSR) | 2454 |
| 50.6.5 | RTC prescaler register (RTC_PRER) | 2456 |
| 50.6.6 | RTC wakeup timer register (RTC_WUTR) . . . . . | 2457 |
| 50.6.7 | RTC control register (RTC_CR) . . . . . | 2457 |
| 50.6.8 | RTC secure mode control register (RTC_SMCR) . . . . . | 2461 |
| 50.6.9 | RTC write protection register (RTC_WPR) . . . . . | 2462 |
| 50.6.10 | RTC calibration register (RTC_CALR) . . . . . | 2463 |
| 50.6.11 | RTC shift control register (RTC_SHIFTR) . . . . . | 2464 |
| 50.6.12 | RTC timestamp time register (RTC_TSTR) . . . . . | 2465 |
| 50.6.13 | RTC timestamp date register (RTC_TSDR) . . . . . | 2466 |
| 50.6.14 | RTC timestamp sub second register (RTC_TSSSR) . . . . . | 2466 |
| 50.6.15 | RTC alarm A register (RTC_ALRMAR) . . . . . | 2467 |
| 50.6.16 | RTC alarm A sub second register (RTC_ALRMASSR) . . . . . | 2468 |
| 50.6.17 | RTC alarm B register (RTC_ALRMBR) . . . . . | 2469 |
| 50.6.18 | RTC alarm B sub second register (RTC_ALRMBSSR) . . . . . | 2470 |
| 50.6.19 | RTC status register (RTC_SR) . . . . . | 2471 |
| 50.6.20 | RTC non-secure masked interrupt status register (RTC_MISR) . . . . . | 2472 |
| 50.6.21 | RTC secure masked interrupt status register (RTC_SMISR) . . . . . | 2473 |
| 50.6.22 | RTC status clear register (RTC_SCR) . . . . . | 2474 |
| 50.6.23 | RTC configuration register (RTC_CFGR) . . . . . | 2475 |
| 50.6.24 | RTC hardware configuration register (RTC_HWCFG) . . . . . | 2475 |
| 50.6.25 | RTC version register (RTC_VERR) . . . . . | 2476 |
| 50.6.26 | RTC identification register (RTC_IPIDR) . . . . . | 2477 |
| 50.6.27 | RTC size identification register (RTC_SIDR) . . . . . | 2477 |
| 50.6.28 | RTC register map . . . . . | 2478 |
| 51 | Tamper and backup registers (TAMP) . . . . . | 2481 |
| 51.1 | Introduction . . . . . | 2481 |
| 51.2 | TAMP main features . . . . . | 2481 |
| 51.3 | TAMP functional description . . . . . | 2482 |
| 51.3.1 | TAMP block diagram . . . . . | 2482 |
| 51.3.2 | TAMP pins and internal signals . . . . . | 2483 |
| 51.3.3 | TAMP register write protection . . . . . | 2484 |
| 51.3.4 | TAMP secure protection modes . . . . . | 2484 |
| 51.3.5 | Tamper detection . . . . . | 2484 |
| 51.4 | TAMP low-power modes . . . . . | 2488 |
| 51.5 | TAMP interrupts . . . . . | 2488 |
| 51.6 | TAMP registers . . . . . | 2489 |
| 51.6.1 | TAMP control register 1 (TAMP_CR1) ..... | 2489 |
| 51.6.2 | TAMP control register 2 (TAMP_CR2) ..... | 2491 |
| 51.6.3 | TAMP filter control register (TAMP_FLTCR) ..... | 2492 |
| 51.6.4 | TAMP active tamper control register 1 (TAMP_ATCR1) ..... | 2494 |
| 51.6.5 | TAMP active tamper seed register (TAMP_ATSEEDR) ..... | 2495 |
| 51.6.6 | TAMP active tamper output register (TAMP_ATOR) ..... | 2496 |
| 51.6.7 | TAMP secure mode register (TAMP_SMCR) ..... | 2497 |
| 51.6.8 | TAMP interrupt enable register (TAMP_IER) ..... | 2497 |
| 51.6.9 | TAMP status register (TAMP_SR) ..... | 2499 |
| 51.6.10 | TAMP non-secure masked interrupt status register (TAMP_MISR) .. | 2500 |
| 51.6.11 | TAMP secure masked interrupt status register (TAMP_SMISR) .... | 2501 |
| 51.6.12 | TAMP status clear register (TAMP_SCR) ..... | 2502 |
| 51.6.13 | TAMP monotonic counter register (TAMP_COUNTR) ..... | 2503 |
| 51.6.14 | TAMP configuration register (TAMP_CFGR) ..... | 2503 |
| 51.6.15 | TAMP backup x register (TAMP_BKPxR) ..... | 2504 |
| 51.6.16 | TAMP hardware configuration register 2 (TAMP_HWCFGR2) .... | 2504 |
| 51.6.17 | TAMP hardware configuration register 1 (TAMP_HWCFGR1) .... | 2505 |
| 51.6.18 | TAMP version register (TAMP_VERR) ..... | 2505 |
| 51.6.19 | TAMP identification register (TAMP_IPIDR) ..... | 2506 |
| 51.6.20 | TAMP size identification register (TAMP_SIDR) ..... | 2506 |
| 51.6.21 | TAMP register map ..... | 2507 |
| 52 | Inter-integrated circuit interface (I2C) ..... | 2509 |
| 52.1 | I2C introduction ..... | 2509 |
| 52.2 | I2C main features ..... | 2509 |
| 52.3 | I2C implementation ..... | 2510 |
| 52.4 | I2C functional description ..... | 2510 |
| 52.4.1 | I2C block diagram ..... | 2511 |
| 52.4.2 | I2C pins and internal signals ..... | 2511 |
| 52.4.3 | I2C clock requirements ..... | 2512 |
| 52.4.4 | I2C mode selection ..... | 2512 |
| 52.4.5 | I2C initialization ..... | 2513 |
| 52.4.6 | I2C reset ..... | 2517 |
| 52.4.7 | I2C data transfer ..... | 2518 |
| 52.4.8 | I2C target mode ..... | 2520 |
| 52.4.9 | I2C controller mode ..... | 2529 |
| 52.4.10 | I2C_TIMINGR register configuration examples ..... | 2540 |
| 52.4.11 | SMBus specific features | 2542 |
| 52.4.12 | SMBus initialization | 2545 |
| 52.4.13 | SMBus I2C_TIMEOUTR register configuration examples | 2547 |
| 52.4.14 | SMBus target mode | 2547 |
| 52.4.15 | SMBus controller mode | 2551 |
| 52.4.16 | Wake-up from Stop mode on address match | 2554 |
| 52.4.17 | Error conditions | 2555 |
| 52.5 | I2C in low-power modes | 2557 |
| 52.6 | I2C interrupts | 2557 |
| 52.7 | I2C DMA requests | 2558 |
| 52.7.1 | Transmission using DMA | 2558 |
| 52.7.2 | Reception using DMA | 2558 |
| 52.8 | I2C debug modes | 2558 |
| 52.9 | I2C registers | 2559 |
| 52.9.1 | I2C control register 1 (I2C_CR1) | 2559 |
| 52.9.2 | I2C control register 2 (I2C_CR2) | 2561 |
| 52.9.3 | I2C own address 1 register (I2C_OAR1) | 2563 |
| 52.9.4 | I2C own address 2 register (I2C_OAR2) | 2564 |
| 52.9.5 | I2C timing register (I2C_TIMINGR) | 2565 |
| 52.9.6 | I2C timeout register (I2C_TIMEOUTR) | 2566 |
| 52.9.7 | I2C interrupt and status register (I2C_ISR) | 2567 |
| 52.9.8 | I2C interrupt clear register (I2C_ICR) | 2569 |
| 52.9.9 | I2C PEC register (I2C_PECR) | 2570 |
| 52.9.10 | I2C receive data register (I2C_RXDR) | 2570 |
| 52.9.11 | I2C transmit data register (I2C_TXDR) | 2571 |
| 52.9.12 | I2C hardware configuration register (I2C_HWCFGR) | 2571 |
| 52.9.13 | I2C version register (I2C_VERR) | 2572 |
| 52.9.14 | I2C identification register (I2C_IPIDR) | 2572 |
| 52.9.15 | I2C size identification register (I2C_SIDR) | 2572 |
| 52.9.16 | I2C register map | 2573 |
| 53 | Universal synchronous/asynchronous receiver transmitter (USART/UART) | 2575 |
| 53.1 | USART introduction | 2575 |
| 53.2 | USART main features | 2576 |
| 53.3 | USART extended features | 2577 |
| 53.4 | USART implementation | 2577 |
| 53.5 | USART functional description | 2578 |
| 53.5.1 | USART block diagram | 2578 |
| 53.5.2 | USART signals | 2579 |
| 53.5.3 | USART character description | 2580 |
| 53.5.4 | USART FIFOs and thresholds | 2582 |
| 53.5.5 | USART transmitter | 2582 |
| 53.5.6 | USART receiver | 2586 |
| 53.5.7 | USART baud rate generation | 2593 |
| 53.5.8 | Tolerance of the USART receiver to clock deviation | 2594 |
| 53.5.9 | USART auto baud rate detection | 2596 |
| 53.5.10 | USART multiprocessor communication | 2598 |
| 53.5.11 | USART Modbus communication | 2600 |
| 53.5.12 | USART parity control | 2601 |
| 53.5.13 | USART LIN (local interconnection network) mode | 2602 |
| 53.5.14 | USART synchronous mode | 2604 |
| 53.5.15 | USART single-wire half-duplex communication | 2608 |
| 53.5.16 | USART receiver timeout | 2608 |
| 53.5.17 | USART smartcard mode | 2609 |
| 53.5.18 | USART IrDA SIR ENDEC block | 2613 |
| 53.5.19 | Continuous communication using USART and DMA | 2616 |
| 53.5.20 | RS232 hardware flow control and RS485 Driver Enable | 2618 |
| 53.5.21 | USART low-power management | 2621 |
| 53.6 | USART in low-power modes | 2624 |
| 53.7 | USART interrupts | 2625 |
| 53.8 | USART registers | 2626 |
| 53.8.1 | USART control register 1 (USART_CR1) | 2626 |
| 53.8.2 | USART control register 1 [alternate] (USART_CR1) | 2629 |
| 53.8.3 | USART control register 2 (USART_CR2) | 2633 |
| 53.8.4 | USART control register 3 (USART_CR3) | 2637 |
| 53.8.5 | USART baud rate register (USART_BRR) | 2641 |
| 53.8.6 | USART guard time and prescaler register (USART_GTPR) | 2641 |
| 53.8.7 | USART receiver timeout register (USART_RTOR) | 2642 |
| 53.8.8 | USART request register (USART_RQR) | 2643 |
| 53.8.9 | USART interrupt and status register (USART_ISR) | 2644 |
| 53.8.10 | USART interrupt and status register [alternate] (USART_ISR) | 2650 |
| 53.8.11 | USART interrupt flag clear register (USART_ICR) . . . . . | 2655 |
| 53.8.12 | USART receive data register (USART_RDR) . . . . . | 2657 |
| 53.8.13 | USART transmit data register (USART_TDR) . . . . . | 2657 |
| 53.8.14 | USART prescaler register (USART_PRESC) . . . . . | 2658 |
| 53.8.15 | USART hardware configuration register 2 (USART_HWCFGR2) . . . | 2658 |
| 53.8.16 | USART hardware configuration register 1 (USART_HWCFGR1) . . . | 2659 |
| 53.8.17 | USART version register (USART_VERR) . . . . . | 2660 |
| 53.8.18 | USART Identification register (USART_IPIDR) . . . . . | 2660 |
| 53.8.19 | USART Size Identification register (USART_SIDR) . . . . . | 2660 |
| 53.8.20 | USART register map . . . . . | 2662 |
| 54 | Serial peripheral interface (SPI) . . . . . | 2664 |
| 54.1 | Introduction . . . . . | 2664 |
| 54.2 | SPI main features . . . . . | 2665 |
| 54.3 | SPI implementation . . . . . | 2665 |
| 54.4 | SPI functional description . . . . . | 2666 |
| 54.4.1 | SPI block diagram . . . . . | 2666 |
| 54.4.2 | SPI signals . . . . . | 2667 |
| 54.4.3 | SPI communication general aspects . . . . . | 2668 |
| 54.4.4 | Communications between one master and one slave . . . . . | 2668 |
| 54.4.5 | Standard multislave communication . . . . . | 2670 |
| 54.4.6 | Multimaster communication . . . . . | 2673 |
| 54.4.7 | Slave select (SS) pin management . . . . . | 2673 |
| 54.4.8 | Communication formats . . . . . | 2677 |
| 54.4.9 | Configuration of SPI . . . . . | 2679 |
| 54.4.10 | Procedure for enabling SPI . . . . . | 2680 |
| 54.4.11 | SPI data transmission and reception procedures . . . . . | 2680 |
| 54.4.12 | Procedure for disabling the SPI . . . . . | 2685 |
| 54.4.13 | Data packing . . . . . | 2686 |
| 54.4.14 | Communication using DMA (direct memory addressing) . . . . . | 2687 |
| 54.5 | SPI specific modes and control . . . . . | 2689 |
| 54.5.1 | TI mode . . . . . | 2689 |
| 54.5.2 | SPI error flags . . . . . | 2689 |
| 54.5.3 | CRC computation . . . . . | 2693 |
| 54.6 | Low-power mode management . . . . . | 2694 |
| 54.7 | SPI wakeup and interrupts . . . . . | 2697 |
| 54.8 | I2S main features . . . . . | 2698 |
| 54.9 | I2S functional description . . . . . | 2699 |
| 54.9.1 | I2S general description . . . . . | 2699 |
| 54.9.2 | Pin sharing with SPI function . . . . . | 2699 |
| 54.9.3 | Bitfields usable in I2S/PCM mode . . . . . | 2700 |
| 54.9.4 | Slave and master modes . . . . . | 2701 |
| 54.9.5 | Supported audio protocols . . . . . | 2701 |
| 54.9.6 | Additional Serial Interface Flexibility . . . . . | 2707 |
| 54.9.7 | Startup sequence . . . . . | 2709 |
| 54.9.8 | Stop sequence . . . . . | 2711 |
| 54.9.9 | Clock generator . . . . . | 2711 |
| 54.9.10 | Internal FIFOs . . . . . | 2714 |
| 54.9.11 | FIFOs status flags . . . . . | 2715 |
| 54.9.12 | Handling of underrun situation . . . . . | 2715 |
| 54.9.13 | Handling of overrun situation . . . . . | 2716 |
| 54.9.14 | Frame error detection . . . . . | 2717 |
| 54.9.15 | DMA Interface . . . . . | 2718 |
| 54.9.16 | Programing examples . . . . . | 2720 |
| 54.10 | I2S wakeup and interrupts . . . . . | 2722 |
| 54.11 | SPI/I2S registers . . . . . | 2723 |
| 54.11.1 | SPI/I2S control register 1 (SPI_CR1) . . . . . | 2723 |
| 54.11.2 | SPI control register 2 (SPI_CR2) . . . . . | 2725 |
| 54.11.3 | SPI configuration register 1 (SPI_CFG1) . . . . . | 2725 |
| 54.11.4 | SPI configuration register 2 (SPI_CFG2) . . . . . | 2728 |
| 54.11.5 | SPI/I2S interrupt enable register (SPI_IER) . . . . . | 2730 |
| 54.11.6 | SPI/I2S status register (SPI_SR) . . . . . | 2731 |
| 54.11.7 | SPI/I2S interrupt/status flags clear register (SPI_IFCR) . . . . . | 2734 |
| 54.11.8 | SPI/I2S transmit data register (SPI_TXDR) . . . . . | 2735 |
| 54.11.9 | SPI/I2S receive data register (SPI_RXDR) . . . . . | 2735 |
| 54.11.10 | SPI polynomial register (SPI_CRCPOLY) . . . . . | 2736 |
| 54.11.11 | SPI transmitter CRC register (SPI_TXCRC) . . . . . | 2736 |
| 54.11.12 | SPI receiver CRC register (SPI_RXCRC) . . . . . | 2737 |
| 54.11.13 | SPI underrun data register (SPI_UDRDR) . . . . . | 2738 |
| 54.11.14 | SPI/I2S configuration register (SPI_I2SCFGR) . . . . . | 2738 |
| 54.11.15 | SPI/I2S hardware configuration register (SPI_I2S_HWCFGR) . . . . . | 2740 |
| 54.11.16 | SPI/I2S version register (SPI_VERR) . . . . . | 2741 |
| 54.11.17 | SPI/I2S identification register (SPI_IPIDR) . . . . . | 2741 |
| 54.11.18 | SPI/I2S size identification register (SPI_SIDR) ..... | 2742 |
| 54.12 | SPI register map and reset values ..... | 2743 |
| 55 | Serial audio interface (SAI) ..... | 2745 |
| 55.1 | Introduction ..... | 2745 |
| 55.2 | SAI main features ..... | 2745 |
| 55.3 | SAI implementation ..... | 2746 |
| 55.4 | SAI functional description ..... | 2747 |
| 55.4.1 | SAI block diagram ..... | 2747 |
| 55.4.2 | SAI pins and internal signals ..... | 2748 |
| 55.4.3 | Main SAI modes ..... | 2749 |
| 55.4.4 | SAI synchronization mode ..... | 2750 |
| 55.4.5 | Audio data size ..... | 2751 |
| 55.4.6 | Frame synchronization ..... | 2751 |
| 55.4.7 | Slot configuration ..... | 2754 |
| 55.4.8 | SAI clock generator ..... | 2756 |
| 55.4.9 | Internal FIFOs ..... | 2759 |
| 55.4.10 | PDM interface ..... | 2761 |
| 55.4.11 | AC'97 link controller ..... | 2769 |
| 55.4.12 | SPDIF output ..... | 2771 |
| 55.4.13 | Specific features ..... | 2774 |
| 55.4.14 | Error flags ..... | 2778 |
| 55.4.15 | Disabling the SAI ..... | 2781 |
| 55.4.16 | SAI DMA interface ..... | 2781 |
| 55.5 | SAI interrupts ..... | 2782 |
| 55.6 | SAI registers ..... | 2784 |
| 55.6.1 | SAI global configuration register (SAI_GCR) ..... | 2784 |
| 55.6.2 | SAI configuration register 1 (SAI_ACR1) ..... | 2784 |
| 55.6.3 | SAI configuration register 2 (SAI_ACR2) ..... | 2787 |
| 55.6.4 | SAI frame configuration register (SAI_AFRCR) ..... | 2789 |
| 55.6.5 | SAI slot register (SAI_ASLOTR) ..... | 2790 |
| 55.6.6 | SAI interrupt mask register (SAI_AIM) ..... | 2791 |
| 55.6.7 | SAI status register (SAI_ASR) ..... | 2793 |
| 55.6.8 | SAI clear flag register (SAI_ACLRFR) ..... | 2795 |
| 55.6.9 | SAI data register (SAI_ADR) ..... | 2796 |
| 55.6.10 | SAI configuration register 1 (SAI_BCR1) ..... | 2796 |
| 55.6.11 | SAI configuration register 2 (SAI_BCR2) . . . . . | 2799 |
| 55.6.12 | SAI frame configuration register (SAI_BFRCR) . . . . . | 2801 |
| 55.6.13 | SAI slot register (SAI_BSLOTR) . . . . . | 2802 |
| 55.6.14 | SAI interrupt mask register (SAI_BIM) . . . . . | 2803 |
| 55.6.15 | SAI status register (SAI_BSR) . . . . . | 2804 |
| 55.6.16 | SAI clear flag register (SAI_BCLRFR) . . . . . | 2806 |
| 55.6.17 | SAI data register (SAI_BDR) . . . . . | 2807 |
| 55.6.18 | SAI PDM control register (SAI_PDMCR) . . . . . | 2808 |
| 55.6.19 | SAI PDM delay register (SAI_PDMDLY) . . . . . | 2809 |
| 55.6.20 | SAI hardware configuration register (SAI_HWCFGR) . . . . . | 2811 |
| 55.6.21 | SAI version register (SAI_VERR) . . . . . | 2812 |
| 55.6.22 | SAI identification register (SAI_IPIDR) . . . . . | 2813 |
| 55.6.23 | SAI size identification register (SAI_SIDR) . . . . . | 2813 |
| 55.6.24 | SAI register map . . . . . | 2813 |
| 56 | SPDIF receiver interface (SPDIFRX) . . . . . | 2816 |
| 56.1 | SPDIFRX interface introduction . . . . . | 2816 |
| 56.2 | SPDIFRX main features . . . . . | 2816 |
| 56.3 | SPDIFRX functional description . . . . . | 2816 |
| 56.3.1 | SPDIFRX pins and internal signals . . . . . | 2817 |
| 56.3.2 | S/PDIF protocol (IEC-60958) . . . . . | 2818 |
| 56.3.3 | SPDIFRX decoder (SPDIFRX_DC) . . . . . | 2820 |
| 56.3.4 | SPDIFRX tolerance to clock deviation . . . . . | 2824 |
| 56.3.5 | SPDIFRX synchronization . . . . . | 2824 |
| 56.3.6 | SPDIFRX handling . . . . . | 2826 |
| 56.3.7 | Data reception management . . . . . | 2828 |
| 56.3.8 | Dedicated control flow . . . . . | 2830 |
| 56.3.9 | Reception errors . . . . . | 2831 |
| 56.3.10 | Clocking strategy . . . . . | 2833 |
| 56.3.11 | Symbol clock generation . . . . . | 2833 |
| 56.3.12 | DMA interface . . . . . | 2835 |
| 56.3.13 | Interrupt generation . . . . . | 2836 |
| 56.3.14 | Register protection . . . . . | 2837 |
| 56.4 | Programming procedures . . . . . | 2837 |
| 56.4.1 | Initialization phase . . . . . | 2838 |
| 56.4.2 | Handling of interrupts coming from SPDIFRX . . . . . | 2839 |
| 56.4.3 | Handling of interrupts coming from DMA . . . . . | 2839 |
| 56.5 | SPDIFRX interface registers | 2840 |
| 56.5.1 | SPDIFRX control register (SPDIFRX_CR) | 2840 |
| 56.5.2 | SPDIFRX interrupt mask register (SPDIFRX_IMR) | 2842 |
| 56.5.3 | SPDIFRX status register (SPDIFRX_SR) | 2843 |
| 56.5.4 | SPDIFRX interrupt flag clear register (SPDIFRX_IFCR) | 2845 |
| 56.5.5 | SPDIFRX data input register (SPDIFRX_FMT0_DR) | 2846 |
| 56.5.6 | SPDIFRX data input register (SPDIFRX_FMT1_DR) | 2846 |
| 56.5.7 | SPDIFRX data input register (SPDIFRX_FMT2_DR) | 2847 |
| 56.5.8 | SPDIFRX channel status register (SPDIFRX_CSR) | 2848 |
| 56.5.9 | SPDIFRX debug information register (SPDIFRX_DIR) | 2848 |
| 56.5.10 | SPDIFRX version register (SPDIFRX_VERR) | 2849 |
| 56.5.11 | SPDIFRX identification register (SPDIFRX_IPIDR) | 2849 |
| 56.5.12 | SPDIFRX size identification register (SPDIFRX_SIDR) | 2850 |
| 56.5.13 | SPDIFRX interface register map | 2850 |
| 57 | Management data input/output (MDIOS) | 2852 |
| 57.1 | MDIOS introduction | 2852 |
| 57.2 | MDIOS main features | 2852 |
| 57.3 | MDIOS functional description | 2853 |
| 57.3.1 | MDIOS block diagram | 2853 |
| 57.3.2 | MDIOS protocol | 2853 |
| 57.3.3 | MDIOS enabling and disabling | 2854 |
| 57.3.4 | MDIOS data | 2854 |
| 57.3.5 | MDIOS APB frequency | 2856 |
| 57.3.6 | Write/read flags and interrupts | 2856 |
| 57.3.7 | MDIOS error management | 2856 |
| 57.3.8 | MDIOS in Stop mode | 2857 |
| 57.3.9 | MDIOS interrupts | 2857 |
| 57.4 | MDIOS registers | 2858 |
| 57.4.1 | MDIOS configuration register (MDIOS_CR) | 2858 |
| 57.4.2 | MDIOS write flag register (MDIOS_WRFR) | 2859 |
| 57.4.3 | MDIOS clear write flag register (MDIOS_CWRFR) | 2859 |
| 57.4.4 | MDIOS read flag register (MDIOS_RDFR) | 2859 |
| 57.4.5 | MDIOS clear read flag register (MDIOS_CRDFR) | 2860 |
| 57.4.6 | MDIOS status register (MDIOS_SR) | 2860 |
| 57.4.7 | MDIOS clear flag register (MDIOS_CLRFR) | 2861 |
| 57.4.8 | MDIOS input data register x (MDIOS_DINRx) | 2861 |
| 57.4.9 | MDIOS output data register x (MDIOS_DOUTRx) ..... | 2862 |
| 57.4.10 | MDIOS hardware configuration register (MDIOS_HWCFGR) ..... | 2862 |
| 57.4.11 | MDIOS version register (MDIOS_VERR) ..... | 2862 |
| 57.4.12 | MDIOS identification register (MDIOS_IPIDR) ..... | 2863 |
| 57.4.13 | MDIOS size identification register (MDIOS_SIDR) ..... | 2863 |
| 57.4.14 | MDIOS register map ..... | 2863 |
| 58 | Secure digital input/output MultiMediaCard interface (SDMMC) .. | 2865 |
| 58.1 | SDMMC main features ..... | 2865 |
| 58.2 | SDMMC implementation ..... | 2865 |
| 58.3 | SDMMC bus topology ..... | 2866 |
| 58.4 | SDMMC operation modes ..... | 2868 |
| 58.5 | SDMMC functional description ..... | 2869 |
| 58.5.1 | SDMMC block diagram ..... | 2869 |
| 58.5.2 | SDMMC pins and internal signals ..... | 2869 |
| 58.5.3 | General description ..... | 2870 |
| 58.5.4 | SDMMC adapter ..... | 2872 |
| 58.5.5 | SDMMC AHB slave interface ..... | 2894 |
| 58.5.6 | SDMMC AHB master interface ..... | 2895 |
| 58.5.7 | AHB and SDMMC_CK clock relation ..... | 2898 |
| 58.6 | Card functional description ..... | 2898 |
| 58.6.1 | SD I/O mode ..... | 2898 |
| 58.6.2 | CMD12 send timing ..... | 2906 |
| 58.6.3 | Sleep (CMD5) ..... | 2910 |
| 58.6.4 | Interrupt mode (Wait-IRQ) ..... | 2911 |
| 58.6.5 | Boot operation ..... | 2912 |
| 58.6.6 | Response R1b handling ..... | 2915 |
| 58.6.7 | Reset and card cycle power ..... | 2916 |
| 58.7 | Hardware flow control ..... | 2917 |
| 58.8 | Ultra-high-speed phase I (UHS-I) voltage switch ..... | 2917 |
| 58.9 | SDMMC interrupts ..... | 2920 |
| 58.10 | SDMMC registers ..... | 2922 |
| 58.10.1 | SDMMC power control register (SDMMC_POWER) ..... | 2922 |
| 58.10.2 | SDMMC clock control register (SDMMC_CLKCR) ..... | 2923 |
| 58.10.3 | SDMMC argument register (SDMMC_ARGR) ..... | 2925 |
| 58.10.4 | SDMMC command register (SDMMC_CMDR) ..... | 2925 |
| 58.10.5 | SDMMC command response register (SDMMC_RESPCMDR) . . . . . | 2927 |
| 58.10.6 | SDMMC response x register (SDMMC_RESPxR) . . . . . | 2928 |
| 58.10.7 | SDMMC data timer register (SDMMC_DTIMER) . . . . . | 2928 |
| 58.10.8 | SDMMC data length register (SDMMC_DLENR) . . . . . | 2929 |
| 58.10.9 | SDMMC data control register (SDMMC_DCTRL) . . . . . | 2930 |
| 58.10.10 | SDMMC data counter register (SDMMC_DCNTR) . . . . . | 2931 |
| 58.10.11 | SDMMC status register (SDMMC_STAR) . . . . . | 2932 |
| 58.10.12 | SDMMC interrupt clear register (SDMMC_ICR) . . . . . | 2935 |
| 58.10.13 | SDMMC mask register (SDMMC_MASKR) . . . . . | 2937 |
| 58.10.14 | SDMMC acknowledgment timer register (SDMMC_ACKTIMER) . . . . . | 2940 |
| 58.10.15 | SDMMC DMA control register (SDMMC_IDMACTRLR) . . . . . | 2940 |
| 58.10.16 | SDMMC IDMA buffer size register (SDMMC_IDMABSIZER) . . . . . | 2941 |
| 58.10.17 | SDMMC IDMA buffer base address register (SDMMC_IDMABASER) . . . . . | 2942 |
| 58.10.18 | SDMMC IDMA linked list address register (SDMMC_IDMALAR) . . . . . | 2942 |
| 58.10.19 | SDMMC IDMA linked list memory base register (SDMMC_IDMABAR) . . . . . | 2943 |
| 58.10.20 | SDMMC data FIFO registers x (SDMMC_FIFORx) . . . . . | 2944 |
| 58.10.21 | SDMMC version register (SDMMC_VERR) . . . . . | 2944 |
| 58.10.22 | SDMMC identification register (SDMMC_IPIDR) . . . . . | 2945 |
| 58.10.23 | SDMMC size identification register (SDMMC_SIDR) . . . . . | 2945 |
| 58.10.24 | SDMMC register map . . . . . | 2945 |
| 59 | Controller area network with flexible data rate (FDCAN) . . . . . | 2948 |
| 59.1 | Introduction . . . . . | 2948 |
| 59.2 | FDCAN main features . . . . . | 2951 |
| 59.3 | FDCAN implementation . . . . . | 2951 |
| 59.4 | FDCAN functional description . . . . . | 2952 |
| 59.4.1 | Operating modes . . . . . | 2953 |
| 59.4.2 | Error management . . . . . | 2962 |
| 59.4.3 | Message RAM . . . . . | 2962 |
| 59.4.4 | FIFO acknowledge handling . . . . . | 2974 |
| 59.4.5 | Bit timing . . . . . | 2975 |
| 59.4.6 | Clock calibration on CAN . . . . . | 2976 |
| 59.4.7 | Application . . . . . | 2980 |
| 59.4.8 | TTCAN operations (FDCAN1 only) . . . . . | 2981 |
| 59.4.9 | TTCAN configuration . . . . . | 2982 |
| 59.4.10 | Message scheduling | 2984 |
| 59.4.11 | TTCAN gap control | 2991 |
| 59.4.12 | Stop watch | 2992 |
| 59.4.13 | Local time, cycle time, global time, and external clock synchronization | 2992 |
| 59.4.14 | TTCAN error level | 2995 |
| 59.4.15 | TTCAN message handling | 2996 |
| 59.4.16 | TTCAN interrupt and error handling | 2999 |
| 59.4.17 | Level 0 | 3000 |
| 59.4.18 | Synchronization to external time schedule | 3002 |
| 59.4.19 | FDCAN Rx buffer and FIFO element | 3003 |
| 59.4.20 | FDCAN Tx buffer element | 3005 |
| 59.4.21 | FDCAN Tx event FIFO element | 3007 |
| 59.4.22 | FDCAN standard message ID filter element | 3008 |
| 59.4.23 | FDCAN extended message ID filter element | 3010 |
| 59.4.24 | FDCAN trigger memory element | 3011 |
| 59.5 | FDCAN registers | 3013 |
| 59.5.1 | FDCAN core release register (FDCAN_CREL) | 3013 |
| 59.5.2 | FDCAN Endian register (FDCAN_ENDN) | 3013 |
| 59.5.3 | FDCAN data bit timing and prescaler register (FDCAN_DBTP) | 3013 |
| 59.5.4 | FDCAN test register (FDCAN_TEST) | 3014 |
| 59.5.5 | FDCAN RAM watchdog register (FDCAN_RWD) | 3015 |
| 59.5.6 | FDCAN CC control register (FDCAN_CCCR) | 3016 |
| 59.5.7 | FDCAN nominal bit timing and prescaler register (FDCAN_NBTP) | 3018 |
| 59.5.8 | FDCAN timestamp counter configuration register (FDCAN_TSCC) | 3019 |
| 59.5.9 | FDCAN timestamp counter value register (FDCAN_TSCV) | 3019 |
| 59.5.10 | FDCAN timeout counter configuration register (FDCAN_TOCC) | 3020 |
| 59.5.11 | FDCAN timeout counter value register (FDCAN_TOCV) | 3021 |
| 59.5.12 | FDCAN error counter register (FDCAN_ECR) | 3021 |
| 59.5.13 | FDCAN protocol status register (FDCAN_PSR) | 3022 |
| 59.5.14 | FDCAN transmitter delay compensation register (FDCAN_TDCR) | 3024 |
| 59.5.15 | FDCAN interrupt register (FDCAN_IR) | 3024 |
| 59.5.16 | FDCAN interrupt enable register (FDCAN_IE) | 3027 |
| 59.5.17 | FDCAN interrupt line select register (FDCAN_ILS) | 3029 |
| 59.5.18 | FDCAN interrupt line enable register (FDCAN_ILE) | 3030 |
| 59.5.19 | FDCAN global filter configuration register (FDCAN_GFC) | 3031 |
| 59.5.20 | FDCAN standard ID filter configuration register (FDCAN_SIDFC) | 3032 |
| 59.5.21 | FDCAN extended ID filter configuration register (FDCAN_XIDFC) .. | 3032 |
| 59.5.22 | FDCAN extended ID and mask register (FDCAN_XIDAM) ..... | 3033 |
| 59.5.23 | FDCAN high priority message status register (FDCAN_HPMS) .... | 3034 |
| 59.5.24 | FDCAN new data 1 register (FDCAN_NDAT1) ..... | 3034 |
| 59.5.25 | FDCAN new data 2 register (FDCAN_NDAT2) ..... | 3035 |
| 59.5.26 | FDCAN Rx FIFO 0 configuration register (FDCAN_RXF0C) ..... | 3035 |
| 59.5.27 | FDCAN Rx FIFO 0 status register (FDCAN_RXF0S) ..... | 3036 |
| 59.5.28 | FDCAN Rx FIFO 0 acknowledge register (FDCAN_RXF0A) ..... | 3037 |
| 59.5.29 | FDCAN Rx buffer configuration register (FDCAN_RXBC) ..... | 3037 |
| 59.5.30 | FDCAN Rx FIFO 1 configuration register (FDCAN_RXF1C) ..... | 3038 |
| 59.5.31 | FDCAN Rx FIFO 1 status register (FDCAN_RXF1S) ..... | 3039 |
| 59.5.32 | FDCAN Rx FIFO 1 acknowledge register (FDCAN_RXF1A) ..... | 3040 |
| 59.5.33 | FDCAN Rx buffer element size configuration register (FDCAN_RXESC) ..... | 3040 |
| 59.5.34 | FDCAN Tx buffer configuration register (FDCAN_TXBC) ..... | 3041 |
| 59.5.35 | FDCAN Tx FIFO/queue status register (FDCAN_TXFQS) ..... | 3042 |
| 59.5.36 | FDCAN Tx buffer element size configuration register (FDCAN_TXESC) ..... | 3043 |
| 59.5.37 | FDCAN Tx buffer request pending register (FDCAN_TXBRP) .... | 3043 |
| 59.5.38 | FDCAN Tx buffer add request register (FDCAN_TXBAR) ..... | 3044 |
| 59.5.39 | FDCAN Tx buffer cancellation request register (FDCAN_TXBCR) .. | 3045 |
| 59.5.40 | FDCAN Tx buffer transmission occurred register (FDCAN_TXBTO) | 3045 |
| 59.5.41 | FDCAN Tx buffer cancellation finished register (FDCAN_TXBCF) .. | 3046 |
| 59.5.42 | FDCAN Tx buffer transmission interrupt enable register (FDCAN_TXBTIE) ..... | 3046 |
| 59.5.43 | FDCAN Tx buffer cancellation finished interrupt enable register (FDCAN_TXBCIE) ..... | 3047 |
| 59.5.44 | FDCAN Tx event FIFO configuration register (FDCAN_TXEFC) ... | 3047 |
| 59.5.45 | FDCAN Tx event FIFO status register (FDCAN_TXEFS) ..... | 3048 |
| 59.5.46 | FDCAN Tx event FIFO acknowledge register (FDCAN_TXEFA) ... | 3049 |
| 59.5.47 | FDCAN register map ..... | 3049 |
| 59.6 | TTCAN registers ..... | 3053 |
| 59.6.1 | FDCAN TT trigger memory configuration register (FDCAN_TTTMC) ..... | 3053 |
| 59.6.2 | FDCAN TT reference message configuration register (FDCAN_TTRMC) ..... | 3053 |
| 59.6.3 | FDCAN TT operation configuration register (FDCAN_TTOCF) .... | 3054 |
| 59.6.4 | FDCAN TT matrix limits register (FDCAN_TTMLM) ..... | 3056 |
| 59.6.5 | FDCAN TUR configuration register (FDCAN_TURCF) ..... | 3057 |
| 59.6.6 | FDCAN TT operation control register (FDCAN_TTOCN) . . . . . | 3058 |
| 59.6.7 | FDCAN TT global time preset register (FDCAN_TTGTP) . . . . . | 3060 |
| 59.6.8 | FDCAN TT time mark register (FDCAN_TTTMK) . . . . . | 3060 |
| 59.6.9 | FDCAN TT interrupt register (FDCAN_TTIR) . . . . . | 3061 |
| 59.6.10 | FDCAN TT interrupt enable register (FDCAN_TTIE) . . . . . | 3063 |
| 59.6.11 | FDCAN TT interrupt line select register (FDCAN_TTILS) . . . . . | 3065 |
| 59.6.12 | FDCAN TT operation status register (FDCAN_TTOST) . . . . . | 3066 |
| 59.6.13 | FDCAN TUR numerator actual register (FDCAN_TURNA) . . . . . | 3068 |
| 59.6.14 | FDCAN TT local and global time register (FDCAN_TTLGT) . . . . . | 3069 |
| 59.6.15 | FDCAN TT cycle time and count register (FDCAN_TTCTC) . . . . . | 3069 |
| 59.6.16 | FDCAN TT capture time register (FDCAN_TTCPT) . . . . . | 3070 |
| 59.6.17 | FDCAN TT cycle sync mark register (FDCAN_TTCSM) . . . . . | 3070 |
| 59.6.18 | FDCAN TT trigger select register (FDCAN_TTTS) . . . . . | 3071 |
| 59.6.19 | FDCAN TT register map . . . . . | 3071 |
| 59.7 | CCU registers . . . . . | 3073 |
| 59.7.1 | Clock calibration unit core release register (FDCAN_CCU_CREL) . . . . . | 3073 |
| 59.7.2 | Calibration configuration register (FDCAN_CCU_CCFG) . . . . . | 3073 |
| 59.7.3 | Calibration status register (FDCAN_CCU_CSTAT) . . . . . | 3075 |
| 59.7.4 | Calibration watchdog register (FDCAN_CCU_CWD) . . . . . | 3075 |
| 59.7.5 | Clock calibration unit interrupt register (FDCAN_CCU_IR) . . . . . | 3076 |
| 59.7.6 | Clock calibration unit interrupt enable register (FDCAN_CCU_IE) . . . . . | 3077 |
| 59.7.7 | CCU register map . . . . . | 3077 |
| 60 | USB on-the-go high-speed (OTG) . . . . . | 3079 |
| 60.1 | Introduction . . . . . | 3079 |
| 60.2 | OTG main features . . . . . | 3080 |
| 60.2.1 | General features . . . . . | 3080 |
| 60.2.2 | Host-mode features . . . . . | 3081 |
| 60.2.3 | Peripheral-mode features . . . . . | 3081 |
| 60.3 | OTG implementation . . . . . | 3082 |
| 60.4 | OTG functional description . . . . . | 3083 |
| 60.4.1 | OTG block diagram . . . . . | 3083 |
| 60.4.2 | OTG pin and internal signals . . . . . | 3083 |
| 60.4.3 | OTG core . . . . . | 3084 |
| 60.4.4 | Embedded full-speed OTG PHY connected to OTG . . . . . | 3084 |
| 60.4.5 | OTG detections . . . . . | 3085 |
| 60.4.6 | High-speed OTG PHY connected to OTG_HS . . . . . | 3085 |
| 60.5 | OTG dual role device (DRD) . . . . . | 3086 |
| 60.5.1 | ID line detection . . . . . | 3086 |
| 60.5.2 | HNP dual role device . . . . . | 3086 |
| 60.5.3 | SRP dual role device . . . . . | 3087 |
| 60.6 | OTG as a USB peripheral . . . . . | 3087 |
| 60.6.1 | SRP-capable peripheral . . . . . | 3088 |
| 60.6.2 | Peripheral states . . . . . | 3088 |
| 60.6.3 | Peripheral endpoints . . . . . | 3089 |
| 60.7 | OTG as a USB host . . . . . | 3091 |
| 60.7.1 | SRP-capable host . . . . . | 3092 |
| 60.7.2 | USB host states . . . . . | 3092 |
| 60.7.3 | Host channels . . . . . | 3094 |
| 60.7.4 | Host scheduler . . . . . | 3095 |
| 60.8 | OTG SOF trigger . . . . . | 3096 |
| 60.8.1 | Host SOFs . . . . . | 3096 |
| 60.8.2 | Peripheral SOFs . . . . . | 3096 |
| 60.9 | OTG low-power modes . . . . . | 3097 |
| 60.10 | OTG Dynamic update of the OTG_HFIR register . . . . . | 3098 |
| 60.11 | OTG data FIFOs . . . . . | 3098 |
| 60.11.1 | Peripheral FIFO architecture . . . . . | 3099 |
| 60.11.2 | Host FIFO architecture . . . . . | 3100 |
| 60.11.3 | FIFO RAM allocation . . . . . | 3101 |
| 60.12 | OTG interrupts . . . . . | 3103 |
| 60.13 | OTG control and status registers . . . . . | 3105 |
| 60.13.1 | CSR memory map . . . . . | 3105 |
| 60.14 | OTG registers . . . . . | 3110 |
| 60.14.1 | OTG control and status register (OTG_GOTGCTL) . . . . . | 3110 |
| 60.14.2 | OTG interrupt register (OTG_GOTGINT) . . . . . | 3113 |
| 60.14.3 | OTG AHB configuration register (OTG_GAHBCFG) . . . . . | 3115 |
| 60.14.4 | OTG USB configuration register (OTG_GUSBCFG) . . . . . | 3116 |
| 60.14.5 | OTG reset register (OTG_GRSTCTL) . . . . . | 3118 |
| 60.14.6 | OTG core interrupt register (OTG_GINTSTS) . . . . . | 3121 |
| 60.14.7 | OTG interrupt mask register (OTG_GINTMSK) . . . . . | 3125 |
| 60.14.8 | OTG receive status debug read register (OTG_GRXSTSR) . . . . . | 3129 |
| 60.14.9 | OTG receive status debug read [alternate] (OTG_GRXSTSR) . . . . . | 3130 |
| 60.14.10 | OTG status read and pop registers (OTG_GRXSTSP) . . . . . | 3131 |
| 60.14.11 OTG status read and pop registers [alternate] (OTG_GRXSTSP) .. | 3132 |
| 60.14.12 OTG receive FIFO size register (OTG_GRXFSIZ) ..... | 3133 |
| 60.14.13 OTG host non-periodic transmit FIFO size register (OTG_HNPTXFSIZ)/Endpoint 0 Transmit FIFO size (OTG_DIEPTXF0) ..... | 3133 |
| 60.14.14 OTG non-periodic transmit FIFO/queue status register (OTG_HNPTXSTS) ..... | 3134 |
| 60.14.15 OTG general core configuration register (OTG_GCCFG) ..... | 3135 |
| 60.14.16 OTG core ID register (OTG_CID) ..... | 3137 |
| 60.14.17 OTG core LPM configuration register (OTG_GLPMCFG) ..... | 3137 |
| 60.14.18 OTG host periodic transmit FIFO size register (OTG_HPTXFSIZ) ..... | 3141 |
| 60.14.19 OTG device IN endpoint transmit FIFO x size register (OTG_DIEPTXFx) ..... | 3141 |
| 60.14.20 Host-mode registers ..... | 3142 |
| 60.14.21 OTG host configuration register (OTG_HCFG) ..... | 3142 |
| 60.14.22 OTG host frame interval register (OTG_HFIR) ..... | 3143 |
| 60.14.23 OTG host frame number/frame time remaining register (OTG_HFNUM) ..... | 3144 |
| 60.14.24 OTG_Host periodic transmit FIFO/queue status register (OTG_HPTXSTS) ..... | 3145 |
| 60.14.25 OTG host all channels interrupt register (OTG_HAINT) ..... | 3146 |
| 60.14.26 OTG host all channels interrupt mask register (OTG_HAINTMSK) ..... | 3146 |
| 60.14.27 OTG host frame list base address register (OTG_HFLBADDR) ..... | 3147 |
| 60.14.28 OTG host port control and status register (OTG_HPRT) ..... | 3147 |
| 60.14.29 OTG host channel x characteristics register (OTG_HCCHARx) .... | 3150 |
| 60.14.30 OTG host channel x split control register (OTG_HCSPLTx) ..... | 3151 |
| 60.14.31 OTG host channel x interrupt register (OTG_HCINTx) ..... | 3152 |
| 60.14.32 OTG host channel x interrupt mask register (OTG_HCINTMSKx) .. | 3153 |
| 60.14.33 OTG host channel x transfer size register (OTG_HCTSIZx) ..... | 3155 |
| 60.14.34 OTG host channel x transfer size register (OTG_HCTSIZSGx) .... | 3156 |
| 60.14.35 OTG host channel x DMA address register in buffer DMA [alternate] (OTG_HCDMAx) ..... | 3158 |
| 60.14.36 OTG host channel x DMA address register in scatter/gather DMA [alternate] (OTG_HCDMASGx) ..... | 3158 |
| 60.14.37 OTG host channel-n DMA address buffer register (OTG_HCDMABx) ..... | 3159 |
| 60.14.38 Device-mode registers ..... | 3160 |
| 60.14.39 OTG device configuration register (OTG_DCFG) ..... | 3160 |
| 60.14.40 OTG device control register (OTG_DCTL) ..... | 3161 |
| 60.14.41 OTG device status register (OTG_DSTS) ..... | 3164 |
| 60.14.42 OTG device IN endpoint common interrupt mask register (OTG_DIEPMSK) ..... | 3165 |
| 60.14.43 OTG device OUT endpoint common interrupt mask register (OTG_DOEPMSK) ..... | 3166 |
| 60.14.44 OTG device all endpoints interrupt register (OTG_DAIN_T) ..... | 3167 |
| 60.14.45 OTG all endpoints interrupt mask register (OTG_DAIN_TMSK) ..... | 3168 |
| 60.14.46 OTG device \(V_{BUS}\) discharge time register (OTG_DVBUSDIS) ..... | 3169 |
| 60.14.47 OTG device \(V_{BUS}\) pulsing time register (OTG_DVBUSPULSE) ..... | 3169 |
| 60.14.48 OTG device threshold control register (OTG_DTHRCTL) ..... | 3170 |
| 60.14.49 OTG device IN endpoint FIFO empty interrupt mask register (OTG_DIEPEMPMSK) ..... | 3171 |
| 60.14.50 OTG device IN endpoint x control register (OTG_DIEPCTLx) .... | 3171 |
| 60.14.51 OTG device IN endpoint x interrupt register (OTG_DIEPINTx) .... | 3174 |
| 60.14.52 OTG device IN endpoint 0 transfer size register (OTG_DIEPTSIZ0) ..... | 3175 |
| 60.14.53 OTG device IN endpoint x DMA address register (OTG_DIEPDMAx) ..... | 3176 |
| 60.14.54 OTG device IN endpoint transmit FIFO status register (OTG_DTXFSTSx) ..... | 3176 |
| 60.14.55 OTG device IN endpoint x transfer size register (OTG_DIEPTSIZx) . | 3177 |
| 60.14.56 OTG device control OUT endpoint 0 control register (OTG_DOEPCTL0) ..... | 3178 |
| 60.14.57 OTG device OUT endpoint x interrupt register (OTG_DOEPINTx) .. | 3179 |
| 60.14.58 OTG device OUT endpoint 0 transfer size register (OTG_DOEPTSIZ0) ..... | 3181 |
| 60.14.59 OTG device OUT endpoint x DMA address register (OTG_DOEPDMAx) ..... | 3182 |
| 60.14.60 OTG device OUT endpoint x control register (OTG_DOEPCTLx) ..... | 3182 |
| 60.14.61 OTG device OUT endpoint x transfer size register (OTG_DOEPTSIZx) ..... | 3185 |
| 60.14.62 OTG power and clock gating control register (OTG_PCGCCTL) ... | 3186 |
| 60.14.63 OTG register map ..... | 3187 |
| 60.15 OTG programming model ..... | 3198 |
| 60.15.1 Core initialization ..... | 3198 |
| 60.15.2 Host initialization ..... | 3199 |
| 60.15.3 | Device initialization | 3200 |
| 60.15.4 | DMA mode | 3200 |
| 60.15.5 | Host programming model | 3201 |
| 60.15.6 | Device programming model | 3233 |
| 60.15.7 | Worst case response time | 3253 |
| 60.15.8 | OTG programming model | 3255 |
| 61 | USB HS PHY controller (USBPHYC) | 3261 |
| 61.1 | USBPHYC introduction | 3261 |
| 61.2 | USBPHYC main features | 3261 |
| 61.3 | USBPHYC functional description | 3261 |
| 61.3.1 | USBPHYC block diagram | 3261 |
| 61.3.2 | USBPHYC reset and clocks | 3262 |
| 61.3.3 | PLL control | 3262 |
| 61.4 | USBPHYC registers | 3264 |
| 61.4.1 | USBPHYC PLL control register (USBPHYC_PLL) | 3264 |
| 61.4.2 | USBPHYC misc control register (USBPHYC_MISC) | 3266 |
| 61.4.3 | USBPHYC PHY x MONITOR register (USBPHYC_MONITORx) | 3267 |
| 61.4.4 | USBPHYC PHY x TUNE register (USBPHYC_TUNEx) | 3268 |
| 61.4.5 | USBPHYC VERSION register (USBPHYC_VERR) | 3270 |
| 61.4.6 | USBPHYC register map | 3271 |
| 62 | USB_EHCI/USB_OHCI high/full-speed link controller (USBH) | 3273 |
| 62.1 | Introduction | 3273 |
| 62.2 | USBH main features | 3273 |
| 62.3 | USBH functional description | 3274 |
| 62.3.1 | USBH block diagram | 3274 |
| 62.3.2 | USBH reset and clocks | 3274 |
| 62.3.3 | Description of USBH packet buffer | 3274 |
| 62.3.4 | Description of USBH root hub | 3275 |
| 62.4 | USBH interrupts | 3275 |
| 62.5 | USBH registers | 3275 |
| 62.5.1 | USBH OHCI standard registers | 3275 |
| 62.5.2 | USBH OHCI implementation register #6 (USBH_OHCI_INSNREG06) | 3276 |
| 62.5.3 | USBH OHCI implementation register #7 (USBH_OHCI_INSNREG07) | 3277 |
| 62.5.4 | USBH EHCI standard registers ..... | 3278 |
| 62.5.5 | USBH EHCI implementation register #1 (USBH_EHCI_INSNREG01) ..... | 3278 |
| 62.5.6 | USBH EHCI implementation register #2 (USBH_EHCI_INSNREG02) ..... | 3279 |
| 62.5.7 | USBH EHCI implementation register #3 (USBH_EHCI_INSNREG03) ..... | 3280 |
| 62.5.8 | USBH EHCI implementation register #4 (USBH_EHCI_INSNREG04) ..... | 3281 |
| 62.5.9 | USBH EHCI implementation register #5 (USBH_EHCI_INSNREG05) ..... | 3282 |
| 62.5.10 | USBH EHCI implementation register #6 (USBH_EHCI_INSNREG06) ..... | 3283 |
| 62.5.11 | USBH EHCI implementation register #7 (USBH_EHCI_INSNREG07) ..... | 3284 |
| 62.5.12 | USBH register map ..... | 3284 |
| 63 | Ethernet (ETH): gigabit media access control (GMAC) with DMA controller ..... | 3289 |
| 63.1 | Ethernet introduction ..... | 3289 |
| 63.2 | Ethernet main features ..... | 3289 |
| 63.2.1 | Standard compliance ..... | 3289 |
| 63.2.2 | MAC features ..... | 3289 |
| 63.2.3 | Transaction layer (MTL) features ..... | 3291 |
| 63.2.4 | DMA block features ..... | 3292 |
| 63.2.5 | Bus interface features ..... | 3293 |
| 63.2.6 | Audio and video features ..... | 3293 |
| 63.2.7 | Generic queuing features ..... | 3294 |
| 63.3 | Ethernet pins and internal signals ..... | 3294 |
| 63.4 | Ethernet architecture ..... | 3296 |
| 63.4.1 | DMA controller ..... | 3297 |
| 63.4.2 | MTL ..... | 3304 |
| 63.4.3 | MAC ..... | 3304 |
| 63.4.4 | Multiple channels and queues support ..... | 3309 |
| 63.5 | Ethernet functional description: MAC ..... | 3317 |
| 63.5.1 | Double VLAN processing ..... | 3317 |
| 63.5.2 | Source address and VLAN insertion, replacement, or deletion ..... | 3319 |
| 63.5.3 | Packet filtering ..... | 3320 |
| 63.5.4 | IEEE 1588 timestamp support ..... | 3327 |
| 63.5.5 | Checksum offload engine | 3352 |
| 63.5.6 | TCP segmentation offload | 3358 |
| 63.5.7 | IPv4 ARP offload | 3364 |
| 63.5.8 | Loopback | 3365 |
| 63.5.9 | Flow control | 3366 |
| 63.5.10 | MAC management counters | 3369 |
| 63.5.11 | Interrupts generated by the MAC | 3371 |
| 63.5.12 | MAC and MMC register descriptions | 3371 |
| 63.6 | Ethernet functional description: PHY interfaces | 3372 |
| 63.6.1 | Station management agent (SMA) | 3372 |
| 63.6.2 | Media independent interface (MII) | 3379 |
| 63.6.3 | Gigabit media independent interface (GMII) | 3381 |
| 63.6.4 | Reduced media independent interface (RMII) | 3382 |
| 63.6.5 | Reduced gigabit media independent interface (RGMII) | 3385 |
| 63.7 | Ethernet low-power modes | 3388 |
| 63.7.1 | Low-power management | 3388 |
| 63.7.2 | Energy Efficient Ethernet (EEE) | 3394 |
| 63.8 | Ethernet interrupts | 3400 |
| 63.8.1 | DMA interrupts | 3400 |
| 63.8.2 | MTL interrupts | 3402 |
| 63.8.3 | MAC Interrupts | 3402 |
| 63.9 | Ethernet programming model | 3403 |
| 63.9.1 | DMA initialization | 3403 |
| 63.9.2 | MTL initialization | 3404 |
| 63.9.3 | MAC initialization | 3404 |
| 63.9.4 | Performing normal receive and transmit operation | 3405 |
| 63.9.5 | Stopping and starting transmission | 3406 |
| 63.9.6 | Programming guidelines for switching to new descriptor list in RxDMA | 3406 |
| 63.9.7 | Programming guidelines for switching the AXI clock frequency | 3407 |
| 63.9.8 | Programming guidelines for multichannel multiqueue operation | 3407 |
| 63.9.9 | Programming guidelines for GMII link state transitions | 3409 |
| 63.9.10 | Programming guidelines for IEEE 1588 timestamping | 3410 |
| 63.9.11 | Programming guidelines for PTP offload feature | 3411 |
| 63.9.12 | Programming guidelines for AV feature | 3415 |
| 63.9.13 | Programming guidelines for Energy Efficient Ethernet (EEE) | 3417 |
| 63.9.14 | Programming guidelines for flexible pulse-per-second (PPS) output | 3418 |
| 63.9.15 | Programming guidelines for IEEE 1588 auxiliary snapshot . . . . . | 3421 |
| 63.9.16 | Programming guidelines for TSO . . . . . | 3421 |
| 63.9.17 | Programming guidelines to perform VLAN filtering on the receiver . . . | 3422 |
| 63.10 | Descriptors . . . . . | 3423 |
| 63.10.1 | Descriptor overview . . . . . | 3423 |
| 63.10.2 | Descriptor structure . . . . . | 3423 |
| 63.10.3 | Transmit descriptor . . . . . | 3427 |
| 63.10.4 | Receive descriptor . . . . . | 3440 |
| 63.11 | Ethernet registers . . . . . | 3452 |
| 63.11.1 | Ethernet register maps . . . . . | 3452 |
| 63.11.2 | Ethernet DMA registers . . . . . | 3452 |
| 63.11.3 | Ethernet MTL registers . . . . . | 3482 |
| 63.11.4 | Ethernet MAC and MMC registers . . . . . | 3501 |
| 64 | HDMI-CEC controller (CEC) . . . . . | 3606 |
| 64.1 | HDMI-CEC introduction . . . . . | 3606 |
| 64.2 | HDMI-CEC controller main features . . . . . | 3606 |
| 64.3 | HDMI-CEC functional description . . . . . | 3607 |
| 64.3.1 | HDMI-CEC pin and internal signals . . . . . | 3607 |
| 64.3.2 | HDMI-CEC block diagram . . . . . | 3608 |
| 64.3.3 | Message description . . . . . | 3608 |
| 64.3.4 | Bit timing . . . . . | 3609 |
| 64.4 | Arbitration . . . . . | 3609 |
| 64.4.1 | SFT option bit . . . . . | 3611 |
| 64.5 | Error handling . . . . . | 3611 |
| 64.5.1 | Bit error . . . . . | 3611 |
| 64.5.2 | Message error . . . . . | 3612 |
| 64.5.3 | Bit rising error (BRE) . . . . . | 3612 |
| 64.5.4 | Short bit period error (SBPE) . . . . . | 3612 |
| 64.5.5 | Long bit period error (LBPE) . . . . . | 3612 |
| 64.5.6 | Transmission error detection (TXERR) . . . . . | 3614 |
| 64.6 | HDMI-CEC interrupts . . . . . | 3615 |
| 64.7 | HDMI-CEC registers . . . . . | 3616 |
| 64.7.1 | CEC control register (CEC_CR) . . . . . | 3616 |
| 64.7.2 | CEC configuration register (CEC_CFGR) . . . . . | 3617 |
| 64.7.3 | CEC Tx data register (CEC_TXDR) . . . . . | 3619 |
| 64.7.4 | CEC Rx data register (CEC_RXDR) ..... | 3619 |
| 64.7.5 | CEC interrupt and status register (CEC_ISR) ..... | 3619 |
| 64.7.6 | CEC interrupt enable register (CEC_IER) ..... | 3621 |
| 64.7.7 | HDMI-CEC register map ..... | 3623 |
| 65 | Hardware debug port (HDP) ..... | 3624 |
| 65.1 | Features ..... | 3624 |
| 65.2 | Block diagram ..... | 3624 |
| 65.3 | Functional description ..... | 3625 |
| 65.4 | HDP registers ..... | 3628 |
| 65.4.1 | HDP control register (HDP_CTRL) ..... | 3628 |
| 65.4.2 | HDP multiplexers control register (HDP_MUX) ..... | 3628 |
| 65.4.3 | HDP read back value register (HDP_VAL) ..... | 3629 |
| 65.4.4 | HDP general purpose output set register (HDP_GPOSET) ..... | 3630 |
| 65.4.5 | HDP general purpose output clear register (HDP_GPOCLR) ..... | 3630 |
| 65.4.6 | HDP general purpose output value register (HDP_GPOVAL) ..... | 3631 |
| 65.4.7 | HDP version register (HDP_VERR) ..... | 3631 |
| 65.4.8 | HDP IP identification register (HDP_IPIDR) ..... | 3632 |
| 65.4.9 | HDP size identification register (HDP_SIDR) ..... | 3632 |
| 65.4.10 | HDP register map ..... | 3632 |
| 66 | Debug support (DBG) ..... | 3634 |
| 66.1 | Introduction ..... | 3634 |
| 66.2 | Debug use cases ..... | 3635 |
| 66.3 | DBG block diagram ..... | 3636 |
| 66.4 | DBG pins ..... | 3637 |
| 66.5 | DBG power and clocking ..... | 3637 |
| 66.5.1 | DBG power domains ..... | 3637 |
| 66.5.2 | DBG clocks ..... | 3638 |
| 66.5.3 | Debug and low-power modes ..... | 3639 |
| 66.5.4 | DBG reset ..... | 3639 |
| 66.6 | Security ..... | 3639 |
| 66.6.1 | Authentication signals ..... | 3640 |
| 66.7 | Chip level TAP controller (CLTAPC) ..... | 3641 |
| 66.8 | Serial wire and JTAG debug port (SWJ-DP) ..... | 3642 |
| 66.8.1 | JTAG debug port ..... | 3643 |
| 66.8.2 | Serial Wire debug port | 3646 |
| 66.8.3 | Debug port registers | 3647 |
| 66.9 | Access ports | 3656 |
| 66.9.1 | Authentication | 3657 |
| 66.9.2 | MEM-AP registers | 3658 |
| 66.10 | System debug features | 3668 |
| 66.10.1 | System ROM tables | 3668 |
| 66.10.2 | CoreSight™ global timestamp generator (TSGEN) | 3677 |
| 66.10.3 | Cross trigger interface (CTI) and matrix (CTM) | 3685 |
| 66.10.4 | Trace funnel (CSTF) | 3708 |
| 66.10.5 | Embedded trace FIFO (ETF) | 3719 |
| 66.10.6 | Trace port interface unit (TPIU) | 3740 |
| 66.10.7 | Serial wire output (SWO) | 3758 |
| 66.10.8 | System trace macrocell (STM) | 3770 |
| 66.10.9 | Microprocessor debug unit (DBGMCU) | 3807 |
| 66.11 | Cortex®-A7 debug features | 3819 |
| 66.11.1 | Cortex®-A7 debug unit | 3820 |
| 66.11.2 | Cortex®-A7 performance monitoring unit (PMU) | 3862 |
| 66.11.3 | Embedded trace macrocell (ETM) | 3883 |
| 66.11.4 | Cross trigger interface (CTI) | 3934 |
| 66.12 | Cortex®-M4 debug features | 3935 |
| 66.12.1 | ROM tables | 3935 |
| 66.12.2 | Data watchpoint and trace unit (DWT) | 3941 |
| 66.12.3 | Instrumentation trace macrocell (ITM) | 3955 |
| 66.12.4 | Breakpoint unit (FPB) | 3965 |
| 66.12.5 | Embedded trace macrocell (ETM) | 3973 |
| 66.12.6 | Cross trigger interface (CTI) | 3994 |
| 66.13 | References | 3995 |
| 67 | Device electronic signature | 3996 |
| 67.1 | Unique device ID register (96 bits) (UID) | 3996 |
| 67.2 | Device part number (RPN) | 3998 |
| 67.3 | Device version | 3998 |
| 67.4 | Package data register (PKG) | 3999 |
| 68 | Important security notice | 4000 |
| 69 | Revision history ..... | 4001 |
List of tables
| Table 1. | Memory map overview STM32MP157 ..... | 127 |
| Table 2. | Master ports main characteristics ..... | 130 |
| Table 3. | Master ports security characteristics ..... | 131 |
| Table 4. | Slave ports main characteristics ..... | 132 |
| Table 5. | Slave ports security characteristics ..... | 133 |
| Table 6. | Multi-layer AHB master ports main characteristics ..... | 135 |
| Table 7. | Multi-layer AHB slave ports main characteristics ..... | 135 |
| Table 8. | AXIMC register map and reset values ..... | 151 |
| Table 9. | Register boundary addresses ..... | 161 |
| Table 10. | Debugger Register boundary addresses ..... | 169 |
| Table 11. | OTP modes definition ..... | 174 |
| Table 12. | OTP permanent write lock ..... | 177 |
| Table 13. | BSEC_DENABLE default values after reset ..... | 178 |
| Table 14. | Write access permissions ..... | 180 |
| Table 15. | Read access permissions ..... | 180 |
| Table 16. | BSEC register map and reset values ..... | 193 |
| Table 17. | OTP list words 0 to 31 ..... | 197 |
| Table 18. | OTP list words 32 to 95 ..... | 205 |
| Table 19. | DDRCTRL register map and reset values ..... | 302 |
| Table 20. | NSAID and AXI_ID mapping ..... | 321 |
| Table 21. | TZC register map and reset values ..... | 342 |
| Table 22. | DDRPHYC I/O list ..... | 349 |
| Table 23. | MSDLL control bits ..... | 354 |
| Table 24. | PHY latency ..... | 375 |
| Table 25. | DFI timing parameters ..... | 377 |
| Table 26. | DDRPHYC register map and reset values ..... | 421 |
| Table 27. | DDRPERFM signal sets ..... | 429 |
| Table 28. | Power control register map and reset values ..... | 437 |
| Table 29. | PWR pin overview ..... | 441 |
| Table 30. | MPU Low-power mode summary ..... | 466 |
| Table 31. | MCU Low-power mode summary ..... | 467 |
| Table 32. | PWR system mode summary ..... | 468 |
| Table 33. | System Low-power mode summary ..... | 468 |
| Table 34. | Functionalities depending on system operating mode ..... | 470 |
| Table 35. | PDDS low-power mode control ..... | 473 |
| Table 36. | Low-power mode exit flags ..... | 475 |
| Table 37. | MPU CSleep ..... | 478 |
| Table 38. | MCU CSleep ..... | 478 |
| Table 39. | MPU CStop ..... | 480 |
| Table 40. | MCU CStop ..... | 480 |
| Table 41. | MPU CStandby ..... | 481 |
| Table 42. | Stop ..... | 482 |
| Table 43. | LP-Stop ..... | 483 |
| Table 44. | LPLV-Stop ..... | 484 |
| Table 45. | Standby ..... | 485 |
| Table 46. | PWR status flags ..... | 487 |
| Table 47. | Register security overview ..... | 488 |
| Table 48. | Power control register map and reset values ..... | 502 |
| Table 49. | Pin overview . . . . . | 506 |
| Table 50. | Reset coverage summary . . . . . | 516 |
| Table 51. | RCC registers with specific reset and specific voltages . . . . . | 517 |
| Table 52. | Reset source identification (RCC_MP/MC/BR_RSTSCLRR, and PWR) . . . . . | 519 |
| Table 53. | Oscillator states versus system modes . . . . . | 527 |
| Table 54. | HSI, CSI and HSE states versus system modes . . . . . | 550 |
| Table 55. | Resources blocked during clock restore sequence . . . . . | 555 |
| Table 56. | Peripheral clock distribution overview . . . . . | 557 |
| Table 57. | Kernel clock settings examples for audio applications . . . . . | 565 |
| Table 58. | Ratio between clock timers and pclk . . . . . | 572 |
| Table 59. | Gating control of the aclk_[2:1] clocks . . . . . | 589 |
| Table 60. | DDRCKMOD control description . . . . . | 590 |
| Table 61. | DDRC low-power (DDRC-LP) states description . . . . . | 591 |
| Table 62. | Recommended configurations . . . . . | 597 |
| Table 63. | Peripheral clock enable details for MPU (MCU) . . . . . | 605 |
| Table 64. | MPU mode details . . . . . | 607 |
| Table 65. | Bus clock enable details for AXIM . . . . . | 609 |
| Table 66. | Bus clock enable details for AHB5 and AHB6 . . . . . | 610 |
| Table 67. | Bus clock enable details for MLAHB and AHB4 . . . . . | 611 |
| Table 68. | Bus clock enable details for AHB[3:1] . . . . . | 611 |
| Table 69. | Bus clock enable details for APB[5:1] . . . . . | 613 |
| Table 70. | Interrupt sources and control . . . . . | 617 |
| Table 71. | Clock settings examples for MPU . . . . . | 626 |
| Table 72. | Clock setting examples for AXI, DDR and GPU . . . . . | 627 |
| Table 73. | Access results according to register security attributes . . . . . | 637 |
| Table 74. | Register access type versus protection and security . . . . . | 637 |
| Table 75. | RCC register map and reset values . . . . . | 1006 |
| Table 76. | HSEM internal input/output signals . . . . . | 1037 |
| Table 77. | Authorized AHB bus master IDs . . . . . | 1042 |
| Table 78. | HSEM register map and reset values . . . . . | 1050 |
| Table 79. | IPCC interface signals . . . . . | 1053 |
| Table 80. | Bits used for the communication . . . . . | 1054 |
| Table 81. | IPCC register map and reset values . . . . . | 1066 |
| Table 82. | Port bit configuration table . . . . . | 1069 |
| Table 83. | GPIO secured bits . . . . . | 1077 |
| Table 84. | GPIO register map and reset values . . . . . | 1092 |
| Table 85. | SYSCFG interface register map and reset values . . . . . | 1114 |
| Table 86. | STM32MP157 secure and securable peripherals . . . . . | 1119 |
| Table 87. | STM32MP157 TrustZone-aware peripherals . . . . . | 1120 |
| Table 88. | STM32MP157 memory firewalls . . . . . | 1120 |
| Table 89. | STM32MP157 TrustZone-capable bus masters . . . . . | 1121 |
| Table 90. | decprot bits for securable peripherals (type 1) and behavior . . . . . | 1121 |
| Table 91. | decprot bits for isolable peripherals (type 2) and behavior . . . . . | 1122 |
| Table 92. | decprot bits for securable and Isolable Peripherals (type 3) and behavior . . . . . | 1122 |
| Table 93. | Programmable options according to resource type . . . . . | 1123 |
| Table 94. | DECPROT assignment . . . . . | 1123 |
| Table 95. | ETZPC register map and reset values . . . . . | 1138 |
| Table 96. | Peripherals interconnect matrix . . . . . | 1141 |
| Table 97. | Peripherals interconnect matrix details . . . . . | 1144 |
| Table 98. | MDMA connections . . . . . | 1159 |
| Table 99. | MDMA internal input/output signals . . . . . | 1163 |
| Table 100. | MDMA interrupt requests . . . . . | 1169 |
| Table 101. | MDMA register map and reset values . . . . . | 1184 |
| Table 102. | Source and destination address . . . . . | 1190 |
| Table 103. | Source and destination address registers in double-buffer mode (DBM = 1) . . . . . | 1195 |
| Table 104. | Packing/unpacking and endian behavior (bit PINC = MINC = 1) . . . . . | 1196 |
| Table 105. | Restriction on NDT versus PSIZE and MSIZE . . . . . | 1196 |
| Table 106. | FIFO threshold configurations . . . . . | 1199 |
| Table 107. | Possible DMA configurations . . . . . | 1203 |
| Table 108. | DMA interrupt requests . . . . . | 1205 |
| Table 109. | DMA register map and reset values . . . . . | 1218 |
| Table 110. | DMAMUX instantiation . . . . . | 1224 |
| Table 111. | DMAMUX: assignment of multiplexer inputs to resources . . . . . | 1225 |
| Table 112. | DMAMUX: assignment of trigger inputs to resources . . . . . | 1226 |
| Table 113. | DMAMUX: assignment of synchronization inputs to resources . . . . . | 1226 |
| Table 114. | DMAMUX signals . . . . . | 1228 |
| Table 115. | DMAMUX interrupts . . . . . | 1232 |
| Table 116. | DMAMUX register map and reset values . . . . . | 1239 |
| Table 117. | STM32MP157 interrupt mapping for Cortex®-M4 . . . . . | 1244 |
| Table 118. | STM32MP157 interrupt mapping for Cortex®-A7 GIC . . . . . | 1249 |
| Table 119. | STM32MP157 EXTI Events . . . . . | 1256 |
| Table 120. | GICD register map and reset values . . . . . | 1282 |
| Table 121. | GICC register map and reset values . . . . . | 1295 |
| Table 122. | GICH register map and reset values . . . . . | 1302 |
| Table 123. | GICV register map and reset values . . . . . | 1310 |
| Table 124. | EXTI pin overview . . . . . | 1313 |
| Table 125. | EVG pin overview . . . . . | 1314 |
| Table 126. | EXTI event input configurations and register control . . . . . | 1315 |
| Table 127. | Masking functionality . . . . . | 1318 |
| Table 128. | Register security overview . . . . . | 1319 |
| Table 129. | EXTI register map sections . . . . . | 1321 |
| Table 130. | EXTI register map and reset values . . . . . | 1351 |
| Table 131. | CRC internal input/output signals . . . . . | 1356 |
| Table 132. | CRC register map and reset values . . . . . | 1362 |
| Table 133. | FMC features . . . . . | 1365 |
| Table 134. | FMC internal signals . . . . . | 1366 |
| Table 135. | FMC memory regions (default mapping) . . . . . | 1368 |
| Table 136. | NOR/PSRAM subregion selection . . . . . | 1369 |
| Table 137. | NOR/PSRAM External memory address . . . . . | 1369 |
| Table 138. | NAND memory mapping and timing registers . . . . . | 1369 |
| Table 139. | NAND flash memory region selection . . . . . | 1370 |
| Table 140. | NAND chip enable selection . . . . . | 1370 |
| Table 141. | Programmable NOR/PSRAM access parameters . . . . . | 1372 |
| Table 142. | Non-multiplexed I/O NOR flash memory . . . . . | 1372 |
| Table 143. | 16-bit multiplexed I/O NOR flash memory . . . . . | 1373 |
| Table 144. | Non-multiplexed I/Os PSRAM/SRAM . . . . . | 1373 |
| Table 145. | 16-bit multiplexed I/O PSRAM . . . . . | 1373 |
| Table 146. | NOR flash/PSRAM: Example of supported memories and transactions . . . . . | 1374 |
| Table 147. | FMC_BCRx bitfields (mode 1) . . . . . | 1378 |
| Table 148. | FMC_BTRx bitfields (mode 1) . . . . . | 1378 |
| Table 149. | FMC_BCRx bitfields (mode A) . . . . . | 1380 |
| Table 150. | FMC_BTRx bitfields (mode A) . . . . . | 1381 |
| Table 151. | FMC_BWTRx bitfields (mode A) . . . . . | 1381 |
| Table 152. | FMC_BCRx bitfields (mode 2/B) ..... | 1384 |
| Table 153. | FMC_BTRx bitfields (mode 2/B) ..... | 1384 |
| Table 154. | FMC_BWTRx bitfields (mode 2/B) ..... | 1385 |
| Table 155. | FMC_BCRx bitfields (mode C) ..... | 1387 |
| Table 156. | FMC_BTRx bitfields (mode C) ..... | 1387 |
| Table 157. | FMC_BWTRx bitfields (mode C) ..... | 1388 |
| Table 158. | FMC_BCRx bitfields (mode D) ..... | 1389 |
| Table 159. | FMC_BTRx bitfields (mode D) ..... | 1390 |
| Table 160. | FMC_BWTRx bitfields (mode D) ..... | 1390 |
| Table 161. | FMC_BCRx bitfields (muxed mode) ..... | 1392 |
| Table 162. | FMC_BTRx bitfields (muxed mode) ..... | 1393 |
| Table 163. | FMC_BCRx bitfields (Synchronous multiplexed read mode) ..... | 1398 |
| Table 164. | FMC_BTRx bitfields (Synchronous multiplexed read mode) ..... | 1399 |
| Table 165. | FMC_BCRx bitfields (Synchronous multiplexed write mode) ..... | 1400 |
| Table 166. | FMC_BTRx bitfields (Synchronous multiplexed write mode) ..... | 1401 |
| Table 167. | Programmable NAND flash access parameters ..... | 1415 |
| Table 168. | 8-bit NAND flash memory ..... | 1415 |
| Table 169. | 16-bit NAND flash memory ..... | 1416 |
| Table 170. | Supported memories and transactions ..... | 1416 |
| Table 171. | Number of ECC parity bytes per sector ..... | 1421 |
| Table 172. | FMC NAND controller Interrupt request ..... | 1429 |
| Table 173. | HPR relevant bits ..... | 1435 |
| Table 174. | ECC result relevant bits ..... | 1436 |
| Table 175. | FMC register map ..... | 1454 |
| Table 176. | QUADSPI internal signals ..... | 1459 |
| Table 177. | QUADSPI pins ..... | 1459 |
| Table 178. | QUADSPI interrupt requests ..... | 1473 |
| Table 179. | QUADSPI register map and reset values ..... | 1487 |
| Table 180. | DLYB internal input/output signals ..... | 1490 |
| Table 181. | DLYB interconnection ..... | 1490 |
| Table 182. | Delay block control ..... | 1491 |
| Table 183. | DLYB register map and reset values ..... | 1493 |
| Table 184. | ADC features ..... | 1496 |
| Table 185. | ADC input/output pins ..... | 1498 |
| Table 186. | ADC internal input/output signals ..... | 1498 |
| Table 187. | ADC interconnection ..... | 1499 |
| Table 188. | Configuring the trigger polarity for regular external triggers ..... | 1518 |
| Table 189. | Configuring the trigger polarity for injected external triggers ..... | 1518 |
| Table 190. | ADC1, ADC2 - External triggers for regular channels ..... | 1519 |
| Table 191. | ADC1, ADC2- External triggers for injected channels ..... | 1520 |
| Table 192. | TSAR timings depending on resolution ..... | 1532 |
| Table 193. | Offset computation versus data resolution ..... | 1535 |
| Table 194. | 16-bit data formats ..... | 1538 |
| Table 195. | Numerical examples for 16-bit format (bold indicates saturation) ..... | 1538 |
| Table 196. | Analog watchdog channel selection ..... | 1547 |
| Table 197. | Analog watchdog 1,2,3 comparison ..... | 1548 |
| Table 198. | Oversampler operating modes summary ..... | 1556 |
| Table 199. | ADC interrupts per each ADC ..... | 1575 |
| Table 200. | DELAY bits versus ADC resolution ..... | 1615 |
| Table 201. | ADC register map and reset values for each ADC (offset=0x000 for master ADC, 0x100 for slave ADC) ..... | 1618 |
| Table 202. | ADC register map and reset values (master and slave ADC |
| common registers) offset =0x300) ..... | 1621 |
| Table 203. DTS internal input/output signals ..... | 1624 |
| Table 204. Sampling time configuration ..... | 1627 |
| Table 205. Trigger configuration ..... | 1628 |
| Table 206. Temperature sensor behavior in low-power modes ..... | 1630 |
| Table 207. Interrupt control bits ..... | 1631 |
| Table 208. DTS register map and reset values ..... | 1639 |
| Table 209. DAC features ..... | 1641 |
| Table 210. DAC input/output pins ..... | 1643 |
| Table 211. DAC internal input/output signals ..... | 1643 |
| Table 212. DAC interconnection ..... | 1644 |
| Table 213. Sample and refresh timings ..... | 1651 |
| Table 214. Channel output modes summary ..... | 1652 |
| Table 215. Effect of low-power modes on DAC ..... | 1659 |
| Table 216. DAC interrupts ..... | 1660 |
| Table 217. DAC register map and reset values ..... | 1677 |
| Table 218. VREF buffer modes ..... | 1680 |
| Table 219. VREFBUF register map and reset values ..... | 1682 |
| Table 220. DFSDM1 implementation ..... | 1685 |
| Table 221. DFSDM external pins ..... | 1687 |
| Table 222. DFSDM internal signals ..... | 1687 |
| Table 223. DFSDM triggers connection ..... | 1687 |
| Table 224. DFSDM break connection ..... | 1688 |
| Table 225. Filter maximum output resolution (peak data values from filter output) for some FOSR values ..... | 1703 |
| Table 226. Integrator maximum output resolution (peak data values from integrator output) for some IOSR values and FOSR = 256 and Sinc3 filter type (largest data) ..... | 1704 |
| Table 227. DFSDM interrupt requests ..... | 1712 |
| Table 228. DFSDM register map and reset values ..... | 1736 |
| Table 229. DCMI input/output pins ..... | 1750 |
| Table 230. DCMI internal input/output signals ..... | 1750 |
| Table 231. Positioning of captured data bytes in 32-bit words (8-bit width) ..... | 1752 |
| Table 232. Positioning of captured data bytes in 32-bit words (10-bit width) ..... | 1752 |
| Table 233. Positioning of captured data bytes in 32-bit words (12-bit width) ..... | 1752 |
| Table 234. Positioning of captured data bytes in 32-bit words (14-bit width) ..... | 1753 |
| Table 235. Data storage in monochrome progressive video format ..... | 1758 |
| Table 236. Data storage in RGB progressive video format ..... | 1759 |
| Table 237. Data storage in YCbCr progressive video format ..... | 1759 |
| Table 238. Data storage in YCbCr progressive video format - Y extraction mode ..... | 1759 |
| Table 239. DCMI interrupts ..... | 1760 |
| Table 240. DCMI register map and reset values ..... | 1770 |
| Table 241. LTDC external pins ..... | 1772 |
| Table 242. LTDC internal signals ..... | 1773 |
| Table 243. Clock domain for each register ..... | 1773 |
| Table 244. LTDC register access and update durations ..... | 1774 |
| Table 245. Pixel data mapping versus color format ..... | 1778 |
| Table 246. LTDC interrupt requests ..... | 1782 |
| Table 247. LTDC register map and reset values ..... | 1801 |
| Table 248. DSI pins ..... | 1807 |
| Table 249. DSI internal input/output signals ..... | 1808 |
| Table 250. Location of color components in the LTDC interface ..... | 1811 |
| Table 251. Multiplicity of the payload size in pixels for each data type ..... | 1812 |
| Table 252. | Contention detection timeout counters configuration ..... | 1824 |
| Table 253. | List of events of different categories of the PRESP_TO counter ..... | 1825 |
| Table 254. | PRESP_TO counter configuration ..... | 1828 |
| Table 255. | Frame requirement configuration registers ..... | 1840 |
| Table 256. | RGB components ..... | 1842 |
| Table 257. | Slew-rate and delay tuning ..... | 1844 |
| Table 258. | Custom lane configuration ..... | 1845 |
| Table 259. | HS2LP and LP2HS values ..... | 1845 |
| Table 260. | DSI Wrapper interrupt requests ..... | 1848 |
| Table 261. | Error causes and recovery ..... | 1849 |
| Table 262. | DSI register map and reset values ..... | 1914 |
| Table 263. | RNG internal input/output signals ..... | 1920 |
| Table 264. | RNG interrupt requests ..... | 1926 |
| Table 265. | RNG configurations ..... | 1927 |
| Table 266. | RNG register map and reset map ..... | 1931 |
| Table 267. | HASH features ..... | 1934 |
| Table 268. | HASH internal input/output signals ..... | 1935 |
| Table 269. | Hash processor outputs ..... | 1938 |
| Table 270. | Processing time (in clock cycle) ..... | 1945 |
| Table 271. | HASH interrupt requests ..... | 1945 |
| Table 272. | HASH register map and reset values ..... | 1954 |
| Table 273. | CRYP internal input/output signals ..... | 1960 |
| Table 274. | Counter mode initialization vector ..... | 1984 |
| Table 275. | GCM last block definition ..... | 1987 |
| Table 276. | GCM mode IV registers initialization ..... | 1987 |
| Table 277. | CCM mode IV registers initialization ..... | 1994 |
| Table 278. | DES/TDES data swapping example ..... | 1998 |
| Table 279. | AES data swapping example ..... | 1999 |
| Table 280. | Key endianness in CRYP_KxR/LR registers (AES 128/192/256-bit keys) ..... | 2001 |
| Table 281. | Key endianness in CRYP_KxR/LR registers (DES K1 and TDES K1/2/3) ..... | 2002 |
| Table 282. | Initialization vector endianness in CRYP_IVx(L/R)R registers (AES) ..... | 2002 |
| Table 283. | Initialization vector endianness in CRYP_IVx(L/R)R registers (DES/TDES) ..... | 2002 |
| Table 284. | Cryptographic processor configuration for memory-to-peripheral DMA transfers ..... | 2003 |
| Table 285. | Cryptographic processor configuration for peripheral-to-memory DMA transfers ..... | 2004 |
| Table 286. | CRYP interrupt requests ..... | 2006 |
| Table 287. | Processing latency for ECB, CBC and CTR ..... | 2007 |
| Table 288. | Processing time (in clock cycle) for GCM and CCM per 128-bit block ..... | 2007 |
| Table 289. | CRYP register map and reset values ..... | 2023 |
| Table 290. | Behavior of timer outputs versus BRK/BRK2 inputs ..... | 2067 |
| Table 291. | Break protection disarming conditions ..... | 2069 |
| Table 292. | Counting direction versus encoder signals ..... | 2075 |
| Table 293. | TIMx internal trigger connection ..... | 2092 |
| Table 294. | Output control bits for complementary OCx and OCxN channels with break feature ..... | 2106 |
| Table 295. | TIM1 register map and reset values ..... | 2124 |
| Table 296. | TIM8 register map and reset values ..... | 2126 |
| Table 297. | Counting direction versus encoder signals ..... | 2162 |
| Table 298. | TIMx internal trigger connection ..... | 2180 |
| Table 299. | Output control bit for standard OCx channels ..... | 2190 |
| Table 300. | TIM2/TIM3/TIM4/TIM5 register map and reset values ..... | 2201 |
| Table 301. | TIMx internal trigger connection ..... | 2232 |
| Table 302. | Output control bit for standard OCx channels. . . . . | 2240 |
| Table 303. | TIM12 register map and reset values . . . . . | 2243 |
| Table 304. | Output control bit for standard OCx channels. . . . . | 2252 |
| Table 305. | TIM13/TIM14 register map and reset values . . . . . | 2255 |
| Table 306. | Break protection disarming conditions . . . . . | 2285 |
| Table 307. | TIMx Internal trigger connection . . . . . | 2301 |
| Table 308. | Output control bits for complementary OCx and OCxN channels with break feature (TIM15). . . . . | 2311 |
| Table 309. | TIM15 register map and reset values . . . . . | 2319 |
| Table 310. | Output control bits for complementary OCx and OCxN channels with break feature (TIM16/17) . . . . . | 2332 |
| Table 311. | TIM16/TIM17 register map and reset values . . . . . | 2342 |
| Table 312. | TIMx register map and reset values . . . . . | 2356 |
| Table 313. | STM32MP157 LPTIM features . . . . . | 2358 |
| Table 314. | LPTIM input/output pins . . . . . | 2360 |
| Table 315. | LPTIM internal signals . . . . . | 2360 |
| Table 316. | LPTIM1 external trigger connection . . . . . | 2360 |
| Table 317. | LPTIM2 external trigger connection . . . . . | 2361 |
| Table 318. | LPTIM3 external trigger connection . . . . . | 2361 |
| Table 319. | LPTIM4 external trigger connection . . . . . | 2361 |
| Table 320. | LPTIM5 external trigger connection . . . . . | 2362 |
| Table 321. | LPTIM1 input 1 connection. . . . . | 2362 |
| Table 322. | LPTIM1 input 2 connection. . . . . | 2362 |
| Table 323. | LPTIM2 input 1 connection. . . . . | 2362 |
| Table 324. | LPTIM2 input 2 connection. . . . . | 2363 |
| Table 325. | LPTIM3 input 1 connection. . . . . | 2363 |
| Table 326. | Prescaler division ratios . . . . . | 2364 |
| Table 327. | Encoder counting scenarios . . . . . | 2371 |
| Table 328. | Effect of low-power modes on the LPTIM. . . . . | 2372 |
| Table 329. | Interrupt events. . . . . | 2373 |
| Table 330. | LPTIM register map and reset values. . . . . | 2386 |
| Table 331. | STGENC register map and reset values . . . . . | 2402 |
| Table 332. | STGENR register map and reset values . . . . . | 2403 |
| Table 333. | STM32MP157x IWDG features . . . . . | 2407 |
| Table 334. | IWDG delays versus actions . . . . . | 2409 |
| Table 335. | IWDG internal input/output signals . . . . . | 2409 |
| Table 336. | Effect of low power modes on IWDG . . . . . | 2413 |
| Table 337. | IWDG interrupt request. . . . . | 2415 |
| Table 338. | IWDG register map and reset values . . . . . | 2422 |
| Table 339. | WWDG internal input/output signals. . . . . | 2424 |
| Table 340. | WWDG register map and reset values . . . . . | 2428 |
| Table 341. | RTC input/output pins. . . . . | 2433 |
| Table 342. | RTC internal input/output signals . . . . . | 2433 |
| Table 343. | RTC interconnection. . . . . | 2434 |
| Table 344. | RTC pin PC13 configuration. . . . . | 2434 |
| Table 345. | PI8 configuration. . . . . | 2437 |
| Table 346. | RTC_OUT mapping . . . . . | 2438 |
| Table 347. | Effect of low-power modes on RTC . . . . . | 2450 |
| Table 348. | RTC pins functionality over modes. . . . . | 2450 |
| Table 349. | Non-secure interrupt requests . . . . . | 2450 |
| Table 350. | Secure interrupt requests . . . . . | 2451 |
| Table 351. | RTC register map and reset values . . . . . | 2478 |
| Table 352. | TAMP input/output pins | 2483 |
| Table 353. | TAMP internal input/output signals | 2483 |
| Table 354. | TAMP interconnection | 2483 |
| Table 355. | Minimum ATPER value | 2487 |
| Table 356. | Effect of low-power modes on TAMP | 2488 |
| Table 357. | Non-secure interrupt requests | 2489 |
| Table 358. | Secure interrupt requests | 2489 |
| Table 359. | TAMP register map and reset values | 2507 |
| Table 360. | I2C implementation | 2510 |
| Table 361. | I2C input/output pins | 2511 |
| Table 362. | I2C internal input/output signals | 2512 |
| Table 363. | Comparison of analog and digital filters | 2514 |
| Table 364. | I2C-bus and SMBus specification data setup and hold times | 2516 |
| Table 365. | I2C configuration | 2520 |
| Table 366. | I2C-bus and SMBus specification clock timings | 2531 |
| Table 367. | Timing settings for fI2CCLK of 8 MHz | 2541 |
| Table 368. | Timing settings for fI2CCLK of 16 MHz | 2541 |
| Table 369. | Timing settings for fI2CCLK of 48 MHz | 2542 |
| Table 370. | SMBus timeout specifications | 2544 |
| Table 371. | SMBus with PEC configuration | 2546 |
| Table 372. | TIMEOUTA[11:0] for maximum tTIMEOUT of 25 ms | 2547 |
| Table 373. | TIMEOUTB[11:0] for maximum tLOW:SEXT and tLOW:MEXT of 8 ms | 2547 |
| Table 374. | TIMEOUTA[11:0] for maximum tIDLE of 50 µs | 2547 |
| Table 375. | Effect of low-power modes to I2C | 2557 |
| Table 376. | I2C interrupt requests | 2557 |
| Table 377. | I2C register map and reset values | 2573 |
| Table 378. | USART features | 2577 |
| Table 379. | USART/UART input/output pins | 2580 |
| Table 380. | USART internal input/output signals | 2580 |
| Table 381. | Noise detection from sampled data | 2592 |
| Table 382. | Tolerance of the USART receiver when BRR [3:0] = 0000 | 2595 |
| Table 383. | Tolerance of the USART receiver when BRR[3:0] is different from 0000 | 2596 |
| Table 384. | USART frame formats | 2601 |
| Table 385. | Effect of low-power modes on the USART | 2624 |
| Table 386. | USART interrupt requests | 2625 |
| Table 387. | USART register map and reset values | 2662 |
| Table 388. | STM32MP157A SPI features | 2665 |
| Table 389. | SPI wakeup and interrupt requests | 2697 |
| Table 390. | Bitfields usable in PCM/I2S mode | 2700 |
| Table 391. | WS and CK level before SPI/I2S is enabled when AFCNTR = 1 | 2708 |
| Table 392. | Serial data line swapping | 2708 |
| Table 393. | CLKGEN programming examples for usual I2S frequencies | 2713 |
| Table 394. | I2S interrupt requests | 2722 |
| Table 395. | SPI register map and reset values | 2743 |
| Table 396. | STM32MP157 SAI features | 2746 |
| Table 397. | SAI internal input/output signals | 2748 |
| Table 398. | SAI input/output pins | 2748 |
| Table 399. | External synchronization selection | 2751 |
| Table 400. | MCLK_x activation conditions | 2756 |
| Table 401. | Clock generator programming examples | 2759 |
| Table 402. | SAI_A configuration for TDM mode | 2766 |
| Table 403. | TDM frame configuration examples | 2768 |
| Table 404. | SOPD pattern . . . . . | 2772 |
| Table 405. | Parity bit calculation . . . . . | 2772 |
| Table 406. | Audio sampling frequency versus symbol rates . . . . . | 2773 |
| Table 407. | SAL interrupt sources . . . . . | 2782 |
| Table 408. | SAL register map and reset values . . . . . | 2813 |
| Table 409. | SPDIFRX internal input/output signals . . . . . | 2817 |
| Table 410. | SPDIFRX pins. . . . . | 2817 |
| Table 411. | Transition sequence for preamble . . . . . | 2823 |
| Table 412. | Minimum spdifrx_ker_ck frequency versus audio sampling rate . . . . . | 2833 |
| Table 413. | Conditions of spdifrx_symb_ck generation . . . . . | 2834 |
| Table 414. | Bit field property versus SPDIFRX state . . . . . | 2837 |
| Table 415. | SPDIFRX interface register map and reset values . . . . . | 2850 |
| Table 416. | Interrupt control bits . . . . . | 2857 |
| Table 417. | MDIOS register map and reset values . . . . . | 2863 |
| Table 418. | SDMMC features . . . . . | 2865 |
| Table 419. | SDMMC operation modes SD and SDIO . . . . . | 2868 |
| Table 420. | SDMMC operation modes eMMC . . . . . | 2868 |
| Table 421. | SDMMC internal input/output signals . . . . . | 2869 |
| Table 422. | SDMMC pins. . . . . | 2870 |
| Table 423. | SDMMC Command and data phase selection . . . . . | 2871 |
| Table 424. | Command token format . . . . . | 2877 |
| Table 425. | Short response with CRC token format . . . . . | 2878 |
| Table 426. | Short response without CRC token format . . . . . | 2878 |
| Table 427. | Long response with CRC token format. . . . . | 2878 |
| Table 428. | Specific Commands overview. . . . . | 2879 |
| Table 429. | Command path status flags . . . . . | 2880 |
| Table 430. | Command path error handling . . . . . | 2880 |
| Table 431. | Data token format . . . . . | 2888 |
| Table 432. | Data path status flags and clear bits. . . . . | 2888 |
| Table 433. | Data path error handling. . . . . | 2890 |
| Table 434. | Data FIFO access. . . . . | 2891 |
| Table 435. | Transmit FIFO status flags . . . . . | 2892 |
| Table 436. | Receive FIFO status flags . . . . . | 2893 |
| Table 437. | AHB and SDMMC_CK clock frequency relation . . . . . | 2898 |
| Table 438. | SDIO special operation control . . . . . | 2898 |
| Table 439. | 4-bit mode Start, interrupt, and CRC-status Signaling detection . . . . . | 2902 |
| Table 440. | CMD12 use cases . . . . . | 2907 |
| Table 441. | SDMMC interrupts . . . . . | 2921 |
| Table 442. | Response type and SDMMC_RESPxR registers . . . . . | 2928 |
| Table 443. | SDMMC register map . . . . . | 2945 |
| Table 444. | CAN subsystem I/O signals . . . . . | 2948 |
| Table 445. | CAN subsystem I/O pins. . . . . | 2949 |
| Table 446. | CAN triggers . . . . . | 2949 |
| Table 447. | Main features . . . . . | 2951 |
| Table 448. | DLC coding in FDCAN . . . . . | 2956 |
| Table 449. | Example of filter configuration for Rx buffers . . . . . | 2969 |
| Table 450. | Example of filter configuration for Debug messages . . . . . | 2970 |
| Table 451. | Possible configurations for frame transmission . . . . . | 2970 |
| Table 452. | Tx buffer/FIFO - Queue element size . . . . . | 2971 |
| Table 453. | First byte of level 1 reference message . . . . . | 2981 |
| Table 454. | First four bytes of level 2 reference message. . . . . | 2982 |
| Table 455. | First four bytes of level 0 reference message. . . . . | 2982 |
| Table 456. | TUR configuration example | 2983 |
| Table 457. | System matrix, Node A | 2988 |
| Table 458. | Trigger list, Node A | 2989 |
| Table 459. | Number of data bytes transmitted with a reference message | 2996 |
| Table 460. | Rx buffer and FIFO element | 3003 |
| Table 461. | Rx buffer and FIFO element description | 3003 |
| Table 462. | Tx buffer and FIFO element | 3005 |
| Table 463. | Tx buffer element description | 3005 |
| Table 464. | Tx Event FIFO element | 3007 |
| Table 465. | Tx Event FIFO element description | 3007 |
| Table 466. | Standard message ID filter element | 3008 |
| Table 467. | Standard message ID filter element field description | 3009 |
| Table 468. | Extended message ID filter element | 3010 |
| Table 469. | Extended message ID filter element field description | 3010 |
| Table 470. | Trigger memory element | 3011 |
| Table 471. | Trigger memory element description | 3011 |
| Table 472. | FDCAN register map and reset values | 3049 |
| Table 473. | FDCAN TT register map and reset values | 3071 |
| Table 474. | CCU register map and reset values | 3077 |
| Table 475. | OTG speeds supported | 3079 |
| Table 476. | OTG implementation | 3082 |
| Table 477. | OTG input/output pins | 3083 |
| Table 478. | OTG input/output signals | 3084 |
| Table 479. | Compatibility of STM32 low power modes with the OTG | 3097 |
| Table 480. | Core global control and status registers (CSRs) | 3105 |
| Table 481. | Host-mode control and status registers (CSRs) | 3106 |
| Table 482. | Device-mode control and status registers | 3108 |
| Table 483. | Data FIFO (DFIFO) access register map | 3110 |
| Table 484. | Power and clock gating control and status registers | 3110 |
| Table 485. | TRDT values | 3118 |
| Table 486. | Minimum duration for soft disconnect | 3163 |
| Table 487. | OTG register map and reset values | 3187 |
| Table 488. | USBPHYC register map and reset values | 3271 |
| Table 489. | USBH register map and reset values | 3284 |
| Table 490. | Ethernet peripheral pins | 3294 |
| Table 491. | Ethernet internal input/output signals | 3295 |
| Table 492. | Fixed priority scheme for DMA channels | 3309 |
| Table 493. | Weight for DMA channels | 3313 |
| Table 494. | Example of credit value per transmit cycle | 3314 |
| Table 495. | Double VLAN processing features in Tx path | 3318 |
| Table 496. | Double VLAN processing in Rx path | 3318 |
| Table 497. | VLAN insertion or replacement based on VLTI bit | 3320 |
| Table 498. | Destination address filtering | 3323 |
| Table 499. | Source address filtering | 3324 |
| Table 500. | VLAN match status | 3325 |
| Table 501. | Ordinary clock: PTP messages for snapshot | 3328 |
| Table 502. | End-to-end transparent clock: PTP messages for snapshot | 3329 |
| Table 503. | Peer-to-peer transparent clock: PTP messages for snapshot | 3329 |
| Table 504. | Egress and ingress latency for PHY interfaces | 3333 |
| Table 505. | Minimum PTP clock frequency example | 3334 |
| Table 506. | Message format defined in IEEE 1588-2008 | 3334 |
| Table 507. | Message format defined in IEEE 1588-2008 | 3335 |
| Table 508. | IPv6-UDP PTP packet fields required for control and status | 3336 |
| Table 509. | Ethernet PTP packet fields required for control and status | 3337 |
| Table 510. | Timestamp Snapshot Dependency on ETH_MACTSCR bits | 3339 |
| Table 511. | PTP message generation criteria | 3345 |
| Table 512. | Common PTP message header fields | 3347 |
| Table 513. | MAC Transmit PTP mode and one-step timestamping operation | 3350 |
| Table 514. | Transmit checksum offload engine functions for different packet types | 3355 |
| Table 515. | Receive checksum offload engine functions for different packet types | 3357 |
| Table 516. | TSO: TCP and IP header fields | 3361 |
| Table 517. | Pause packet fields | 3366 |
| Table 518. | Tx MAC flow control | 3367 |
| Table 519. | Rx MAC flow control | 3368 |
| Table 520. | Size of the maximum receive packet | 3370 |
| Table 521. | MCD clock selection | 3373 |
| Table 522. | MDIO Clause 45 frame structure | 3374 |
| Table 523. | MDIO Clause 22 frame structure | 3375 |
| Table 524. | Remote wake-up packet filter register | 3390 |
| Table 525. | Description of the remote wake-up filter fields | 3391 |
| Table 526. | Remote wake-up packet and PMT interrupt generation | 3392 |
| Table 527. | Transfer complete interrupt behavior | 3401 |
| Table 528. | TDES0 normal descriptor (read format) | 3427 |
| Table 529. | TDES1 normal descriptor (read format) | 3428 |
| Table 530. | TDES2 normal descriptor (read format) | 3428 |
| Table 531. | TDES3 normal descriptor (read format) | 3429 |
| Table 532. | TDES0 normal descriptor (write-back format) | 3432 |
| Table 533. | TDES1 normal descriptor (write-back format) | 3432 |
| Table 534. | TDES2 normal descriptor (write-back format) | 3433 |
| Table 535. | TDES3 normal descriptor (write-back format) | 3433 |
| Table 536. | TDES0 context descriptor | 3436 |
| Table 537. | TDES1 context descriptor | 3437 |
| Table 538. | TDES2 context descriptor | 3437 |
| Table 539. | TDES3 context descriptor | 3437 |
| Table 540. | RDES0 normal descriptor (read format) | 3441 |
| Table 541. | RDES1 normal descriptor (read format) | 3441 |
| Table 542. | RDES2 normal descriptor (read format) | 3441 |
| Table 543. | RDES3 normal descriptor (read format) | 3442 |
| Table 544. | RDES0 normal descriptor (write-back format) | 3443 |
| Table 545. | RDES1 normal descriptor (write-back format) | 3444 |
| Table 546. | RDES2 normal descriptor (write-back format) | 3446 |
| Table 547. | RDES3 normal descriptor (write-back format) | 3447 |
| Table 548. | RDES0 context descriptor | 3450 |
| Table 549. | RDES1 context descriptor | 3451 |
| Table 550. | RDES2 context descriptor | 3451 |
| Table 551. | RDES3 context descriptor | 3451 |
| Table 552. | ETH_DMA common register map and reset values | 3478 |
| Table 553. | ETH_DMA_CH0 register map and reset values | 3479 |
| Table 554. | ETH_DMA_CH1 register map and reset values | 3480 |
| Table 555. | ETH_MTL register map and reset values | 3497 |
| Table 556. | Giant Packet Status based on S2KP and JE Bits | 3505 |
| Table 557. | Packet Length based on the CST and ACS bits | 3505 |
| Table 558. | Ethernet MAC register map and reset values | 3594 |
| Table 559. | HDMI pin | 3607 |
| Table 560. | HDMI-CEC internal input/output signals . . . . . | 3607 |
| Table 561. | Error handling timing parameters . . . . . | 3613 |
| Table 562. | TXERR timing parameters . . . . . | 3614 |
| Table 563. | HDMI-CEC interrupts . . . . . | 3615 |
| Table 564. | HDMI-CEC register map and reset values . . . . . | 3623 |
| Table 565. | HDP signal multiplexing . . . . . | 3626 |
| Table 566. | HDP register map and reset values . . . . . | 3632 |
| Table 567. | JTAG/Serial-wire debug port pins . . . . . | 3637 |
| Table 568. | Trace port pins . . . . . | 3637 |
| Table 569. | Serial Wire Trace port pins . . . . . | 3637 |
| Table 570. | Trigger pins . . . . . | 3637 |
| Table 571. | Authentication signal connectivity . . . . . | 3640 |
| Table 572. | Authentication signal initial states . . . . . | 3641 |
| Table 573. | CLTAPC registers . . . . . | 3641 |
| Table 574. | JTAG-DP data registers . . . . . | 3644 |
| Table 575. | Packet request . . . . . | 3646 |
| Table 576. | ACK response . . . . . | 3646 |
| Table 577. | Data transfer . . . . . | 3646 |
| Table 578. | Debug port registers . . . . . | 3648 |
| Table 579. | AP0 (system interconnect) authentication behavior . . . . . | 3657 |
| Table 580. | AP1 (Debug APB) authentication behavior . . . . . | 3658 |
| Table 581. | AP2 (Cortex®-M4) authentication behavior . . . . . | 3658 |
| Table 582. | MEM-AP registers . . . . . | 3658 |
| Table 583. | Debug subsystem ROM table . . . . . | 3669 |
| Table 584. | Trace subsystem ROM table . . . . . | 3670 |
| Table 585. | ROM table register map and reset values . . . . . | 3676 |
| Table 586. | TSGEN register map and reset values . . . . . | 3684 |
| Table 587. | Trace Subsystem CTI inputs . . . . . | 3687 |
| Table 588. | Trace Subsystem CTI outputs . . . . . | 3687 |
| Table 589. | Cortex®-A7_1/2 CTI inputs . . . . . | 3688 |
| Table 590. | Cortex®-A7_1/2 CTI outputs . . . . . | 3688 |
| Table 591. | Cortex®-M4 CTI inputs . . . . . | 3688 |
| Table 592. | Cortex®-M4 CTI outputs . . . . . | 3689 |
| Table 593. | CTI register map and reset values . . . . . | 3703 |
| Table 594. | CSTF register map and reset values . . . . . | 3717 |
| Table 595. | ETF register map and reset values . . . . . | 3737 |
| Table 596. | TPIU register map and reset values . . . . . | 3755 |
| Table 597. | SWO registers map and reset values . . . . . | 3767 |
| Table 598. | STM extended stimulus port memory map . . . . . | 3770 |
| Table 599. | STM trace packet ID mapping to AXI masters . . . . . | 3771 |
| Table 600. | Hardware event mapping 0 to 3 . . . . . | 3772 |
| Table 601. | Hardware event mapping 4 to 7 . . . . . | 3774 |
| Table 602. | STM registers map and reset values . . . . . | 3802 |
| Table 603. | IWDG1 behavior in debug . . . . . | 3809 |
| Table 604. | DBGMCU registers map and reset values . . . . . | 3818 |
| Table 605. | Debug unit register map and reset values . . . . . | 3857 |
| Table 606. | Performance monitoring unit registers map and reset values . . . . . | 3880 |
| Table 607. | ETM registers map and reset values . . . . . | 3928 |
| Table 608. | Cortex®-M4 CPU ROM table . . . . . | 3935 |
| Table 609. | Cortex®-M4 CPU ROM table register map and reset values . . . . . | 3940 |
| Table 610. | DWT register map and reset values . . . . . | 3952 |
| Table 611. | ITM register map and reset values . . . . . | 3962 |
| Table 612. FPB register map and reset values ..... | 3971 |
| Table 613. Embedded trace macrocell register map and reset values. .... | 3992 |
| Table 614. Document revision history ..... | 4001 |
List of figures
| Figure 1. | Bus interconnect for STM32MP157 ..... | 124 |
| Figure 2. | NIC-400 interconnect AXIM for STM32MP157 ..... | 129 |
| Figure 3. | Multi-layer AHB interconnect for STM32MP157 ..... | 134 |
| Figure 4. | Memory map ..... | 160 |
| Figure 5. | BSEC block diagram ..... | 172 |
| Figure 6. | Power-on and initial read timing diagram ..... | 175 |
| Figure 7. | DDRCTRL block diagram ..... | 210 |
| Figure 8. | TZC block diagram ..... | 320 |
| Figure 9. | TZC example 1 ..... | 322 |
| Figure 10. | TZC example 2 ..... | 323 |
| Figure 11. | TZC example 3 ..... | 324 |
| Figure 12. | DDRPHYC block diagram ..... | 349 |
| Figure 13. | DDRPHY block diagram ..... | 352 |
| Figure 14. | MDLL block diagram ..... | 353 |
| Figure 15. | MSDLL block diagram ..... | 353 |
| Figure 16. | ITMs block diagram ..... | 356 |
| Figure 17. | ITMC_D2 for LPDDR2/3 ..... | 357 |
| Figure 18. | ITMC_D2 for DDR3/3L ..... | 358 |
| Figure 19. | ITMS and ITMD for DQ/DQS lanes ..... | 359 |
| Figure 20. | PUBL block diagram ..... | 361 |
| Figure 21. | DDRPHY initialization sequence ..... | 363 |
| Figure 22. | Built-in DQS gate training flow ..... | 367 |
| Figure 23. | Software DQS gate training flow ..... | 369 |
| Figure 24. | Write timing with WL = 5, BL = 8 ..... | 374 |
| Figure 25. | Read timing with WL = 5, BL = 8 ..... | 375 |
| Figure 26. | DDRPERFM block diagram ..... | 428 |
| Figure 27. | Power control block diagram ..... | 440 |
| Figure 28. | Power supply overview ..... | 444 |
| Figure 29. | Device startup supply sequence ..... | 446 |
| Figure 30. | Device low-power Stop supply sequence ..... | 447 |
| Figure 31. | Device low-power LP-Stop supply sequence ..... | 448 |
| Figure 32. | Device low-power LPLV-Stop supply sequence ..... | 449 |
| Figure 33. | Device Standby mode power control ..... | 450 |
| Figure 34. | Device VBAT mode power control ..... | 451 |
| Figure 35. | Backup domain ..... | 454 |
| Figure 36. | Power-on reset/power-down reset waveform ..... | 457 |
| Figure 37. | BOR thresholds ..... | 458 |
| Figure 38. | NRST_CORE control in Standby ..... | 459 |
| Figure 39. | PVD thresholds ..... | 460 |
| Figure 40. | AVD thresholds ..... | 461 |
| Figure 41. | VBAT thresholds ..... | 462 |
| Figure 42. | Temperature thresholds ..... | 463 |
| Figure 43. | Power states and external regulator control ..... | 473 |
| Figure 44. | Power control modes detailed state diagram ..... | 474 |
| Figure 45. | PWR_ON and PWR_LP pins multiplexing ..... | 487 |
| Figure 46. | RCC block diagram ..... | 505 |
| Figure 47. | Reset circuit overview ..... | 509 |
| Figure 48. | Reset pulse control ..... | 513 |
| Figure 49. | Reset delay control . . . . . | 514 |
| Figure 50. | Reset source registers . . . . . | 518 |
| Figure 51. | Boot sequences versus system states . . . . . | 521 |
| Figure 52. | HOLD_BOOT examples . . . . . | 522 |
| Figure 53. | Hold function handled by the BOOTROM . . . . . | 524 |
| Figure 54. | Top-level clock tree . . . . . | 526 |
| Figure 55. | HSE clock source . . . . . | 528 |
| Figure 56. | HSE clock generation . . . . . | 528 |
| Figure 57. | HSI calibration flow . . . . . | 531 |
| Figure 58. | CSI calibration flow . . . . . | 532 |
| Figure 59. | LSE clock generation . . . . . | 533 |
| Figure 60. | LSE and HSE CSS function . . . . . | 536 |
| Figure 61. | PLL1 and PLL2 block diagram . . . . . | 539 |
| Figure 62. | PLL3 and PLL4 block diagram . . . . . | 539 |
| Figure 63. | Spread spectrum modulation . . . . . | 543 |
| Figure 64. | Triangular waveform generator . . . . . | 544 |
| Figure 65. | Dynamic clock switching . . . . . | 546 |
| Figure 66. | Core and busses clock generation . . . . . | 547 |
| Figure 67. | Key signals controlling low-power modes . . . . . | 549 |
| Figure 68. | Clock restore activation versus system mode . . . . . | 552 |
| Figure 69. | Clock restore process activated after system Stop . . . . . | 554 |
| Figure 70. | Wake up from CStop processes . . . . . | 555 |
| Figure 71. | Peripheral clock distribution For SAIs and DFSDM . . . . . | 566 |
| Figure 72. | Peripheral clock distribution for SPI/I2Ss and SPDIFRX . . . . . | 567 |
| Figure 73. | Peripheral clock distribution for SPIs . . . . . | 568 |
| Figure 74. | Peripheral clock distribution for I2Cs . . . . . | 569 |
| Figure 75. | Peripheral clock distribution for UARTs, and USARTs . . . . . | 570 |
| Figure 76. | Peripheral clock distribution for UARTs, and USARTs . . . . . | 571 |
| Figure 77. | Peripheral clock distribution for TIMs and LPTIMs . . . . . | 573 |
| Figure 78. | Peripheral clock distribution for DSI, DSI DPHY and LTDC . . . . . | 574 |
| Figure 79. | Peripheral clock distribution for QUADSPI and FMC . . . . . | 575 |
| Figure 80. | Peripheral clock distribution for SDMMCs . . . . . | 575 |
| Figure 81. | Peripheral clock distribution for USB . . . . . | 577 |
| Figure 82. | Peripheral clock distribution for Ethernet . . . . . | 578 |
| Figure 83. | Kernel clock distribution for RNG1 and RNG2 . . . . . | 580 |
| Figure 84. | Kernel clock distribution for FDCAN . . . . . | 580 |
| Figure 85. | Kernel clock distribution for ADC12, DACs, STGEN and HDMI-CEC . . . . . | 582 |
| Figure 86. | Kernel clock distribution for GPU . . . . . | 583 |
| Figure 87. | Kernel clock distribution for DTS . . . . . | 583 |
| Figure 88. | Clock distribution for RTC . . . . . | 584 |
| Figure 89. | Clock distribution for IWDG[2:1] and WWDG1 . . . . . | 585 |
| Figure 90. | Clock distribution for TZC . . . . . | 587 |
| Figure 91. | Clock distribution for DDRC, DDRPHYC and DDRPERFM . . . . . | 588 |
| Figure 92. | Entering and exiting self-refresh in ASR1 or ASR2 modes . . . . . | 594 |
| Figure 93. | Entering and exiting self-refresh in HSR1 or HSR2 modes . . . . . | 595 |
| Figure 94. | Allowed transitions between SSR, ASR and HSR modes . . . . . | 596 |
| Figure 95. | Clock description for DBG and trace . . . . . | 599 |
| Figure 96. | Clock description for IO compensation cell . . . . . | 600 |
| Figure 97. | Peripheral allocation example . . . . . | 602 |
| Figure 98. | Peripheral kernel clock enable logic details . . . . . | 605 |
| Figure 99. | MPU low-power interface . . . . . | 608 |
| Figure 100. | Interrupt block diagram . . . . . | 617 |
| Figure 101. MPU clock path. .... | 618 |
| Figure 102. PLL2 clock path. .... | 620 |
| Figure 103. MCU clock path. .... | 622 |
| Figure 104. Exit from Stop due to MPU event. .... | 633 |
| Figure 105. Exit from Stop due to MCU event. .... | 634 |
| Figure 106. Exit from Stop for MCU. .... | 635 |
| Figure 107. Fast clock restore. .... | 636 |
| Figure 108. HSEM block diagram. .... | 1037 |
| Figure 109. Procedure state diagram. .... | 1038 |
| Figure 110. Interrupt state diagram. .... | 1041 |
| Figure 111. IPCC block diagram. .... | 1053 |
| Figure 112. IPCC Simplex channel mode transfer timing. .... | 1054 |
| Figure 113. IPCC Simplex - Send procedure state diagram. .... | 1055 |
| Figure 114. IPCC Simplex - Receive procedure state diagram. .... | 1056 |
| Figure 115. IPCC Half-duplex channel mode transfer timing. .... | 1057 |
| Figure 116. IPCC Half-duplex - Send procedure state diagram. .... | 1057 |
| Figure 117. IPCC Half-duplex - Receive procedure state diagram. .... | 1058 |
| Figure 118. Basic structure of an I/O port bit. .... | 1068 |
| Figure 119. Basic structure of a 5-Volt tolerant I/O port bit. .... | 1068 |
| Figure 120. Input floating/pull up/pull down configurations. .... | 1073 |
| Figure 121. Output configuration. .... | 1074 |
| Figure 122. Alternate function configuration. .... | 1075 |
| Figure 123. High impedance-analog configuration. .... | 1075 |
| Figure 124. Analog inputs connected to ADC inputs. .... | 1076 |
| Figure 125. I/O compensation control overview. .... | 1094 |
| Figure 126. Ethernet clock source. .... | 1096 |
| Figure 127. STM32MP157 security architecture. .... | 1119 |
| Figure 128. MDMA block diagram. .... | 1163 |
| Figure 129. DMA block diagram. .... | 1188 |
| Figure 130. Peripheral-to-memory mode. .... | 1191 |
| Figure 131. Memory-to-peripheral mode. .... | 1192 |
| Figure 132. Memory-to-memory mode. .... | 1193 |
| Figure 133. FIFO structure. .... | 1198 |
| Figure 134. DMAMUX block diagram. .... | 1227 |
| Figure 135. Synchronization mode of the DMAMUX request line multiplexer channel. .... | 1230 |
| Figure 136. Event generation of the DMA request line multiplexer channel. .... | 1230 |
| Figure 137. GPU block diagram. .... | 1243 |
| Figure 138. GIC block diagram. .... | 1262 |
| Figure 139. EXTI block diagram. .... | 1313 |
| Figure 140. Configurable event trigger logic CPU wakeup. .... | 1316 |
| Figure 141. Direct event trigger logic CPU wakeup. .... | 1317 |
| Figure 142. EXTI mux GPIO selection. .... | 1318 |
| Figure 143. CRC calculation unit block diagram. .... | 1356 |
| Figure 144. FMC block diagram. .... | 1366 |
| Figure 145. Mode 1 read access waveforms. .... | 1377 |
| Figure 146. Mode 1 write access waveforms. .... | 1377 |
| Figure 147. Mode A read access waveforms. .... | 1379 |
| Figure 148. Mode A write access waveforms. .... | 1380 |
| Figure 149. Mode 2 and mode B read access waveforms. .... | 1382 |
| Figure 150. Mode 2 write access waveforms. .... | 1383 |
| Figure 151. Mode B write access waveforms. .... | 1383 |
| Figure 152. Mode C read access waveforms. .... | 1386 |
| Figure 153. | Mode C write access waveforms ..... | 1386 |
| Figure 154. | Mode D read access waveforms ..... | 1388 |
| Figure 155. | Mode D write access waveforms ..... | 1389 |
| Figure 156. | Muxed read access waveforms ..... | 1391 |
| Figure 157. | Muxed write access waveforms ..... | 1392 |
| Figure 158. | Asynchronous wait during a read access waveforms ..... | 1395 |
| Figure 159. | Asynchronous wait during a write access waveforms ..... | 1395 |
| Figure 160. | Wait configuration waveforms ..... | 1397 |
| Figure 161. | Synchronous multiplexed read mode waveforms - NOR, PSRAM (CRAM) ..... | 1398 |
| Figure 162. | Synchronous multiplexed write mode waveforms - PSRAM (CRAM) ..... | 1400 |
| Figure 163. | NAND flash controller waveforms for common memory access ..... | 1417 |
| Figure 164. | NAND flash controller waveforms for TCLR and TAR timings ..... | 1417 |
| Figure 165. | Access to NAND flash memory ..... | 1419 |
| Figure 166. | NAND flash page (2 Kbytes) layout with BCH ..... | 1423 |
| Figure 167. | Example of 2 Kbyte page program sequence with 4-bit BCH ..... | 1424 |
| Figure 168. | Chained-page read command timings ..... | 1426 |
| Figure 169. | Example of 2-Kbyte page read sequence with 4-bit BCH ..... | 1427 |
| Figure 170. | QUADSPI block diagram ..... | 1458 |
| Figure 171. | QUADSPI block diagram when dual-flash mode is enabled ..... | 1459 |
| Figure 172. | Example of read command in quad-SPI mode ..... | 1460 |
| Figure 173. | Example of a DDR command in quad-SPI mode ..... | 1463 |
| Figure 174. | NCS when CKMODE = 0 (T = CLK period) ..... | 1471 |
| Figure 175. | NCS when CKMODE = 1 in SDR mode (T = CLK period) ..... | 1472 |
| Figure 176. | NCS when CKMODE = 1 in DDR mode (T = CLK period) ..... | 1472 |
| Figure 177. | NCS when CKMODE = 1 with an abort (T = CLK period) ..... | 1473 |
| Figure 178. | DLYB block diagram ..... | 1489 |
| Figure 179. | ADC block diagram ..... | 1497 |
| Figure 180. | ADC clock scheme ..... | 1500 |
| Figure 181. | ADC1 connectivity ..... | 1501 |
| Figure 182. | ADC2 connectivity ..... | 1502 |
| Figure 183. | ADC calibration ..... | 1506 |
| Figure 184. | Updating the ADC offset calibration factor ..... | 1506 |
| Figure 185. | Mixing single-ended and differential channels ..... | 1507 |
| Figure 186. | Enabling / Disabling the ADC ..... | 1511 |
| Figure 187. | Analog-to-digital conversion time ..... | 1516 |
| Figure 188. | Stopping ongoing regular conversions ..... | 1517 |
| Figure 189. | Stopping ongoing regular and injected conversions ..... | 1517 |
| Figure 190. | Triggers are shared between ADC master and ADC slave ..... | 1519 |
| Figure 191. | Injected conversion latency ..... | 1522 |
| Figure 192. | Example of ADC_JSQR queue of context (sequence change) ..... | 1525 |
| Figure 193. | Example of ADC_JSQR queue of context (trigger change) ..... | 1526 |
| Figure 194. | Example of ADC_JSQR queue of context with overflow before conversion ..... | 1526 |
| Figure 195. | Example of ADC_JSQR queue of context with overflow during conversion ..... | 1527 |
| Figure 196. | Example of ADC_JSQR queue of context with empty queue (case JQM=0) ..... | 1527 |
| Figure 197. | Example of ADC_JSQR queue of context with empty queue (case JQM=1) ..... | 1528 |
| Figure 198. | Flushing ADC_JSQR queue of context by setting JADSTP=1 (JQM=0). Case when JADSTP occurs during an ongoing conversion. .... | 1528 |
| Figure 199. | Flushing ADC_JSQR queue of context by setting JADSTP=1 (JQM=0). Case when JADSTP occurs during an ongoing conversion and a new trigger occurs. .... | 1529 |
| Figure 200. | Flushing ADC_JSQR queue of context by setting JADSTP=1 (JQM=0). Case when JADSTP occurs outside an ongoing conversion ..... | 1529 |
| Figure 201. | Flushing ADC_JSQR queue of context by setting JADSTP=1 (JQM=1) ..... | 1530 |
| Figure 202. | Flushing ADC_JSQR queue of context by setting ADDIS=1 (JQM=0) ..... | 1530 |
| Figure 203. | Flushing ADC_JSQR queue of context by setting ADDIS=1 (JQM=1) ..... | 1531 |
| Figure 204. | Single conversions of a sequence, software trigger ..... | 1533 |
| Figure 205. | Continuous conversion of a sequence, software trigger ..... | 1533 |
| Figure 206. | Single conversions of a sequence, hardware trigger ..... | 1534 |
| Figure 207. | Continuous conversions of a sequence, hardware trigger ..... | 1534 |
| Figure 208. | Right alignment (offset disabled, unsigned value) ..... | 1536 |
| Figure 209. | Right alignment (offset enabled, signed value) ..... | 1536 |
| Figure 210. | Left alignment (offset disabled, unsigned value) ..... | 1537 |
| Figure 211. | Left alignment (offset enabled, signed value) ..... | 1537 |
| Figure 212. | Example of overrun (OVRMOD = 0) ..... | 1540 |
| Figure 213. | Example of overrun (OVRMOD = 1) ..... | 1540 |
| Figure 214. | AUTDLY=1, regular conversion in continuous mode, software trigger ..... | 1544 |
| Figure 215. | AUTDLY=1, regular HW conversions interrupted by injected conversions (DISCEN=0; JDISCEN=0) ..... | 1544 |
| Figure 216. | AUTDLY=1, regular HW conversions interrupted by injected conversions. (DISCEN=1, JDISCEN=1) ..... | 1545 |
| Figure 217. | AUTDLY=1, regular continuous conversions interrupted by injected conversions ..... | 1546 |
| Figure 218. | AUTDLY=1 in auto- injected mode (JAUTO=1) ..... | 1546 |
| Figure 219. | Analog watchdog guarded area ..... | 1547 |
| Figure 220. | ADCy_AWDx_OUT signal generation (on all regular channels) ..... | 1549 |
| Figure 221. | ADCy_AWDx_OUT signal generation (AWDx flag not cleared by SW) ..... | 1549 |
| Figure 222. | ADCy_AWDx_OUT signal generation (on a single regular channel) ..... | 1550 |
| Figure 223. | ADCy_AWDx_OUT signal generation (on all injected channels) ..... | 1550 |
| Figure 224. | 16-bit result oversampling with 10-bits right shift and rouding ..... | 1551 |
| Figure 225. | Triggered regular oversampling mode (TROVS bit = 1) ..... | 1553 |
| Figure 226. | Regular oversampling modes (4x ratio) ..... | 1554 |
| Figure 227. | Regular and injected oversampling modes used simultaneously ..... | 1554 |
| Figure 228. | Triggered regular oversampling with injection ..... | 1555 |
| Figure 229. | Oversampling in auto-injected mode ..... | 1555 |
| Figure 230. | Dual ADC block diagram(1) ..... | 1558 |
| Figure 231. | Injected simultaneous mode on 4 channels: dual ADC mode ..... | 1559 |
| Figure 232. | Regular simultaneous mode on 16 channels: dual ADC mode ..... | 1561 |
| Figure 233. | Interleaved mode on 1 channel in continuous conversion mode: dual ADC mode ..... | 1562 |
| Figure 234. | Interleaved mode on 1 channel in single conversion mode: dual ADC mode ..... | 1563 |
| Figure 235. | Interleaved conversion with injection ..... | 1563 |
| Figure 236. | Alternate trigger: injected group of each ADC ..... | 1564 |
| Figure 237. | Alternate trigger: 4 injected channels (each ADC) in discontinuous mode ..... | 1565 |
| Figure 238. | Alternate + regular simultaneous ..... | 1566 |
| Figure 239. | Case of trigger occurring during injected conversion ..... | 1566 |
| Figure 240. | Interleaved single channel CH0 with injected sequence CH11, CH12 ..... | 1567 |
| Figure 241. | Two Interleaved channels (CH1, CH2) with injected sequence CH11, CH12 - case 1: Master interrupted first ..... | 1567 |
| Figure 242. | Two Interleaved channels (CH1, CH2) with injected sequence CH11, CH12 - case 2: Slave interrupted first ..... | 1567 |
| Figure 243. | DMA Requests in regular simultaneous mode when DAMDF=0b00 ..... | 1568 |
| Figure 244. | DMA requests in regular simultaneous mode when DAMDF=0b10 ..... | 1569 |
| Figure 245. | DMA requests in interleaved mode when DAMDF=0b10 ..... | 1569 |
| Figure 246. | Temperature sensor channel block diagram ..... | 1571 |
| Figure 247. | VBAT channel block diagram ..... | 1573 |
| Figure 248. | VREFINT channel block diagram ..... | 1573 |
| Figure 249. VDDCORE channel block diagram ..... | 1575 |
| Figure 250. Temperature sensor functional block diagram ..... | 1624 |
| Figure 251. Method for low REF_CLK frequencies ..... | 1626 |
| Figure 252. Method for high REF_CLK frequencies ..... | 1626 |
| Figure 253. Temperature sensor sequence ..... | 1629 |
| Figure 254. Dual-channel DAC block diagram ..... | 1642 |
| Figure 255. Data registers in single DAC channel mode ..... | 1645 |
| Figure 256. Data registers in dual DAC channel mode ..... | 1645 |
| Figure 257. Timing diagram for conversion with trigger disabled TEN = 0 ..... | 1646 |
| Figure 258. DAC LFSR register calculation algorithm ..... | 1648 |
| Figure 259. DAC conversion (SW trigger enabled) with LFSR wave generation ..... | 1648 |
| Figure 260. DAC triangle wave generation ..... | 1649 |
| Figure 261. DAC conversion (SW trigger enabled) with triangle wave generation ..... | 1649 |
| Figure 262. DAC sample and hold mode phase diagram ..... | 1652 |
| Figure 263. Single DFSDM block diagram ..... | 1686 |
| Figure 264. Input channel pins redirection ..... | 1690 |
| Figure 265. Channel transceiver timing diagrams ..... | 1693 |
| Figure 266. Clock absence timing diagram for SPI ..... | 1694 |
| Figure 267. Clock absence timing diagram for Manchester coding ..... | 1695 |
| Figure 268. First conversion for Manchester coding (Manchester synchronization) ..... | 1697 |
| Figure 269. DFSDM_CHyDATINR registers operation modes and assignment ..... | 1701 |
| Figure 270. Example: Sinc3 filter response ..... | 1703 |
| Figure 271. DCMI block diagram ..... | 1750 |
| Figure 272. DCMI signal waveforms ..... | 1751 |
| Figure 273. Timing diagram ..... | 1753 |
| Figure 274. Frame capture waveforms in snapshot mode ..... | 1755 |
| Figure 275. Frame capture waveforms in continuous grab mode ..... | 1756 |
| Figure 276. Coordinates and size of the window after cropping ..... | 1756 |
| Figure 277. Data capture waveforms ..... | 1757 |
| Figure 278. Pixel raster scan order ..... | 1758 |
| Figure 279. LTDC block diagram ..... | 1772 |
| Figure 280. LTDC synchronous timings ..... | 1775 |
| Figure 281. Layer window programmable parameters ..... | 1778 |
| Figure 282. Blending two layers with background ..... | 1780 |
| Figure 283. Interrupt events ..... | 1782 |
| Figure 284. DSI block diagram ..... | 1807 |
| Figure 285. DSI Host architecture ..... | 1809 |
| Figure 286. Flow to update the LTDC interface configuration using shadow registers ..... | 1814 |
| Figure 287. Immediate update procedure ..... | 1815 |
| Figure 288. Configuration update during the transmission of a frame ..... | 1815 |
| Figure 289. Adapted command mode usage flow ..... | 1817 |
| Figure 290. 24 bpp APB pixel to byte organization ..... | 1821 |
| Figure 291. 18 bpp APB pixel to byte organization ..... | 1822 |
| Figure 292. 16 bpp APB pixel to byte organization ..... | 1822 |
| Figure 293. 12 bpp APB pixel to byte organization ..... | 1823 |
| Figure 294. 8 bpp APB pixel to byte organization ..... | 1823 |
| Figure 295. Timing of PRESP_TO after a bus-turn-around ..... | 1826 |
| Figure 296. Timing of PRESP_TO after a read request (HS or LP) ..... | 1827 |
| Figure 297. Timing of PRESP_TO after a write request (HS or LP) ..... | 1828 |
| Figure 298. Effect of prep mode at 1 ..... | 1829 |
| Figure 299. Command transmission periods within the image area ..... | 1830 |
| Figure 300. Transmission of commands on the last line of a frame ..... | 1831 |
| Figure 301. LPSIZE for non-burst with sync pulses . . . . . | 1832 |
| Figure 302. LPSIZE for burst or non-burst with sync events . . . . . | 1832 |
| Figure 303. VLPSIZE for non-burst with sync pulses . . . . . | 1834 |
| Figure 304. VLPSIZE for non-burst with sync events . . . . . | 1834 |
| Figure 305. VLPSIZE for burst mode . . . . . | 1834 |
| Figure 306. Location of LPSIZE and VLPSIZE in the image area . . . . . | 1836 |
| Figure 307. Clock lane and data lane in HS . . . . . | 1837 |
| Figure 308. Clock lane in HS and data lanes in LP . . . . . | 1838 |
| Figure 309. Clock lane and data lane in LP . . . . . | 1838 |
| Figure 310. Command transmission by the generic interface . . . . . | 1839 |
| Figure 311. Vertical color bar mode . . . . . | 1841 |
| Figure 312. Horizontal color bar mode . . . . . | 1841 |
| Figure 313. RGB888 BER testing pattern . . . . . | 1842 |
| Figure 314. Vertical pattern (103x15) . . . . . | 1843 |
| Figure 315. Horizontal pattern (103x15) . . . . . | 1843 |
| Figure 316. PLL block diagram . . . . . | 1846 |
| Figure 317. Error sources . . . . . | 1849 |
| Figure 318. Video packet transmission configuration flow diagram . . . . . | 1860 |
| Figure 319. Programming sequence to send a test pattern . . . . . | 1862 |
| Figure 320. Frame configuration registers . . . . . | 1863 |
| Figure 321. RNG block diagram . . . . . | 1920 |
| Figure 322. Entropy source model . . . . . | 1921 |
| Figure 323. RNG initialization overview . . . . . | 1923 |
| Figure 324. HASH block diagram . . . . . | 1934 |
| Figure 325. Message data swapping feature . . . . . | 1936 |
| Figure 326. HASH suspend/resume mechanism . . . . . | 1942 |
| Figure 327. CRYPT block diagram . . . . . | 1959 |
| Figure 328. AES-ECB mode overview . . . . . | 1962 |
| Figure 329. AES-CBC mode overview . . . . . | 1963 |
| Figure 330. AES-CTR mode overview . . . . . | 1964 |
| Figure 331. AES-GCM mode overview . . . . . | 1965 |
| Figure 332. AES-GMAC mode overview . . . . . | 1965 |
| Figure 333. AES-CCM mode overview . . . . . | 1966 |
| Figure 334. Example of suspend mode management . . . . . | 1971 |
| Figure 335. DES/TDES-ECB mode encryption . . . . . | 1972 |
| Figure 336. DES/TDES-ECB mode decryption . . . . . | 1973 |
| Figure 337. DES/TDES-CBC mode encryption . . . . . | 1974 |
| Figure 338. DES/TDES-CBC mode decryption . . . . . | 1975 |
| Figure 339. AES-ECB mode encryption . . . . . | 1977 |
| Figure 340. AES-ECB mode decryption . . . . . | 1978 |
| Figure 341. AES-CBC mode encryption . . . . . | 1979 |
| Figure 342. AES-CBC mode decryption . . . . . | 1980 |
| Figure 343. Message construction for the Counter mode . . . . . | 1982 |
| Figure 344. AES-CTR mode encryption . . . . . | 1983 |
| Figure 345. AES-CTR mode decryption . . . . . | 1984 |
| Figure 346. Message construction for the Galois/counter mode . . . . . | 1986 |
| Figure 347. Message construction for the Galois Message Authentication Code mode . . . . . | 1991 |
| Figure 348. Message construction for the Counter with CBC-MAC mode . . . . . | 1992 |
| Figure 349. 64-bit block construction according to the data type (IN FIFO) . . . . . | 1999 |
| Figure 350. 128-bit block construction according to the data type . . . . . | 2001 |
| Figure 351. Advanced-control timer block diagram . . . . . | 2027 |
| Figure 352. Counter timing diagram with prescaler division change from 1 to 2 . . . . . | 2029 |
| Figure 353. | Counter timing diagram with prescaler division change from 1 to 4 . . . . . | 2029 |
| Figure 354. | Counter timing diagram, internal clock divided by 1 . . . . . | 2031 |
| Figure 355. | Counter timing diagram, internal clock divided by 2 . . . . . | 2031 |
| Figure 356. | Counter timing diagram, internal clock divided by 4 . . . . . | 2032 |
| Figure 357. | Counter timing diagram, internal clock divided by N . . . . . | 2032 |
| Figure 358. | Counter timing diagram, update event when ARPE=0 (TIMx_ARR not preloaded) . . . . . | 2033 |
| Figure 359. | Counter timing diagram, update event when ARPE=1 (TIMx_ARR preloaded) . . . . . | 2033 |
| Figure 360. | Counter timing diagram, internal clock divided by 1 . . . . . | 2035 |
| Figure 361. | Counter timing diagram, internal clock divided by 2 . . . . . | 2035 |
| Figure 362. | Counter timing diagram, internal clock divided by 4 . . . . . | 2036 |
| Figure 363. | Counter timing diagram, internal clock divided by N . . . . . | 2036 |
| Figure 364. | Counter timing diagram, update event when repetition counter is not used . . . . . | 2037 |
| Figure 365. | Counter timing diagram, internal clock divided by 1, TIMx_ARR = 0x6 . . . . . | 2038 |
| Figure 366. | Counter timing diagram, internal clock divided by 2 . . . . . | 2039 |
| Figure 367. | Counter timing diagram, internal clock divided by 4, TIMx_ARR=0x36 . . . . . | 2039 |
| Figure 368. | Counter timing diagram, internal clock divided by N . . . . . | 2040 |
| Figure 369. | Counter timing diagram, update event with ARPE=1 (counter underflow) . . . . . | 2040 |
| Figure 370. | Counter timing diagram, Update event with ARPE=1 (counter overflow) . . . . . | 2041 |
| Figure 371. | Update rate examples depending on mode and TIMx_RCR register settings . . . . . | 2042 |
| Figure 372. | External trigger input block . . . . . | 2043 |
| Figure 373. | TIM1/TIM8 ETR input circuitry . . . . . | 2043 |
| Figure 374. | Control circuit in normal mode, internal clock divided by 1 . . . . . | 2044 |
| Figure 375. | TI2 external clock connection example . . . . . | 2045 |
| Figure 376. | Control circuit in external clock mode 1 . . . . . | 2046 |
| Figure 377. | External trigger input block . . . . . | 2046 |
| Figure 378. | Control circuit in external clock mode 2 . . . . . | 2047 |
| Figure 379. | Capture/compare channel (example: channel 1 input stage) . . . . . | 2048 |
| Figure 380. | Capture/compare channel 1 main circuit . . . . . | 2048 |
| Figure 381. | Output stage of capture/compare channel (channel 1, idem ch. 2 and 3) . . . . . | 2049 |
| Figure 382. | Output stage of capture/compare channel (channel 4) . . . . . | 2049 |
| Figure 383. | Output stage of capture/compare channel (channel 5, idem ch. 6) . . . . . | 2050 |
| Figure 384. | PWM input mode timing . . . . . | 2052 |
| Figure 385. | Output compare mode, toggle on OC1 . . . . . | 2054 |
| Figure 386. | Edge-aligned PWM waveforms (ARR=8) . . . . . | 2055 |
| Figure 387. | Center-aligned PWM waveforms (ARR=8) . . . . . | 2056 |
| Figure 388. | Generation of 2 phase-shifted PWM signals with 50% duty cycle . . . . . | 2058 |
| Figure 389. | Combined PWM mode on channel 1 and 3 . . . . . | 2059 |
| Figure 390. | 3-phase combined PWM signals with multiple trigger pulses per period . . . . . | 2060 |
| Figure 391. | Complementary output with dead-time insertion . . . . . | 2061 |
| Figure 392. | Dead-time waveforms with delay greater than the negative pulse . . . . . | 2061 |
| Figure 393. | Dead-time waveforms with delay greater than the positive pulse . . . . . | 2062 |
| Figure 394. | Break and Break2 circuitry overview . . . . . | 2064 |
| Figure 395. | Various output behavior in response to a break event on BRK (OSSI = 1) . . . . . | 2066 |
| Figure 396. | PWM output state following BRK and BRK2 pins assertion (OSSI=1) . . . . . | 2067 |
| Figure 397. | PWM output state following BRK assertion (OSSI=0) . . . . . | 2068 |
| Figure 398. | Output redirection (BRK2 request not represented) . . . . . | 2069 |
| Figure 399. | Clearing TIMx OCxREF . . . . . | 2070 |
| Figure 400. | 6-step generation, COM example (OSSR=1) . . . . . | 2071 |
| Figure 401. | Example of one pulse mode . . . . . | 2072 |
| Figure 402. | Retriggerable one pulse mode . . . . . | 2074 |
| Figure 403. | Example of counter operation in encoder interface mode . . . . . | 2075 |
| Figure 404. | Example of encoder interface mode with TI1FP1 polarity inverted . . . . . | 2076 |
| Figure 405. Measuring time interval between edges on 3 signals . . . . . | 2077 |
| Figure 406. Example of Hall sensor interface . . . . . | 2079 |
| Figure 407. Control circuit in reset mode . . . . . | 2080 |
| Figure 408. Control circuit in Gated mode . . . . . | 2081 |
| Figure 409. Control circuit in trigger mode . . . . . | 2082 |
| Figure 410. Control circuit in external clock mode 2 + trigger mode . . . . . | 2083 |
| Figure 411. General-purpose timer block diagram . . . . . | 2130 |
| Figure 412. Counter timing diagram with prescaler division change from 1 to 2 . . . . . | 2132 |
| Figure 413. Counter timing diagram with prescaler division change from 1 to 4 . . . . . | 2132 |
| Figure 414. Counter timing diagram, internal clock divided by 1 . . . . . | 2133 |
| Figure 415. Counter timing diagram, internal clock divided by 2 . . . . . | 2134 |
| Figure 416. Counter timing diagram, internal clock divided by 4 . . . . . | 2134 |
| Figure 417. Counter timing diagram, internal clock divided by N . . . . . | 2135 |
| Figure 418. Counter timing diagram, Update event when ARPE=0 (TIMx_ARR not preloaded) . . . . . | 2135 |
| Figure 419. Counter timing diagram, Update event when ARPE=1 (TIMx_ARR preloaded) . . . . . | 2136 |
| Figure 420. Counter timing diagram, internal clock divided by 1 . . . . . | 2137 |
| Figure 421. Counter timing diagram, internal clock divided by 2 . . . . . | 2137 |
| Figure 422. Counter timing diagram, internal clock divided by 4 . . . . . | 2138 |
| Figure 423. Counter timing diagram, internal clock divided by N . . . . . | 2138 |
| Figure 424. Counter timing diagram, Update event . . . . . | 2139 |
| Figure 425. Counter timing diagram, internal clock divided by 1, TIMx_ARR=0x6 . . . . . | 2140 |
| Figure 426. Counter timing diagram, internal clock divided by 2 . . . . . | 2141 |
| Figure 427. Counter timing diagram, internal clock divided by 4, TIMx_ARR=0x36 . . . . . | 2141 |
| Figure 428. Counter timing diagram, internal clock divided by N . . . . . | 2142 |
| Figure 429. Counter timing diagram, Update event with ARPE=1 (counter underflow) . . . . . | 2142 |
| Figure 430. Counter timing diagram, Update event with ARPE=1 (counter overflow) . . . . . | 2143 |
| Figure 431. Control circuit in normal mode, internal clock divided by 1 . . . . . | 2144 |
| Figure 432. TI2 external clock connection example . . . . . | 2144 |
| Figure 433. Control circuit in external clock mode 1 . . . . . | 2145 |
| Figure 434. External trigger input block . . . . . | 2146 |
| Figure 435. Control circuit in external clock mode 2 . . . . . | 2147 |
| Figure 436. Capture/Compare channel (example: channel 1 input stage) . . . . . | 2147 |
| Figure 437. Capture/Compare channel 1 main circuit . . . . . | 2148 |
| Figure 438. Output stage of Capture/Compare channel (channel 1) . . . . . | 2148 |
| Figure 439. PWM input mode timing . . . . . | 2150 |
| Figure 440. Output compare mode, toggle on OC1 . . . . . | 2152 |
| Figure 441. Edge-aligned PWM waveforms (ARR=8) . . . . . | 2153 |
| Figure 442. Center-aligned PWM waveforms (ARR=8) . . . . . | 2154 |
| Figure 443. Generation of 2 phase-shifted PWM signals with 50% duty cycle . . . . . | 2155 |
| Figure 444. Combined PWM mode on channels 1 and 3 . . . . . | 2157 |
| Figure 445. Clearing TIMx OCxREF . . . . . | 2158 |
| Figure 446. Example of one-pulse mode . . . . . | 2159 |
| Figure 447. Retriggerable one-pulse mode . . . . . | 2161 |
| Figure 448. Example of counter operation in encoder interface mode . . . . . | 2162 |
| Figure 449. Example of encoder interface mode with TI1FP1 polarity inverted . . . . . | 2163 |
| Figure 450. Control circuit in reset mode . . . . . | 2164 |
| Figure 451. Control circuit in gated mode . . . . . | 2165 |
| Figure 452. Control circuit in trigger mode . . . . . | 2166 |
| Figure 453. Control circuit in external clock mode 2 + trigger mode . . . . . | 2167 |
| Figure 454. Master/Slave timer example . . . . . | 2168 |
| Figure 455. Master/slave connection example with 1 channel only timers . . . . . | 2168 |
| Figure 456. Gating TIM2 with OC1REF of TIM3 . . . . . | 2169 |
| Figure 457. Gating TIM2 with Enable of TIM3 ..... | 2170 |
| Figure 458. Triggering TIM2 with update of TIM3 ..... | 2171 |
| Figure 459. Triggering TIM2 with Enable of TIM3 ..... | 2171 |
| Figure 460. Triggering TIM3 and TIM2 with TIM3 TI1 input. .... | 2172 |
| Figure 461. General-purpose timer block diagram (TIM12) ..... | 2205 |
| Figure 462. General-purpose timer block diagram (TIM13/TIM14) ..... | 2206 |
| Figure 463. Counter timing diagram with prescaler division change from 1 to 2 ..... | 2208 |
| Figure 464. Counter timing diagram with prescaler division change from 1 to 4 ..... | 2208 |
| Figure 465. Counter timing diagram, internal clock divided by 1 ..... | 2209 |
| Figure 466. Counter timing diagram, internal clock divided by 2 ..... | 2210 |
| Figure 467. Counter timing diagram, internal clock divided by 4 ..... | 2210 |
| Figure 468. Counter timing diagram, internal clock divided by N. .... | 2211 |
| Figure 469. Counter timing diagram, update event when ARPE=0 (TIMx_ARR not preloaded) ..... | 2211 |
| Figure 470. Counter timing diagram, update event when ARPE=1 (TIMx_ARR preloaded) ..... | 2212 |
| Figure 471. Control circuit in normal mode, internal clock divided by 1 ..... | 2213 |
| Figure 472. TI2 external clock connection example. .... | 2213 |
| Figure 473. Control circuit in external clock mode 1 ..... | 2214 |
| Figure 474. Capture/compare channel (example: channel 1 input stage) ..... | 2215 |
| Figure 475. Capture/compare channel 1 main circuit ..... | 2215 |
| Figure 476. Output stage of capture/compare channel (channel 1) ..... | 2216 |
| Figure 477. PWM input mode timing ..... | 2218 |
| Figure 478. Output compare mode, toggle on OC1. .... | 2220 |
| Figure 479. Edge-aligned PWM waveforms (ARR=8) ..... | 2221 |
| Figure 480. Combined PWM mode on channel 1 and 2 ..... | 2222 |
| Figure 481. Example of one pulse mode. .... | 2223 |
| Figure 482. Retriggerable one pulse mode ..... | 2224 |
| Figure 483. Measuring time interval between edges on 2 signals ..... | 2225 |
| Figure 484. Control circuit in reset mode ..... | 2226 |
| Figure 485. Control circuit in gated mode ..... | 2227 |
| Figure 486. Control circuit in trigger mode. .... | 2227 |
| Figure 487. TIM15 block diagram ..... | 2259 |
| Figure 488. TIM16/TIM17 block diagram ..... | 2260 |
| Figure 489. Counter timing diagram with prescaler division change from 1 to 2 ..... | 2262 |
| Figure 490. Counter timing diagram with prescaler division change from 1 to 4 ..... | 2262 |
| Figure 491. Counter timing diagram, internal clock divided by 1 ..... | 2264 |
| Figure 492. Counter timing diagram, internal clock divided by 2 ..... | 2264 |
| Figure 493. Counter timing diagram, internal clock divided by 4 ..... | 2265 |
| Figure 494. Counter timing diagram, internal clock divided by N. .... | 2265 |
| Figure 495. Counter timing diagram, update event when ARPE=0 (TIMx_ARR not preloaded) ..... | 2266 |
| Figure 496. Counter timing diagram, update event when ARPE=1 (TIMx_ARR preloaded) ..... | 2266 |
| Figure 497. Update rate examples depending on mode and TIMx_RCR register settings ..... | 2268 |
| Figure 498. Control circuit in normal mode, internal clock divided by 1 ..... | 2269 |
| Figure 499. TI2 external clock connection example. .... | 2269 |
| Figure 500. Control circuit in external clock mode 1 ..... | 2270 |
| Figure 501. Capture/compare channel (example: channel 1 input stage) ..... | 2271 |
| Figure 502. Capture/compare channel 1 main circuit ..... | 2271 |
| Figure 503. Output stage of capture/compare channel (channel 1) ..... | 2272 |
| Figure 504. Output stage of capture/compare channel (channel 2 for TIM15) ..... | 2272 |
| Figure 505. PWM input mode timing . . . . . | 2274 |
| Figure 506. Output compare mode, toggle on OC1 . . . . . | 2276 |
| Figure 507. Edge-aligned PWM waveforms (ARR=8) . . . . . | 2277 |
| Figure 508. Combined PWM mode on channel 1 and 2 . . . . . | 2278 |
| Figure 509. Complementary output with dead-time insertion . . . . . | 2279 |
| Figure 510. Dead-time waveforms with delay greater than the negative pulse . . . . . | 2279 |
| Figure 511. Dead-time waveforms with delay greater than the positive pulse . . . . . | 2280 |
| Figure 512. Break circuitry overview . . . . . | 2282 |
| Figure 513. Output behavior in response to a break . . . . . | 2284 |
| Figure 514. Output redirection . . . . . | 2286 |
| Figure 515. 6-step generation, COM example (OSSR=1) . . . . . | 2287 |
| Figure 516. Example of one pulse mode . . . . . | 2288 |
| Figure 517. Retriggerable one pulse mode . . . . . | 2290 |
| Figure 518. Measuring time interval between edges on 2 signals . . . . . | 2291 |
| Figure 519. Control circuit in reset mode . . . . . | 2292 |
| Figure 520. Control circuit in gated mode . . . . . | 2293 |
| Figure 521. Control circuit in trigger mode . . . . . | 2294 |
| Figure 522. Basic timer block diagram . . . . . | 2344 |
| Figure 523. Counter timing diagram with prescaler division change from 1 to 2 . . . . . | 2346 |
| Figure 524. Counter timing diagram with prescaler division change from 1 to 4 . . . . . | 2346 |
| Figure 525. Counter timing diagram, internal clock divided by 1 . . . . . | 2347 |
| Figure 526. Counter timing diagram, internal clock divided by 2 . . . . . | 2348 |
| Figure 527. Counter timing diagram, internal clock divided by 4 . . . . . | 2348 |
| Figure 528. Counter timing diagram, internal clock divided by N . . . . . | 2349 |
| Figure 529. Counter timing diagram, update event when ARPE = 0 (TIMx_ARR not preloaded) . . . . . | 2349 |
| Figure 530. Counter timing diagram, update event when ARPE=1 (TIMx_ARR preloaded) . . . . . | 2350 |
| Figure 531. Control circuit in normal mode, internal clock divided by 1 . . . . . | 2351 |
| Figure 532. Low-power timer block diagram (LPTIM1 and LPTIM2) . . . . . | 2358 |
| Figure 533. Low-power timer block diagram (LPTIM3) . . . . . | 2359 |
| Figure 534. Low-power timer block diagram (LPTIM4 and LPTIM5) . . . . . | 2359 |
| Figure 535. Glitch filter timing diagram . . . . . | 2364 |
| Figure 536. LPTIM output waveform, single counting mode configuration . . . . . | 2366 |
| Figure 537. LPTIM output waveform, Single counting mode configuration and Set-once mode activated (WAVE bit is set) . . . . . | 2366 |
| Figure 538. LPTIM output waveform, Continuous counting mode configuration . . . . . | 2367 |
| Figure 539. Waveform generation . . . . . | 2368 |
| Figure 540. Encoder mode counting sequence . . . . . | 2372 |
| Figure 541. STGEN block diagram . . . . . | 2389 |
| Figure 542. Watchdogs top view . . . . . | 2406 |
| Figure 543. Independent watchdog block diagram . . . . . | 2408 |
| Figure 544. Reset timing due to timeout . . . . . | 2410 |
| Figure 545. Reset timing due to refresh in the not allowed area . . . . . | 2411 |
| Figure 546. Changing PR, RL, and performing a refresh(1) . . . . . | 2412 |
| Figure 547. Independent watchdog interrupt timing diagram . . . . . | 2414 |
| Figure 548. Watchdog block diagram . . . . . | 2424 |
| Figure 549. Window watchdog timing diagram . . . . . | 2425 |
| Figure 550. RTC block diagram . . . . . | 2432 |
| Figure 551. TAMP block diagram . . . . . | 2482 |
| Figure 552. Backup registers secure protections . . . . . | 2484 |
| Figure 553. Block diagram . . . . . | 2511 |
| Figure 554. I2C-bus protocol | 2513 |
| Figure 555. Setup and hold timings | 2515 |
| Figure 556. I2C initialization flow | 2517 |
| Figure 557. Data reception | 2518 |
| Figure 558. Data transmission | 2519 |
| Figure 559. Target initialization flow | 2522 |
| Figure 560. Transfer sequence flow for I2C target transmitter, NOSTRETCH = 0 | 2524 |
| Figure 561. Transfer sequence flow for I2C target transmitter, NOSTRETCH = 1 | 2525 |
| Figure 562. Transfer bus diagrams for I2C target transmitter (mandatory events only) | 2526 |
| Figure 563. Transfer sequence flow for I2C target receiver, NOSTRETCH = 0 | 2527 |
| Figure 564. Transfer sequence flow for I2C target receiver, NOSTRETCH = 1 | 2528 |
| Figure 565. Transfer bus diagrams for I2C target receiver (mandatory events only) | 2528 |
| Figure 566. Controller clock generation | 2530 |
| Figure 567. Controller initialization flow | 2532 |
| Figure 568. 10-bit address read access with HEAD10R = 0 | 2532 |
| Figure 569. 10-bit address read access with HEAD10R = 1 | 2533 |
| Figure 570. Transfer sequence flow for I2C controller transmitter, N ≤ 255 bytes | 2534 |
| Figure 571. Transfer sequence flow for I2C controller transmitter, N > 255 bytes | 2535 |
| Figure 572. Transfer bus diagrams for I2C controller transmitter (mandatory events only) | 2536 |
| Figure 573. Transfer sequence flow for I2C controller receiver, N ≤ 255 bytes | 2538 |
| Figure 574. Transfer sequence flow for I2C controller receiver, N > 255 bytes | 2539 |
| Figure 575. Transfer bus diagrams for I2C controller receiver (mandatory events only) | 2540 |
| Figure 576. Timeout intervals for tLOW:SEXT, tLOW:MEXT | 2544 |
| Figure 577. Transfer sequence flow for SMBus target transmitter N bytes + PEC | 2548 |
| Figure 578. Transfer bus diagram for SMBus target transmitter (SBC = 1) | 2548 |
| Figure 579. Transfer sequence flow for SMBus target receiver N bytes + PEC | 2550 |
| Figure 580. Bus transfer diagrams for SMBus target receiver (SBC = 1) | 2551 |
| Figure 581. Bus transfer diagrams for SMBus controller transmitter | 2552 |
| Figure 582. Bus transfer diagrams for SMBus controller receiver | 2554 |
| Figure 583. USART block diagram | 2578 |
| Figure 584. Word length programming | 2581 |
| Figure 585. Configurable stop bits | 2583 |
| Figure 586. TC/TXE behavior when transmitting | 2586 |
| Figure 587. Start bit detection when oversampling by 16 or 8 | 2587 |
| Figure 588. usart_ker_ck clock divider block diagram | 2590 |
| Figure 589. Data sampling when oversampling by 16 | 2591 |
| Figure 590. Data sampling when oversampling by 8 | 2592 |
| Figure 591. Mute mode using Idle line detection | 2599 |
| Figure 592. Mute mode using address mark detection | 2600 |
| Figure 593. Break detection in LIN mode (11-bit break length - LBDL bit is set) | 2603 |
| Figure 594. Break detection in LIN mode vs. Framing error detection | 2604 |
| Figure 595. USART example of synchronous master transmission | 2605 |
| Figure 596. USART data clock timing diagram in synchronous master mode (M bits = 00) | 2605 |
| Figure 597. USART data clock timing diagram in synchronous master mode (M bits = 01) | 2606 |
| Figure 598. USART data clock timing diagram in synchronous slave mode (M bits = 00) | 2607 |
| Figure 599. ISO 7816-3 asynchronous protocol | 2609 |
| Figure 600. Parity error detection using the 1.5 stop bits ..... | 2611 |
| Figure 601. IrDA SIR ENDEC block diagram. .... | 2615 |
| Figure 602. IrDA data modulation (3/16) - normal mode ..... | 2615 |
| Figure 603. Transmission using DMA ..... | 2617 |
| Figure 604. Reception using DMA. .... | 2618 |
| Figure 605. Hardware flow control between 2 USARTs ..... | 2618 |
| Figure 606. RS232 RTS flow control ..... | 2619 |
| Figure 607. RS232 CTS flow control ..... | 2620 |
| Figure 608. Wake-up event verified (wake-up event = address match, FIFO disabled) ..... | 2623 |
| Figure 609. Wake-up event not verified (wake-up event = address match, FIFO disabled) ..... | 2623 |
| Figure 610. SPI2S block diagram ..... | 2666 |
| Figure 611. Full-duplex single master/ single slave application. .... | 2668 |
| Figure 612. Half-duplex single master/ single slave application ..... | 2669 |
| Figure 613. Simplex single master/single slave application (master in transmit-only/ slave in receive-only mode) ..... | 2670 |
| Figure 614. Master and three independent slaves at star topology ..... | 2671 |
| Figure 615. Master and three slaves at circular (daisy chain) topology. .... | 2672 |
| Figure 616. Multimaster application. .... | 2673 |
| Figure 617. Scheme of SS control logic. .... | 2675 |
| Figure 618. Data flow timing control (SSOE=1, SSOM=0, SSM=0) ..... | 2675 |
| Figure 619. SS interleaving pulses between data (SSOE=1, SSOM=1,SSM=0). .... | 2676 |
| Figure 620. Data clock timing diagram ..... | 2678 |
| Figure 621. Data alignment when data size is not equal to 8-bit, 16-bit or 32-bit ..... | 2679 |
| Figure 622. Packing data in FIFO for transmission and reception. .... | 2687 |
| Figure 623. TI mode transfer ..... | 2689 |
| Figure 624. Optional configurations of slave behavior at detection of underrun condition ..... | 2691 |
| Figure 625. Low-power mode application example ..... | 2695 |
| Figure 626. Waveform examples ..... | 2702 |
| Figure 627. Master I2S Philips protocol waveforms (16/32-bit full accuracy) ..... | 2703 |
| Figure 628. I2S Philips standard waveforms ..... | 2703 |
| Figure 629. Master MSB Justified 16-bit or 32-bit full-accuracy length ..... | 2704 |
| Figure 630. Master MSB justified 16 or 24-bit data length. .... | 2704 |
| Figure 631. Slave MSB justified. .... | 2705 |
| Figure 632. LSB justified 16 or 24-bit data length ..... | 2705 |
| Figure 633. Master PCM when the frame length is equal the data length. .... | 2706 |
| Figure 634. Master PCM standard waveforms (16 or 24-bit data length) ..... | 2706 |
| Figure 635. Slave PCM waveforms ..... | 2707 |
| Figure 636. Startup sequence, I2S Philips standard, master. .... | 2710 |
| Figure 637. Startup sequence, I2S Philips standard, slave. .... | 2710 |
| Figure 638. Stop sequence, I2S Philips standard, master. .... | 2711 |
| Figure 639. I2S clock generator architecture ..... | 2712 |
| Figure 640. Data Format ..... | 2714 |
| Figure 641. Handling of underrun situation ..... | 2716 |
| Figure 642. Handling of overrun situation ..... | 2717 |
| Figure 643. Frame error detection, with FIXCH=0. .... | 2718 |
| Figure 644. Frame error detection, with FIXCH=1. .... | 2718 |
| Figure 645. SAI functional block diagram ..... | 2747 |
| Figure 646. Audio frame ..... | 2751 |
| Figure 647. FS role is start of frame + channel side identification (FSDEF = TRIS = 1) ..... | 2753 |
| Figure 648. FS role is start of frame (FSDEF = 0) ..... | 2754 |
| Figure 649. Slot size configuration with FBOFF = 0 in SAI_xSLOTR ..... | 2755 |
| Figure 650. First bit offset ..... | 2755 |
| Figure 651. Audio block clock generator overview ..... | 2757 |
| Figure 652. PDM typical connection and timing ..... | 2761 |
| Figure 653. Detailed PDM interface block diagram ..... | 2762 |
| Figure 654. Start-up sequence ..... | 2763 |
| Figure 655. SAI_ADR format in TDM mode, 32-bit slot width ..... | 2764 |
| Figure 656. SAI_ADR format in TDM mode, 16-bit slot width ..... | 2765 |
| Figure 657. SAI_ADR format in TDM mode, 8-bit slot width ..... | 2766 |
| Figure 658. AC'97 audio frame ..... | 2769 |
| Figure 659. Example of typical AC'97 configuration on devices featuring at least two embedded SAIs (three external AC'97 decoders) ..... | 2770 |
| Figure 660. SPDIF format ..... | 2771 |
| Figure 661. SAI_xDR register ordering ..... | 2772 |
| Figure 662. Data companding hardware in an audio block in the SAI ..... | 2775 |
| Figure 663. Tristate strategy on SD output line on an inactive slot ..... | 2777 |
| Figure 664. Tristate on output data line in a protocol like I2S ..... | 2778 |
| Figure 665. Overrun detection error ..... | 2779 |
| Figure 666. FIFO underrun event ..... | 2779 |
| Figure 667. SPDIFRX block diagram ..... | 2817 |
| Figure 668. S/SPDIF sub-frame format ..... | 2818 |
| Figure 669. S/SPDIF block format ..... | 2819 |
| Figure 670. S/SPDIF Preambles ..... | 2819 |
| Figure 671. Channel coding example ..... | 2820 |
| Figure 672. SPDIFRX decoder ..... | 2821 |
| Figure 673. Noise filtering and edge detection ..... | 2821 |
| Figure 674. Thresholds ..... | 2823 |
| Figure 675. Synchronization flowchart ..... | 2825 |
| Figure 676. Synchronization process scheduling ..... | 2826 |
| Figure 677. SPDIFRX States ..... | 2827 |
| Figure 678. SPDIFRX_FMTx_DR register format ..... | 2829 |
| Figure 679. Channel/user data format ..... | 2830 |
| Figure 680. S/SPDIF overrun error when RXSTEO = 0 ..... | 2832 |
| Figure 681. S/SPDIF overrun error when RXSTEO = 1 ..... | 2833 |
| Figure 682. SPDIFRX interface interrupt mapping diagram ..... | 2836 |
| Figure 683. MDIOS block diagram ..... | 2853 |
| Figure 684. MDIO protocol write frame waveform ..... | 2854 |
| Figure 685. MDIO protocol read frame waveform ..... | 2854 |
| Figure 686. SDMMC “no response” and “no data” operations ..... | 2866 |
| Figure 687. SDMMC (multiple) block read operation ..... | 2866 |
| Figure 688. SDMMC (multiple) block write operation ..... | 2867 |
| Figure 689. SDMMC (sequential) stream read operation ..... | 2867 |
| Figure 690. SDMMC (sequential) stream write operation ..... | 2867 |
| Figure 691. SDMMC block diagram ..... | 2869 |
| Figure 692. SDMMC Command and data phase relation ..... | 2871 |
| Figure 693. Control unit ..... | 2873 |
| Figure 694. Command/response path ..... | 2874 |
| Figure 695. Command path state machine (CPSM) ..... | 2875 |
| Figure 696. Data path ..... | 2881 |
| Figure 697. DDR mode data packet clocking ..... | 2882 |
| Figure 698. DDR mode CRC status / boot acknowledgment clocking ..... | 2882 |
| Figure 699. Data path state machine (DPSM) ..... | 2883 |
| Figure 700. CLKMUX unit ..... | 2894 |
| Figure 701. Linked list structures . . . . . | 2896 |
| Figure 702. Asynchronous interrupt generation . . . . . | 2899 |
| Figure 703. Synchronous interrupt period data read . . . . . | 2900 |
| Figure 704. Synchronous interrupt period data write . . . . . | 2900 |
| Figure 705. Asynchronous interrupt period data read . . . . . | 2901 |
| Figure 706. Asynchronous interrupt period data write . . . . . | 2902 |
| Figure 707. Clock stop with SDMMC_CK for DS, HS, SDR12, SDR25. . . . . | 2905 |
| Figure 708. Clock stop with SDMMC_CK for DDR50, SDR50, SDR104. . . . . | 2905 |
| Figure 709. Read Wait with SDMMC_CK < 50 MHz . . . . . | 2906 |
| Figure 710. Read Wait with SDMMC_CK > 50 MHz . . . . . | 2906 |
| Figure 711. CMD12 stream timing . . . . . | 2909 |
| Figure 712. CMD5 Sleep Awake procedure . . . . . | 2911 |
| Figure 713. Normal boot mode operation . . . . . | 2913 |
| Figure 714. Alternative boot mode operation . . . . . | 2914 |
| Figure 715. Command response R1b busy signaling . . . . . | 2915 |
| Figure 716. SDMMC state control . . . . . | 2916 |
| Figure 717. Card cycle power / power up diagram . . . . . | 2917 |
| Figure 718. CMD11 signal voltage switch sequence . . . . . | 2918 |
| Figure 719. Voltage switch transceiver typical application. . . . . | 2920 |
| Figure 720. CAN subsystem . . . . . | 2950 |
| Figure 721. FDCAN block diagram . . . . . | 2952 |
| Figure 722. Transceiver delay measurement . . . . . | 2957 |
| Figure 723. Pin control in bus monitoring mode . . . . . | 2959 |
| Figure 724. Pin control in loop back mode. . . . . | 2961 |
| Figure 725. CAN error state diagram. . . . . | 2962 |
| Figure 726. Message RAM configuration. . . . . | 2963 |
| Figure 727. Standard message ID filter path . . . . . | 2966 |
| Figure 728. Extended message ID filter path. . . . . | 2967 |
| Figure 729. Example of mixed configuration dedicated Tx buffers / Tx FIFO . . . . . | 2973 |
| Figure 730. Example of mixed configuration dedicated Tx buffers / Tx queue . . . . . | 2973 |
| Figure 731. Bit timing . . . . . | 2975 |
| Figure 732. Bypass operation . . . . . | 2977 |
| Figure 733. FSM calibration. . . . . | 2978 |
| Figure 734. Cycle time and global time synchronization . . . . . | 2993 |
| Figure 735. TTCAN level 0 and level 2 drift compensation . . . . . | 2994 |
| Figure 736. Level 0 schedule synchronization state machine . . . . . | 3001 |
| Figure 737. Level 0 master to slave relation . . . . . | 3002 |
| Figure 738. OTG high-speed block diagram . . . . . | 3083 |
| Figure 739. OTG A-B device connection . . . . . | 3086 |
| Figure 740. OTG peripheral-only connection. . . . . | 3088 |
| Figure 741. OTG host-only connection . . . . . | 3092 |
| Figure 742. SOF connectivity (SOF trigger output to TIM and ITR1 connection) . . . . . | 3096 |
| Figure 743. Updating OTG_HFIR dynamically (RLDCTRL = 1) . . . . . | 3098 |
| Figure 744. Device-mode FIFO address mapping and AHB FIFO access mapping . . . . . | 3099 |
| Figure 745. Host-mode FIFO address mapping and AHB FIFO access mapping. . . . . | 3100 |
| Figure 746. Interrupt hierarchy. . . . . | 3104 |
| Figure 747. Transmit FIFO write task . . . . . | 3203 |
| Figure 748. Receive FIFO read task . . . . . | 3204 |
| Figure 749. Normal bulk/control OUT/SETUP . . . . . | 3205 |
| Figure 750. Bulk/control IN transactions . . . . . | 3209 |
| Figure 751. Normal interrupt OUT . . . . . | 3212 |
| Figure 752. Normal interrupt IN . . . . . | 3217 |
| Figure 753. | Isochronous OUT transactions . . . . . | 3219 |
| Figure 754. | Isochronous IN transactions . . . . . | 3222 |
| Figure 755. | Normal bulk/control OUT/SETUP transactions - DMA . . . . . | 3224 |
| Figure 756. | Normal bulk/control IN transaction - DMA. . . . . | 3226 |
| Figure 757. | Normal interrupt OUT transactions - DMA mode . . . . . | 3227 |
| Figure 758. | Normal interrupt IN transactions - DMA mode . . . . . | 3228 |
| Figure 759. | Normal isochronous OUT transaction - DMA mode . . . . . | 3229 |
| Figure 760. | Normal isochronous IN transactions - DMA mode . . . . . | 3230 |
| Figure 761. | Receive FIFO packet read . . . . . | 3236 |
| Figure 762. | Processing a SETUP packet . . . . . | 3238 |
| Figure 763. | Bulk OUT transaction . . . . . | 3245 |
| Figure 764. | TRDT max timing case . . . . . | 3254 |
| Figure 765. | A-device SRP . . . . . | 3255 |
| Figure 766. | B-device SRP . . . . . | 3256 |
| Figure 767. | A-device HNP . . . . . | 3257 |
| Figure 768. | B-device HNP . . . . . | 3259 |
| Figure 769. | USBPHYC block diagram . . . . . | 3262 |
| Figure 770. | USBH block diagram . . . . . | 3274 |
| Figure 771. | Ethernet high-level block diagram . . . . . | 3296 |
| Figure 772. | DMA transmission flow (standard mode) . . . . . | 3299 |
| Figure 773. | DMA transmission flow (OSP mode) . . . . . | 3301 |
| Figure 774. | Receive DMA flow . . . . . | 3303 |
| Figure 775. | Overview of MAC transmission flow . . . . . | 3306 |
| Figure 776. | MAC reception flow . . . . . | 3308 |
| Figure 777. | Packet filtering sequence . . . . . | 3321 |
| Figure 778. | Networked time synchronization . . . . . | 3330 |
| Figure 779. | Propagation delay calculation in clocks supporting peer-to-peer path correction . . . . . | 3331 |
| Figure 780. | System time update using fine correction method . . . . . | 3341 |
| Figure 781. | TCP segmentation offload overview . . . . . | 3358 |
| Figure 782. | TCP segmentation offload flow . . . . . | 3359 |
| Figure 783. | Header and payload fields of segmented packets . . . . . | 3362 |
| Figure 784. | Supported PHY interfaces . . . . . | 3372 |
| Figure 785. | SMA Interface block . . . . . | 3373 |
| Figure 786. | MDIO packet structure (Clause 45) . . . . . | 3373 |
| Figure 787. | MDIO packet structure (Clause 22) . . . . . | 3374 |
| Figure 788. | SMA write operation flow . . . . . | 3376 |
| Figure 789. | Write data packet . . . . . | 3377 |
| Figure 790. | Read data packet . . . . . | 3377 |
| Figure 791. | Media independent interface (MII) signals . . . . . | 3379 |
| Figure 792. | Giga media independent interface (GMII) signals . . . . . | 3381 |
| Figure 793. | RMII block diagram . . . . . | 3383 |
| Figure 794. | Transmission bit order . . . . . | 3384 |
| Figure 795. | Receive bit order . . . . . | 3385 |
| Figure 796. | RGMII block diagram and interface signals . . . . . | 3386 |
| Figure 797. | LPI transitions (Transmit, 100 Mbds) . . . . . | 3395 |
| Figure 798. | LPI Tx clock gating (when LPITCSE = 1) . . . . . | 3396 |
| Figure 799. | LPI transitions (receive, 100 Mbps) . . . . . | 3397 |
| Figure 800. | Descriptor ring structure . . . . . | 3423 |
| Figure 801. | DMA descriptor ring . . . . . | 3425 |
| Figure 802. | Descriptor tail pointer example 1 . . . . . | 3425 |
| Figure 803. | Descriptor tail pointer example 2 . . . . . | 3426 |
| Figure 804. Transmit descriptor (read format) . . . . . | 3427 |
| Figure 805. Transmit descriptor write-back format. . . . . | 3432 |
| Figure 806. Transmit context descriptor format . . . . . | 3436 |
| Figure 807. Receive normal descriptor (read format) . . . . . | 3440 |
| Figure 808. Receive normal descriptor (write-back format) . . . . . | 3443 |
| Figure 809. Receive context descriptor . . . . . | 3450 |
| Figure 810. Generation of ETH_DMAISR flags . . . . . | 3470 |
| Figure 811. HDMI-CEC block diagram . . . . . | 3608 |
| Figure 812. Message structure . . . . . | 3608 |
| Figure 813. Blocks . . . . . | 3609 |
| Figure 814. Bit timings . . . . . | 3609 |
| Figure 815. Signal free time. . . . . | 3610 |
| Figure 816. Arbitration phase. . . . . | 3610 |
| Figure 817. SFT of three nominal bit periods. . . . . | 3610 |
| Figure 818. Error bit timing . . . . . | 3611 |
| Figure 819. Error handling . . . . . | 3613 |
| Figure 820. TXERR detection . . . . . | 3614 |
| Figure 821. Hardware debug port block diagram. . . . . | 3624 |
| Figure 822. Block diagram of debug support infrastructure. . . . . | 3636 |
| Figure 823. Debug clock domains . . . . . | 3638 |
| Figure 824. JTAG TAP state machine . . . . . | 3643 |
| Figure 825. SWD successful data transfer . . . . . | 3647 |
| Figure 826. Debug and access port connections. . . . . | 3656 |
| Figure 827. Debug APB CoreSight™ topology . . . . . | 3671 |
| Figure 828. CoreSight™ timestamp distribution . . . . . | 3678 |
| Figure 829. Embedded cross trigger . . . . . | 3686 |
| Figure 830. Mapping trigger inputs to outputs . . . . . | 3689 |
| Figure 831. Cross trigger configuration example. . . . . | 3690 |
| Figure 832. System Trace Macrocell . . . . . | 3770 |
| Figure 833. Cortex®-M4 CoreSight™ topology . . . . . | 3936 |
Chapters
- 1. Documentation conventions
- 2. Memory and bus architecture
- 3. Boot and security and OTP control (BSEC)
- 4. OTP mapping (OTP)
- 5. DDR3/LPDDR2/LPDDR3 controller (DDRCTRL)
- 6. TrustZone ® address space controller for DDR (TZC)
- 7. DDR physical interface control (DDRPHYC)
- 8. DDR performance monitor (DDRPERFM)
- 9. Power control (PWR)
- 10. Reset and clock control (RCC)
- 11. Hardware semaphore (HSEM)
- 12. Inter-processor communication controller (IPCC)
- 13. General-purpose I/Os (GPIO)
- 14. System configuration controller (SYSCFG)
- 15. Extended TrustZone ® protection controller (ETZPC)
- 16. Block interconnects
- 17. MDMA controller (MDMA)
- 18. Direct memory access controller (DMA)
- 19. DMA request multiplexer (DMAMUX)
- 20. Graphic processor unit (GPU)
- 21. Interrupt list
- 22. Nested Vectored Interrupt Controllers (NVIC)
- 23. Global interrupt controller (GIC)
- 24. Extended interrupt and event controller (EXTI)
- 25. Cyclic redundancy check calculation unit (CRC)
- 26. Flexible memory controller (FMC)
- 27. Quad-SPI interface (QUADSPI)
- 28. Delay block (DLYB)
- 29. Analog-to-digital converters (ADC)
- 30. Digital temperature sensor (DTS)
- 31. Digital-to-analog converter (DAC)
- 32. Voltage reference buffer (VREFBUF)
- 33. Digital filter for sigma delta modulators (DFSDM)
- 34. Digital camera interface (DCMI)
- 35. LCD-TFT display controller (LTDC)
- 36. DSI Host (DSI)
- 37. True random number generator (RNG)
- 38. Hash processor (HASH)
- 39. Cryptographic processor (CRYP)
- 40. Advanced-control timers (TIM1/TIM8)
- 41. General-purpose timers (TIM2/TIM3/TIM4/TIM5)
- 42. General-purpose timers (TIM12/TIM13/TIM14)
- 43. General-purpose timers (TIM15/TIM16/TIM17)
- 44. Basic timers (TIM6/TIM7)
- 45. Low-power timer (LPTIM)
- 46. System timer generator (STGEN)
- 47. Watchdogs overview
- 48. Independent watchdog (IWDG)
- 49. System window watchdog (WWDG)
- 50. Real-time clock (RTC)
- 51. Tamper and backup registers (TAMP)
- 52. Inter-integrated circuit interface (I2C)
- 53. Universal synchronous/asynchronous receiver transmitter (USART/UART)
- 54. Serial peripheral interface (SPI)
- 55. Serial audio interface (SAI)
- 56. SPDIF receiver interface (SPDIFRX)
- 57. Management data input/output (MDIOS)
- 58. Secure digital input/output MultiMediaCard interface (SDMMC)
- 59. Controller area network with flexible data rate (FDCAN)
- 60. USB on-the-go high-speed (OTG)
- 61. USB HS PHY controller (USBPHYC)
- 62. USB_EHCI/USB_OHCI high/full-speed link controller (USBH)
- 63. Ethernet (ETH): gigabit media access control (GMAC) with DMA controller
- 64. HDMI-CEC controller (CEC)
- 65. Hardware debug port (HDP)
- 66. Debug support (DBG)
- 67. Device electronic signature
- 68. Important security notice
- 69. Revision history
- Index