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.

Contents

1Documentation conventions121
1.1General information121
1.2List of abbreviations for registers121
1.3Register reset value122
1.4Glossary122
1.5Availability of peripherals122
2Memory and bus architecture123
2.1System architecture123
2.1.1Bus architecture123
2.1.2Memory Map organization125
2.2AXI interconnect matrix (AXIM)128
2.2.1AXIM features128
2.2.2AXIM interconnect configuration129
2.2.3Master ports description130
2.2.4Master ports main characteristics130
2.2.5Master ports security characteristics131
2.2.6Slave ports description132
2.2.7Slave ports main characteristics132
2.2.8Slave ports security characteristics133
2.3Multi-layer AHB interconnect133
2.3.1Multi-layer AHB features133
2.3.2Multi-layer AHB interconnect configuration133
2.3.3Multi-layer AHB master ports characteristics134
2.3.4Multi-layer AHB slave ports characteristics135
2.4AXIMC registers136
2.4.1AXIMC peripheral ID4 register (AXIMC_PERIPH_ID_4)136
2.4.2AXIMC peripheral ID5 register (AXIMC_PERIPH_ID_5)136
2.4.3AXIMC peripheral ID6 register (AXIMC_PERIPH_ID_6)137
2.4.4AXIMC peripheral ID7 register (AXIMC_PERIPH_ID_7)137
2.4.5AXIMC peripheral ID0 register (AXIMC_PERIPH_ID_0)137
2.4.6AXIMC peripheral ID1 register (AXIMC_PERIPH_ID_1)138
2.4.7AXIMC peripheral ID2 register (AXIMC_PERIPH_ID_2)138
2.4.8AXIMC peripheral ID3 register (AXIMC_PERIPH_ID_3) .....138
2.4.9AXIMC component ID0 register (AXIMC_COMP_ID_0) .....139
2.4.10AXIMC component ID1 register (AXIMC_COMP_ID_1) .....139
2.4.11AXIMC component ID2 register (AXIMC_COMP_ID_2) .....140
2.4.12AXIMC component ID3 register (AXIMC_COMP_ID_3) .....140
2.4.13AXIMC master x packing functionality register
(AXIMC_Mx_FN_MOD2) .....
140
2.4.14AXIMC master x AHB conversion override functionality register
(AXIMC_Mx_FN_MOD_AHB) .....
141
2.4.15AXIMC master x read priority register (AXIMC_Mx_READ_QOS) ...142
2.4.16AXIMC master x write priority register (AXIMC_Mx_WRITE_QOS) ..142
2.4.17AXIMC master x issuing capability override functionality register
(AXIMC_Mx_FN_MOD) .....
143
2.4.18AXIMC master x packing functionality register
(AXIMC_Mx_FN_MOD2) .....
143
2.4.19AXIMC master x AHB conversion override functionality register
(AXIMC_Mx_FN_MOD_AHB) .....
144
2.4.20AXIMC master x read priority register (AXIMC_Mx_READ_QOS) ...144
2.4.21AXIMC master x write priority register (AXIMC_Mx_WRITE_QOS) ..145
2.4.22AXIMC master x issuing capability override functionality register
(AXIMC_Mx_FN_MOD) .....
145
2.4.23AXIMC master x read priority register (AXIMC_Mx_READ_QOS) ...146
2.4.24AXIMC master x write priority register (AXIMC_Mx_WRITE_QOS) ..146
2.4.25AXIMC master x packing functionality register
(AXIMC_Mx_FN_MOD) .....
147
2.4.26AXIMC master x read priority register (AXIMC_Mx_READ_QOS) ...147
2.4.27AXIMC master x write priority register (AXIMC_Mx_WRITE_QOS) ..148
2.4.28AXIMC master x issuing capability override functionality register
(AXIMC_Mx_FN_MOD) .....
148
2.4.29AXIMC long burst capability inhibition register
(AXIMC_FN_MOD_LB) .....
149
2.4.30AXIMC master x read priority register (AXIMC_Mx_READ_QOS) ...149
2.4.31AXIMC master x write priority register (AXIMC_Mx_WRITE_QOS) ..150
2.4.32AXIMC master x issuing capability override functionality register
(AXIMC_Mx_FN_MOD) .....
150
2.4.33AXIMC register map .....151
2.5Memory organization .....159
2.5.1Introduction .....159
2.5.2Memory map and register boundary addresses .....160
3Boot and security and OTP control (BSEC) .....171
3.1Introduction .....171
3.2BSEC main features .....171
3.3BSEC functional description .....172
3.3.1BSEC block diagram .....172
3.3.2Interface to OTP .....173
3.3.3OTP security modes .....173
3.3.4Automatic OTP load on system-reset .....174
3.3.5OTP words status .....175
3.3.6OTP operations .....176
3.3.7JTAG registers .....178
3.3.8BSEC lock registers .....178
3.3.9Debug control .....178
3.3.10Sticky lock register .....179
3.4OTP layout .....179
3.4.1DMA requests .....179
3.4.2TrustZone awareness .....179
3.4.3BSEC clocking and initialization .....180
3.5BSEC interrupts .....180
3.6BSEC registers .....180
3.6.1BSEC OTP configuration register (BSEC_OTP_CONFIG) .....181
3.6.2BSEC OTP control register (BSEC_OTP_CONTROL) .....181
3.6.3BSEC OTP write data register (BSEC_OTP_WRDATA) .....182
3.6.4BSEC OTP status register (BSEC_OTP_STATUS) .....182
3.6.5BSEC OTP lock configuration register (BSEC_OTP_LOCK) .....183
3.6.6BSEC debug configuration register (BSEC_ENABLE) .....184
3.6.7BSEC OTP disturbed status register x (BSEC_OTP_DISTURBEDx) ..185
3.6.8BSEC OTP error status register x (BSEC_OTP_ERRORx) .....186
3.6.9BSEC OTP lock status register x (BSEC_OTP_WRLOCKEDx) .....186
3.6.10BSEC OTP sticky programming lock register x
(BSEC_OTP_SPLOCKx) .....
187
3.6.11BSEC OTP shadow write sticky lock register x
(BSEC_OTP_SWLOCKx) .....
188
3.6.12BSEC OTP shadow read sticky lock register x
(BSEC_OTP_SRLOCKx) .....
189
3.6.13BSEC JTAG input register (BSEC_JTAGIN) .....189
3.6.14BSEC JTAG output register (BSEC_JTAGOUT) .....190
3.6.15BSEC scratch register (BSEC_SCRATCH) .....190
3.6.16BSEC shadow register x (BSEC_OTP_DATAx) .....190
3.6.17BSEC hardware configuration register (BSEC_HWCFGR) .....191
3.6.18BSEC version register (BSEC_VERR) .....192
3.6.19BSEC identification register (BSEC_IPIDR) .....192
3.6.20BSEC size identification register (BSEC_SIDR) .....192
3.6.21BSEC register map .....193
4OTP mapping (OTP) .....196
5DDR3/LPDDR2/LPDDR3 controller (DDRCTRL) .....208
5.1Introduction .....208
5.2DDRCTRL features .....208
5.3DDRCTRL block diagram .....209
5.4DDRCTRL architecture overview .....210
5.4.1AXI Port Interface (XPI) .....210
5.4.2Port arbiter (PA) .....211
5.4.3Host Interface (HIF) .....212
5.4.4DDR scheduler (DDRC) .....213
5.4.5APB Interface (APB) .....213
5.4.6DFI Interface (DFI) .....213
5.5DDRCTRL functional description .....214
5.5.1Transaction service control (TSC) and quality of service (QoS) ....214
5.5.2Paging policy options .....215
5.5.3Power saving features .....215
5.5.4Address mapper .....216
5.5.5DRAM timing parameters .....217
5.5.6SDRAM initialization sequence .....217
5.5.7Refresh controls .....217
5.5.8ZQ calibration .....218
5.6DDRCTRL configuration .....218
5.7DDRCTRL registers .....219
5.7.1DDRCTRL master register 0 (DDRCTRL_MSTR) .....219
5.7.2DDRCTRL operating mode status register (DDRCTRL_STAT) ....221
5.7.3DDRCTRL mode register read/write control register 0
(DDRCTRL_MRCTRL0) .....
223
5.7.4DDRCTRL mode register read/write control register 1
(DDRCTRL_MRCTRL1) .....
224
5.7.5DDRCTRL mode register read/write status register
(DDRCTRL_MRSTAT) .....
225
5.7.6DDRCTRL temperature derate enable register
(DDRCTRL_DERATEEN) .....
225
5.7.7DDRCTRL temperature derate interval register
(DDRCTRL_DERATEINT) .....
226
5.7.8DDRCTRL low power control register (DDRCTRL_PWRCTRL) .....227
5.7.9DDRCTRL low power timing register (DDRCTRL_PWRTMG) .....228
5.7.10DDRCTRL hardware low power control register
(DDRCTRL_HWLPCTL) .....
229
5.7.11DDRCTRL refresh control register 0 (DDRCTRL_RFSHCTL0) .....230
5.7.12DDRCTRL refresh control register 3 (DDRCTRL_RFSHCTL3) .....232
5.7.13DDRCTRL refresh timing register (DDRCTRL_RFSHTMG) .....233
5.7.14DDRCTRL CRC parity control register 0 (DDRCTRL_CRCPARCTL0) .....234
5.7.15DDRCTRL CRC parity status register (DDRCTRL_CRCPARSTAT) .....235
5.7.16DDRCTRL SDRAM initialization register 0 (DDRCTRL_INIT0) .....236
5.7.17DDRCTRL SDRAM initialization register 1 (DDRCTRL_INIT1) .....237
5.7.18DDRCTRL SDRAM initialization register 2 (DDRCTRL_INIT2) .....237
5.7.19DDRCTRL SDRAM initialization register 3 (DDRCTRL_INIT3) .....238
5.7.20DDRCTRL SDRAM initialization register 4 (DDRCTRL_INIT4) .....239
5.7.21DDRCTRL SDRAM initialization register 5 (DDRCTRL_INIT5) .....239
5.7.22DDRCTRL DIMM control register (DDRCTRL_DIMMCTL) .....240
5.7.23DDRCTRL SDRAM timing register 0 (DDRCTRL_DRAMTMG0) .....241
5.7.24DDRCTRL SDRAM timing register 1 (DDRCTRL_DRAMTMG1) .....242
5.7.25DDRCTRL SDRAM timing register 2 (DDRCTRL_DRAMTMG2) .....243
5.7.26DDRCTRL SDRAM timing register 3 (DDRCTRL_DRAMTMG3) .....246
5.7.27DDRCTRL SDRAM timing register 4 (DDRCTRL_DRAMTMG4) .....247
5.7.28DDRCTRL SDRAM timing register 5 (DDRCTRL_DRAMTMG5) .....248
5.7.29DDRCTRL SDRAM timing register 6 (DDRCTRL_DRAMTMG6) .....250
5.7.30DDRCTRL SDRAM timing register 7 (DDRCTRL_DRAMTMG7) .....251
5.7.31DDRCTRL SDRAM timing register 8 (DDRCTRL_DRAMTMG8) .....252
5.7.32DDRCTRL SDRAM timing register 14 (DDRCTRL_DRAMTMG14) .....252
5.7.33DDRCTRL SDRAM timing register 15 (DDRCTRL_DRAMTMG15) .....253
5.7.34DDRCTRL ZQ control register 0 (DDRCTRL_ZQCTL0) .....254
5.7.35DDRCTRL ZQ control register 1 (DDRCTRL_ZQCTL1) .....255
5.7.36DDRCTRL ZQ control register 2 (DDRCTRL_ZQCTL2) .....256
5.7.37DDRCTRL ZQ status register (DDRCTRL_ZQSTAT) .....256
5.7.38DDRCTRL DFI timing register 0 (DDRCTRL_DFITMG0) .....257
5.7.39DDRCTRL DFI timing register 1 (DDRCTRL_DFITMG1) .....258
5.7.40DDRCTRL low power configuration register 0
(DDRCTRL_DFILPCFG0) .....
259
5.7.41DDRCTRL DFI update register 0 (DDRCTRL_DFIUPD0) .....262
5.7.42DDRCTRL DFI update register 1 (DDRCTRL_DFIUPD1) .....263
5.7.43DDRCTRL DFI update register 2 (DDRCTRL_DFIUPD2) .....264
5.7.44DDRCTRL DFI miscellaneous control register (DDRCTRL_DFIMISC)264
5.7.45DDRCTRL DFI status register (DDRCTRL_DFISTAT) .....265
5.7.46DDRCTRL DFI PHY master register (DDRCTRL_DFIPHYMSTR) ...266
5.7.47DDRCTRL address map register 1 (DDRCTRL_ADDRMAP1) .....266
5.7.48DDRCTRL address map register 2 (DDRCTRL_ADDRMAP2) .....267
5.7.49DDRCTRL address map register 3 (DDRCTRL_ADDRMAP3) .....269
5.7.50DDRCTRL address map register 4 (DDRCTRL_ADDRMAP4) .....272
5.7.51DDRCTRL address map register 5 (DDRCTRL_ADDRMAP5) .....273
5.7.52DDRCTRL address register 6 (DDRCTRL_ADDRMAP6) .....274
5.7.53DDRCTRL address map register 9 (DDRCTRL_ADDRMAP9) .....276
5.7.54DDRCTRL address map register 10 (DDRCTRL_ADDRMAP10) ...277
5.7.55DDRCTRL address map register 11 (DDRCTRL_ADDRMAP11) ...278
5.7.56DDRCTRL ODT configuration register (DDRCTRL_ODTCFG) .....278
5.7.57DDRCTRL ODT/Rank map register (DDRCTRL_ODTMAP) .....280
5.7.58DDRCTRL scheduler control register (DDRCTRL_SCHED) .....281
5.7.59DDRCTRL scheduler control register 1 (DDRCTRL_SCHED1) ...282
5.7.60DDRCTRL high priority read CAM register 1
(DDRCTRL_PERFHPR1) .....
283
5.7.61DDRCTRL low priority read CAM register 1 (DDRCTRL_PERFLPR1)284
5.7.62DDRCTRL write CAM register 1 (DDRCTRL_PERFWR1) .....284
5.7.63DDRCTRL debug register 0 (DDRCTRL_DBG0) .....285
5.7.64DDRCTRL debug register 1 (DDRCTRL_DBG1) .....286
5.7.65DDRCTRL CAM debug register (DDRCTRL_DBGCAM) .....286
5.7.66DDRCTRL command debug register (DDRCTRL_DBGCMD) .....288
5.7.67DDRCTRL status debug register (DDRCTRL_DBGSTAT) .....289
5.7.68DDRCTRL software register programming control enable
(DDRCTRL_SWCTL) .....
290
5.7.69DDRCTRL software register programming control status
(DDRCTRL_SWSTAT) .....
290
5.7.70DDRCTRL AXI Poison configuration register (DDRCTRL_POISONCFG) .....291
5.7.71DDRCTRL AXI Poison status register (DDRCTRL_POISONSTAT) ..292
5.7.72DDRCTRL port status register (DDRCTRL_PSTAT) .....293
5.7.73DDRCTRL port common configuration register (DDRCTRL_PCCFG) .....294
5.7.74DDRCTRL port x configuration read register (DDRCTRL_PCFGR_x) .....295
5.7.75DDRCTRL port x configuration write register (DDRCTRL_PCFGW_x) .....296
5.7.76DDRCTRL port x control register (DDRCTRL_PCTRL_x) .....297
5.7.77DDRCTRL port x read QoS configuration register 0 (DDRCTRL_PCFGQOS0_x) .....298
5.7.78DDRCTRL port x read QoS configuration register 1 (DDRCTRL_PCFGQOS1_x) .....299
5.7.79DDRCTRL port x write QoS configuration register 0 (DDRCTRL_PCFGWQOS0_x) .....300
5.7.80DDRCTRL port x write QoS configuration register 1 (DDRCTRL_PCFGWQOS1_x) .....301
5.7.81DDRCTRL registers summary .....302
6TrustZone® address space controller for DDR (TZC) .....319
6.1Introduction .....319
6.2TZC features .....319
6.3TZC block diagram .....320
6.4TZC functional description .....321
6.5TZC application programming examples .....322
6.5.1DMA requests .....326
6.5.2Interrupts .....326
6.6TZC registers .....327
6.6.1TZC configuration register (TZC_BUILD_CONFIG) .....327
6.6.2TZC action register (TZC_ACTION) .....327
6.6.3TZC gate keeper register (TZC_GATE_KEEPER) .....328
6.6.4TZC speculation control register (TZC_SPECULATION_CTRL) ....329
6.6.5TZC interrupt status register (TZC_INT_STATUS) .....329
6.6.6TZC interrupt clear register (TZC_INT_CLEAR) .....330
6.6.7TZC fail address low register x (TZC_FAIL_ADDRESS_LOWx) ....330
6.6.8TZC fail address high register x (TZC_FAIL_ADDRESS_HIGHx) ....331
6.6.9TZC fail control register x (TZC_FAIL_CONTROLx) .....331
6.6.10TZC fail ID register x (TZC_FAIL_IDx) .....332
6.6.11TZC region 0 base address low register
(TZC_REGION_BASE_LOW0) .....
332
6.6.12TZC region x base address high register (TZC_REGION_BASE_HIGHx)
333
6.6.13TZC region 0 top address low register
(TZC_REGION_TOP_LOW0) .....
333
6.6.14TZC region x top address high register (TZC_REGION_TOP_HIGHx)334
6.6.15TZC region 0 attribute register (TZC_REGION_ATTRIBUTE0) .....334
6.6.16TZC region x ID access register (TZC_REGION_ID_ACCESSx) ....335
6.6.17TZC region x base address low register
(TZC_REGION_BASE_LOWx) .....
335
6.6.18TZC region x top address low register
(TZC_REGION_TOP_LOWx) .....
336
6.6.19TZC region x attribute register (TZC_REGION_ATTRIBUTEx) .....336
6.6.20TZC peripheral ID 4 register (TZC_PID4) .....337
6.6.21TZC peripheral ID 5 register (TZC_PID5) .....337
6.6.22TZC peripheral ID 6 register (TZC_PID6) .....337
6.6.23TZC peripheral ID 7 register (TZC_PID7) .....338
6.6.24TZC peripheral ID 0 register (TZC_PID0) .....338
6.6.25TZC peripheral ID 1 register (TZC_PID1) .....339
6.6.26TZC peripheral ID 2 register (TZC_PID2) .....339
6.6.27TZC peripheral ID 3 register (TZC_PID3) .....339
6.6.28TZC component ID 0 register (TZC_CID0) .....340
6.6.29TZC component ID 1 register (TZC_CID1) .....340
6.6.30TZC component ID 2 register (TZC_CID2) .....341
6.6.31TZC component ID 3 register (TZC_CID3) .....341
6.6.32TZC register map .....342
7DDR physical interface control (DDRPHYC) .....348
7.1DDRPHYC features .....348
7.2DDRPHYC block diagram .....348
7.3DDRPHYC SDRAM interface .....349
7.4DDRPHY (DDR multiPHY IP core) .....351
7.4.1DDRPHY overview .....351
7.4.2Delay locked loop (DLL) .....352
7.4.3Interface timing modules (ITMs) .....355
7.4.4SSTL IO's .....359
7.5PUBL .....361
7.5.1PHY and SDRAM initialization . . . . .362
7.5.2DDR3 initialization sequence . . . . .364
7.5.3LPDDR2 initialization sequence . . . . .365
7.5.4Initialization trigger and bypass . . . . .365
7.5.5DATA training . . . . .366
7.5.6DQS gate training (DQSTRN) . . . . .366
7.5.7Read valid training (RVTRN) . . . . .372
7.6PUBL timings and DFI interface . . . . .372
7.6.1Introduction . . . . .372
7.6.2Write timing . . . . .373
7.6.3Read timing . . . . .374
7.6.4DDRPHY read/write latency . . . . .375
7.6.5DFI 2.1 overview . . . . .376
7.7PUBL registers . . . . .378
7.7.1DDRPHYC revision ID register (DDRPHYC_RIDR) . . . . .378
7.7.2DDRPHYC PHY initialization register (DDRPHYC_PIR) . . . . .378
7.7.3DDRPHYC PHY global control register (DDRPHYC_PGCR) . . . . .381
7.7.4DDRPHYC PHY global status register (DDRPHYC_PGSR) . . . . .383
7.7.5DDRPHYC DDR DLL global control register (DDRPHYC_DLLGCR) . . . . .384
7.7.6DDRPHYC AC DLL control register (DDRPHYC_ACDLLCR) . . . . .386
7.7.7DDRPHYC PT register 0 (DDRPHYC_PTR0) . . . . .387
7.7.8DDRPHYC PT register 1 (DDRPHYC_PTR1) . . . . .387
7.7.9DDRPHYC PT register 2 (DDRPHYC_PTR2) . . . . .388
7.7.10DDRPHYC ACIOC register (DDRPHYC_ACIOCR) . . . . .389
7.7.11DDRPHYC DXCC register (DDRPHYC_DXCCR) . . . . .390
7.7.12DDRPHYC DSGC register (DDRPHYC_DSGCR) . . . . .391
7.7.13DDRPHYC DC register (DDRPHYC_DCR) . . . . .394
7.7.14DDRPHYC DTP register 0 (DDRPHYC_DTPR0) . . . . .395
7.7.15DDRPHYC DTP register 1 (DDRPHYC_DTPR1) . . . . .396
7.7.16DDRPHYC DTP register 2 (DDRPHYC_DTPR2) . . . . .398
7.7.17DDRPHYC MR0 register for DDR3 (DDRPHYC_DDR3_MR0) . . . . .398
7.7.18DDRPHYC MR1 register for DDR3 (DDRPHYC_DDR3_MR1) . . . . .400
7.7.19DDRPHYC MR1 register for LPDDR2 [alternate]
(DDRPHYC_LPDDR2_MR1) . . . . .
401
7.7.20DDRPHYC MR1 register for LPDDR3 [alternate]
(DDRPHYC_LPDDR3_MR1) . . . . .
402
7.7.21DDRPHYC MR2 register for DDR3 (DDRPHYC_DDR3_MR2) . . . . .403
7.7.22DDRPHYC MR2 register for LPDDR2 [alternate]
(DDRPHYC_LPDDR2_MR2) . . . . .
404
7.7.23DDRPHYC MR2 register for LPDDR3 [alternate]
(DDRPHYC_LPDDR3_MR2) . . . . .
404
7.7.24DDRPHYC MR3 register for DDR3 (DDRPHYC_DDR3_MR3) . . . . .405
7.7.25DDRPHYC MR3 register for LPDDR2 [alternate]
(DDRPHYC_LPDDR2_MR3) . . . . .
405
7.7.26DDRPHYC MR3 register for LPDDR3 [alternate]
(DDRPHYC_LPDDR3_MR3) . . . . .
406
7.7.27DDRPHYC ODTc register (DDRPHYC_ODTCR) . . . . .406
7.7.28DDRPHYC DTA register (DDRPHYC_DTAR) . . . . .407
7.7.29DDRPHYC DTD register 0 (DDRPHYC_DTDR0) . . . . .407
7.7.30DDRPHYC DTD register 1 (DDRPHYC_DTDR1) . . . . .408
7.7.31DDRPHYC general purpose register 0 (DDRPHYC_GPR0) . . . . .408
7.7.32DDRPHYC general purpose register 1 (DDRPHYC_GPR1) . . . . .408
7.7.33DDRPHYC ZQ0C register 0 (DDRPHYC_ZQ0CR0) . . . . .409
7.7.34DDRPHYC ZQ0CR1 register (DDRPHYC_ZQ0CR1) . . . . .410
7.7.35DDRPHYC ZQ0S register 0 (DDRPHYC_ZQ0SR0) . . . . .411
7.7.36DDRPHYC ZQ0S register 1 (DDRPHYC_ZQ0SR1) . . . . .411
7.7.37DDRPHYC byte lane n GC register (DDRPHYC_DXnGCR) . . . . .412
7.7.38DDRPHYC byte lane n GS register 0 (DDRPHYC_DXnGSR0) . . . . .415
7.7.39DDRPHYC byte lane n GS register 1 (DDRPHYC_DXnGSR1) . . . . .415
7.7.40DDRPHYC byte lane n DLLC register (DDRPHYC_DXnDLLCR) . . . . .416
7.7.41DDRPHYC byte lane n DQT register (DDRPHYC_DXnDQTR) . . . . .418
7.7.42DDRPHYC byte lane n DQST register (DDRPHYC_DXnDQSTR) . . . . .419
7.7.43DDRPHYC register map . . . . .421
8DDR performance monitor (DDRPERFM) . . . . .427
8.1Introduction . . . . .427
8.2Features . . . . .427
8.3Block diagram . . . . .428
8.4Functional description . . . . .428
8.5Application information . . . . .431
8.5.1Signal set 0: to monitor the DDR utilization . . . . .431
8.5.2Signal set 1: to monitor the HPR and LPR stores . . . . .431
8.5.3Signal set 2: to monitor the refresh and self-refresh duration . . . . .431
8.5.4Signal set 3: to monitor the DDR stalling . . . . .431
8.6DDRPERFM registers . . . . .432
8.6.1DDRPERFM control register (DDRPERFM_CTL) . . . . .432
8.6.2DDRPERFM configurationl register (DDRPERFM_CFG) . . . . .432
8.6.3DDRPERFM status register (DDRPERFM_STATUS) . . . . .433
8.6.4DDRPERFM counter clear register (DDRPERFM_CCR) . . . . .433
8.6.5DDRPERFM interrupt enable register (DDRPERFM_IER) . . . . .434
8.6.6DDRPERFM interrupt status register (DDRPERFM_ISR) . . . . .434
8.6.7DDRPERFM interrupt clear register (DDRPERFM_ICR) . . . . .435
8.6.8DDRPERFM time counter register (DDRPERFM_TCNT) . . . . .435
8.6.9DDRPERFM event counter x register (DDRPERFM_CNTx) . . . . .436
8.6.10DDRPERFM hardware configuration register (DDRPERFM_HWCFG) . . . . .436
8.6.11DDRPERFM version register (DDRPERFM_VER) . . . . .436
8.6.12DDRPERFM ID register (DDRPERFM_ID) . . . . .437
8.6.13DDRPERFM magic ID register (DDRPERFM_SID) . . . . .437
8.6.14DDRPERFM register map . . . . .437
9Power control (PWR) . . . . .439
9.1PWR main features . . . . .439
9.2PWR block diagram . . . . .440
9.2.1PWR pin overview . . . . .441
9.3PWR power supplies . . . . .443
9.3.1PWR core domain . . . . .445
9.3.2PWR supply system startup sequence . . . . .446
9.3.3PWR supply Stop sequence . . . . .447
9.3.4PWR supply LP-Stop sequence . . . . .448
9.3.5PWR supply LPLV-Stop sequence . . . . .449
9.3.6PWR supply Standby sequence . . . . .450
9.3.7PWR supply VBAT sequence from Standby. . . . .451
9.3.8PWR VSW domain . . . . .451
9.3.9PWR VBAT battery charging . . . . .454
9.3.10PWR analog supply . . . . .454
9.3.11PWR 1V8 regulator . . . . .455
9.3.12PWR 1V1 regulator . . . . .455
9.3.13PWR DSI regulator . . . . .455
9.4PWR power supply supervision . . . . .456
9.4.1PWR power-on reset (POR)/power-down reset (PDR) . . . . .456
9.4.2PWR brownout reset (BOR) . . . . .457
9.4.3PWR VDDCORE OK reset . . . . .458
9.4.4PWR programmable voltage detector (PVD) . . . . .459
9.4.5PWR analog voltage detector (AVD) . . . . .460
9.4.6PWR battery voltage thresholds . . . . .461
9.4.7PWR temperature thresholds . . . . .462
9.5PWR power management . . . . .463
9.5.1PWR operating modes . . . . .464
9.5.2PWR power modes . . . . .472
9.5.3PWR system wakeup . . . . .475
9.6PWR low-power modes . . . . .476
9.6.1PWR slowing down the CPU clocks and/or the bus matrix clocks . . .476
9.6.2PWR controlling peripheral clocks . . . . .476
9.6.3PWR entering to low-power modes . . . . .476
9.6.4PWR exiting from low-power modes . . . . .477
9.6.5PWR CSleep mode . . . . .478
9.6.6PWR CStop mode . . . . .479
9.6.7PWR CStandby mode . . . . .480
9.6.8PWR Stop mode . . . . .481
9.6.9PWR LP-Stop and LPLV-Stop modes . . . . .483
9.6.10PWR Standby mode . . . . .484
9.6.11PWR debug Stop . . . . .486
9.6.12PWR debug Standby . . . . .486
9.7PWR WKUP pins . . . . .486
9.8PWR_ON and PWR_LP pins . . . . .486
9.9PWR interrupts . . . . .487
9.10PWR TrustZone security . . . . .488
9.11PWR registers . . . . .489
9.11.1PWR control register 1 (PWR_CR1) . . . . .489
9.11.2PWR control status register 1 (PWR_CSR1) . . . . .491
9.11.3PWR control register 2 (PWR_CR2) . . . . .492
9.11.4PWR control register 3 (PWR_CR3) . . . . .493
9.11.5PWR MPU control register (PWR_MPUCR) . . . . .495
9.11.6PWR MCU control register (PWR_MCUCR) . . . . .497
9.11.7PWR wakeup control register (PWR_WKUPCR) . . . . .498
9.11.8PWR wakeup flag register (PWR_WKUPFR) . . . . .499
9.11.9PWR MPU wakeup enable register (PWR_MPUWKUPENR) . . . . .500
9.11.10PWR MCU wakeup enable register (PWR_MCUWKUPENR) . . . . .501
9.11.11PWR IP version register (PWR_VER) .....501
9.11.12PWR IP identification register (PWR_ID) .....502
9.11.13PWR size ID register (PWR_SID) .....502
9.11.14PWR register map .....502
10Reset and clock control (RCC) .....504
10.1RCC main features .....504
10.2RCC block diagram .....505
10.2.1RCC pin overview .....506
10.3RCC functional description - reset part .....507
10.3.1The power-on/off resets .....507
10.3.2The application and system resets .....508
10.3.3The local resets .....509
10.3.4Resets generated by the CPUs .....510
10.3.5Watchdog reset .....511
10.3.6Backup domain reset .....511
10.3.7Coresight debug reset .....512
10.3.8Option bytes loading .....512
10.3.9Peripheral reset .....512
10.3.10Reset pulse control (RPCTL) .....512
10.3.11Reset delay control (RDCTL) .....514
10.3.12Reset coverage summary .....516
10.3.13Reset source identification .....518
10.3.14Power-on and wakeup sequences .....520
10.4RCC functional description - clock part .....525
10.4.1Clock naming convention .....527
10.4.2Oscillators description .....527
10.4.3Clock security system (CSS) .....535
10.4.4Clock output generation (MCO1 and MCO2) .....537
10.4.5PLLs description .....537
10.4.6Sub-system clocks .....544
10.4.7Clock generation in Stop and Standby modes .....548
10.4.8Peripheral clock distribution .....556
10.4.9General clock concept overview .....601
10.4.10Peripheral allocation .....603
10.4.11Peripheral clock gating control .....604
10.4.12Processors and interconnect clocks gating .....607
10.4.13Low-power emulation mode .....614
10.4.14RCC TrustZone function .....615
10.5RCC interrupts .....616
10.6RCC application information .....618
10.6.1Handling dynamic clock switching .....618
10.6.2PLL programming .....624
10.6.3Configuring the sub-system clocks .....629
10.6.4The clock calibration using TIMx .....631
10.6.5Clock restore sequence examples .....633
10.7RCC registers .....637
10.7.1Register mapping .....643
10.7.2RCC TrustZone control register (RCC_TZCR) .....644
10.7.3RCC oscillator clock enable set register (RCC_OCENSET) .....645
10.7.4RCC oscillator clock enable clear register (RCC_OCENCLR) .....647
10.7.5RCC oscillator clock ready register (RCC_OCRDYR) .....649
10.7.6RCC debug configuration register (RCC_DBGCFGR) .....651
10.7.7RCC HSI configuration register (RCC_HSICFGR) .....652
10.7.8RCC CSI configuration register (RCC_CSICFGR) .....653
10.7.9RCC MCO1 configuration register (RCC_MCO1CFGR) .....654
10.7.10RCC MCO2 configuration register (RCC_MCO2CFGR) .....654
10.7.11RCC MPU clock selection register (RCC_MPCKSELR) .....655
10.7.12RCC AXI sub-system clock selection register (RCC_ASSCKSELR) ..657
10.7.13RCC MCU sub-system clock selection register
(RCC_MSSCKSELR) .....
657
10.7.14RCC PLL 1 and 2 reference clock selection register
(RCC_RCK12SELR) .....
658
10.7.15RCC PLL 3 reference clock selection register (RCC_RCK3SELR) ..660
10.7.16RCC PLL4 reference clock selection register (RCC_RCK4SELR) ..661
10.7.17RCC TIM group 1 prescaler register (RCC_TIMG1PRER) .....662
10.7.18RCC TIM group 2 prescaler register (RCC_TIMG2PRER) .....663
10.7.19RCC RTC clock division register (RCC_RTCDIVR) .....664
10.7.20RCC MPU clock divider register (RCC_MPCKDIVR) .....665
10.7.21RCC AXI clock divider register (RCC_AXIDIVR) .....665
10.7.22RCC APB4 clock divider register (RCC_APB4DIVR) .....667
10.7.23RCC APB5 clock divider register (RCC_APB5DIVR) .....668
10.7.24RCC MCU clock divider register (RCC_MCUDIVR) .....669
10.7.25RCC APB1 clock divider register (RCC_APB1DIVR) .....669
10.7.26RCC APB2 clock divider register (RCC_APB2DIVR) .....671
10.7.27RCC APB3 clock divider register (RCC_APB3DIVR) .....672
10.7.28RCC PLL1 control register (RCC_PLL1CR) .....673
10.7.29RCC PLL1 configuration register 1 (RCC_PLL1CFGR1) .....675
10.7.30RCC PLL1 configuration register 2 (RCC_PLL1CFGR2) .....675
10.7.31RCC PLL1 fractional register (RCC_PLL1FRACR) .....676
10.7.32RCC PLL1 clock spreading generator register (RCC_PLL1CSGR) ..677
10.7.33RCC PLL2 control register (RCC_PLL2CR) .....678
10.7.34RCC PLL2 configuration register 1 (RCC_PLL2CFGR1) .....680
10.7.35RCC PLL2 configuration register 2 (RCC_PLL2CFGR2) .....680
10.7.36RCC PLL2 fractional register (RCC_PLL2FRACR) .....681
10.7.37RCC PLL2 clock spreading generator register (RCC_PLL2CSGR) ..682
10.7.38RCC PLL3 control register (RCC_PLL3CR) .....683
10.7.39RCC PLL3 configuration register 1 (RCC_PLL3CFGR1) .....685
10.7.40RCC PLL3 configuration register 2 (RCC_PLL3CFGR2) .....686
10.7.41RCC PLL3 fractional register (RCC_PLL3FRACR) .....687
10.7.42RCC PLL4 control register (RCC_PLL4CR) .....687
10.7.43RCC PLL4 configuration register 1 (RCC_PLL4CFGR1) .....689
10.7.44RCC PLL4 configuration register 2 (RCC_PLL4CFGR2) .....690
10.7.45RCC PLL4 fractional register (RCC_PLL4FRACR) .....690
10.7.46RCC I2C1,2 kernel clock selection register (RCC_I2C12CKSELR) ..691
10.7.47RCC I2C3,5 kernel clock selection register (RCC_I2C35CKSELR) ..693
10.7.48RCC I2C4, 6 kernel clock selection register
(RCC_I2C46CKSELR) .....
694
10.7.49RCC SAI1 kernel clock selection register (RCC_SAI1CKSELR) ....695
10.7.50RCC SAI2 kernel clock selection register (RCC_SAI2CKSELR) ....696
10.7.51RCC SAI3 kernel clock selection register (RCC_SAI3CKSELR) ....697
10.7.52RCC SAI4 kernel clock selection register (RCC_SAI4CKSELR) ....697
10.7.53RCC SPI/I2S1 kernel clock selection register
(RCC_SPI2S1CKSELR) .....
698
10.7.54RCC SPI/I2S2,3 kernel clock selection register
(RCC_SPI2S23CKSELR) .....
699
10.7.55RCC SPI4,5 kernel clock selection register (RCC_SPI45CKSELR) ..700
10.7.56RCC SPI6 kernel clock selection register (RCC_SPI6CKSELR) ....701
10.7.57RCC USART6 kernel clock selection register
(RCC_UART6CKSELR) .....
702
10.7.58RCC UART2,4 kernel clock selection register
(RCC_UART24CKSELR) .....
703
10.7.59RCC UART3,5 kernel clock selection register
(RCC_UART35CKSELR) . . . . .
704
10.7.60RCC UART7,8 kernel clock selection register
(RCC_UART78CKSELR) . . . . .
705
10.7.61RCC USART1 kernel clock selection register
(RCC_UART1CKSELR) . . . . .
706
10.7.62RCC SDMMC1 and 2 kernel clock selection register
(RCC_SDMMC12CKSELR) . . . . .
707
10.7.63RCC SDMMC3 kernel clock selection register
(RCC_SDMMC3CKSELR) . . . . .
708
10.7.64RCC ethernet kernel clock selection register (RCC_ETHCKSELR) . . .709
10.7.65RCC QUADSPI kernel clock selection register
(RCC_QSPICKSELR) . . . . .
710
10.7.66RCC FMC kernel clock selection register (RCC_FMCKSELR) . . . . .711
10.7.67RCC FDCAN kernel clock selection register
(RCC_FDCANCKSELR) . . . . .
712
10.7.68RCC SPDIFRX kernel clock selection register
(RCC_SPDIFCKSELR) . . . . .
713
10.7.69RCC CEC kernel clock selection register (RCC_CECCKSELR) . . . . .714
10.7.70RCC USB kernel clock selection register (RCC_USBCKSELR) . . . . .715
10.7.71RCC RNG1 kernel clock selection register (RCC_RNG1CKSELR) . . .716
10.7.72RCC RNG2 kernel clock selection register (RCC_RNG2CKSELR) . . .717
10.7.73RCC common peripheral clock selection register
(RCC_CPERCKSELR) . . . . .
718
10.7.74RCC STGEN clock selection register (RCC_STGENCKSELR) . . . . .719
10.7.75RCC DDR interface control register (RCC_DDRITFCR) . . . . .720
10.7.76RCC DSI kernel clock selection register (RCC_DSICKSELR) . . . . .725
10.7.77RCC ADC kernel clock selection register (RCC_ADCCKSELR) . . . . .726
10.7.78RCC LPTIM4 and 5 kernel clock selection register
(RCC_LPTIM45CKSELR) . . . . .
727
10.7.79RCC LPTIM2 and 3 kernel clock selection register
(RCC_LPTIM23CKSELR) . . . . .
728
10.7.80RCC LPTIM1 kernel clock selection register
(RCC_LPTIM1CKSELR) . . . . .
729
10.7.81RCC boot control register (RCC_MP_BOOTCR) . . . . .730
10.7.82RCC stop request set register (RCC_MP_SREQSETR) . . . . .731
10.7.83RCC stop request clear register (RCC_MP_SREQCLRR) . . . . .732
10.7.84RCC global control register (RCC_MP_GCR) . . . . .733
10.7.85RCC application reset control register (RCC_MP_AP_RSTCR) . . . . .734
10.7.86RCC application reset status register (RCC_MP_AP_RSTSR) . . . . .735
10.7.87RCC backup domain control register (RCC_BDCR) . . . . .736
10.7.88RCC reset duration and LSI control register (RCC_RDLSICR) . . . . .737
10.7.89RCC clock source interrupt enable register (RCC_MP_CIER) . . . . .740
10.7.90RCC clock source interrupt flag register (RCC_MP_CIFR) . . . . .742
10.7.91RCC clock source interrupt enable register (RCC_MC_CIER) . . . . .743
10.7.92RCC clock source interrupt flag register (RCC_MC_CIFR) . . . . .746
10.7.93RCC PWR_LP delay control register (RCC_PWRLPDLYCR) . . . . .748
10.7.94RCC APB1 peripheral reset set register (RCC_APB1RSTSETR) . . . .748
10.7.95RCC APB1 peripheral reset clear register (RCC_APB1RSTCLRR) . .752
10.7.96RCC APB2 peripheral reset set register (RCC_APB2RSTSETR) . . . .755
10.7.97RCC APB2 peripheral reset clear register (RCC_APB2RSTCLRR) . .756
10.7.98RCC APB3 peripheral reset set register (RCC_APB3RSTSETR) . . . .758
10.7.99RCC APB3 peripheral reset clear register (RCC_APB3RSTCLRR) . .761
10.7.100RCC AHB2 peripheral reset set register (RCC_AHB2RSTSETR) . . . .763
10.7.101RCC AHB2 peripheral reset clear register (RCC_AHB2RSTCLRR) . .765
10.7.102RCC AHB3 peripheral reset set register (RCC_AHB3RSTSETR) . . . .767
10.7.103RCC AHB3 peripheral reset clear register (RCC_AHB3RSTCLRR) . .769
10.7.104RCC AHB4 peripheral reset set register (RCC_AHB4RSTSETR) . . . .771
10.7.105RCC AHB4 peripheral reset clear register (RCC_AHB4RSTCLRR) . .773
10.7.106RCC APB4 peripheral reset set register (RCC_APB4RSTSETR) . . . .775
10.7.107RCC APB4 peripheral reset clear register (RCC_APB4RSTCLRR) . .775
10.7.108RCC APB5 peripheral reset set register (RCC_APB5RSTSETR) . . . .776
10.7.109RCC APB5 peripheral reset clear register (RCC_APB5RSTCLRR) . .778
10.7.110RCC AHB5 peripheral reset set register (RCC_AHB5RSTSETR) . . . .779
10.7.111RCC AHB5 peripheral reset clear register (RCC_AHB5RSTCLRR) . .780
10.7.112RCC AHB6 peripheral reset set register (RCC_AHB6RSTSETR) . . . .781
10.7.113RCC AHB6 peripheral reset clear register (RCC_AHB6RSTCLRR) . .783
10.7.114RCC AHB6 secure peripheral reset set register
(RCC_TZAHB6RSTSETR) . . . . .
785
10.7.115RCC AHB6 secure peripheral reset clear register
(RCC_TZAHB6RSTCLRR) . . . . .
786
10.7.116RCC global reset control set register
(RCC_MP_GRSTCSETR) . . . . .
787
10.7.117RCC APB1 peripheral enable for MPU set register
(RCC_MP_APB1ENSETR) . . . . .
788
10.7.118RCC APB1 peripheral enable for MCU set register
(RCC_MC_APB1ENSETR) . . . . .
792
10.7.119RCC 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.204RCC AHB4 sleep clock enable for MCU set register
(RCC_MC_AHB4LPENSETR) .....
981
10.7.205RCC AHB4 sleep clock enable for MPU clear register
(RCC_MP_AHB4LPENCLRR) .....
982
10.7.206RCC AHB4 sleep clock enable for MCU clear register
(RCC_MC_AHB4LPENCLRR) .....
985
10.7.207RCC AXI sleep clock enable for MPU set register
(RCC_MP_AXIMLPENSETR) .....
986
10.7.208RCC AXI sleep clock enable for MCU set register
(RCC_MC_AXIMLPENSETR) .....
988
10.7.209RCC AXI sleep clock enable for MPU clear register
(RCC_MP_AXIMLPENCLRR) .....
989
10.7.210RCC AXI sleep clock enable for MCU clear register
(RCC_MC_AXIMLPENCLRR) .....
990
10.7.211RCC MLAHB sleep clock enable for MPU set register
(RCC_MP_MLAHBLPENSETR) .....
991
10.7.212RCC MLAHB sleep clock enable for MCU set register
(RCC_MC_MLAHBLPENSETR) .....
992
10.7.213RCC MLAHB sleep clock enable for MPU clear register
(RCC_MP_MLAHBLPENCLRR) .....
993
10.7.214RCC MLAHB sleep clock enable for MCU clear register
(RCC_MC_MLAHBLPENCLRR) .....
994
10.7.215RCC BOOTROM reset status clear register
(RCC_BR_RSTSCLRR) .....
995
10.7.216RCC MCU reset status clear register (RCC_MC_RSTSCLRR) .....997
10.7.217RCC MPU reset status clear register (RCC_MP_RSTSCLRR) .....998
10.7.218RCC MPU reset status set register (RCC_MP_RSTSSETR) .....1001
10.7.219RCC IWDG clock freeze set register (RCC_MP_IWDGFZSETR) .....1003
10.7.220RCC IWDG clock freeze clear register
(RCC_MP_IWDGFZCLRR) .....
1004
10.7.221RCC version register (RCC_VERR) .....1005
10.7.222RCC ID register (RCC_IDR) .....1005
10.7.223RCC size ID register (RCC_SIDR) .....1005
10.8RCC register map .....1006
11Hardware semaphore (HSEM) .....1036
11.1Introduction .....1036
11.2Main features .....1036
11.3Functional description .....1037
11.3.1HSEM block diagram .....1037
11.3.2HSEM internal signals .....1037
11.3.3HSEM lock procedures .....1037
11.3.4HSEM write/read/read lock register address .....1039
11.3.5HSEM unlock procedures .....1039
11.3.6HSEM COREID semaphore clear .....1040
11.3.7HSEM interrupts .....1040
11.3.8AHB bus master ID verification .....1042
11.4HSEM registers .....1043
11.4.1HSEM register semaphore x (HSEM_Rx) .....1043
11.4.2HSEM read lock register semaphore x (HSEM_RLRx) .....1044
11.4.3HSEM interrupt enable register (HSEM_CnIER) .....1045
11.4.4HSEM interrupt clear register (HSEM_CnICR) .....1045
11.4.5HSEM interrupt status register (HSEM_CnISR) .....1045
11.4.6HSEM interrupt status register (HSEM_CnMISR) .....1046
11.4.7HSEM clear register (HSEM_CR) .....1046
11.4.8HSEM clear semaphore key register (HSEM_KEYR) .....1047
11.4.9HSEM hardware configuration register 2 (HSEM_HWCFGR2) ....1047
11.4.10HSEM hardware configuration register 1 (HSEM_HWCFGR1) ....1048
11.4.11HSEM version register (HSEM_VERR) .....1048
11.4.12HSEM identification register (HSEM_IPIDR) .....1048
11.4.13HSEM size identification register (HSEM_SIDR) .....1049
11.4.14HSEM register map .....1050
12Inter-processor communication controller (IPCC) .....1052
12.1Introduction .....1052
12.2IPCC main features .....1052
12.3IPCC functional description .....1052
12.3.1IPCC block diagram .....1053
12.3.2IPCC Simplex channel mode .....1053
12.3.3IPCC Half-duplex channel mode .....1056
12.3.4IPCC interrupts .....1059
12.4IPCC registers .....1060
12.4.1IPCC processor 1 control register (IPCC_C1CR) .....1060
12.4.2IPCC processor 1 mask register (IPCC_C1MR) .....1060
12.4.3IPCC processor 1 status set clear register (IPCC_C1SCR) .....1061
12.4.4IPCC processor 1 to processor 2 status register
(IPCC_C1TOC2SR) .....
1061
12.4.5IPCC processor 2 control register (IPCC_C2CR) .....1062
12.4.6IPCC processor 2 mask register (IPCC_C2MR) .....1062
12.4.7IPCC processor 2 status set clear register (IPCC_C2SCR) .....1063
12.4.8IPCC processor 2 to processor 1 status register
(IPCC_C2TOC1SR) .....
1064
12.4.9IPCC hardware configuration register (IPCC_HWCFGR) .....1064
12.4.10IPCC version register (IPCC_VERR) .....1065
12.4.11IPCC identification register (IPCC_IPIDR) .....1065
12.4.12IPCC size identification register (IPCC_SIDR) .....1065
12.4.13IPCC register map .....1066
13General-purpose I/Os (GPIO) .....1067
13.1Introduction .....1067
13.2GPIO main features .....1067
13.3GPIO functional description .....1067
13.3.1General-purpose I/O (GPIO) .....1069
13.3.2I/O pin alternate function multiplexer and mapping .....1070
13.3.3I/O port control registers .....1071
13.3.4I/O port data registers .....1071
13.3.5I/O data bitwise handling .....1071
13.3.6GPIO locking mechanism .....1071
13.3.7I/O alternate function input/output .....1072
13.3.8External interrupt/wakeup lines .....1072
13.3.9Input configuration .....1072
13.3.10Output configuration .....1073
13.3.11I/O compensation cell .....1074
13.3.12Alternate function configuration .....1074
13.3.13Analog configuration .....1075
13.3.14Using the HSE or LSE oscillator pins as GPIOs .....1076
13.3.15Using the GPIO pins in the backup supply domain .....1076
13.3.16TrustZone security (only for GPIOZ) .....1076
13.4GPIO registers .....1078
13.4.1GPIO port mode register (GPIOx_MODER)
(x = A to K, Z) .....
1078
13.4.2GPIO port output type register (GPIOx_OTYPER)
(x = A to K, Z) .....
1078
13.4.3GPIO port output speed register (GPIOx_OSPEEDR)
(x = A to K, Z) .....
1079
13.4.4GPIO port pull-up/pull-down register (GPIOx_PUPDR)
(x = A to K, Z)
1079
13.4.5GPIO port input data register (GPIOx_IDR)
(x = A to K, Z)
1079
13.4.6GPIO port output data register (GPIOx_ODR)
(x = A to K, Z)
1080
13.4.7GPIO port bit set/reset register (GPIOx_BSRR)
(x = A to K, Z)
1080
13.4.8GPIO port configuration lock register (GPIOx_LCKR)
(x = A to K, Z)
1081
13.4.9GPIO alternate function low register (GPIOx_AFRL)
(x = A to K, Z)
1082
13.4.10GPIO alternate function high register (GPIOx_AFRH)
(x = A to K, Z)
1083
13.4.11GPIO port bit reset register (GPIOx_BRR) (x = A to K, Z)1084
13.4.12GPIO secure configuration register (GPIOZ_SECCFGR)1084
13.4.13GPIO hardware configuration register 10 (GPIOx_HWCFGR10)
(x = A to K, Z)
1085
13.4.14GPIO hardware configuration register 9 (GPIOx_HWCFGR9)
(x = A to K, Z)
1086
13.4.15GPIO hardware configuration register 8 (GPIOx_HWCFGR8)
(x = A to K, Z)
1086
13.4.16GPIO hardware configuration register 7 (GPIOx_HWCFGR7)
(x = A to K, Z)
1087
13.4.17GPIO hardware configuration register 6 (GPIOx_HWCFGR6)
(x = A to K, Z)
1087
13.4.18GPIO hardware configuration register 5 (GPIOx_HWCFGR5)
(x = A to K, Z)
1088
13.4.19GPIO hardware configuration register 4 (GPIOx_HWCFGR4)
(x = A to K, Z)
1088
13.4.20GPIO hardware configuration register 3 (GPIOx_HWCFGR3)
(x = A to K, Z)
1088
13.4.21GPIO hardware configuration register 2 (GPIOx_HWCFGR2)
(x = A to K, Z)
1089
13.4.22GPIO hardware configuration register 1 (GPIOx_HWCFGR1)
(x = A to K, Z)
1089
13.4.23GPIO hardware configuration register 0 (GPIOx_HWCFGR0)
(x = A to K, Z)
1089
13.4.24GPIO version register (GPIOx_VERR) (x = A to K, Z)1090
13.4.25GPIO identification register (GPIOx_IPIDR) (x = A to K, Z)1090
13.4.26GPIO size identification register (GPIOx_SIDR) (x = A to K, Z)1091
13.4.27GPIO register map1092
14System configuration controller (SYSCFG) .....1094
14.1I/O compensation cell .....1094
14.2Ethernet clock source .....1096
14.3SYSCFG registers .....1097
14.3.1SYSCFG boot pins control register (SYSCFG_BOOTR) .....1097
14.3.2SYSCFG peripheral mode configuration set register (SYSCFG_PMCSETR) .....1098
14.3.3SYSCFG peripheral mode configuration clear register (SYSCFG_PMCCLRR) .....1100
14.3.4SYSCFG IO control set register (SYSCFG_IOCTRLSETR) .....1103
14.3.5SYSCFG IO control clear register (SYSCFG_IOCTRLCLRR) .....1104
14.3.6SYSCFG interconnect control register (SYSCFG_ICNR) .....1106
14.3.7SYSCFG compensation cell control register (SYSCFG_CMPCR) ..1108
14.3.8SYSCFG compensation cell enable set register (SYSCFG_CMPENSETR) .....1109
14.3.9SYSCFG compensation cell enable clear register (SYSCFG_CMPENCLRR) .....1110
14.3.10SYSCFG control timer break register (SYSCFG_CBR) .....1111
14.3.11SYSCFG version register (SYSCFG_VERR) .....1112
14.3.12SYSCFG identification register (SYSCFG_IPIDR) .....1112
14.3.13SYSCFG size identification register (SYSCFG_SIDR) .....1113
14.3.14SYSCFG interface register map .....1114
15Extended TrustZone® protection controller (ETZPC) .....1116
15.1ETZPC introduction .....1116
15.2ETZPC features .....1116
15.3Extended TrustZone architecture and ETZPC .....1116
15.4ETZPC functional description .....1118
15.5STM32MP157 security architecture .....1118
15.6STM32MP157 MCU resource isolation .....1121
15.7ETZPC registers .....1128
15.7.1ETZPC ROM secure size definition (ETZPC_TZMA0_SIZE) .....1129
15.7.2ETZPC RAM secure size definition (ETZPC_TZMA1_SIZE) .....1130
15.7.3ETZPC securable peripheral control register x (ETZPC_DECPROTx) .....1131
15.7.4ETZPC decprot lock x register (ETZPC_DECPROT_LOCKx) .....1132
15.7.5ETZPC HW configuration register (ETZPC_HWCFGR) .....1136
15.7.6ETZPC version register (ETZPC_VERR) .....1136
15.7.7ETZPC identification register (ETZPC_IDR) .....1137
15.7.8ETZPC size identification register (ETZPC_SIDR) .....1137
15.7.9ETZPC register map .....1138
16Block interconnects .....1140
16.1Peripheral interconnects .....1140
16.1.1Introduction .....1140
16.1.2Connection overview .....1140
16.2MDMA .....1159
17MDMA controller (MDMA) .....1161
17.1MDMA introduction .....1161
17.2MDMA main features .....1161
17.3MDMA functional description .....1163
17.3.1MDMA block diagram .....1163
17.3.2MDMA internal signals .....1163
17.3.3MDMA overview .....1163
17.3.4MDMA channel .....1165
17.3.5Source, destination and transfer modes .....1165
17.3.6Pointer update .....1165
17.3.7MDMA buffer transfer .....1166
17.3.8Request arbitration .....1167
17.3.9FIFO .....1167
17.3.10Block transfer .....1167
17.3.11Block repeat mode .....1168
17.3.12Linked-list mode .....1168
17.3.13MDMA transfer completion .....1168
17.3.14MDMA transfer suspension .....1168
17.3.15Error management .....1169
17.4MDMA interrupts .....1169
17.5MDMA registers .....1170
17.5.1MDMA global interrupt status register (MDMA_GISR0) .....1170
17.5.2MDMA secure global interrupt status register (MDMA_SGISR0) .....1170
17.5.3MDMA channel x interrupt status register (MDMA_CxISR) .....1171
17.5.4MDMA channel x interrupt flag clear register (MDMA_CxIFCR) ....1172
17.5.5MDMA channel x error status register (MDMA_CxESR) . . . . .1173
17.5.6MDMA channel x control register (MDMA_CxCR) . . . . .1174
17.5.7MDMA channel x transfer configuration register (MDMA_CxTCR) . . .1176
17.5.8MDMA channel x block number of data register (MDMA_CxBNDTR) . . .1179
17.5.9MDMA channel x source address register (MDMA_CxSAR) . . . . .1180
17.5.10MDMA channel x destination address register (MDMA_CxDAR) . . . . .1181
17.5.11MDMA channel x block repeat address update register
(MDMA_CxBRUR) . . . . .
1181
17.5.12MDMA channel x link address register (MDMA_CxLAR) . . . . .1182
17.5.13MDMA channel x trigger and bus selection register
(MDMA_CxTBR) . . . . .
1183
17.5.14MDMA channel x mask address register (MDMA_CxMAR) . . . . .1183
17.5.15MDMA channel x mask data register (MDMA_CxMDR) . . . . .1184
17.5.16MDMA register map . . . . .1184
18Direct memory access controller (DMA) . . . . .1186
18.1DMA introduction . . . . .1186
18.2DMA main features . . . . .1186
18.3DMA functional description . . . . .1188
18.3.1DMA block diagram . . . . .1188
18.3.2DMA overview . . . . .1188
18.3.3DMA transactions . . . . .1189
18.3.4DMA request mapping . . . . .1189
18.3.5Arbiter . . . . .1189
18.3.6DMA streams . . . . .1190
18.3.7Source, destination and transfer modes . . . . .1190
18.3.8Pointer incrementation . . . . .1193
18.3.9Circular mode . . . . .1194
18.3.10Double-buffer mode . . . . .1194
18.3.11Programmable data width, packing/unpacking, endianness . . . . .1195
18.3.12Single and burst transfers . . . . .1196
18.3.13FIFO . . . . .1197
18.3.14DMA transfer completion . . . . .1200
18.3.15DMA transfer suspension . . . . .1201
18.3.16Flow controller . . . . .1202
18.3.17Summary of the possible DMA configurations . . . . .1203
18.3.18Stream configuration procedure . . . . .1203
18.3.19Error management1204
18.4DMA interrupts1205
18.5DMA registers1206
18.5.1DMA low interrupt status register (DMA_LISR)1206
18.5.2DMA high interrupt status register (DMA_HISR)1207
18.5.3DMA low interrupt flag clear register (DMA_LIFCR)1208
18.5.4DMA high interrupt flag clear register (DMA_HIFCR)1208
18.5.5DMA stream x configuration register (DMA_SxCR)1209
18.5.6DMA stream x number of data register (DMA_SxNDTR)1212
18.5.7DMA stream x peripheral address register (DMA_SxPAR)1212
18.5.8DMA stream x memory 0 address register (DMA_SxM0AR)1213
18.5.9DMA stream x memory 1 address register (DMA_SxM1AR)1213
18.5.10DMA stream x FIFO control register (DMA_SxFCR)1214
18.5.11DMA hardware configuration 2 register (DMA_HWCFGR2)1215
18.5.12DMA hardware configuration 1 register (DMA_HWCFGR1)1216
18.5.13DMA version register (DMA_VERR)1217
18.5.14DMA identification register (DMA_IPDR)1217
18.5.15DMA size identification register (DMA_SIDR)1218
18.5.16DMA register map1218
19DMA request multiplexer (DMAMUX)1223
19.1Introduction1223
19.2DMAMUX main features1224
19.3DMAMUX implementation1224
19.3.1DMAMUX instantiation1224
19.3.2DMAMUX mapping1224
19.4DMAMUX functional description1227
19.4.1DMAMUX block diagram1227
19.4.2DMAMUX signals1228
19.4.3DMAMUX channels1228
19.4.4DMAMUX request line multiplexer1228
19.4.5DMAMUX request generator1231
19.5DMAMUX interrupts1232
19.6DMAMUX registers1233
19.6.1DMAMUX request line multiplexer channel x configuration register (DMAMUX_CxCR) .....1233
19.6.2DMAMUX request line multiplexer interrupt channel status register (DMAMUX_CSR) .....1234
19.6.3DMAMUX request line multiplexer interrupt clear flag register (DMAMUX_CFR) .....1234
19.6.4DMAMUX request generator channel x configuration register (DMAMUX_RGxCR) .....1235
19.6.5DMAMUX request generator interrupt status register (DMAMUX_RGSR) .....1236
19.6.6DMAMUX request generator interrupt clear flag register (DMAMUX_RGCFR) .....1236
19.6.7DMAMUX size identification register (DMAMUX_SIDR) .....1237
19.6.8DMAMUX IP identification register (DMAMUX_IPIDR) .....1237
19.6.9DMAMUX version register (DMAMUX_VERR) .....1237
19.6.10DMAMUX hardware configuration 1 register (DMAMUX_HWCFGR1) .....1238
19.6.11DMAMUX hardware configuration 2 register (DMAMUX_HWCFGR2) .....1238
19.6.12DMAMUX register map .....1239
20Graphic processor unit (GPU) .....1242
20.1Introduction .....1242
20.2GPU main features .....1242
20.3GPU general description .....1243
21Interrupt list .....1244
21.1NVIC interrupts .....1244
21.2GIC Interrupts .....1249
21.3EXTI events .....1256
22Nested Vectored Interrupt Controllers (NVIC) .....1260
22.1NVIC features .....1260
22.2SysTick calibration value register .....1260
22.3Interrupt and exception vectors .....1260
23Global interrupt controller (GIC) .....1261
23.1Introduction .....1261
23.2GIC main features .....1261
23.3GIC functional description1261
23.4Interrupt sources1262
23.4.1Software generated interrupts (SGI)1262
23.4.2Private peripheral interrupts (PPI)1263
23.4.3Shared peripheral interrupts (SPI)1264
23.4.4Interrupt priority formats1264
23.5GIC distributor (GICD)1264
23.5.1GICD control register (GICD_CTLR)1264
23.5.2GICD control non-secure access register (GICD_CTLRNS)1265
23.5.3GICD interrupt controller type register (GICD_TYPER)1265
23.5.4GICD implementer identification register (GICD_IIDR)1266
23.5.5GICD interrupt group register x (GICD_IGROUPRx)1266
23.5.6GICD interrupt set-enable register (GICD_ISENABLER0)1267
23.5.7GICD interrupt set-enable register x (GICD_ISENABLERx)1267
23.5.8GICD interrupt clear-enable register (GICD_ICENABLER0)1267
23.5.9GICD interrupt clear-enable register x (GICD_ICENABLERx)1268
23.5.10GICD interrupt set-pending register x (GICD_ISPENDRx)1268
23.5.11GICD interrupt clear-pending register x (GICD_ICPENDRx)1268
23.5.12GICD interrupt set-active register x (GICD_ISACTIVERx)1269
23.5.13GICD interrupt clear-active register x (GICD_ICACTIVERx)1269
23.5.14GICD interrupt priority register x (GICD_IPRIORITYRx)1269
23.5.15GICD interrupt processor target register x (GICD_ITARGETSRx)1270
23.5.16GICD interrupt processor target register x (GICD_ITARGETSRx)1271
23.5.17GICD interrupt configuration register (GICD_ICFGR0)1271
23.5.18GICD interrupt configuration register (GICD_ICFGR1)1272
23.5.19GICD interrupt configuration register x (GICD_ICFGRx)1273
23.5.20GICD private peripheral interrupt status register (GICD_PPISR)1274
23.5.21GICD shared peripheral interrupt register x (GICD_SPISRx)1275
23.5.22GICD software generated interrupt register (GICD_SGIR)1275
23.5.23GICD SGI clear-pending register x (GICD_CPENDSGIRx)1276
23.5.24GICD SGI set-pending register x (GICD_SPENDSGIRx)1278
23.5.25GICD peripheral ID4 register (GICD_PIDR4)1279
23.5.26GICD peripheral ID5 to ID7 register x (GICD_PIDRx)1279
23.5.27GICD peripheral ID0 register (GICD_PIDR0)1280
23.5.28GICD peripheral ID1 register (GICD_PIDR1)1280
23.5.29GICD peripheral ID2 register (GICD_PIDR2)1280
23.5.30GICD peripheral ID3 register (GICD_PIDR3)1281
23.5.31GICD component ID0 register (GICD_CIDR0) .....1281
23.5.32GICD component ID1 register (GICD_CIDR1) .....1281
23.5.33GICD component ID2 register (GICD_CIDR2) .....1282
23.5.34GICD component ID3 register (GICD_CIDR3) .....1282
23.5.35GICD register map .....1282
23.6GIC CPU Interface (GICC) .....1286
23.6.1GICC control register (GICC_CTLR) .....1286
23.6.2GICC control non-secure access register (GICC_CTLRNS) .....1287
23.6.3GICC input priority mask register (GICC_PMR) .....1288
23.6.4GICC binary point register (GICC_BPR) .....1288
23.6.5GICC binary point non-secure access register (GICC_BPRNS) ....1289
23.6.6GICC interrupt acknowledge register (GICC_IAR) .....1289
23.6.7GICC end of interrupt register (GICC_EOIR) .....1290
23.6.8GICC running priority register (GICC_RPR) .....1290
23.6.9GICC highest priority pending interrupt register (GICC_HPPIR) ....1291
23.6.10GICC aliased binary point register (GICC_ABPR) .....1291
23.6.11GICC aliased interrupt acknowledge register (GICC_AIAR) .....1292
23.6.12GICC aliased end of interrupt register (GICC_AEOIR) .....1292
23.6.13GICC aliased highest priority pending interrupt register
(GICC_AHPPIR) .....
1293
23.6.14GICC active priority register (GICC_APR0) .....1293
23.6.15GICC non-secure active priority register (GICC_NSAPR0) .....1294
23.6.16GICC interface identification register (GICC_IIDR) .....1294
23.6.17GICC deactivate interrupt register (GICC_DIR) .....1294
23.6.18GICC register map .....1295
23.7GIC virtual interface control, common (GICH) .....1297
23.7.1GICH hypervisor control register (GICH_HCR) .....1297
23.7.2GICH VGIC type register (GICH_VTR) .....1298
23.7.3GICH virtual machine control register (GICH_VMCR) .....1298
23.7.4GICH maintenance interrupt status register (GICH_MISR) .....1299
23.7.5GICH end of interrupt status register (GICH_EISR0) .....1300
23.7.6GICH empty list status register (GICH_ELSR0) .....1300
23.7.7GICH active priority register (GICH_APR0) .....1301
23.7.8GICH list register x (GICH_LRx) .....1301
23.7.9GICH register map .....1302
23.8GIC virtual CPU interface (GICV) .....1303
23.8.1GICV virtual machine control register (GICV_CTLR) .....1303
23.8.2GICV VM priority mask register (GICV_PMR) . . . . .1304
23.8.3GICV VM binary point register (GICV_BPR) . . . . .1305
23.8.4GICV VM interrupt acknowledge register (GICV_IAR) . . . . .1305
23.8.5GICV VM end of interrupt register (GICV_EOIR) . . . . .1305
23.8.6GICV VM running priority register (GICV_RPR) . . . . .1306
23.8.7GICV VM highest priority pending interrupt register (GICV_HPPIR) . . . . .1306
23.8.8GICV VM aliased binary point register (GICV_ABPR) . . . . .1307
23.8.9GICV VM aliased interrupt register (GICV_AIAR) . . . . .1307
23.8.10GICV VM aliased end of interrupt register (GICV_AEOIR) . . . . .1308
23.8.11GICV VM aliased highest priority pending interrupt register
(GICV_AHPPIR) . . . . .
1308
23.8.12GICV VM active priority register (GICV_APR0) . . . . .1309
23.8.13GICV VM CPU interface identification register (GICV_IIDR) . . . . .1309
23.8.14GICV VM deactivate interrupt register (GICV_DIR) . . . . .1309
23.8.15GICV register map . . . . .1310
24Extended interrupt and event controller (EXTI) . . . . .1312
24.1EXTI main features . . . . .1312
24.2EXTI block diagram . . . . .1313
24.2.1EXTI connections between peripherals and CPU . . . . .1314
24.3EXTI functional description . . . . .1315
24.3.1EXTI configurable event input wakeup . . . . .1316
24.3.2EXTI direct event input wakeup . . . . .1317
24.3.3EXTI mux selection . . . . .1317
24.4EXTI functional behavior . . . . .1318
24.5EXTI TrustZone security . . . . .1319
24.6EXTI registers . . . . .1321
24.6.1EXTI rising trigger selection register (EXTI_RTSR1) . . . . .1321
24.6.2EXTI falling trigger selection register (EXTI_FTSR1) . . . . .1322
24.6.3EXTI software interrupt event register (EXTI_SWIER1) . . . . .1322
24.6.4EXTI rising edge pending register (EXTI_RPR1) . . . . .1323
24.6.5EXTI falling edge pending register (EXTI_FPR1) . . . . .1323
24.6.6EXTI TrustZone enable register (EXTI_TZENR1) . . . . .1324
24.6.7EXTI rising trigger selection register (EXTI_RTSR2) . . . . .1324
24.6.8EXTI falling trigger selection register (EXTI_FTSR2) . . . . .1325
24.6.9EXTI software interrupt event register (EXTI_SWIER2) . . . . .1325
24.6.10EXTI rising edge pending register (EXTI_RPR2) . . . . .1325
24.6.11EXTI falling edge pending register (EXTI_FPR2) .....1326
24.6.12EXTI TrustZone enable register (EXTI_TZENR2) .....1326
24.6.13EXTI rising trigger selection register (EXTI_RTSR3) .....1327
24.6.14EXTI falling trigger selection register (EXTI_FTSR3) .....1328
24.6.15EXTI software interrupt event register (EXTI_SWIER3) .....1329
24.6.16EXTI rising edge pending register (EXTI_RPR3) .....1331
24.6.17EXTI falling edge pending register (EXTI_FPR3) .....1333
24.6.18EXTI TrustZone enable register (EXTI_TZENR3) .....1334
24.6.19EXTI external interrupt selection register 1 (EXTI_EXTICR1) .....1334
24.6.20EXTI external interrupt selection register 2 (EXTI_EXTICR2) .....1336
24.6.21EXTI external interrupt selection register 3 (EXTI_EXTICR3) .....1338
24.6.22EXTI external interrupt selection register 4 (EXTI_EXTICR4) .....1340
24.6.23EXTI CPU wakeup with interrupt mask register (EXTI_C1IMR1) ...1342
24.6.24EXTI CPU2 wakeup with interrupt mask register (EXTI_C2IMR1) ..1343
24.6.25EXTI CPU2 wakeup with event mask register (EXTI_C2EMR1) ...1343
24.6.26EXTI CPU wakeup with interrupt mask register (EXTI_C1IMR2) ...1344
24.6.27EXTI CPU2 wakeup with interrupt mask register (EXTI_C2IMR2) ..1345
24.6.28EXTI CPU2 wakeup with event mask register (EXTI_C2EMR2) ...1345
24.6.29EXTI CPU wakeup with interrupt mask register (EXTI_C1IMR3) ...1345
24.6.30EXTI CPUm wakeup with interrupt mask register (EXTI_C2IMR3) ..1346
24.6.31EXTI CPU2 wakeup with event mask register (EXTI_C2EMR3) ...1346
24.6.32EXTI hardware configuration register x (EXTI_HWCFGRx) .....1347
24.6.33EXTI hardware configuration register x (EXTI_HWCFGRx) .....1347
24.6.34EXTI hardware configuration register x (EXTI_HWCFGRx) .....1348
24.6.35EXTI hardware configuration register x (EXTI_HWCFGRx) .....1348
24.6.36EXTI hardware configuration register 1 (EXTI_HWCFGR1) .....1348
24.6.37EXTI IP version register (EXTI_VERR) .....1349
24.6.38EXTI identification register (EXTI_IPIDR) .....1349
24.6.39EXTI size ID register (EXTI_SIDR) .....1350
24.6.40EXTI register map .....1351
25Cyclic redundancy check calculation unit (CRC) .....1355
25.1Introduction .....1355
25.2CRC main features .....1355
25.3CRC functional description .....1356
25.3.1CRC block diagram .....1356
25.3.2CRC internal signals .....1356
25.3.3CRC operation .....1356
25.4CRC registers .....1358
25.4.1CRC data register (CRC_DR) .....1358
25.4.2CRC independent data register (CRC_IDR) .....1358
25.4.3CRC control register (CRC_CR) .....1359
25.4.4CRC initial value (CRC_INIT) .....1360
25.4.5CRC polynomial (CRC_POL) .....1360
25.4.6CRC hardware configuration register (CRC_HWCFGR) .....1360
25.4.7CRC version register (CRC_VERR) .....1361
25.4.8CRC identification register (CRC_IPIDR) .....1361
25.4.9CRC size identification register (CRC_SIDR) .....1362
25.4.10CRC register map .....1362
26Flexible memory controller (FMC) .....1364
26.1FMC main features .....1364
26.2FMC implementation .....1365
26.3FMC block diagram .....1365
26.4FMC internal signals .....1366
26.5AHB interface .....1366
26.6AXI interface .....1367
26.6.1Supported memories and transactions .....1367
26.7External device address mapping .....1368
26.7.1NOR/PSRAM address mapping .....1369
26.7.2NAND flash memory address mapping .....1369
26.8NOR flash/PSRAM controller .....1371
26.8.1External memory interface signals .....1372
26.8.2Supported memories and transactions .....1374
26.8.3General timing rules .....1376
26.8.4NOR flash/PSRAM controller asynchronous transactions .....1376
26.8.5Synchronous transactions .....1396
26.8.6NOR/PSRAM controller registers .....1402
26.9NAND flash controller .....1414
26.9.1External memory interface signals .....1415
26.9.2NAND flash supported memories and transactions .....1416
26.9.3Timing diagrams for NAND flash memory .....1417
26.9.4NAND flash operations .....1418
26.9.5NAND flash prewait function1419
26.9.6NAND ECC controller1419
26.9.7FMC command sequencer1422
26.9.8NAND flash controller interrupt1429
26.9.9NAND flash controller registers1430
26.10FMC register map1454
27Quad-SPI interface (QUADSPI)1458
27.1Introduction1458
27.2QUADSPI main features1458
27.3QUADSPI functional description1458
27.3.1QUADSPI block diagram1458
27.3.2QUADSPI pins and internal signals1459
27.3.3QUADSPI command sequence1460
27.3.4QUADSPI signal interface protocol modes1462
27.3.5QUADSPI indirect mode1464
27.3.6QUADSPI automatic status-polling mode1466
27.3.7QUADSPI memory-mapped mode1466
27.3.8QUADSPI free-running clock mode1467
27.3.9QUADSPI flash memory configuration1467
27.3.10QUADSPI delayed data sampling1468
27.3.11QUADSPI configuration1468
27.3.12QUADSPI use1469
27.3.13Sending the instruction only once1470
27.3.14QUADSPI error management1471
27.3.15QUADSPI busy bit and abort functionality1471
27.3.16NCS behavior1471
27.4QUADSPI interrupts1473
27.5QUADSPI registers1474
27.5.1QUADSPI control register (QUADSPI_CR)1474
27.5.2QUADSPI device configuration register (QUADSPI_DCR)1477
27.5.3QUADSPI status register (QUADSPI_SR)1478
27.5.4QUADSPI flag clear register (QUADSPI_FCR)1479
27.5.5QUADSPI data length register (QUADSPI_DLR)1479
27.5.6QUADSPI communication configuration register (QUADSPI_CCR)1480
27.5.7QUADSPI address register (QUADSPI_AR)1482
27.5.8QUADSPI alternate-byte register (QUADSPI_ABR) . . . . .1482
27.5.9QUADSPI data register (QUADSPI_DR) . . . . .1483
27.5.10QUADSPI polling status mask register (QUADSPI_PSMKR) . . . . .1483
27.5.11QUADSPI polling status match register (QUADSPI_PSMAR) . . . . .1484
27.5.12QUADSPI polling interval register (QUADSPI_PIR) . . . . .1484
27.5.13QUADSPI low-power timeout register (QUADSPI_LPTR) . . . . .1485
27.5.14QUADSPI hardware configuration register (QUADSPI_HWCFGR) . . . . .1485
27.5.15QUADSPI version register (QUADSPI_VERR) . . . . .1485
27.5.16QUADSPI identification register (QUADSPI_IPIDR) . . . . .1486
27.5.17QUADSPI size identification register (QUADSPI_SIDR) . . . . .1486
27.5.18QUADSPI register map . . . . .1487
28Delay block (DLYB) . . . . .1489
28.1Introduction . . . . .1489
28.2DLYB main features . . . . .1489
28.3DLYB functional description . . . . .1489
28.3.1DLYB diagram . . . . .1489
28.3.2DLYB pins and internal signals . . . . .1490
28.3.3General description . . . . .1490
28.3.4Delay line length configuration procedure . . . . .1491
28.3.5Output clock phase configuration procedure . . . . .1491
28.4DLYB registers . . . . .1492
28.4.1DLYB control register (DLYB_CR) . . . . .1492
28.4.2DLYB configuration register (DLYB_CFGR) . . . . .1493
28.4.3DLYB register map . . . . .1493
29Analog-to-digital converters (ADC) . . . . .1494
29.1Introduction . . . . .1494
29.2ADC main features . . . . .1495
29.3ADC implementation . . . . .1496
29.4ADC functional description . . . . .1497
29.4.1ADC block diagram . . . . .1497
29.4.2ADC pins and internal signals . . . . .1498
29.4.3ADC clocks . . . . .1499
29.4.4ADC1/2 connectivity . . . . .1501
29.4.5Slave AHB interface . . . . .1503
29.4.6ADC deep-power-down mode (DEEPPWD) and ADC voltage regulator (ADVREGEN) .....1503
29.4.7Single-ended and differential input channels .....1504
29.4.8Calibration (ADCAL, ADCALDIF, ADCALLIN, ADC_CALFACT) ....1504
29.4.9ADC on-off control (ADEN, ADDIS, ADRDY) .....1510
29.4.10Constraints when writing the ADC control bits .....1511
29.4.11Channel selection (SQRx, JSQRx) .....1512
29.4.12Channel preselection register (ADC_PCSEL) .....1512
29.4.13Channel-wise programmable sampling time (SMPR1, SMPR2) ....1513
29.4.14Single conversion mode (CONT=0) .....1514
29.4.15Continuous conversion mode (CONT=1) .....1514
29.4.16Starting conversions (ADSTART, JADSTART) .....1515
29.4.17Timing .....1516
29.4.18Stopping an ongoing conversion (ADSTP, JADSTP) .....1516
29.4.19Conversion on external trigger and trigger polarity (EXTSEL, EXTEN, JEXTSEL, JEXTEN) .....1518
29.4.20Injected channel management .....1521
29.4.21Discontinuous mode (DISCEN, DISCNUM, JDISCEN) .....1523
29.4.22Queue of context for injected conversions .....1524
29.4.23Programmable resolution (RES) - fast conversion mode .....1532
29.4.24End of conversion, end of sampling phase (EOC, JEOC, EOSMP) ..1532
29.4.25End of conversion sequence (EOS, JEOS) .....1532
29.4.26Timing diagrams example (single/continuous modes, hardware/software triggers) .....1533
29.4.27Data management .....1534
29.4.28Managing conversions using the DFSDM .....1542
29.4.29Dynamic low-power features .....1542
29.4.30Analog window watchdog (AWD1EN, JAWD1EN, AWD1SGL, AWD1CH, AWD2CH, AWD3CH, AWD_HTRy, AWD_LTRy, AWDy) ..1547
29.4.31Oversampler .....1550
29.4.32Dual ADC modes .....1556
29.4.33Temperature sensor .....1571
29.4.34VBAT supply monitoring .....1572
29.4.35Monitoring the internal voltage reference .....1573
29.4.36VDDCORE supply voltage monitoring .....1574
29.5ADC interrupts .....1575
29.6ADC registers (for each ADC) .....1577
29.6.1ADC interrupt and status register (ADC_ISR) .....1577
29.6.2ADC interrupt enable register (ADC_IER)1580
29.6.3ADC control register (ADC_CR)1582
29.6.4ADC configuration register (ADC_CFGR)1587
29.6.5ADC configuration register 2 (ADC_CFGR2)1591
29.6.6ADC sample time register 1 (ADC_SMPR1)1593
29.6.7ADC sample time register 2 (ADC_SMPR2)1594
29.6.8ADC channel preselection register (ADC_PCSEL)1595
29.6.9ADC watchdog threshold register 1 (ADC_LTR1)1595
29.6.10ADC watchdog threshold register 1 (ADC_HTR1)1596
29.6.11ADC regular sequence register 1 (ADC_SQR1)1597
29.6.12ADC regular sequence register 2 (ADC_SQR2)1598
29.6.13ADC regular sequence register 3 (ADC_SQR3)1599
29.6.14ADC regular sequence register 4 (ADC_SQR4)1600
29.6.15ADC regular Data Register (ADC_DR)1601
29.6.16ADC injected sequence register (ADC_JSQR)1602
29.6.17ADC injected channel y offset register (ADC_OFRy)1604
29.6.18ADC injected channel y data register (ADC_JDRy)1605
29.6.19ADC analog watchdog 2 configuration register (ADC_AWD2CR)1605
29.6.20ADC analog watchdog 3 configuration register (ADC_AWD3CR)1606
29.6.21ADC watchdog lower threshold register 2 (ADC_LTR2)1606
29.6.22ADC watchdog higher threshold register 2 (ADC_HTR2)1607
29.6.23ADC watchdog lower threshold register 3 (ADC_LTR3)1607
29.6.24ADC watchdog higher threshold register 3 (ADC_HTR3)1608
29.6.25ADC differential mode selection register (ADC_DIFSEL)1608
29.6.26ADC calibration factors register (ADC_CALFACT)1609
29.6.27ADC calibration factor register 2 (ADC_CALFACT2)1609
29.6.28ADC2 option register (ADC2_OR)1610
29.7ADC common registers1610
29.7.1ADC common status register (ADC_CSR)1610
29.7.2ADC common control register (ADC_CCR)1613
29.7.3ADC common regular data register for dual mode (ADC_CDR)1616
29.7.4ADC common regular data register for 32-bit dual mode (ADC_CDR2)1616
29.7.5ADC hardware configuration register (ADC_HWCFGR0)1617
29.7.6ADC version register (ADC_VERR)1617
29.7.7ADC identification register (ADC_IPIDR) .....1617
29.7.8ADC size identification register (ADC_SIDR) .....1618
29.8ADC register map .....1618
30Digital temperature sensor (DTS) .....1623
30.1Introduction .....1623
30.2DTS main features .....1623
30.3DTS functional description .....1624
30.3.1DTS block diagram .....1624
30.3.2DTS internal signals .....1624
30.3.3DTS block operation .....1625
30.3.4Operating modes .....1625
30.3.5Calibration .....1625
30.3.6Prescaler .....1625
30.3.7Temperature measurement principles .....1626
30.3.8Sampling time .....1627
30.3.9Quick measurement mode .....1627
30.3.10Trigger input .....1628
30.3.11On-off control and ready flag .....1628
30.3.12Temperature measurement sequence .....1629
30.4DTS low-power modes .....1630
30.5DTS interrupts .....1630
30.5.1Temperature window comparator .....1630
30.5.2Synchronous interrupt .....1630
30.5.3Asynchronous wakeup .....1630
30.6DTS registers .....1631
30.6.1Temperature sensor configuration register 1 (DTS_CFGR1) .....1631
30.6.2Temperature sensor T0 value register 1 (DTS_T0VALR1) .....1633
30.6.3Temperature sensor ramp value register (DTS_RAMPVALR) .....1633
30.6.4Temperature sensor interrupt threshold register 1 (DTS_ITR1) .....1634
30.6.5Temperature sensor data register (DTS_DR) .....1634
30.6.6Temperature sensor status register (DTS_SR) .....1635
30.6.7Temperature sensor interrupt enable register (DTS_ITENR) .....1636
30.6.8Temperature sensor clear interrupt flag register (DTS_ICIFR) .....1637
30.6.9Temperature sensor option register (DTS_OR) .....1638
30.6.10DTS register map .....1639
31Digital-to-analog converter (DAC)1640
31.1Introduction1640
31.2DAC main features1640
31.3DAC implementation1641
31.4DAC functional description1642
31.4.1DAC block diagram1642
31.4.2DAC pins and internal signals1643
31.4.3DAC channel enable1644
31.4.4DAC data format1644
31.4.5DAC conversion1646
31.4.6DAC output voltage1646
31.4.7DAC trigger selection1647
31.4.8DMA requests1647
31.4.9Noise generation1648
31.4.10Triangle-wave generation1649
31.4.11DAC channel modes1650
31.4.12DAC channel buffer calibration1653
31.4.13DAC channel conversion modes1654
31.4.14Dual DAC channel conversion modes (if dual channels are available)1655
31.5DAC in low-power modes1659
31.6DAC interrupts1660
31.7DAC registers1660
31.7.1DAC control register (DAC_CR)1660
31.7.2DAC software trigger register (DAC_SWTRGR)1664
31.7.3DAC channel1 12-bit right-aligned data holding register (DAC_DHR12R1)1664
31.7.4DAC channel1 12-bit left aligned data holding register (DAC_DHR12L1)1665
31.7.5DAC channel1 8-bit right aligned data holding register (DAC_DHR8R1)1665
31.7.6DAC channel2 12-bit right aligned data holding register (DAC_DHR12R2)1666
31.7.7DAC channel2 12-bit left aligned data holding register (DAC_DHR12L2)1666
31.7.8DAC channel2 8-bit right-aligned data holding register (DAC_DHR8R2)1667
31.7.9Dual DAC 12-bit right-aligned data holding register (DAC_DHR12RD)1667
31.7.10Dual DAC 12-bit left aligned data holding register (DAC_DHR12LD)1668
31.7.11Dual DAC 8-bit right aligned data holding register (DAC_DHR8RD)1668
31.7.12DAC channel1 data output register (DAC_DOR1)1669
31.7.13DAC channel2 data output register (DAC_DOR2)1669
31.7.14DAC status register (DAC_SR)1669
31.7.15DAC calibration control register (DAC_CCR)1671
31.7.16DAC mode control register (DAC_MCR)1671
31.7.17DAC channel1 sample and hold sample time register (DAC_SHSR1)1673
31.7.18DAC channel2 sample and hold sample time register (DAC_SHSR2)1673
31.7.19DAC sample and hold time register (DAC_SHHR)1673
31.7.20DAC sample and hold refresh time register (DAC_SHRR)1674
31.7.21DAC hardware configuration register (DAC_HWCFGR0)1675
31.7.22DAC version register (DAC_VERR)1676
31.7.23DAC identification register (DAC_IPIDR)1676
31.7.24DAC size identification register (DAC_SIDR)1676
31.7.25DAC register map1677
32Voltage reference buffer (VREFBUF)1680
32.1Introduction1680
32.2VREFBUF functional description1680
32.3VREFBUF registers1681
32.3.1VREFBUF control and status register (VREFBUF_CSR)1681
32.3.2VREFBUF calibration control register (VREFBUF_CCR)1682
32.3.3VREFBUF register map1682
33Digital filter for sigma delta modulators (DFSDM)1683
33.1Introduction1683
33.2DFSDM main features1684
33.3DFSDM implementation1685
33.4DFSDM functional description1686
33.4.1DFSDM block diagram1686
33.4.2DFSDM pins and internal signals1687
33.4.3DFSDM reset and clocks .....1688
33.4.4Serial channel transceivers .....1689
33.4.5Configuring the input serial interface .....1699
33.4.6Parallel data inputs .....1699
33.4.7Channel selection .....1702
33.4.8Digital filter configuration .....1702
33.4.9Integrator unit .....1703
33.4.10Analog watchdog .....1704
33.4.11Short-circuit detector .....1706
33.4.12Extreme detector .....1707
33.4.13Data unit block .....1707
33.4.14Signed data format .....1708
33.4.15Launching conversions .....1709
33.4.16Continuous and fast continuous modes .....1709
33.4.17Request precedence .....1710
33.4.18Power optimization in run mode .....1711
33.5DFSDM interrupts .....1711
33.6DFSDM DMA transfer .....1713
33.7DFSDM channel y registers (y=0..7) .....1713
33.7.1DFSDM channel y configuration register (DFSDM_CHyCFGR1) .....1713
33.7.2DFSDM channel y configuration register (DFSDM_CHyCFGR2) .....1715
33.7.3DFSDM channel y analog watchdog and short-circuit detector register
(DFSDM_CHyAWSCDR) .....
1716
33.7.4DFSDM channel y watchdog filter data register
(DFSDM_CHyWDATR) .....
1717
33.7.5DFSDM channel y data input register (DFSDM_CHyDATINR) .....1717
33.7.6DFSDM channel y delay register (DFSDM_CHyDLYR) .....1718
33.8DFSDM filter x module registers (x=0..5) .....1719
33.8.1DFSDM filter x control register 1 (DFSDM_FLTxCR1) .....1719
33.8.2DFSDM filter x control register 2 (DFSDM_FLTxCR2) .....1722
33.8.3DFSDM filter x interrupt and status register (DFSDM_FLTxISR) .....1723
33.8.4DFSDM filter x interrupt flag clear register (DFSDM_FLTxICR) .....1725
33.8.5DFSDM filter x injected channel group selection register
(DFSDM_FLTxJCHGR) .....
1726
33.8.6DFSDM filter x control register (DFSDM_FLTxFCR) .....1726
33.8.7DFSDM filter x data register for injected group
(DFSDM_FLTxJDATAR) .....
1727
33.8.8DFSDM filter x data register for the regular channel
(DFSDM_FLTxRDATAR) .....
1728
33.8.9DFSDM filter x analog watchdog high threshold register
(DFSDM_FLTxAWHTR) .....
1729
33.8.10DFSDM filter x analog watchdog low threshold register
(DFSDM_FLTxAWLTR) .....
1729
33.8.11DFSDM filter x analog watchdog status register
(DFSDM_FLTxAWSR) .....
1730
33.8.12DFSDM filter x analog watchdog clear flag register
(DFSDM_FLTxAWCFR) .....
1731
33.8.13DFSDM filter x extremes detector maximum register
(DFSDM_FLTxEXMAX) .....
1731
33.8.14DFSDM filter x extremes detector minimum register
(DFSDM_FLTxEXMIN) .....
1732
33.8.15DFSDM filter x conversion timer register (DFSDM_FLTxCNVTIMR) .1732
33.9DFSDM version registers .....1734
33.9.1DFSDM hardware configuration register (DFSDM_HWCFGR) ....1734
33.9.2DFSDM version register (DFSDM_VERR) .....1734
33.9.3DFSDM identification register (DFSDM_IPIDR) .....1735
33.9.4DFSDM size identification register (DFSDM_SIDR) .....1735
33.9.5DFSDM register map .....1736
34Digital camera interface (DCMI) .....1749
34.1Introduction .....1749
34.2DCMI main features .....1749
34.3DCMI functional description .....1749
34.3.1DCMI block diagram .....1750
34.3.2DCMI pins and internal signals .....1750
34.3.3DCMI clocks .....1751
34.3.4DCMI DMA interface .....1751
34.3.5DCMI physical interface .....1751
34.3.6DCMI synchronization .....1753
34.3.7DCMI capture modes .....1755
34.3.8DCMI crop feature .....1756
34.3.9DCMI JPEG format .....1757
34.3.10DCMI FIFO .....1757
34.3.11DCMI data format description .....1758
34.4DCMI interrupts .....1760
34.5DCMI registers1760
34.5.1DCMI control register (DCMI_CR)1760
34.5.2DCMI status register (DCMI_SR)1763
34.5.3DCMI raw interrupt status register (DCMI_RIS)1763
34.5.4DCMI interrupt enable register (DCMI_IER)1764
34.5.5DCMI masked interrupt status register (DCMI_MIS)1765
34.5.6DCMI interrupt clear register (DCMI_ICR)1766
34.5.7DCMI embedded synchronization code register (DCMI_ESCR)1767
34.5.8DCMI embedded synchronization unmask register (DCMI_ESUR)1767
34.5.9DCMI crop window start (DCMI_CWSTRT)1768
34.5.10DCMI crop window size (DCMI_CWSIZE)1769
34.5.11DCMI data register (DCMI_DR)1769
34.5.12DCMI register map1770
35LCD-TFT display controller (LTDC)1771
35.1Introduction1771
35.2LTDC main features1771
35.3LTDC functional description1772
35.3.1LTDC block diagram1772
35.3.2LTDC pins and internal signals1772
35.3.3LTDC reset and clocks1773
35.4LTDC programmable parameters1775
35.4.1LTDC global configuration parameters1775
35.4.2Layer programmable parameters1777
35.5LTDC interrupts1781
35.6LTDC programming procedure1782
35.7LTDC registers1783
35.7.1LTDC identification register (LTDC_IDR)1783
35.7.2LTDC layer count register (LTDC_LCR)1783
35.7.3LTDC synchronization size configuration register (LTDC_SSCR)1784
35.7.4LTDC back porch configuration register (LTDC_BPCR)1784
35.7.5LTDC active width configuration register (LTDC_AWCR)1785
35.7.6LTDC total width configuration register (LTDC_TWCR)1786
35.7.7LTDC global control register (LTDC_GCR)1786
35.7.8LTDC global configuration 1 register (LTDC_GC1R)1787
35.7.9LTDC global configuration 2 register (LTDC_GC2R)1788
35.7.10LTDC shadow reload configuration register (LTDC_SRCR) .....1789
35.7.11LTDC background color configuration register (LTDC_BCCR) .....1789
35.7.12LTDC interrupt enable register (LTDC_IER) .....1790
35.7.13LTDC interrupt status register (LTDC_ISR) .....1791
35.7.14LTDC interrupt clear register (LTDC_ICR) .....1791
35.7.15LTDC line interrupt position configuration register (LTDC_LIPCR) ..1792
35.7.16LTDC current position status register (LTDC_CPSR) .....1792
35.7.17LTDC current display status register (LTDC_CDSR) .....1793
35.7.18LTDC layer x control register (LTDC_LxCR) .....1793
35.7.19LTDC layer x window horizontal position configuration register
(LTDC_LxWHPCR) .....
1794
35.7.20LTDC layer x window vertical position configuration register
(LTDC_LxWVPCR) .....
1795
35.7.21LTDC layer x color keying configuration register
(LTDC_LxCKCR) .....
1796
35.7.22LTDC layer x pixel format configuration register
(LTDC_LxPFCR) .....
1796
35.7.23LTDC layer x constant alpha configuration register
(LTDC_LxCACR) .....
1797
35.7.24LTDC layer x default color configuration register
(LTDC_LxDCCR) .....
1797
35.7.25LTDC layer x blending factors configuration register
(LTDC_LxBFCR) .....
1798
35.7.26LTDC layer x color frame buffer address register
(LTDC_LxCFBAR) .....
1799
35.7.27LTDC layer x color frame buffer length register
(LTDC_LxCFBLR) .....
1799
35.7.28LTDC layer x color frame buffer line number register
(LTDC_LxCFBLNR) .....
1800
35.7.29LTDC layer x CLUT write register (LTDC_LxCLUTWR) .....1800
35.7.30LTDC register map .....1801
36DSI Host (DSI) .....1805
36.1Introduction .....1805
36.2Standard and references .....1805
36.3DSI Host main features .....1806
36.4DSI Host functional description .....1807
36.4.1General description .....1807
36.4.2DSI Host pins and internal signals .....1807
36.4.3Supported resolutions and frame rates .....1808
36.4.4System level architecture . . . . .1808
36.5Functional description: video mode on LTDC interface . . . . .1811
36.5.1Video transmission mode . . . . .1813
36.5.2Updating the LTDC interface configuration in video mode . . . . .1814
36.6Functional description: adapted command mode on LTDC interface . . . . .1816
36.7Functional description: APB register interface . . . . .1820
36.7.1Packet transmission using the generic interface . . . . .1820
36.8Functional description: timeout counters . . . . .1824
36.8.1Contention error detection timeout counters . . . . .1824
36.8.2Peripheral response timeout counters . . . . .1825
36.9Functional description: transmission of commands . . . . .1830
36.9.1Transmission of commands in video mode . . . . .1830
36.9.2Transmission of commands in low-power mode . . . . .1832
36.9.3Transmission of commands in high-speed . . . . .1836
36.9.4Read command transmission . . . . .1836
36.9.5Clock lane in low-power mode . . . . .1837
36.10Functional description: virtual channels . . . . .1839
36.11Functional description: video mode pattern generator . . . . .1840
36.11.1Color bar pattern . . . . .1840
36.11.2Color coding . . . . .1842
36.11.3BER testing pattern . . . . .1842
36.11.4Video mode pattern generator resolution . . . . .1843
36.12Functional description: D-PHY management . . . . .1844
36.12.1D-PHY configuration . . . . .1844
36.12.2D-PHY HS2LP and LP2HS durations . . . . .1845
36.12.3Special D-PHY operations . . . . .1845
36.12.4Special low-power D-PHY functions . . . . .1846
36.12.5DSI PLL control . . . . .1846
36.12.6Regulator control . . . . .1847
36.12.7D-PHY band-gap control . . . . .1847
36.13Functional description: interrupts and errors . . . . .1847
36.13.1DSI Wrapper interrupts . . . . .1848
36.13.2DSI Host interrupts and errors . . . . .1848
36.14Programing procedure . . . . .1855
36.14.1Programing procedure overview . . . . .1855
36.14.2Configuring the D-PHY parameters . . . . .1855
36.14.3Configuring the DSI Host timing1856
36.14.4Configuring flow control and DBI interface1857
36.14.5Configuring the DSI Host LTDC interface1857
36.14.6Configuring the video mode1858
36.14.7Configuring the adapted command mode1862
36.14.8Configuring the video mode pattern generator1862
36.14.9Managing ULPM1863
36.15DSI Host registers1866
36.15.1DSI Host version register (DSI_VR)1866
36.15.2DSI Host control register (DSI_CR)1866
36.15.3DSI Host clock control register (DSI_CCR)1866
36.15.4DSI Host LTDC VCID register (DSI_LVCIDR)1867
36.15.5DSI Host LTDC color coding register (DSI_LCOLCR)1867
36.15.6DSI Host LTDC polarity configuration register (DSI_LPCR)1868
36.15.7DSI Host low-power mode configuration register (DSI_LPMCR)1868
36.15.8DSI Host protocol configuration register (DSI_PCR)1869
36.15.9DSI Host generic VCID register (DSI_GVCIDR)1870
36.15.10DSI Host mode configuration register (DSI_MCR)1870
36.15.11DSI Host video mode configuration register (DSI_VMCR)1870
36.15.12DSI Host video packet configuration register (DSI_VPCR)1872
36.15.13DSI Host video chunks configuration register (DSI_VCCR)1872
36.15.14DSI Host video null packet configuration register (DSI_VNPCR)1873
36.15.15DSI Host video HSA configuration register (DSI_VHSACR)1873
36.15.16DSI Host video HBP configuration register (DSI_VHBPCR)1874
36.15.17DSI Host video line configuration register (DSI_VLCR)1874
36.15.18DSI Host video VSA configuration register (DSI_VVSACR)1874
36.15.19DSI Host video VBP configuration register (DSI_VVBPCR)1875
36.15.20DSI Host video VFP configuration register (DSI_VVFPCR)1875
36.15.21DSI Host video VA configuration register (DSI_VVACR)1875
36.15.22DSI Host LTDC command configuration register (DSI_LCCR)1876
36.15.23DSI Host command mode configuration register (DSI_CMCR)1876
36.15.24DSI Host generic header configuration register (DSI_GHCR)1878
36.15.25DSI Host generic payload data register (DSI_GPDR)1878
36.15.26DSI Host generic packet status register (DSI_GPSR)1879
36.15.27DSI Host timeout counter configuration register 0 (DSI_TCCR0)1880
36.15.28DSI Host timeout counter configuration register 1 (DSI_TCCR1)1880
36.15.29DSI 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.60DSI Host video VBP current configuration register (DSI_VVBPCR)1902
36.15.61DSI Host video VFP current configuration register (DSI_VVFPCCR)1902
36.15.62DSI Host video VA current configuration register (DSI_VVACCR)1903
36.16DSI Wrapper registers1904
36.16.1DSI Wrapper configuration register (DSI_WCFGR)1904
36.16.2DSI Wrapper control register (DSI_WCR)1905
36.16.3DSI Wrapper interrupt enable register (DSI_WIER)1905
36.16.4DSI Wrapper interrupt and status register (DSI_WISR)1906
36.16.5DSI Wrapper interrupt flag clear register (DSI_WIFCR)1907
36.16.6DSI Wrapper PHY configuration register 0 (DSI_WPCR0)1908
36.16.7DSI Wrapper PHY configuration register 1 (DSI_WPCR1)1910
36.16.8DSI Wrapper regulator and PLL control register (DSI_WRPCR)1911
36.16.9DSI hardware configuration register (DSI_HWCFGR)1912
36.16.10DSI version register (DSI_VERR)1913
36.16.11DSI identification register (DSI_IPIDR)1913
36.16.12DSI size identification register (DSI_SIDR)1913
36.16.13DSI register map1914
37True random number generator (RNG)1919
37.1Introduction1919
37.2RNG main features1919
37.3RNG functional description1920
37.3.1RNG block diagram1920
37.3.2RNG internal signals1920
37.3.3Random number generation1921
37.3.4RNG initialization1923
37.3.5RNG operation1924
37.3.6RNG clocking1925
37.3.7Error management1925
37.3.8RNG low-power use1926
37.4RNG interrupts1926
37.5RNG processing time1926
37.6RNG entropy source validation1927
37.6.1Introduction1927
37.6.2Validation conditions1927
37.6.3Data collection1927
37.7RNG registers1928
37.7.1RNG control register (RNG_CR)1928
37.7.2RNG status register (RNG_SR)1928
37.7.3RNG data register (RNG_DR)1929
37.7.4RNG hardware configuration register (RNG_HWCFGR)1930
37.7.5RNG version register (RNG_VERR)1930
37.7.6RNG identification register (RNG_IPIDR)1931
37.7.7RNG size identification register (RNG_SIDR)1931
37.7.8RNG register map1931
38Hash processor (HASH)1933
38.1Introduction1933
38.2HASH main features1933
38.3HASH implementation1934
38.4HASH functional description1934
38.4.1HASH block diagram1934
38.4.2HASH internal signals1935
38.4.3About secure hash algorithms1935
38.4.4Message data feeding1935
38.4.5Message digest computing1937
38.4.6Message padding1938
38.4.7HMAC operation1940
38.4.8HASH suspend/resume operations1942
38.4.9HASH DMA interface1944
38.4.10HASH error management1944
38.4.11HASH processing time1945
38.5HASH interrupts1945
38.6HASH registers1946
38.6.1HASH control register (HASH_CR)1946
38.6.2HASH data input register (HASH_DIN)1948
38.6.3HASH start register (HASH_STR)1949
38.6.4HASH digest registers1950
38.6.5HASH interrupt enable register (HASH_IMR)1951
38.6.6HASH status register (HASH_SR)1952
38.6.7HASH context swap registers .....1952
38.6.8HASH hardware configuration register (HASH_HWCFGR) .....1953
38.6.9HASH version register (HASH_VERR) .....1953
38.6.10HASH identification register (HASH_IPIDR) .....1954
38.6.11HASH size identification register (HASH_SIDR) .....1954
38.6.12HASH register map .....1954
39Cryptographic processor (CRYP) .....1957
39.1Introduction .....1957
39.2CRYP main features .....1957
39.3CRYP implementation .....1958
39.4CRYP functional description .....1959
39.4.1CRYP block diagram .....1959
39.4.2CRYP internal signals .....1960
39.4.3CRYP DES/TDES cryptographic core .....1960
39.4.4CRYP AES cryptographic core .....1961
39.4.5CRYP procedure to perform a cipher operation .....1967
39.4.6CRYP busy state .....1969
39.4.7Preparing the CRYP AES key for decryption .....1970
39.4.8CRYP stealing and data padding .....1970
39.4.9CRYP suspend/resume operations .....1971
39.4.10CRYP DES/TDES basic chaining modes (ECB, CBC) .....1972
39.4.11CRYP AES basic chaining modes (ECB, CBC) .....1977
39.4.12CRYP AES counter mode (AES-CTR) .....1982
39.4.13CRYP AES Galois/counter mode (GCM) .....1986
39.4.14CRYP AES Galois message authentication code (GMAC) .....1991
39.4.15CRYP AES Counter with CBC-MAC (CCM) .....1992
39.4.16CRYP data registers and data swapping .....1997
39.4.17CRYP key registers .....2001
39.4.18CRYP initialization vector registers .....2002
39.4.19CRYP DMA interface .....2003
39.4.20CRYP error management .....2005
39.5CRYP interrupts .....2006
39.6CRYP processing time .....2007
39.7CRYP registers .....2008
39.7.1CRYP control register (CRYP_CR) .....2008
39.7.2CRYP status register (CRYP_SR) .....2010
39.7.3CRYP data input register (CRYP_DIN) .....2011
39.7.4CRYP data output register (CRYP_DOUT) .....2011
39.7.5CRYP DMA control register (CRYP_DMACR) .....2012
39.7.6CRYP interrupt mask set/clear register (CRYP_IMSCR) .....2013
39.7.7CRYP raw interrupt status register (CRYP_RISR) .....2013
39.7.8CRYP masked interrupt status register (CRYP_MISR) .....2014
39.7.9CRYP key register 0L (CRYP_K0LR) .....2015
39.7.10CRYP key register 0R (CRYP_K0RR) .....2015
39.7.11CRYP key register 1L (CRYP_K1LR) .....2016
39.7.12CRYP key register 1R (CRYP_K1RR) .....2016
39.7.13CRYP key register 2L (CRYP_K2LR) .....2017
39.7.14CRYP key register 2R (CRYP_K2RR) .....2017
39.7.15CRYP key register 3L (CRYP_K3LR) .....2018
39.7.16CRYP key register 3R (CRYP_K3RR) .....2018
39.7.17CRYP initialization vector register 0L (CRYP_IV0LR) .....2019
39.7.18CRYP initialization vector register 0R (CRYP_IV0RR) .....2019
39.7.19CRYP initialization vector register 1L (CRYP_IV1LR) .....2020
39.7.20CRYP initialization vector register 1R (CRYP_IV1RR) .....2020
39.7.21CRYP context swap GCM-CCM registers (CRYP_CSGCMCCMxR) .....2020
39.7.22CRYP context swap GCM registers (CRYP_CSGCMxR) .....2021
39.7.23CRYP hardware configuration register (CRYP_HWCFGR) .....2021
39.7.24CRYP version register (CRYP_VERR) .....2022
39.7.25CRYP identification (CRYP_IPIDR) .....2022
39.7.26CRYP size identification register (CRYP_SIDR) .....2023
39.7.27CRYP register map .....2023
40Advanced-control timers (TIM1/TIM8) .....2026
40.1TIM1/TIM8 introduction .....2026
40.2TIM1/TIM8 main features .....2026
40.3TIM1/TIM8 functional description .....2028
40.3.1Time-base unit .....2028
40.3.2Counter modes .....2030
40.3.3Repetition counter .....2041
40.3.4External trigger input .....2043
40.3.5Clock selection .....2044
40.3.6Capture/compare channels .....2048
40.3.7Input capture mode .....2050
40.3.8PWM input mode .....2051
40.3.9Forced output mode .....2052
40.3.10Output compare mode .....2053
40.3.11PWM mode .....2054
40.3.12Asymmetric PWM mode .....2057
40.3.13Combined PWM mode .....2058
40.3.14Combined 3-phase PWM mode .....2059
40.3.15Complementary outputs and dead-time insertion .....2060
40.3.16Using the break function .....2062
40.3.17Bidirectional break inputs .....2068
40.3.18Clearing the OCxREF signal on an external event .....2069
40.3.196-step PWM generation .....2071
40.3.20One-pulse mode .....2072
40.3.21Retriggerable one pulse mode .....2073
40.3.22Encoder interface mode .....2074
40.3.23UIF bit remapping .....2076
40.3.24Timer input XOR function .....2077
40.3.25Interfacing with Hall sensors .....2077
40.3.26Timer synchronization .....2080
40.3.27ADC synchronization .....2084
40.3.28DMA burst mode .....2084
40.3.29Debug mode .....2085
40.4TIM1/TIM8 registers .....2086
40.4.1TIMx control register 1 (TIMx_CR1)(x = 1, 8) .....2086
40.4.2TIMx control register 2 (TIMx_CR2)(x = 1, 8) .....2087
40.4.3TIMx slave mode control register
(TIMx_SMCR)(x = 1, 8) .....
2090
40.4.4TIMx DMA/interrupt enable register
(TIMx_DIER)(x = 1, 8) .....
2092
40.4.5TIMx status register (TIMx_SR)(x = 1, 8) .....2094
40.4.6TIMx event generation register (TIMx_EGR)(x = 1, 8) .....2096
40.4.7TIMx capture/compare mode register 1 (TIMx_CCMR1)(x = 1, 8) ..2097
40.4.8TIMx capture/compare mode register 1 [alternate]
(TIMx_CCMR1)(x = 1, 8) .....
2098
40.4.9TIMx capture/compare mode register 2 (TIMx_CCMR2)(x = 1, 8) ..2101
40.4.10TIMx capture/compare mode register 2 [alternate]
(TIMx_CCMR2)(x = 1, 8) .....
2102
40.4.11TIMx capture/compare enable register
(TIMx_CCER)(x = 1, 8) .....
2103
40.4.12TIMx counter (TIMx_CNT)(x = 1, 8) .....2107
40.4.13TIMx prescaler (TIMx_PSC)(x = 1, 8) .....2107
40.4.14TIMx auto-reload register (TIMx_ARR)(x = 1, 8) .....2107
40.4.15TIMx repetition counter register (TIMx_RCR)(x = 1, 8) .....2108
40.4.16TIMx capture/compare register 1
(TIMx_CCR1)(x = 1, 8) .....
2108
40.4.17TIMx capture/compare register 2
(TIMx_CCR2)(x = 1, 8) .....
2109
40.4.18TIMx capture/compare register 3
(TIMx_CCR3)(x = 1, 8) .....
2109
40.4.19TIMx capture/compare register 4
(TIMx_CCR4)(x = 1, 8) .....
2110
40.4.20TIMx break and dead-time register
(TIMx_BDTR)(x = 1, 8) .....
2110
40.4.21TIMx DMA control register
(TIMx_DCR)(x = 1, 8) .....
2114
40.4.22TIMx DMA address for full transfer
(TIMx_DMAR)(x = 1, 8) .....
2115
40.4.23TIMx capture/compare mode register 3
(TIMx_CCMR3)(x = 1, 8) .....
2116
40.4.24TIMx capture/compare register 5
(TIMx_CCR5)(x = 1, 8) .....
2117
40.4.25TIMx capture/compare register 6
(TIMx_CCR6)(x = 1, 8) .....
2118
40.4.26TIM1 alternate function option register 1 (TIM1_AF1) .....2118
40.4.27TIM1 Alternate function register 2 (TIM1_AF2) .....2119
40.4.28TIM8 Alternate function option register 1 (TIM8_AF1) .....2120
40.4.29TIM8 Alternate function option register 2 (TIM8_AF2) .....2121
40.4.30TIM1 timer input selection register (TIM1_TISEL) .....2122
40.4.31TIM8 timer input selection register (TIM8_TISEL) .....2123
40.4.32TIM1 register map .....2124
40.4.33TIM8 register map .....2126
41General-purpose timers (TIM2/TIM3/TIM4/TIM5) .....2129
41.1TIM2/TIM3/TIM4/TIM5 introduction .....2129
41.2TIM2/TIM3/TIM4/TIM5 main features .....2129
41.3TIM2/TIM3/TIM4/TIM5 functional description .....2131
41.3.1Time-base unit .....2131
41.3.2Counter modes2133
41.3.3Clock selection2143
41.3.4Capture/Compare channels2147
41.3.5Input capture mode2148
41.3.6PWM input mode2149
41.3.7Forced output mode2150
41.3.8Output compare mode2151
41.3.9PWM mode2152
41.3.10Asymmetric PWM mode2155
41.3.11Combined PWM mode2156
41.3.12Clearing the OCxREF signal on an external event2157
41.3.13One-pulse mode2159
41.3.14Retriggerable one pulse mode2160
41.3.15Encoder interface mode2161
41.3.16UIF bit remapping2163
41.3.17Timer input XOR function2163
41.3.18Timers and external trigger synchronization2164
41.3.19Timer synchronization2167
41.3.20DMA burst mode2172
41.3.21Debug mode2173
41.4TIM2/TIM3/TIM4/TIM5 registers2174
41.4.1TIMx control register 1 (TIMx_CR1)(x = 2 to 5)2174
41.4.2TIMx control register 2 (TIMx_CR2)(x = 2 to 5)2175
41.4.3TIMx slave mode control register (TIMx_SMCR)(x = 2 to 5)2177
41.4.4TIMx DMA/Interrupt enable register (TIMx_DIER)(x = 2 to 5)2180
41.4.5TIMx status register (TIMx_SR)(x = 2 to 5)2181
41.4.6TIMx event generation register (TIMx_EGR)(x = 2 to 5)2182
41.4.7TIMx capture/compare mode register 1 (TIMx_CCMR1)(x = 2 to 5)2183
41.4.8TIMx capture/compare mode register 1 [alternate] (TIMx_CCMR1)
(x = 2 to 5)
2185
41.4.9TIMx capture/compare mode register 2 (TIMx_CCMR2)(x = 2 to 5)2187
41.4.10TIMx capture/compare mode register 2 [alternate] (TIMx_CCMR2)
(x = 2 to 5)
2188
41.4.11TIMx capture/compare enable register
(TIMx_CCER)(x = 2 to 5)
2189
41.4.12TIMx counter (TIMx_CNT)(x = 2 to 5)2190
41.4.13TIMx counter [alternate] (TIMx_CNT)(x = 2 to 5)2191
41.4.14TIMx prescaler (TIMx_PSC)(x = 2 to 5)2191
41.4.15TIMx auto-reload register (TIMx_ARR)(x = 2 to 5) . . . . .2192
41.4.16TIMx capture/compare register 1 (TIMx_CCR1)(x = 2 to 5) . . . . .2192
41.4.17TIMx capture/compare register 2 (TIMx_CCR2)(x = 2 to 5) . . . . .2192
41.4.18TIMx capture/compare register 3 (TIMx_CCR3)(x = 2 to 5) . . . . .2193
41.4.19TIMx capture/compare register 4 (TIMx_CCR4)(x = 2 to 5) . . . . .2193
41.4.20TIMx DMA control register (TIMx_DCR)(x = 2 to 5) . . . . .2194
41.4.21TIMx DMA address for full transfer (TIMx_DMAR)(x = 2 to 5) . . . . .2195
41.4.22TIM2 alternate function option register 1 (TIM2_AF1) . . . . .2195
41.4.23TIM3 alternate function option register 1 (TIM3_AF1) . . . . .2195
41.4.24TIM4 alternate function option register 1 (TIM4_AF1) . . . . .2196
41.4.25TIM5 alternate function option register 1 (TIM5_AF1) . . . . .2196
41.4.26TIM2 timer input selection register (TIM2_TISEL) . . . . .2197
41.4.27TIM3 timer input selection register (TIM3_TISEL) . . . . .2198
41.4.28TIM4 timer input selection register (TIM4_TISEL) . . . . .2198
41.4.29TIM5 timer input selection register (TIM5_TISEL) . . . . .2199
41.4.30TIMx register map . . . . .2201
42General-purpose timers (TIM12/TIM13/TIM14) . . . . .2204
42.1TIM12/TIM13/TIM14 introduction . . . . .2204
42.2TIM12/TIM13/TIM14 main features . . . . .2204
42.2.1TIM12 main features . . . . .2204
42.2.2TIM13/TIM14 main features . . . . .2205
42.3TIM12/TIM13/TIM14 functional description . . . . .2207
42.3.1Time-base unit . . . . .2207
42.3.2Counter modes . . . . .2209
42.3.3Clock selection . . . . .2212
42.3.4Capture/compare channels . . . . .2214
42.3.5Input capture mode . . . . .2216
42.3.6PWM input mode (only for TIM12) . . . . .2217
42.3.7Forced output mode . . . . .2218
42.3.8Output compare mode . . . . .2219
42.3.9PWM mode . . . . .2220
42.3.10Combined PWM mode (TIM12 only) . . . . .2221
42.3.11One-pulse mode . . . . .2222
42.3.12Retriggerable one pulse mode (TIM12 only) . . . . .2224
42.3.13UIF bit remapping . . . . .2224
42.3.14Timer input XOR function . . . . .2225
42.3.15TIM12 external trigger synchronization2225
42.3.16Slave mode – combined reset + trigger mode2228
42.3.17Timer synchronization (TIM12)2229
42.3.18Using timer output as trigger for other timers (TIM13/TIM14)2229
42.3.19Debug mode2229
42.4TIM12 registers2229
42.4.1TIM12 control register 1 (TIM12_CR1)2229
42.4.2TIM12 control register 2 (TIM12_CR2)2230
42.4.3TIM12 slave mode control register (TIM12_SMCR)2231
42.4.4TIM12 Interrupt enable register (TIM12_DIER)2233
42.4.5TIM12 status register (TIM12_SR)2233
42.4.6TIM12 event generation register (TIM12_EGR)2234
42.4.7TIM12 capture/compare mode register 1 (TIM12_CCMR1)2235
42.4.8TIM12 capture/compare mode register 1 [alternate]
(TIM12_CCMR1)
2236
42.4.9TIM12 capture/compare enable register (TIM12_CCER)2239
42.4.10TIM12 counter (TIM12_CNT)2240
42.4.11TIM12 prescaler (TIM12_PSC)2241
42.4.12TIM12 auto-reload register (TIM12_ARR)2241
42.4.13TIM12 capture/compare register 1 (TIM12_CCR1)2241
42.4.14TIM12 capture/compare register 2 (TIM12_CCR2)2242
42.4.15TIM12 timer input selection register (TIM12_TISEL)2242
42.4.16TIM12 register map2243
42.5TIM13/TIM14 registers2245
42.5.1TIMx control register 1 (TIMx_CR1)(x = 13 to 14)2245
42.5.2TIMx Interrupt enable register (TIMx_DIER)(x = 13 to 14)2246
42.5.3TIMx status register (TIMx_SR)(x = 13 to 14)2246
42.5.4TIMx event generation register (TIMx_EGR)(x = 13 to 14)2247
42.5.5TIMx capture/compare mode register 1
(TIMx_CCMR1)(x = 13 to 14)
2248
42.5.6TIMx capture/compare mode register 1 [alternate]
(TIMx_CCMR1)(x = 13 to 14)
2249
42.5.7TIMx capture/compare enable register
(TIMx_CCER)(x = 13 to 14)
2251
42.5.8TIMx counter (TIMx_CNT)(x = 13 to 14)2252
42.5.9TIMx prescaler (TIMx_PSC)(x = 13 to 14)2253
42.5.10TIMx auto-reload register (TIMx_ARR)(x = 13 to 14)2253
42.5.11TIMx capture/compare register 1 (TIMx_CCR1)(x = 13 to 14)2253
42.5.12TIM13 timer input selection register (TIM13_TISEL) . . . . .2254
42.5.13TIM14 timer input selection register (TIM14_TISEL) . . . . .2254
42.5.14TIM13/TIM14 register map . . . . .2255
43General-purpose timers (TIM15/TIM16/TIM17) . . . . .2257
43.1TIM15/TIM16/TIM17 introduction . . . . .2257
43.2TIM15 main features . . . . .2257
43.3TIM16/TIM17 main features . . . . .2258
43.4TIM15/TIM16/TIM17 functional description . . . . .2261
43.4.1Time-base unit . . . . .2261
43.4.2Counter modes . . . . .2263
43.4.3Repetition counter . . . . .2267
43.4.4Clock selection . . . . .2268
43.4.5Capture/compare channels . . . . .2270
43.4.6Input capture mode . . . . .2272
43.4.7PWM input mode (only for TIM15) . . . . .2273
43.4.8Forced output mode . . . . .2274
43.4.9Output compare mode . . . . .2275
43.4.10PWM mode . . . . .2276
43.4.11Combined PWM mode (TIM15 only) . . . . .2277
43.4.12Complementary outputs and dead-time insertion . . . . .2278
43.4.13Using the break function . . . . .2280
43.4.14Bidirectional break inputs . . . . .2285
43.4.156-step PWM generation . . . . .2286
43.4.16One-pulse mode . . . . .2288
43.4.17Retriggerable one pulse mode (TIM15 only) . . . . .2289
43.4.18UIF bit remapping . . . . .2290
43.4.19Timer input XOR function (TIM15 only) . . . . .2291
43.4.20External trigger synchronization (TIM15 only) . . . . .2292
43.4.21Slave mode – combined reset + trigger mode . . . . .2294
43.4.22DMA burst mode . . . . .2294
43.4.23Timer synchronization (TIM15) . . . . .2296
43.4.24Using timer output as trigger for other timers (TIM16/TIM17) . . . . .2296
43.4.25Debug mode . . . . .2296
43.5TIM15 registers . . . . .2297
43.5.1TIM15 control register 1 (TIM15_CR1) . . . . .2297
43.5.2TIM15 control register 2 (TIM15_CR2) . . . . .2298
43.5.3TIM15 slave mode control register (TIM15_SMCR) .....2300
43.5.4TIM15 DMA/interrupt enable register (TIM15_DIER) .....2301
43.5.5TIM15 status register (TIM15_SR) .....2302
43.5.6TIM15 event generation register (TIM15_EGR) .....2304
43.5.7TIM15 capture/compare mode register 1 (TIM15_CCMR1) .....2305
43.5.8TIM15 capture/compare mode register 1 [alternate]
(TIM15_CCMR1) .....
2306
43.5.9TIM15 capture/compare enable register (TIM15_CCER) .....2309
43.5.10TIM15 counter (TIM15_CNT) .....2312
43.5.11TIM15 prescaler (TIM15_PSC) .....2312
43.5.12TIM15 auto-reload register (TIM15_ARR) .....2312
43.5.13TIM15 repetition counter register (TIM15_RCR) .....2313
43.5.14TIM15 capture/compare register 1 (TIM15_CCR1) .....2313
43.5.15TIM15 capture/compare register 2 (TIM15_CCR2) .....2314
43.5.16TIM15 break and dead-time register (TIM15_BDTR) .....2314
43.5.17TIM15 DMA control register (TIM15_DCR) .....2317
43.5.18TIM15 DMA address for full transfer (TIM15_DMAR) .....2317
43.5.19TIM15 alternate register 1 (TIM15_AF1) .....2318
43.5.20TIM15 input selection register (TIM15_TISEL) .....2319
43.5.21TIM15 register map .....2319
43.6TIM16/TIM17 registers .....2322
43.6.1TIMx control register 1 (TIMx_CR1)(x = 16 to 17) .....2322
43.6.2TIMx control register 2 (TIMx_CR2)(x = 16 to 17) .....2323
43.6.3TIMx DMA/interrupt enable register (TIMx_DIER)(x = 16 to 17) ....2324
43.6.4TIMx status register (TIMx_SR)(x = 16 to 17) .....2325
43.6.5TIMx event generation register (TIMx_EGR)(x = 16 to 17) .....2326
43.6.6TIMx capture/compare mode register 1
(TIMx_CCMR1)(x = 16 to 17) .....
2327
43.6.7TIMx capture/compare mode register 1 [alternate]
(TIMx_CCMR1)(x = 16 to 17) .....
2328
43.6.8TIMx capture/compare enable register (TIMx_CCER)(x = 16 to 17) ..2330
43.6.9TIMx counter (TIMx_CNT)(x = 16 to 17) .....2332
43.6.10TIMx prescaler (TIMx_PSC)(x = 16 to 17) .....2333
43.6.11TIMx auto-reload register (TIMx_ARR)(x = 16 to 17) .....2333
43.6.12TIMx repetition counter register (TIMx_RCR)(x = 16 to 17) .....2334
43.6.13TIMx capture/compare register 1 (TIMx_CCR1)(x = 16 to 17) ....2334
43.6.14TIMx break and dead-time register (TIMx_BDTR)(x = 16 to 17) ....2335
43.6.15TIMx DMA control register (TIMx_DCR)(x = 16 to 17) .....2338
43.6.16TIMx DMA address for full transfer (TIMx_DMAR)(x = 16 to 17) . . . . .2338
43.6.17TIM16 alternate function register 1 (TIM16_AF1) . . . . .2339
43.6.18TIM16 input selection register (TIM16_TISEL) . . . . .2339
43.6.19TIM17 alternate function register 1 (TIM17_AF1) . . . . .2340
43.6.20TIM17 input selection register (TIM17_TISEL) . . . . .2341
43.6.21TIM16/TIM17 register map . . . . .2342
44Basic timers (TIM6/TIM7) . . . . .2344
44.1TIM6/TIM7 introduction . . . . .2344
44.2TIM6/TIM7 main features . . . . .2344
44.3TIM6/TIM7 functional description . . . . .2345
44.3.1Time-base unit . . . . .2345
44.3.2Counting mode . . . . .2347
44.3.3UIF bit remapping . . . . .2350
44.3.4Clock source . . . . .2350
44.3.5Debug mode . . . . .2351
44.4TIM6/TIM7 registers . . . . .2351
44.4.1TIMx control register 1 (TIMx_CR1)(x = 6 to 7) . . . . .2351
44.4.2TIMx control register 2 (TIMx_CR2)(x = 6 to 7) . . . . .2353
44.4.3TIMx DMA/Interrupt enable register (TIMx_DIER)(x = 6 to 7) . . . . .2353
44.4.4TIMx status register (TIMx_SR)(x = 6 to 7) . . . . .2354
44.4.5TIMx event generation register (TIMx_EGR)(x = 6 to 7) . . . . .2354
44.4.6TIMx counter (TIMx_CNT)(x = 6 to 7) . . . . .2354
44.4.7TIMx prescaler (TIMx_PSC)(x = 6 to 7) . . . . .2355
44.4.8TIMx auto-reload register (TIMx_ARR)(x = 6 to 7) . . . . .2355
44.4.9TIMx register map . . . . .2356
45Low-power timer (LPTIM) . . . . .2357
45.1Introduction . . . . .2357
45.2LPTIM main features . . . . .2357
45.3LPTIM implementation . . . . .2358
45.4LPTIM functional description . . . . .2358
45.4.1LPTIM block diagram . . . . .2358
45.4.2LPTIM pins and internal signals . . . . .2360
45.4.3LPTIM input and trigger mapping . . . . .2360
45.4.4LPTIM reset and clocks . . . . .2363
45.4.5Glitch filter2363
45.4.6Prescaler2364
45.4.7Trigger multiplexer2365
45.4.8Operating mode2365
45.4.9Timeout function2367
45.4.10Waveform generation2367
45.4.11Register update2368
45.4.12Counter mode2369
45.4.13Timer enable2369
45.4.14Timer counter reset2370
45.4.15Encoder mode2370
45.4.16Debug mode2372
45.5LPTIM low-power modes2372
45.6LPTIM interrupts2373
45.7LPTIM registers2373
45.7.1LPTIM interrupt and status register (LPTIM_ISR)2374
45.7.2LPTIM interrupt clear register (LPTIM_ICR)2375
45.7.3LPTIM interrupt enable register (LPTIM_IER)2375
45.7.4LPTIM configuration register (LPTIM_CFGR)2376
45.7.5LPTIM control register (LPTIM_CR)2379
45.7.6LPTIM compare register (LPTIM_CMP)2381
45.7.7LPTIM autoreload register (LPTIM_ARR)2381
45.7.8LPTIM counter register (LPTIM_CNT)2382
45.7.9LPTIM configuration register 2 (LPTIM_CFGR2)2382
45.7.10LPTIM x peripheral hardware configuration register
(LPTIMx_HWCFGR)(x = 1 to 5)
2383
45.7.11LPTIM peripheral version identification register (LPTIM_VERR)2384
45.7.12LPTIM peripheral type identification register (LPTIM_PIDR)2384
45.7.13LPTIM registers map size identification register (LPTIM_SIDR)2384
45.7.14LPTIM register map2386
46System timer generator (STGEN)2388
46.1STGEN introduction2388
46.2STGEN main features2388
46.3STGEN functional description2388
46.3.1STGEN block diagram2389
46.4STGEN registers2390
46.4.1STGENC control register (STGENC_CNTCR) .....2390
46.4.2STGENC status register (STGENC_CNTSR) .....2390
46.4.3STGENC value lower register (STGENC_CNTCVL) .....2391
46.4.4STGENC value upper register (STGENC_CNTCVU) .....2391
46.4.5STGENC base frequency register (STGENC_CNTFID0) .....2392
46.4.6STGENC peripheral ID4 register (STGENC_PIDR4) .....2392
46.4.7STGENC peripheral ID5 register (STGENC_PIDR5) .....2393
46.4.8STGENC peripheral ID6 register (STGENC_PIDR6) .....2393
46.4.9STGENC peripheral ID7 register (STGENC_PIDR7) .....2393
46.4.10STGENC peripheral ID0 register (STGENC_PIDR0) .....2394
46.4.11STGENC peripheral ID1 register (STGENC_PIDR1) .....2394
46.4.12STGENC peripheral ID2 register (STGENC_PIDR2) .....2394
46.4.13STGENC peripheral ID3 register (STGENC_PIDR3) .....2395
46.4.14STGENC component ID0 register (STGENC_CIDR0) .....2395
46.4.15STGENC component ID1 register (STGENC_CIDR1) .....2396
46.4.16STGENC component ID2 register (STGENC_CIDR2) .....2396
46.4.17STGENC component ID3 register (STGENC_CIDR3) .....2397
46.4.18STGENR value lower register (STGENR_CNTCVL) .....2397
46.4.19STGENR value upper register (STGENR_CNTCVU) .....2397
46.4.20STGENR peripheral ID4 register (STGENR_PIDR4) .....2398
46.4.21STGENR peripheral ID5 register (STGENR_PIDR5) .....2398
46.4.22STGENR peripheral ID6 register (STGENR_PIDR6) .....2398
46.4.23STGENR peripheral ID7 register (STGENR_PIDR7) .....2399
46.4.24STGENR peripheral ID0 register (STGENR_PIDR0) .....2399
46.4.25STGENR peripheral ID1 register (STGENR_PIDR1) .....2399
46.4.26STGENR peripheral ID2 register (STGENR_PIDR2) .....2400
46.4.27STGENR peripheral ID3 register (STGENR_PIDR3) .....2400
46.4.28STGENR component ID0 register (STGENR_CIDR0) .....2401
46.4.29STGENR component ID1 register (STGENR_CIDR1) .....2401
46.4.30STGENR component ID2 register (STGENR_CIDR2) .....2401
46.4.31STGENR component ID3 register (STGENR_CIDR3) .....2402
46.4.32STGEN register map .....2402
47Watchdogs overview .....2405
47.1Watchdog main features .....2405
47.2Watchdog brief functional description .....2405
48Independent watchdog (IWDG) .....2407
48.1Introduction .....2407
48.2IWDG main features .....2407
48.3IWDG implementation .....2407
48.4IWDG functional description .....2408
48.4.1IWDG block diagram .....2408
48.4.2IWDG internal signals .....2409
48.4.3Software and hardware watchdog modes .....2409
48.4.4Window option .....2410
48.4.5Debug .....2413
48.4.6Register access protection .....2413
48.5IWDG low power modes .....2413
48.6IWDG interrupts .....2414
48.7IWDG registers .....2415
48.7.1IWDG key register (IWDG_KR) .....2415
48.7.2IWDG prescaler register (IWDG_PR) .....2416
48.7.3IWDG reload register (IWDG_RLR) .....2417
48.7.4IWDG status register (IWDG_SR) .....2417
48.7.5IWDG window register (IWDG_WINR) .....2418
48.7.6IWDG early wake-up interrupt register (IWDG_EWCR) .....2419
48.7.7IWDG hardware configuration register (IWDG_HWCFGR) .....2419
48.7.8IWDG version register (IWDG_VERR) .....2420
48.7.9IWDG identification register (IWDG_IDR) .....2421
48.7.10IWDG size identification register (IWDG_SIDR) .....2421
48.7.11IWDG register map .....2422
49System window watchdog (WWDG) .....2423
49.1Introduction .....2423
49.2WWDG main features .....2423
49.3WWDG functional description .....2423
49.3.1WWDG block diagram .....2424
49.3.2WWDG internal signals .....2424
49.3.3Enabling the watchdog .....2424
49.3.4Controlling the down-counter .....2424
49.3.5How to program the watchdog timeout .....2425
49.3.6Debug mode .....2426
49.4WWDG interrupts2426
49.5WWDG registers2426
49.5.1WWDG control register (WWDG_CR)2427
49.5.2WWDG configuration register (WWDG_CFR)2427
49.5.3WWDG status register (WWDG_SR)2428
49.5.4WWDG register map2428
50Real-time clock (RTC)2429
50.1Introduction2429
50.2RTC main features2429
50.3RTC functional description2431
50.3.1RTC block diagram2431
50.3.2RTC pins and internal signals2433
50.3.3GPIOs controlled by the RTC and TAMP2434
50.3.4RTC secure protection modes2438
50.3.5Clock and prescalers2439
50.3.6Real-time clock and calendar2440
50.3.7Programmable alarms2440
50.3.8Periodic auto-wakeup2441
50.3.9RTC initialization and configuration2442
50.3.10Reading the calendar2443
50.3.11Resetting the RTC2444
50.3.12RTC synchronization2445
50.3.13RTC reference clock detection2445
50.3.14RTC smooth digital calibration2446
50.3.15Timestamp function2448
50.3.16Calibration clock output2449
50.3.17Tamper and alarm output2449
50.4RTC low-power modes2450
50.5RTC interrupts2450
50.6RTC registers2451
50.6.1RTC time register (RTC_TR)2452
50.6.2RTC date register (RTC_DR)2453
50.6.3RTC sub second register (RTC_SSR)2454
50.6.4RTC initialization control and status register (RTC_ICSR)2454
50.6.5RTC prescaler register (RTC_PRER)2456
50.6.6RTC wakeup timer register (RTC_WUTR) . . . . .2457
50.6.7RTC control register (RTC_CR) . . . . .2457
50.6.8RTC secure mode control register (RTC_SMCR) . . . . .2461
50.6.9RTC write protection register (RTC_WPR) . . . . .2462
50.6.10RTC calibration register (RTC_CALR) . . . . .2463
50.6.11RTC shift control register (RTC_SHIFTR) . . . . .2464
50.6.12RTC timestamp time register (RTC_TSTR) . . . . .2465
50.6.13RTC timestamp date register (RTC_TSDR) . . . . .2466
50.6.14RTC timestamp sub second register (RTC_TSSSR) . . . . .2466
50.6.15RTC alarm A register (RTC_ALRMAR) . . . . .2467
50.6.16RTC alarm A sub second register (RTC_ALRMASSR) . . . . .2468
50.6.17RTC alarm B register (RTC_ALRMBR) . . . . .2469
50.6.18RTC alarm B sub second register (RTC_ALRMBSSR) . . . . .2470
50.6.19RTC status register (RTC_SR) . . . . .2471
50.6.20RTC non-secure masked interrupt status register (RTC_MISR) . . . . .2472
50.6.21RTC secure masked interrupt status register (RTC_SMISR) . . . . .2473
50.6.22RTC status clear register (RTC_SCR) . . . . .2474
50.6.23RTC configuration register (RTC_CFGR) . . . . .2475
50.6.24RTC hardware configuration register (RTC_HWCFG) . . . . .2475
50.6.25RTC version register (RTC_VERR) . . . . .2476
50.6.26RTC identification register (RTC_IPIDR) . . . . .2477
50.6.27RTC size identification register (RTC_SIDR) . . . . .2477
50.6.28RTC register map . . . . .2478
51Tamper and backup registers (TAMP) . . . . .2481
51.1Introduction . . . . .2481
51.2TAMP main features . . . . .2481
51.3TAMP functional description . . . . .2482
51.3.1TAMP block diagram . . . . .2482
51.3.2TAMP pins and internal signals . . . . .2483
51.3.3TAMP register write protection . . . . .2484
51.3.4TAMP secure protection modes . . . . .2484
51.3.5Tamper detection . . . . .2484
51.4TAMP low-power modes . . . . .2488
51.5TAMP interrupts . . . . .2488
51.6TAMP registers . . . . .2489
51.6.1TAMP control register 1 (TAMP_CR1) .....2489
51.6.2TAMP control register 2 (TAMP_CR2) .....2491
51.6.3TAMP filter control register (TAMP_FLTCR) .....2492
51.6.4TAMP active tamper control register 1 (TAMP_ATCR1) .....2494
51.6.5TAMP active tamper seed register (TAMP_ATSEEDR) .....2495
51.6.6TAMP active tamper output register (TAMP_ATOR) .....2496
51.6.7TAMP secure mode register (TAMP_SMCR) .....2497
51.6.8TAMP interrupt enable register (TAMP_IER) .....2497
51.6.9TAMP status register (TAMP_SR) .....2499
51.6.10TAMP non-secure masked interrupt status register (TAMP_MISR) ..2500
51.6.11TAMP secure masked interrupt status register (TAMP_SMISR) ....2501
51.6.12TAMP status clear register (TAMP_SCR) .....2502
51.6.13TAMP monotonic counter register (TAMP_COUNTR) .....2503
51.6.14TAMP configuration register (TAMP_CFGR) .....2503
51.6.15TAMP backup x register (TAMP_BKPxR) .....2504
51.6.16TAMP hardware configuration register 2 (TAMP_HWCFGR2) ....2504
51.6.17TAMP hardware configuration register 1 (TAMP_HWCFGR1) ....2505
51.6.18TAMP version register (TAMP_VERR) .....2505
51.6.19TAMP identification register (TAMP_IPIDR) .....2506
51.6.20TAMP size identification register (TAMP_SIDR) .....2506
51.6.21TAMP register map .....2507
52Inter-integrated circuit interface (I2C) .....2509
52.1I2C introduction .....2509
52.2I2C main features .....2509
52.3I2C implementation .....2510
52.4I2C functional description .....2510
52.4.1I2C block diagram .....2511
52.4.2I2C pins and internal signals .....2511
52.4.3I2C clock requirements .....2512
52.4.4I2C mode selection .....2512
52.4.5I2C initialization .....2513
52.4.6I2C reset .....2517
52.4.7I2C data transfer .....2518
52.4.8I2C target mode .....2520
52.4.9I2C controller mode .....2529
52.4.10I2C_TIMINGR register configuration examples .....2540
52.4.11SMBus specific features2542
52.4.12SMBus initialization2545
52.4.13SMBus I2C_TIMEOUTR register configuration examples2547
52.4.14SMBus target mode2547
52.4.15SMBus controller mode2551
52.4.16Wake-up from Stop mode on address match2554
52.4.17Error conditions2555
52.5I2C in low-power modes2557
52.6I2C interrupts2557
52.7I2C DMA requests2558
52.7.1Transmission using DMA2558
52.7.2Reception using DMA2558
52.8I2C debug modes2558
52.9I2C registers2559
52.9.1I2C control register 1 (I2C_CR1)2559
52.9.2I2C control register 2 (I2C_CR2)2561
52.9.3I2C own address 1 register (I2C_OAR1)2563
52.9.4I2C own address 2 register (I2C_OAR2)2564
52.9.5I2C timing register (I2C_TIMINGR)2565
52.9.6I2C timeout register (I2C_TIMEOUTR)2566
52.9.7I2C interrupt and status register (I2C_ISR)2567
52.9.8I2C interrupt clear register (I2C_ICR)2569
52.9.9I2C PEC register (I2C_PECR)2570
52.9.10I2C receive data register (I2C_RXDR)2570
52.9.11I2C transmit data register (I2C_TXDR)2571
52.9.12I2C hardware configuration register (I2C_HWCFGR)2571
52.9.13I2C version register (I2C_VERR)2572
52.9.14I2C identification register (I2C_IPIDR)2572
52.9.15I2C size identification register (I2C_SIDR)2572
52.9.16I2C register map2573
53Universal synchronous/asynchronous receiver transmitter (USART/UART)2575
53.1USART introduction2575
53.2USART main features2576
53.3USART extended features2577
53.4USART implementation2577
53.5USART functional description2578
53.5.1USART block diagram2578
53.5.2USART signals2579
53.5.3USART character description2580
53.5.4USART FIFOs and thresholds2582
53.5.5USART transmitter2582
53.5.6USART receiver2586
53.5.7USART baud rate generation2593
53.5.8Tolerance of the USART receiver to clock deviation2594
53.5.9USART auto baud rate detection2596
53.5.10USART multiprocessor communication2598
53.5.11USART Modbus communication2600
53.5.12USART parity control2601
53.5.13USART LIN (local interconnection network) mode2602
53.5.14USART synchronous mode2604
53.5.15USART single-wire half-duplex communication2608
53.5.16USART receiver timeout2608
53.5.17USART smartcard mode2609
53.5.18USART IrDA SIR ENDEC block2613
53.5.19Continuous communication using USART and DMA2616
53.5.20RS232 hardware flow control and RS485 Driver Enable2618
53.5.21USART low-power management2621
53.6USART in low-power modes2624
53.7USART interrupts2625
53.8USART registers2626
53.8.1USART control register 1 (USART_CR1)2626
53.8.2USART control register 1 [alternate] (USART_CR1)2629
53.8.3USART control register 2 (USART_CR2)2633
53.8.4USART control register 3 (USART_CR3)2637
53.8.5USART baud rate register (USART_BRR)2641
53.8.6USART guard time and prescaler register (USART_GTPR)2641
53.8.7USART receiver timeout register (USART_RTOR)2642
53.8.8USART request register (USART_RQR)2643
53.8.9USART interrupt and status register (USART_ISR)2644
53.8.10USART interrupt and status register [alternate] (USART_ISR)2650
53.8.11USART interrupt flag clear register (USART_ICR) . . . . .2655
53.8.12USART receive data register (USART_RDR) . . . . .2657
53.8.13USART transmit data register (USART_TDR) . . . . .2657
53.8.14USART prescaler register (USART_PRESC) . . . . .2658
53.8.15USART hardware configuration register 2 (USART_HWCFGR2) . . .2658
53.8.16USART hardware configuration register 1 (USART_HWCFGR1) . . .2659
53.8.17USART version register (USART_VERR) . . . . .2660
53.8.18USART Identification register (USART_IPIDR) . . . . .2660
53.8.19USART Size Identification register (USART_SIDR) . . . . .2660
53.8.20USART register map . . . . .2662
54Serial peripheral interface (SPI) . . . . .2664
54.1Introduction . . . . .2664
54.2SPI main features . . . . .2665
54.3SPI implementation . . . . .2665
54.4SPI functional description . . . . .2666
54.4.1SPI block diagram . . . . .2666
54.4.2SPI signals . . . . .2667
54.4.3SPI communication general aspects . . . . .2668
54.4.4Communications between one master and one slave . . . . .2668
54.4.5Standard multislave communication . . . . .2670
54.4.6Multimaster communication . . . . .2673
54.4.7Slave select (SS) pin management . . . . .2673
54.4.8Communication formats . . . . .2677
54.4.9Configuration of SPI . . . . .2679
54.4.10Procedure for enabling SPI . . . . .2680
54.4.11SPI data transmission and reception procedures . . . . .2680
54.4.12Procedure for disabling the SPI . . . . .2685
54.4.13Data packing . . . . .2686
54.4.14Communication using DMA (direct memory addressing) . . . . .2687
54.5SPI specific modes and control . . . . .2689
54.5.1TI mode . . . . .2689
54.5.2SPI error flags . . . . .2689
54.5.3CRC computation . . . . .2693
54.6Low-power mode management . . . . .2694
54.7SPI wakeup and interrupts . . . . .2697
54.8I2S main features . . . . .2698
54.9I2S functional description . . . . .2699
54.9.1I2S general description . . . . .2699
54.9.2Pin sharing with SPI function . . . . .2699
54.9.3Bitfields usable in I2S/PCM mode . . . . .2700
54.9.4Slave and master modes . . . . .2701
54.9.5Supported audio protocols . . . . .2701
54.9.6Additional Serial Interface Flexibility . . . . .2707
54.9.7Startup sequence . . . . .2709
54.9.8Stop sequence . . . . .2711
54.9.9Clock generator . . . . .2711
54.9.10Internal FIFOs . . . . .2714
54.9.11FIFOs status flags . . . . .2715
54.9.12Handling of underrun situation . . . . .2715
54.9.13Handling of overrun situation . . . . .2716
54.9.14Frame error detection . . . . .2717
54.9.15DMA Interface . . . . .2718
54.9.16Programing examples . . . . .2720
54.10I2S wakeup and interrupts . . . . .2722
54.11SPI/I2S registers . . . . .2723
54.11.1SPI/I2S control register 1 (SPI_CR1) . . . . .2723
54.11.2SPI control register 2 (SPI_CR2) . . . . .2725
54.11.3SPI configuration register 1 (SPI_CFG1) . . . . .2725
54.11.4SPI configuration register 2 (SPI_CFG2) . . . . .2728
54.11.5SPI/I2S interrupt enable register (SPI_IER) . . . . .2730
54.11.6SPI/I2S status register (SPI_SR) . . . . .2731
54.11.7SPI/I2S interrupt/status flags clear register (SPI_IFCR) . . . . .2734
54.11.8SPI/I2S transmit data register (SPI_TXDR) . . . . .2735
54.11.9SPI/I2S receive data register (SPI_RXDR) . . . . .2735
54.11.10SPI polynomial register (SPI_CRCPOLY) . . . . .2736
54.11.11SPI transmitter CRC register (SPI_TXCRC) . . . . .2736
54.11.12SPI receiver CRC register (SPI_RXCRC) . . . . .2737
54.11.13SPI underrun data register (SPI_UDRDR) . . . . .2738
54.11.14SPI/I2S configuration register (SPI_I2SCFGR) . . . . .2738
54.11.15SPI/I2S hardware configuration register (SPI_I2S_HWCFGR) . . . . .2740
54.11.16SPI/I2S version register (SPI_VERR) . . . . .2741
54.11.17SPI/I2S identification register (SPI_IPIDR) . . . . .2741
54.11.18SPI/I2S size identification register (SPI_SIDR) .....2742
54.12SPI register map and reset values .....2743
55Serial audio interface (SAI) .....2745
55.1Introduction .....2745
55.2SAI main features .....2745
55.3SAI implementation .....2746
55.4SAI functional description .....2747
55.4.1SAI block diagram .....2747
55.4.2SAI pins and internal signals .....2748
55.4.3Main SAI modes .....2749
55.4.4SAI synchronization mode .....2750
55.4.5Audio data size .....2751
55.4.6Frame synchronization .....2751
55.4.7Slot configuration .....2754
55.4.8SAI clock generator .....2756
55.4.9Internal FIFOs .....2759
55.4.10PDM interface .....2761
55.4.11AC'97 link controller .....2769
55.4.12SPDIF output .....2771
55.4.13Specific features .....2774
55.4.14Error flags .....2778
55.4.15Disabling the SAI .....2781
55.4.16SAI DMA interface .....2781
55.5SAI interrupts .....2782
55.6SAI registers .....2784
55.6.1SAI global configuration register (SAI_GCR) .....2784
55.6.2SAI configuration register 1 (SAI_ACR1) .....2784
55.6.3SAI configuration register 2 (SAI_ACR2) .....2787
55.6.4SAI frame configuration register (SAI_AFRCR) .....2789
55.6.5SAI slot register (SAI_ASLOTR) .....2790
55.6.6SAI interrupt mask register (SAI_AIM) .....2791
55.6.7SAI status register (SAI_ASR) .....2793
55.6.8SAI clear flag register (SAI_ACLRFR) .....2795
55.6.9SAI data register (SAI_ADR) .....2796
55.6.10SAI configuration register 1 (SAI_BCR1) .....2796
55.6.11SAI configuration register 2 (SAI_BCR2) . . . . .2799
55.6.12SAI frame configuration register (SAI_BFRCR) . . . . .2801
55.6.13SAI slot register (SAI_BSLOTR) . . . . .2802
55.6.14SAI interrupt mask register (SAI_BIM) . . . . .2803
55.6.15SAI status register (SAI_BSR) . . . . .2804
55.6.16SAI clear flag register (SAI_BCLRFR) . . . . .2806
55.6.17SAI data register (SAI_BDR) . . . . .2807
55.6.18SAI PDM control register (SAI_PDMCR) . . . . .2808
55.6.19SAI PDM delay register (SAI_PDMDLY) . . . . .2809
55.6.20SAI hardware configuration register (SAI_HWCFGR) . . . . .2811
55.6.21SAI version register (SAI_VERR) . . . . .2812
55.6.22SAI identification register (SAI_IPIDR) . . . . .2813
55.6.23SAI size identification register (SAI_SIDR) . . . . .2813
55.6.24SAI register map . . . . .2813
56SPDIF receiver interface (SPDIFRX) . . . . .2816
56.1SPDIFRX interface introduction . . . . .2816
56.2SPDIFRX main features . . . . .2816
56.3SPDIFRX functional description . . . . .2816
56.3.1SPDIFRX pins and internal signals . . . . .2817
56.3.2S/PDIF protocol (IEC-60958) . . . . .2818
56.3.3SPDIFRX decoder (SPDIFRX_DC) . . . . .2820
56.3.4SPDIFRX tolerance to clock deviation . . . . .2824
56.3.5SPDIFRX synchronization . . . . .2824
56.3.6SPDIFRX handling . . . . .2826
56.3.7Data reception management . . . . .2828
56.3.8Dedicated control flow . . . . .2830
56.3.9Reception errors . . . . .2831
56.3.10Clocking strategy . . . . .2833
56.3.11Symbol clock generation . . . . .2833
56.3.12DMA interface . . . . .2835
56.3.13Interrupt generation . . . . .2836
56.3.14Register protection . . . . .2837
56.4Programming procedures . . . . .2837
56.4.1Initialization phase . . . . .2838
56.4.2Handling of interrupts coming from SPDIFRX . . . . .2839
56.4.3Handling of interrupts coming from DMA . . . . .2839
56.5SPDIFRX interface registers2840
56.5.1SPDIFRX control register (SPDIFRX_CR)2840
56.5.2SPDIFRX interrupt mask register (SPDIFRX_IMR)2842
56.5.3SPDIFRX status register (SPDIFRX_SR)2843
56.5.4SPDIFRX interrupt flag clear register (SPDIFRX_IFCR)2845
56.5.5SPDIFRX data input register (SPDIFRX_FMT0_DR)2846
56.5.6SPDIFRX data input register (SPDIFRX_FMT1_DR)2846
56.5.7SPDIFRX data input register (SPDIFRX_FMT2_DR)2847
56.5.8SPDIFRX channel status register (SPDIFRX_CSR)2848
56.5.9SPDIFRX debug information register (SPDIFRX_DIR)2848
56.5.10SPDIFRX version register (SPDIFRX_VERR)2849
56.5.11SPDIFRX identification register (SPDIFRX_IPIDR)2849
56.5.12SPDIFRX size identification register (SPDIFRX_SIDR)2850
56.5.13SPDIFRX interface register map2850
57Management data input/output (MDIOS)2852
57.1MDIOS introduction2852
57.2MDIOS main features2852
57.3MDIOS functional description2853
57.3.1MDIOS block diagram2853
57.3.2MDIOS protocol2853
57.3.3MDIOS enabling and disabling2854
57.3.4MDIOS data2854
57.3.5MDIOS APB frequency2856
57.3.6Write/read flags and interrupts2856
57.3.7MDIOS error management2856
57.3.8MDIOS in Stop mode2857
57.3.9MDIOS interrupts2857
57.4MDIOS registers2858
57.4.1MDIOS configuration register (MDIOS_CR)2858
57.4.2MDIOS write flag register (MDIOS_WRFR)2859
57.4.3MDIOS clear write flag register (MDIOS_CWRFR)2859
57.4.4MDIOS read flag register (MDIOS_RDFR)2859
57.4.5MDIOS clear read flag register (MDIOS_CRDFR)2860
57.4.6MDIOS status register (MDIOS_SR)2860
57.4.7MDIOS clear flag register (MDIOS_CLRFR)2861
57.4.8MDIOS input data register x (MDIOS_DINRx)2861
57.4.9MDIOS output data register x (MDIOS_DOUTRx) .....2862
57.4.10MDIOS hardware configuration register (MDIOS_HWCFGR) .....2862
57.4.11MDIOS version register (MDIOS_VERR) .....2862
57.4.12MDIOS identification register (MDIOS_IPIDR) .....2863
57.4.13MDIOS size identification register (MDIOS_SIDR) .....2863
57.4.14MDIOS register map .....2863
58Secure digital input/output MultiMediaCard interface (SDMMC) ..2865
58.1SDMMC main features .....2865
58.2SDMMC implementation .....2865
58.3SDMMC bus topology .....2866
58.4SDMMC operation modes .....2868
58.5SDMMC functional description .....2869
58.5.1SDMMC block diagram .....2869
58.5.2SDMMC pins and internal signals .....2869
58.5.3General description .....2870
58.5.4SDMMC adapter .....2872
58.5.5SDMMC AHB slave interface .....2894
58.5.6SDMMC AHB master interface .....2895
58.5.7AHB and SDMMC_CK clock relation .....2898
58.6Card functional description .....2898
58.6.1SD I/O mode .....2898
58.6.2CMD12 send timing .....2906
58.6.3Sleep (CMD5) .....2910
58.6.4Interrupt mode (Wait-IRQ) .....2911
58.6.5Boot operation .....2912
58.6.6Response R1b handling .....2915
58.6.7Reset and card cycle power .....2916
58.7Hardware flow control .....2917
58.8Ultra-high-speed phase I (UHS-I) voltage switch .....2917
58.9SDMMC interrupts .....2920
58.10SDMMC registers .....2922
58.10.1SDMMC power control register (SDMMC_POWER) .....2922
58.10.2SDMMC clock control register (SDMMC_CLKCR) .....2923
58.10.3SDMMC argument register (SDMMC_ARGR) .....2925
58.10.4SDMMC command register (SDMMC_CMDR) .....2925
58.10.5SDMMC command response register (SDMMC_RESPCMDR) . . . . .2927
58.10.6SDMMC response x register (SDMMC_RESPxR) . . . . .2928
58.10.7SDMMC data timer register (SDMMC_DTIMER) . . . . .2928
58.10.8SDMMC data length register (SDMMC_DLENR) . . . . .2929
58.10.9SDMMC data control register (SDMMC_DCTRL) . . . . .2930
58.10.10SDMMC data counter register (SDMMC_DCNTR) . . . . .2931
58.10.11SDMMC status register (SDMMC_STAR) . . . . .2932
58.10.12SDMMC interrupt clear register (SDMMC_ICR) . . . . .2935
58.10.13SDMMC mask register (SDMMC_MASKR) . . . . .2937
58.10.14SDMMC acknowledgment timer register (SDMMC_ACKTIMER) . . . . .2940
58.10.15SDMMC DMA control register (SDMMC_IDMACTRLR) . . . . .2940
58.10.16SDMMC IDMA buffer size register (SDMMC_IDMABSIZER) . . . . .2941
58.10.17SDMMC IDMA buffer base address register
(SDMMC_IDMABASER) . . . . .
2942
58.10.18SDMMC IDMA linked list address register (SDMMC_IDMALAR) . . . . .2942
58.10.19SDMMC IDMA linked list memory base register
(SDMMC_IDMABAR) . . . . .
2943
58.10.20SDMMC data FIFO registers x (SDMMC_FIFORx) . . . . .2944
58.10.21SDMMC version register (SDMMC_VERR) . . . . .2944
58.10.22SDMMC identification register (SDMMC_IPIDR) . . . . .2945
58.10.23SDMMC size identification register (SDMMC_SIDR) . . . . .2945
58.10.24SDMMC register map . . . . .2945
59Controller area network with flexible data rate (FDCAN) . . . . .2948
59.1Introduction . . . . .2948
59.2FDCAN main features . . . . .2951
59.3FDCAN implementation . . . . .2951
59.4FDCAN functional description . . . . .2952
59.4.1Operating modes . . . . .2953
59.4.2Error management . . . . .2962
59.4.3Message RAM . . . . .2962
59.4.4FIFO acknowledge handling . . . . .2974
59.4.5Bit timing . . . . .2975
59.4.6Clock calibration on CAN . . . . .2976
59.4.7Application . . . . .2980
59.4.8TTCAN operations (FDCAN1 only) . . . . .2981
59.4.9TTCAN configuration . . . . .2982
59.4.10Message scheduling2984
59.4.11TTCAN gap control2991
59.4.12Stop watch2992
59.4.13Local time, cycle time, global time,
and external clock synchronization
2992
59.4.14TTCAN error level2995
59.4.15TTCAN message handling2996
59.4.16TTCAN interrupt and error handling2999
59.4.17Level 03000
59.4.18Synchronization to external time schedule3002
59.4.19FDCAN Rx buffer and FIFO element3003
59.4.20FDCAN Tx buffer element3005
59.4.21FDCAN Tx event FIFO element3007
59.4.22FDCAN standard message ID filter element3008
59.4.23FDCAN extended message ID filter element3010
59.4.24FDCAN trigger memory element3011
59.5FDCAN registers3013
59.5.1FDCAN core release register (FDCAN_CREL)3013
59.5.2FDCAN Endian register (FDCAN_ENDN)3013
59.5.3FDCAN data bit timing and prescaler register (FDCAN_DBTP)3013
59.5.4FDCAN test register (FDCAN_TEST)3014
59.5.5FDCAN RAM watchdog register (FDCAN_RWD)3015
59.5.6FDCAN CC control register (FDCAN_CCCR)3016
59.5.7FDCAN nominal bit timing and prescaler register (FDCAN_NBTP)3018
59.5.8FDCAN timestamp counter configuration register (FDCAN_TSCC)3019
59.5.9FDCAN timestamp counter value register (FDCAN_TSCV)3019
59.5.10FDCAN timeout counter configuration register (FDCAN_TOCC)3020
59.5.11FDCAN timeout counter value register (FDCAN_TOCV)3021
59.5.12FDCAN error counter register (FDCAN_ECR)3021
59.5.13FDCAN protocol status register (FDCAN_PSR)3022
59.5.14FDCAN transmitter delay compensation register (FDCAN_TDCR)3024
59.5.15FDCAN interrupt register (FDCAN_IR)3024
59.5.16FDCAN interrupt enable register (FDCAN_IE)3027
59.5.17FDCAN interrupt line select register (FDCAN_ILS)3029
59.5.18FDCAN interrupt line enable register (FDCAN_ILE)3030
59.5.19FDCAN global filter configuration register (FDCAN_GFC)3031
59.5.20FDCAN standard ID filter configuration register (FDCAN_SIDFC)3032
59.5.21FDCAN extended ID filter configuration register (FDCAN_XIDFC) ..3032
59.5.22FDCAN extended ID and mask register (FDCAN_XIDAM) .....3033
59.5.23FDCAN high priority message status register (FDCAN_HPMS) ....3034
59.5.24FDCAN new data 1 register (FDCAN_NDAT1) .....3034
59.5.25FDCAN new data 2 register (FDCAN_NDAT2) .....3035
59.5.26FDCAN Rx FIFO 0 configuration register (FDCAN_RXF0C) .....3035
59.5.27FDCAN Rx FIFO 0 status register (FDCAN_RXF0S) .....3036
59.5.28FDCAN Rx FIFO 0 acknowledge register (FDCAN_RXF0A) .....3037
59.5.29FDCAN Rx buffer configuration register (FDCAN_RXBC) .....3037
59.5.30FDCAN Rx FIFO 1 configuration register (FDCAN_RXF1C) .....3038
59.5.31FDCAN Rx FIFO 1 status register (FDCAN_RXF1S) .....3039
59.5.32FDCAN Rx FIFO 1 acknowledge register (FDCAN_RXF1A) .....3040
59.5.33FDCAN Rx buffer element size configuration register
(FDCAN_RXESC) .....
3040
59.5.34FDCAN Tx buffer configuration register (FDCAN_TXBC) .....3041
59.5.35FDCAN Tx FIFO/queue status register (FDCAN_TXFQS) .....3042
59.5.36FDCAN Tx buffer element size configuration register
(FDCAN_TXESC) .....
3043
59.5.37FDCAN Tx buffer request pending register (FDCAN_TXBRP) ....3043
59.5.38FDCAN Tx buffer add request register (FDCAN_TXBAR) .....3044
59.5.39FDCAN Tx buffer cancellation request register (FDCAN_TXBCR) ..3045
59.5.40FDCAN Tx buffer transmission occurred register (FDCAN_TXBTO)3045
59.5.41FDCAN Tx buffer cancellation finished register (FDCAN_TXBCF) ..3046
59.5.42FDCAN Tx buffer transmission interrupt enable register
(FDCAN_TXBTIE) .....
3046
59.5.43FDCAN Tx buffer cancellation finished interrupt enable register
(FDCAN_TXBCIE) .....
3047
59.5.44FDCAN Tx event FIFO configuration register (FDCAN_TXEFC) ...3047
59.5.45FDCAN Tx event FIFO status register (FDCAN_TXEFS) .....3048
59.5.46FDCAN Tx event FIFO acknowledge register (FDCAN_TXEFA) ...3049
59.5.47FDCAN register map .....3049
59.6TTCAN registers .....3053
59.6.1FDCAN TT trigger memory configuration register
(FDCAN_TTTMC) .....
3053
59.6.2FDCAN TT reference message configuration register
(FDCAN_TTRMC) .....
3053
59.6.3FDCAN TT operation configuration register (FDCAN_TTOCF) ....3054
59.6.4FDCAN TT matrix limits register (FDCAN_TTMLM) .....3056
59.6.5FDCAN TUR configuration register (FDCAN_TURCF) .....3057
59.6.6FDCAN TT operation control register (FDCAN_TTOCN) . . . . .3058
59.6.7FDCAN TT global time preset register (FDCAN_TTGTP) . . . . .3060
59.6.8FDCAN TT time mark register (FDCAN_TTTMK) . . . . .3060
59.6.9FDCAN TT interrupt register (FDCAN_TTIR) . . . . .3061
59.6.10FDCAN TT interrupt enable register (FDCAN_TTIE) . . . . .3063
59.6.11FDCAN TT interrupt line select register (FDCAN_TTILS) . . . . .3065
59.6.12FDCAN TT operation status register (FDCAN_TTOST) . . . . .3066
59.6.13FDCAN TUR numerator actual register (FDCAN_TURNA) . . . . .3068
59.6.14FDCAN TT local and global time register (FDCAN_TTLGT) . . . . .3069
59.6.15FDCAN TT cycle time and count register (FDCAN_TTCTC) . . . . .3069
59.6.16FDCAN TT capture time register (FDCAN_TTCPT) . . . . .3070
59.6.17FDCAN TT cycle sync mark register (FDCAN_TTCSM) . . . . .3070
59.6.18FDCAN TT trigger select register (FDCAN_TTTS) . . . . .3071
59.6.19FDCAN TT register map . . . . .3071
59.7CCU registers . . . . .3073
59.7.1Clock calibration unit core release register (FDCAN_CCU_CREL) . . . . .3073
59.7.2Calibration configuration register (FDCAN_CCU_CCFG) . . . . .3073
59.7.3Calibration status register (FDCAN_CCU_CSTAT) . . . . .3075
59.7.4Calibration watchdog register (FDCAN_CCU_CWD) . . . . .3075
59.7.5Clock calibration unit interrupt register (FDCAN_CCU_IR) . . . . .3076
59.7.6Clock calibration unit interrupt enable register (FDCAN_CCU_IE) . . . . .3077
59.7.7CCU register map . . . . .3077
60USB on-the-go high-speed (OTG) . . . . .3079
60.1Introduction . . . . .3079
60.2OTG main features . . . . .3080
60.2.1General features . . . . .3080
60.2.2Host-mode features . . . . .3081
60.2.3Peripheral-mode features . . . . .3081
60.3OTG implementation . . . . .3082
60.4OTG functional description . . . . .3083
60.4.1OTG block diagram . . . . .3083
60.4.2OTG pin and internal signals . . . . .3083
60.4.3OTG core . . . . .3084
60.4.4Embedded full-speed OTG PHY connected to OTG . . . . .3084
60.4.5OTG detections . . . . .3085
60.4.6High-speed OTG PHY connected to OTG_HS . . . . .3085
60.5OTG dual role device (DRD) . . . . .3086
60.5.1ID line detection . . . . .3086
60.5.2HNP dual role device . . . . .3086
60.5.3SRP dual role device . . . . .3087
60.6OTG as a USB peripheral . . . . .3087
60.6.1SRP-capable peripheral . . . . .3088
60.6.2Peripheral states . . . . .3088
60.6.3Peripheral endpoints . . . . .3089
60.7OTG as a USB host . . . . .3091
60.7.1SRP-capable host . . . . .3092
60.7.2USB host states . . . . .3092
60.7.3Host channels . . . . .3094
60.7.4Host scheduler . . . . .3095
60.8OTG SOF trigger . . . . .3096
60.8.1Host SOFs . . . . .3096
60.8.2Peripheral SOFs . . . . .3096
60.9OTG low-power modes . . . . .3097
60.10OTG Dynamic update of the OTG_HFIR register . . . . .3098
60.11OTG data FIFOs . . . . .3098
60.11.1Peripheral FIFO architecture . . . . .3099
60.11.2Host FIFO architecture . . . . .3100
60.11.3FIFO RAM allocation . . . . .3101
60.12OTG interrupts . . . . .3103
60.13OTG control and status registers . . . . .3105
60.13.1CSR memory map . . . . .3105
60.14OTG registers . . . . .3110
60.14.1OTG control and status register (OTG_GOTGCTL) . . . . .3110
60.14.2OTG interrupt register (OTG_GOTGINT) . . . . .3113
60.14.3OTG AHB configuration register (OTG_GAHBCFG) . . . . .3115
60.14.4OTG USB configuration register (OTG_GUSBCFG) . . . . .3116
60.14.5OTG reset register (OTG_GRSTCTL) . . . . .3118
60.14.6OTG core interrupt register (OTG_GINTSTS) . . . . .3121
60.14.7OTG interrupt mask register (OTG_GINTMSK) . . . . .3125
60.14.8OTG receive status debug read register (OTG_GRXSTSR) . . . . .3129
60.14.9OTG receive status debug read [alternate] (OTG_GRXSTSR) . . . . .3130
60.14.10OTG 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.3Device initialization3200
60.15.4DMA mode3200
60.15.5Host programming model3201
60.15.6Device programming model3233
60.15.7Worst case response time3253
60.15.8OTG programming model3255
61USB HS PHY controller (USBPHYC)3261
61.1USBPHYC introduction3261
61.2USBPHYC main features3261
61.3USBPHYC functional description3261
61.3.1USBPHYC block diagram3261
61.3.2USBPHYC reset and clocks3262
61.3.3PLL control3262
61.4USBPHYC registers3264
61.4.1USBPHYC PLL control register (USBPHYC_PLL)3264
61.4.2USBPHYC misc control register (USBPHYC_MISC)3266
61.4.3USBPHYC PHY x MONITOR register (USBPHYC_MONITORx)3267
61.4.4USBPHYC PHY x TUNE register (USBPHYC_TUNEx)3268
61.4.5USBPHYC VERSION register (USBPHYC_VERR)3270
61.4.6USBPHYC register map3271
62USB_EHCI/USB_OHCI high/full-speed link controller (USBH)3273
62.1Introduction3273
62.2USBH main features3273
62.3USBH functional description3274
62.3.1USBH block diagram3274
62.3.2USBH reset and clocks3274
62.3.3Description of USBH packet buffer3274
62.3.4Description of USBH root hub3275
62.4USBH interrupts3275
62.5USBH registers3275
62.5.1USBH OHCI standard registers3275
62.5.2USBH OHCI implementation register #6
(USBH_OHCI_INSNREG06)
3276
62.5.3USBH OHCI implementation register #7
(USBH_OHCI_INSNREG07)
3277
62.5.4USBH EHCI standard registers .....3278
62.5.5USBH EHCI implementation register #1
(USBH_EHCI_INSNREG01) .....
3278
62.5.6USBH EHCI implementation register #2
(USBH_EHCI_INSNREG02) .....
3279
62.5.7USBH EHCI implementation register #3
(USBH_EHCI_INSNREG03) .....
3280
62.5.8USBH EHCI implementation register #4
(USBH_EHCI_INSNREG04) .....
3281
62.5.9USBH EHCI implementation register #5
(USBH_EHCI_INSNREG05) .....
3282
62.5.10USBH EHCI implementation register #6
(USBH_EHCI_INSNREG06) .....
3283
62.5.11USBH EHCI implementation register #7
(USBH_EHCI_INSNREG07) .....
3284
62.5.12USBH register map .....3284
63Ethernet (ETH): gigabit media access control
(GMAC) with DMA controller .....
3289
63.1Ethernet introduction .....3289
63.2Ethernet main features .....3289
63.2.1Standard compliance .....3289
63.2.2MAC features .....3289
63.2.3Transaction layer (MTL) features .....3291
63.2.4DMA block features .....3292
63.2.5Bus interface features .....3293
63.2.6Audio and video features .....3293
63.2.7Generic queuing features .....3294
63.3Ethernet pins and internal signals .....3294
63.4Ethernet architecture .....3296
63.4.1DMA controller .....3297
63.4.2MTL .....3304
63.4.3MAC .....3304
63.4.4Multiple channels and queues support .....3309
63.5Ethernet functional description: MAC .....3317
63.5.1Double VLAN processing .....3317
63.5.2Source address and VLAN insertion, replacement, or deletion .....3319
63.5.3Packet filtering .....3320
63.5.4IEEE 1588 timestamp support .....3327
63.5.5Checksum offload engine3352
63.5.6TCP segmentation offload3358
63.5.7IPv4 ARP offload3364
63.5.8Loopback3365
63.5.9Flow control3366
63.5.10MAC management counters3369
63.5.11Interrupts generated by the MAC3371
63.5.12MAC and MMC register descriptions3371
63.6Ethernet functional description: PHY interfaces3372
63.6.1Station management agent (SMA)3372
63.6.2Media independent interface (MII)3379
63.6.3Gigabit media independent interface (GMII)3381
63.6.4Reduced media independent interface (RMII)3382
63.6.5Reduced gigabit media independent interface (RGMII)3385
63.7Ethernet low-power modes3388
63.7.1Low-power management3388
63.7.2Energy Efficient Ethernet (EEE)3394
63.8Ethernet interrupts3400
63.8.1DMA interrupts3400
63.8.2MTL interrupts3402
63.8.3MAC Interrupts3402
63.9Ethernet programming model3403
63.9.1DMA initialization3403
63.9.2MTL initialization3404
63.9.3MAC initialization3404
63.9.4Performing normal receive and transmit operation3405
63.9.5Stopping and starting transmission3406
63.9.6Programming guidelines for switching to new descriptor list
in RxDMA
3406
63.9.7Programming guidelines for switching the AXI clock frequency3407
63.9.8Programming guidelines for multichannel multiqueue operation3407
63.9.9Programming guidelines for GMII link state transitions3409
63.9.10Programming guidelines for IEEE 1588 timestamping3410
63.9.11Programming guidelines for PTP offload feature3411
63.9.12Programming guidelines for AV feature3415
63.9.13Programming guidelines for Energy Efficient Ethernet (EEE)3417
63.9.14Programming guidelines for flexible pulse-per-second (PPS) output3418
63.9.15Programming guidelines for IEEE 1588 auxiliary snapshot . . . . .3421
63.9.16Programming guidelines for TSO . . . . .3421
63.9.17Programming guidelines to perform VLAN filtering on the receiver . . .3422
63.10Descriptors . . . . .3423
63.10.1Descriptor overview . . . . .3423
63.10.2Descriptor structure . . . . .3423
63.10.3Transmit descriptor . . . . .3427
63.10.4Receive descriptor . . . . .3440
63.11Ethernet registers . . . . .3452
63.11.1Ethernet register maps . . . . .3452
63.11.2Ethernet DMA registers . . . . .3452
63.11.3Ethernet MTL registers . . . . .3482
63.11.4Ethernet MAC and MMC registers . . . . .3501
64HDMI-CEC controller (CEC) . . . . .3606
64.1HDMI-CEC introduction . . . . .3606
64.2HDMI-CEC controller main features . . . . .3606
64.3HDMI-CEC functional description . . . . .3607
64.3.1HDMI-CEC pin and internal signals . . . . .3607
64.3.2HDMI-CEC block diagram . . . . .3608
64.3.3Message description . . . . .3608
64.3.4Bit timing . . . . .3609
64.4Arbitration . . . . .3609
64.4.1SFT option bit . . . . .3611
64.5Error handling . . . . .3611
64.5.1Bit error . . . . .3611
64.5.2Message error . . . . .3612
64.5.3Bit rising error (BRE) . . . . .3612
64.5.4Short bit period error (SBPE) . . . . .3612
64.5.5Long bit period error (LBPE) . . . . .3612
64.5.6Transmission error detection (TXERR) . . . . .3614
64.6HDMI-CEC interrupts . . . . .3615
64.7HDMI-CEC registers . . . . .3616
64.7.1CEC control register (CEC_CR) . . . . .3616
64.7.2CEC configuration register (CEC_CFGR) . . . . .3617
64.7.3CEC Tx data register (CEC_TXDR) . . . . .3619
64.7.4CEC Rx data register (CEC_RXDR) .....3619
64.7.5CEC interrupt and status register (CEC_ISR) .....3619
64.7.6CEC interrupt enable register (CEC_IER) .....3621
64.7.7HDMI-CEC register map .....3623
65Hardware debug port (HDP) .....3624
65.1Features .....3624
65.2Block diagram .....3624
65.3Functional description .....3625
65.4HDP registers .....3628
65.4.1HDP control register (HDP_CTRL) .....3628
65.4.2HDP multiplexers control register (HDP_MUX) .....3628
65.4.3HDP read back value register (HDP_VAL) .....3629
65.4.4HDP general purpose output set register (HDP_GPOSET) .....3630
65.4.5HDP general purpose output clear register (HDP_GPOCLR) .....3630
65.4.6HDP general purpose output value register (HDP_GPOVAL) .....3631
65.4.7HDP version register (HDP_VERR) .....3631
65.4.8HDP IP identification register (HDP_IPIDR) .....3632
65.4.9HDP size identification register (HDP_SIDR) .....3632
65.4.10HDP register map .....3632
66Debug support (DBG) .....3634
66.1Introduction .....3634
66.2Debug use cases .....3635
66.3DBG block diagram .....3636
66.4DBG pins .....3637
66.5DBG power and clocking .....3637
66.5.1DBG power domains .....3637
66.5.2DBG clocks .....3638
66.5.3Debug and low-power modes .....3639
66.5.4DBG reset .....3639
66.6Security .....3639
66.6.1Authentication signals .....3640
66.7Chip level TAP controller (CLTAPC) .....3641
66.8Serial wire and JTAG debug port (SWJ-DP) .....3642
66.8.1JTAG debug port .....3643
66.8.2Serial Wire debug port3646
66.8.3Debug port registers3647
66.9Access ports3656
66.9.1Authentication3657
66.9.2MEM-AP registers3658
66.10System debug features3668
66.10.1System ROM tables3668
66.10.2CoreSight™ global timestamp generator (TSGEN)3677
66.10.3Cross trigger interface (CTI) and matrix (CTM)3685
66.10.4Trace funnel (CSTF)3708
66.10.5Embedded trace FIFO (ETF)3719
66.10.6Trace port interface unit (TPIU)3740
66.10.7Serial wire output (SWO)3758
66.10.8System trace macrocell (STM)3770
66.10.9Microprocessor debug unit (DBGMCU)3807
66.11Cortex®-A7 debug features3819
66.11.1Cortex®-A7 debug unit3820
66.11.2Cortex®-A7 performance monitoring unit (PMU)3862
66.11.3Embedded trace macrocell (ETM)3883
66.11.4Cross trigger interface (CTI)3934
66.12Cortex®-M4 debug features3935
66.12.1ROM tables3935
66.12.2Data watchpoint and trace unit (DWT)3941
66.12.3Instrumentation trace macrocell (ITM)3955
66.12.4Breakpoint unit (FPB)3965
66.12.5Embedded trace macrocell (ETM)3973
66.12.6Cross trigger interface (CTI)3994
66.13References3995
67Device electronic signature3996
67.1Unique device ID register (96 bits) (UID)3996
67.2Device part number (RPN)3998
67.3Device version3998
67.4Package data register (PKG)3999
68Important security notice4000

69Revision 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 pins2483
Table 353.TAMP internal input/output signals2483
Table 354.TAMP interconnection2483
Table 355.Minimum ATPER value2487
Table 356.Effect of low-power modes on TAMP2488
Table 357.Non-secure interrupt requests2489
Table 358.Secure interrupt requests2489
Table 359.TAMP register map and reset values2507
Table 360.I2C implementation2510
Table 361.I2C input/output pins2511
Table 362.I2C internal input/output signals2512
Table 363.Comparison of analog and digital filters2514
Table 364.I2C-bus and SMBus specification data setup and hold times2516
Table 365.I2C configuration2520
Table 366.I2C-bus and SMBus specification clock timings2531
Table 367.Timing settings for fI2CCLK of 8 MHz2541
Table 368.Timing settings for fI2CCLK of 16 MHz2541
Table 369.Timing settings for fI2CCLK of 48 MHz2542
Table 370.SMBus timeout specifications2544
Table 371.SMBus with PEC configuration2546
Table 372.TIMEOUTA[11:0] for maximum tTIMEOUT of 25 ms2547
Table 373.TIMEOUTB[11:0] for maximum tLOW:SEXT and tLOW:MEXT of 8 ms2547
Table 374.TIMEOUTA[11:0] for maximum tIDLE of 50 µs2547
Table 375.Effect of low-power modes to I2C2557
Table 376.I2C interrupt requests2557
Table 377.I2C register map and reset values2573
Table 378.USART features2577
Table 379.USART/UART input/output pins2580
Table 380.USART internal input/output signals2580
Table 381.Noise detection from sampled data2592
Table 382.Tolerance of the USART receiver when BRR [3:0] = 00002595
Table 383.Tolerance of the USART receiver when BRR[3:0] is different from 00002596
Table 384.USART frame formats2601
Table 385.Effect of low-power modes on the USART2624
Table 386.USART interrupt requests2625
Table 387.USART register map and reset values2662
Table 388.STM32MP157A SPI features2665
Table 389.SPI wakeup and interrupt requests2697
Table 390.Bitfields usable in PCM/I2S mode2700
Table 391.WS and CK level before SPI/I2S is enabled when AFCNTR = 12708
Table 392.Serial data line swapping2708
Table 393.CLKGEN programming examples for usual I2S frequencies2713
Table 394.I2S interrupt requests2722
Table 395.SPI register map and reset values2743
Table 396.STM32MP157 SAI features2746
Table 397.SAI internal input/output signals2748
Table 398.SAI input/output pins2748
Table 399.External synchronization selection2751
Table 400.MCLK_x activation conditions2756
Table 401.Clock generator programming examples2759
Table 402.SAI_A configuration for TDM mode2766
Table 403.TDM frame configuration examples2768
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 example2983
Table 457.System matrix, Node A2988
Table 458.Trigger list, Node A2989
Table 459.Number of data bytes transmitted with a reference message2996
Table 460.Rx buffer and FIFO element3003
Table 461.Rx buffer and FIFO element description3003
Table 462.Tx buffer and FIFO element3005
Table 463.Tx buffer element description3005
Table 464.Tx Event FIFO element3007
Table 465.Tx Event FIFO element description3007
Table 466.Standard message ID filter element3008
Table 467.Standard message ID filter element field description3009
Table 468.Extended message ID filter element3010
Table 469.Extended message ID filter element field description3010
Table 470.Trigger memory element3011
Table 471.Trigger memory element description3011
Table 472.FDCAN register map and reset values3049
Table 473.FDCAN TT register map and reset values3071
Table 474.CCU register map and reset values3077
Table 475.OTG speeds supported3079
Table 476.OTG implementation3082
Table 477.OTG input/output pins3083
Table 478.OTG input/output signals3084
Table 479.Compatibility of STM32 low power modes with the OTG3097
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 registers3108
Table 483.Data FIFO (DFIFO) access register map3110
Table 484.Power and clock gating control and status registers3110
Table 485.TRDT values3118
Table 486.Minimum duration for soft disconnect3163
Table 487.OTG register map and reset values3187
Table 488.USBPHYC register map and reset values3271
Table 489.USBH register map and reset values3284
Table 490.Ethernet peripheral pins3294
Table 491.Ethernet internal input/output signals3295
Table 492.Fixed priority scheme for DMA channels3309
Table 493.Weight for DMA channels3313
Table 494.Example of credit value per transmit cycle3314
Table 495.Double VLAN processing features in Tx path3318
Table 496.Double VLAN processing in Rx path3318
Table 497.VLAN insertion or replacement based on VLTI bit3320
Table 498.Destination address filtering3323
Table 499.Source address filtering3324
Table 500.VLAN match status3325
Table 501.Ordinary clock: PTP messages for snapshot3328
Table 502.End-to-end transparent clock: PTP messages for snapshot3329
Table 503.Peer-to-peer transparent clock: PTP messages for snapshot3329
Table 504.Egress and ingress latency for PHY interfaces3333
Table 505.Minimum PTP clock frequency example3334
Table 506.Message format defined in IEEE 1588-20083334
Table 507.Message format defined in IEEE 1588-20083335
Table 508.IPv6-UDP PTP packet fields required for control and status3336
Table 509.Ethernet PTP packet fields required for control and status3337
Table 510.Timestamp Snapshot Dependency on ETH_MACTSCR bits3339
Table 511.PTP message generation criteria3345
Table 512.Common PTP message header fields3347
Table 513.MAC Transmit PTP mode and one-step timestamping operation3350
Table 514.Transmit checksum offload engine functions for different packet types3355
Table 515.Receive checksum offload engine functions for different packet types3357
Table 516.TSO: TCP and IP header fields3361
Table 517.Pause packet fields3366
Table 518.Tx MAC flow control3367
Table 519.Rx MAC flow control3368
Table 520.Size of the maximum receive packet3370
Table 521.MCD clock selection3373
Table 522.MDIO Clause 45 frame structure3374
Table 523.MDIO Clause 22 frame structure3375
Table 524.Remote wake-up packet filter register3390
Table 525.Description of the remote wake-up filter fields3391
Table 526.Remote wake-up packet and PMT interrupt generation3392
Table 527.Transfer complete interrupt behavior3401
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 descriptor3436
Table 537.TDES1 context descriptor3437
Table 538.TDES2 context descriptor3437
Table 539.TDES3 context descriptor3437
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 descriptor3450
Table 549.RDES1 context descriptor3451
Table 550.RDES2 context descriptor3451
Table 551.RDES3 context descriptor3451
Table 552.ETH_DMA common register map and reset values3478
Table 553.ETH_DMA_CH0 register map and reset values3479
Table 554.ETH_DMA_CH1 register map and reset values3480
Table 555.ETH_MTL register map and reset values3497
Table 556.Giant Packet Status based on S2KP and JE Bits3505
Table 557.Packet Length based on the CST and ACS bits3505
Table 558.Ethernet MAC register map and reset values3594
Table 559.HDMI pin3607
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 protocol2513
Figure 555. Setup and hold timings2515
Figure 556. I2C initialization flow2517
Figure 557. Data reception2518
Figure 558. Data transmission2519
Figure 559. Target initialization flow2522
Figure 560. Transfer sequence flow for I2C target transmitter, NOSTRETCH = 02524
Figure 561. Transfer sequence flow for I2C target transmitter, NOSTRETCH = 12525
Figure 562. Transfer bus diagrams for I2C target transmitter (mandatory events only)2526
Figure 563. Transfer sequence flow for I2C target receiver, NOSTRETCH = 02527
Figure 564. Transfer sequence flow for I2C target receiver, NOSTRETCH = 12528
Figure 565. Transfer bus diagrams for I2C target receiver
(mandatory events only)
2528
Figure 566. Controller clock generation2530
Figure 567. Controller initialization flow2532
Figure 568. 10-bit address read access with HEAD10R = 02532
Figure 569. 10-bit address read access with HEAD10R = 12533
Figure 570. Transfer sequence flow for I2C controller transmitter, N ≤ 255 bytes2534
Figure 571. Transfer sequence flow for I2C controller transmitter, N > 255 bytes2535
Figure 572. Transfer bus diagrams for I2C controller transmitter
(mandatory events only)
2536
Figure 573. Transfer sequence flow for I2C controller receiver, N ≤ 255 bytes2538
Figure 574. Transfer sequence flow for I2C controller receiver, N > 255 bytes2539
Figure 575. Transfer bus diagrams for I2C controller receiver
(mandatory events only)
2540
Figure 576. Timeout intervals for tLOW:SEXT, tLOW:MEXT2544
Figure 577. Transfer sequence flow for SMBus target transmitter N bytes + PEC2548
Figure 578. Transfer bus diagram for SMBus target transmitter (SBC = 1)2548
Figure 579. Transfer sequence flow for SMBus target receiver N bytes + PEC2550
Figure 580. Bus transfer diagrams for SMBus target receiver (SBC = 1)2551
Figure 581. Bus transfer diagrams for SMBus controller transmitter2552
Figure 582. Bus transfer diagrams for SMBus controller receiver2554
Figure 583. USART block diagram2578
Figure 584. Word length programming2581
Figure 585. Configurable stop bits2583
Figure 586. TC/TXE behavior when transmitting2586
Figure 587. Start bit detection when oversampling by 16 or 82587
Figure 588. usart_ker_ck clock divider block diagram2590
Figure 589. Data sampling when oversampling by 162591
Figure 590. Data sampling when oversampling by 82592
Figure 591. Mute mode using Idle line detection2599
Figure 592. Mute mode using address mark detection2600
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 detection2604
Figure 595. USART example of synchronous master transmission2605
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 protocol2609
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