21. Cyclic redundancy check calculation unit (CRC) ..... 1226

21.1CRC introduction1226
21.2CRC main features1226
21.3CRC functional description1227
21.3.1CRC block diagram1227
21.3.2CRC internal signals1227
21.3.3CRC operation1227
21.4CRC registers1229
21.4.1CRC data register (CRC_DR)1229
21.4.2CRC independent data register (CRC_IDR)1229
21.4.3CRC control register (CRC_CR)1230
21.4.4CRC initial value (CRC_INIT)1231
21.4.5CRC polynomial (CRC_POL)1231
21.4.6CRC hardware configuration register (CRC_HWCFGR)1231
21.4.7CRC version register (CRC_VERR)1232
21.4.8CRC identification register (CRC_IPIDR)1232
21.4.9CRC size identification register (CRC_SIDR)1233
21.4.10CRC register map1234
22Flexible memory controller (FMC)1235
22.1FMC main features1235
22.2FMC implementation1236
22.3FMC block diagram1236
22.4FMC internal signals1237
22.5AHB interface1237
22.6AXI interface1238
22.6.1Supported memories and transactions1238
22.7External device address mapping1239
22.7.1NOR/PSRAM address mapping1240
22.7.2NAND flash memory address mapping1240
22.8NOR flash/PSRAM controller1242
22.8.1External memory interface signals1243
22.8.2Supported memories and transactions1245
22.8.3General timing rules1247
22.8.4NOR flash/PSRAM controller asynchronous transactions1247
22.8.5Synchronous transactions1267
22.8.6NOR/PSRAM controller registers1273
22.9NAND flash controller . . . . .1285
22.9.1External memory interface signals . . . . .1286
22.9.2NAND flash supported memories and transactions . . . . .1287
22.9.3Timing diagrams for NAND flash memory . . . . .1288
22.9.4NAND flash operations . . . . .1289
22.9.5NAND flash prewait function . . . . .1290
22.9.6NAND ECC controller . . . . .1290
22.9.7FMC command sequencer . . . . .1293
22.9.8NAND flash controller interrupt . . . . .1300
22.9.9NAND flash controller registers . . . . .1301
22.10FMC register map . . . . .1325
23Quad-SPI interface (QUADSPI) . . . . .1329
23.1Introduction . . . . .1329
23.2QUADSPI main features . . . . .1329
23.3QUADSPI functional description . . . . .1329
23.3.1QUADSPI block diagram . . . . .1329
23.3.2QUADSPI pins and internal signals . . . . .1330
23.3.3QUADSPI command sequence . . . . .1331
23.3.4QUADSPI signal interface protocol modes . . . . .1333
23.3.5QUADSPI indirect mode . . . . .1335
23.3.6QUADSPI automatic status-polling mode . . . . .1337
23.3.7QUADSPI memory-mapped mode . . . . .1337
23.3.8QUADSPI free-running clock mode . . . . .1338
23.3.9QUADSPI flash memory configuration . . . . .1338
23.3.10QUADSPI delayed data sampling . . . . .1339
23.3.11QUADSPI configuration . . . . .1339
23.3.12QUADSPI use . . . . .1340
23.3.13Sending the instruction only once . . . . .1341
23.3.14QUADSPI error management . . . . .1342
23.3.15QUADSPI busy bit and abort functionality . . . . .1342
23.3.16NCS behavior . . . . .1342
23.4QUADSPI interrupts . . . . .1344
23.5QUADSPI registers . . . . .1345
23.5.1QUADSPI control register (QUADSPI_CR) . . . . .1345
23.5.2QUADSPI device configuration register (QUADSPI_DCR) . . . . .1348
23.5.3QUADSPI status register (QUADSPI_SR) .....1349
23.5.4QUADSPI flag clear register (QUADSPI_FCR) .....1350
23.5.5QUADSPI data length register (QUADSPI_DLR) .....1350
23.5.6QUADSPI communication configuration register (QUADSPI_CCR) ..1351
23.5.7QUADSPI address register (QUADSPI_AR) .....1353
23.5.8QUADSPI alternate-byte register (QUADSPI_ABR) .....1353
23.5.9QUADSPI data register (QUADSPI_DR) .....1354
23.5.10QUADSPI polling status mask register (QUADSPI_PSMKR) .....1354
23.5.11QUADSPI polling status match register (QUADSPI_PSMAR) .....1355
23.5.12QUADSPI polling interval register (QUADSPI_PIR) .....1355
23.5.13QUADSPI low-power timeout register (QUADSPI_LPTR) .....1356
23.5.14QUADSPI hardware configuration register (QUADSPI_HWCFGR) ..1356
23.5.15QUADSPI version register (QUADSPI_VERR) .....1356
23.5.16QUADSPI identification register (QUADSPI_IPIDR) .....1357
23.5.17QUADSPI size identification register (QUADSPI_SIDR) .....1357
23.5.18QUADSPI register map .....1358
24Secure digital input/output MultiMediaCard interface (SDMMC) ..1360
24.1SDMMC main features .....1360
24.2SDMMC implementation .....1360
24.3SDMMC bus topology .....1361
24.4SDMMC operation modes .....1363
24.5SDMMC functional description .....1364
24.5.1SDMMC block diagram .....1364
24.5.2SDMMC pins and internal signals .....1364
24.5.3General description .....1365
24.5.4SDMMC adapter .....1367
24.5.5SDMMC AHB slave interface .....1389
24.5.6SDMMC AHB master interface .....1390
24.5.7AHB and SDMMC_CK clock relation .....1393
24.6Card functional description .....1393
24.6.1SD I/O mode .....1393
24.6.2CMD12 send timing .....1401
24.6.3Sleep (CMD5) .....1405
24.6.4Interrupt mode (Wait-IRQ) .....1406
24.6.5Boot operation .....1407
24.6.6Response R1b handling1410
24.6.7Reset and card cycle power1411
24.7Hardware flow control1412
24.8Ultra-high-speed phase I (UHS-I) voltage switch1413
24.9SDMMC interrupts1416
24.10SDMMC registers1417
24.10.1SDMMC power control register (SDMMC_POWER)1417
24.10.2SDMMC clock control register (SDMMC_CLKCR)1418
24.10.3SDMMC argument register (SDMMC_ARGR)1420
24.10.4SDMMC command register (SDMMC_CMDR)1420
24.10.5SDMMC command response register (SDMMC_RESPCMDR)1422
24.10.6SDMMC response x register (SDMMC_RESPxR)1423
24.10.7SDMMC data timer register (SDMMC_DTIMER)1423
24.10.8SDMMC data length register (SDMMC_DLENR)1424
24.10.9SDMMC data control register (SDMMC_DCTRL)1425
24.10.10SDMMC data counter register (SDMMC_DCNTR)1426
24.10.11SDMMC status register (SDMMC_STAR)1427
24.10.12SDMMC interrupt clear register (SDMMC_ICR)1430
24.10.13SDMMC mask register (SDMMC_MASKR)1432
24.10.14SDMMC acknowledgment timer register (SDMMC_ACKTIMER)1435
24.10.15SDMMC DMA control register (SDMMC_IDMACTRLR)1435
24.10.16SDMMC IDMA buffer size register (SDMMC_IDMABSIZE)1436
24.10.17SDMMC IDMA buffer base address register
(SDMMC_IDMABASER)
1437
24.10.18SDMMC IDMA linked list address register (SDMMC_IDMALAR)1437
24.10.19SDMMC IDMA linked list memory base register
(SDMMC_IDMABAR)
1438
24.10.20SDMMC data FIFO registers x (SDMMC_FIFORx)1439
24.10.21SDMMC version register (SDMMC_VERR)1439
24.10.22SDMMC identification register (SDMMC_IPIDR)1440
24.10.23SDMMC size identification register (SDMMC_SIDR)1440
24.10.24SDMMC register map1440
25Delay block (DLYB)1443
25.1DLYB introduction1443
25.2DLYB main features1443
25.3DLYB implementation1443
25.4DLYB functional description1443
25.4.1DLYB diagram1443
25.4.2DLYB pins and internal signals1444
25.4.3General description1444
25.4.4Delay line length configuration procedure1445
25.4.5Output clock phase configuration procedure1446
25.5DLYB registers1447
25.5.1DLYB control register (DLYB_CR)1447
25.5.2DLYB configuration register (DLYB_CFGR)1447
25.5.3DLYB register map1448
26Analog-to-digital converters (ADC1/2)1449
26.1ADC introduction1449
26.2ADC main features1449
26.3ADC implementation1450
26.4ADC functional description1452
26.4.1ADC block diagram1452
26.4.2ADC pins and internal signals1453
26.4.3ADC clocks1456
26.4.4ADC connectivity1458
26.4.5Slave AHB interface1460
26.4.6ADC Deep-power-down mode (DEEPPWD) and ADC voltage regulator (ADVREGEN)1460
26.4.7Single-ended and differential input channels1461
26.4.8Calibration (ADCAL, ADCALDIF, ADC_CALFACT)1461
26.4.9ADC on-off control (ADEN, ADDIS, ADRDY)1464
26.4.10Constraints when writing the ADC control bits1465
26.4.11Channel selection (ADC_SQRy, ADC_JSQR)1466
26.4.12Channel-wise programmable sampling time (SMPR1, SMPR2)1467
26.4.13Single conversion mode (CONT = 0)1469
26.4.14Continuous conversion mode (CONT = 1)1469
26.4.15Starting conversions (ADSTART, JADSTART)1470
26.4.16ADC timing1471
26.4.17Stopping an ongoing conversion (ADSTP, JADSTP)1472
26.4.18Conversion on external trigger and trigger polarity (EXTSEL, EXTEN, JEXTSEL, JEXTEN)1473
26.4.19Injected channel management1475
26.4.20Discontinuous mode (DISCEN, DISCNUM, JDISCEN) . . . . .1476
26.4.21Queue of context for injected conversions . . . . .1477
26.4.22Programmable resolution (RES) - fast conversion mode . . . . .1485
26.4.23End of conversion, end of sampling phase (EOC, JEOC, EOSMP) . . . . .1486
26.4.24End of conversion sequence (EOS, JEOS) . . . . .1486
26.4.25Timing diagrams example (single/continuous modes,
hardware/software triggers) . . . . .
1487
26.4.26Data management . . . . .1489
26.4.27Managing conversions using the DFSDM . . . . .1495
26.4.28Dynamic low-power features . . . . .1496
26.4.29Analog window watchdog (AWD1EN, JAWD1EN, AWD1SGL,
AWD1CH, AWD2CH, AWD3CH, AWD_HTx, AWD_LTx, AWDx) . . . . .
1501
26.4.30Oversampler . . . . .1505
26.4.31Temperature sensor . . . . .1511
26.4.32VBAT supply monitoring . . . . .1513
26.4.33Monitoring the internal voltage reference . . . . .1513
26.4.34Monitoring the supply voltage . . . . .1515
26.5ADC interrupts . . . . .1515
26.6ADC registers . . . . .1517
26.6.1ADC interrupt and status register (ADC_ISR) . . . . .1517
26.6.2ADC interrupt enable register (ADC_IER) . . . . .1519
26.6.3ADC control register (ADC_CR) . . . . .1521
26.6.4ADC configuration register (ADC_CFGR) . . . . .1524
26.6.5ADC configuration register 2 (ADC_CFGR2) . . . . .1528
26.6.6ADC sample time register 1 (ADC_SMPR1) . . . . .1531
26.6.7ADC sample time register 2 (ADC_SMPR2) . . . . .1531
26.6.8ADC watchdog threshold register 1 (ADC_TR1) . . . . .1532
26.6.9ADC watchdog threshold register 2 (ADC_TR2) . . . . .1533
26.6.10ADC watchdog threshold register 3 (ADC_TR3) . . . . .1534
26.6.11ADC regular sequence register 1 (ADC_SQR1) . . . . .1534
26.6.12ADC regular sequence register 2 (ADC_SQR2) . . . . .1535
26.6.13ADC regular sequence register 3 (ADC_SQR3) . . . . .1536
26.6.14ADC regular sequence register 4 (ADC_SQR4) . . . . .1537
26.6.15ADC regular data register (ADC_DR) . . . . .1538
26.6.16ADC injected sequence register (ADC_JSQR) . . . . .1538
26.6.17ADC offset y register (ADC_OFy) . . . . .1541
26.6.18ADC injected channel y data register (ADC_JDRy) . . . . .1542
26.6.19ADC analog watchdog 2 configuration register (ADC_AWD2CR) . . .1543
26.6.20ADC analog watchdog 3 configuration register (ADC_AWD3CR) . . .1543
26.6.21ADC Differential mode selection register (ADC_DIFSEL) . . . . .1544
26.6.22ADC calibration factors (ADC_CALFACT) . . . . .1545
26.6.23ADC option register (ADC_OR) . . . . .1545
26.7ADC common registers . . . . .1546
26.7.1ADC common control register (ADC_CCR) . . . . .1546
26.7.2ADC hardware configuration register (ADC_HWCFGR0) . . . . .1547
26.7.3ADC version register (ADC_VERR) . . . . .1548
26.7.4ADC identification register (ADC_IPDR) . . . . .1548
26.7.5ADC size identification register (ADC_SIDR) . . . . .1549
26.8ADC register map . . . . .1550
27Digital temperature sensor (DTS) . . . . .1554
27.1DTS introduction . . . . .1554
27.2DTS main features . . . . .1554
27.3DTS functional description . . . . .1555
27.3.1DTS block diagram . . . . .1555
27.3.2DTS internal signals . . . . .1555
27.3.3DTS block operation . . . . .1556
27.3.4Operating modes . . . . .1556
27.3.5Calibration . . . . .1556
27.3.6Prescaler . . . . .1556
27.3.7Temperature measurement principles . . . . .1557
27.3.8Sampling time . . . . .1558
27.3.9Quick measurement mode . . . . .1558
27.3.10Trigger input . . . . .1559
27.3.11On-off control and ready flag . . . . .1559
27.3.12Temperature measurement sequence . . . . .1560
27.4DTS low-power modes . . . . .1561
27.5DTS interrupts . . . . .1561
27.5.1Temperature window comparator . . . . .1561
27.5.2Synchronous interrupt . . . . .1561
27.5.3Asynchronous wake-up . . . . .1561
27.6DTS registers . . . . .1562
27.6.1Temperature sensor configuration register 1 (DTS_CFGR1) . . . . .1562
27.6.2Temperature sensor T0 value register 1 (DTS_T0VALR1)1564
27.6.3Temperature sensor ramp value register (DTS_RAMPVALR)1564
27.6.4Temperature sensor interrupt threshold register 1 (DTS_ITR1)1565
27.6.5Temperature sensor data register (DTS_DR)1565
27.6.6Temperature sensor status register (DTS_SR)1566
27.6.7Temperature sensor interrupt enable register (DTS_ITENR)1567
27.6.8Temperature sensor clear interrupt flag register (DTS_ICIFR)1568
27.6.9Temperature sensor option register (DTS_OR)1569
27.6.10DTS register map1570
28Voltage reference buffer (VREFBUF)1572
28.1VREFBUF introduction1572
28.2VREFBUF implementation1572
28.3VREFBUF functional description1572
28.4VREFBUF trimming1573
28.5VREFBUF registers1574
28.5.1VREFBUF control and status register (VREFBUF_CSR)1574
28.5.2VREFBUF calibration control register (VREFBUF_CCR)1575
28.5.3VREFBUF register map1575
29Digital filter for sigma delta modulators (DFSDM)1576
29.1Introduction1576
29.2DFSDM main features1577
29.3DFSDM implementation1578
29.4DFSDM functional description1579
29.4.1DFSDM block diagram1579
29.4.2DFSDM pins and internal signals1580
29.4.3DFSDM reset and clocks1581
29.4.4Serial channel transceivers1582
29.4.5Configuring the input serial interface1592
29.4.6Parallel data inputs1592
29.4.7Channel selection1594
29.4.8Digital filter configuration1595
29.4.9Integrator unit1596
29.4.10Analog watchdog1597
29.4.11Short-circuit detector1599
29.4.12Extreme detector .....1600
29.4.13Data unit block .....1600
29.4.14Signed data format .....1601
29.4.15Launching conversions .....1602
29.4.16Continuous and fast continuous modes .....1602
29.4.17Request precedence .....1603
29.4.18Power optimization in run mode .....1604
29.5DFSDM interrupts .....1604
29.6DFSDM DMA transfer .....1606
29.7DFSDM channel y registers (y=0..3) .....1606
29.7.1DFSDM channel y configuration register (DFSDM_CHyCFGR1) ...1606
29.7.2DFSDM channel y configuration register (DFSDM_CHyCFGR2) ...1608
29.7.3DFSDM channel y analog watchdog and short-circuit detector register
(DFSDM_CHyAWSCDR) .....
1609
29.7.4DFSDM channel y watchdog filter data register
(DFSDM_CHyWDATR) .....
1610
29.7.5DFSDM channel y data input register (DFSDM_CHyDATINR) ....1610
29.7.6DFSDM channel y delay register (DFSDM_CHyDLYR) .....1611
29.8DFSDM filter x module registers (x=0..1) .....1612
29.8.1DFSDM filter x control register 1 (DFSDM_FLTxCR1) .....1612
29.8.2DFSDM filter x control register 2 (DFSDM_FLTxCR2) .....1615
29.8.3DFSDM filter x interrupt and status register (DFSDM_FLTxISR) ....1616
29.8.4DFSDM filter x interrupt flag clear register (DFSDM_FLTxICR) ....1618
29.8.5DFSDM filter x injected channel group selection register
(DFSDM_FLTxJCHGR) .....
1619
29.8.6DFSDM filter x control register (DFSDM_FLTxFCR) .....1619
29.8.7DFSDM filter x data register for injected group
(DFSDM_FLTxJDATAR) .....
1620
29.8.8DFSDM filter x data register for the regular channel
(DFSDM_FLTxRDATAR) .....
1621
29.8.9DFSDM filter x analog watchdog high threshold register
(DFSDM_FLTxAWHTR) .....
1622
29.8.10DFSDM filter x analog watchdog low threshold register
(DFSDM_FLTxAWLTR) .....
1622
29.8.11DFSDM filter x analog watchdog status register
(DFSDM_FLTxAWSR) .....
1623
29.8.12DFSDM filter x analog watchdog clear flag register
(DFSDM_FLTxAWCFR) .....
1624
29.8.13DFSDM filter x extremes detector maximum register (DFSDM_FLTxEXMAX) . . . . .1624
29.8.14DFSDM filter x extremes detector minimum register (DFSDM_FLTxEXMIN) . . . . .1625
29.8.15DFSDM filter x conversion timer register (DFSDM_FLTxCNVTIMR) .1625
29.9DFSDM version registers . . . . .1627
29.9.1DFSDM hardware configuration register (DFSDM_HWCFGR) . . . . .1627
29.9.2DFSDM version register (DFSDM_VERR) . . . . .1627
29.9.3DFSDM identification register (DFSDM_IPIDR) . . . . .1628
29.9.4DFSDM size identification register (DFSDM_SIDR) . . . . .1628
29.9.5DFSDM register map . . . . .1629
30Digital camera interface pixel pipeline (DCMIPP) . . . . .1634
30.1DCMIPP introduction . . . . .1634
30.2DCMIPP main features . . . . .1636
30.3DCMIPP functional description . . . . .1637
30.3.1DCMIPP block diagram . . . . .1637
30.3.2DCMIPP pads and internal signals . . . . .1637
30.3.3DCMIPP reset and clocks . . . . .1638
30.3.4DCMIPP maximum resolution . . . . .1640
30.3.5DCMIPP minimum requirements for frame structure . . . . .1640
30.3.6Description of DCMIPP pixel format support . . . . .1640
30.4DCMIPP input and flow control . . . . .1641
30.4.1DCMIPP common configuration . . . . .1641
30.4.2Parallel input interface . . . . .1642
30.4.3Frame counter . . . . .1645
30.4.4Frame control . . . . .1645
30.4.5Pipe deactivation . . . . .1649
30.5Pipe0 (dump pipe) . . . . .1650
30.5.1Overview . . . . .1650
30.5.2Decimation . . . . .1650
30.5.3Crop/statistics selection/suppression . . . . .1651
30.5.4Dump counter . . . . .1652
30.5.5Double buffer mode . . . . .1653
30.5.6Pixel packing . . . . .1653
30.5.7Overrun detection . . . . .1654
30.6Pixel format description . . . . .1655
30.6.1Parallel interface formats1655
30.6.2Dump pipe formats1657
30.6.3AXI IP-Plug1658
30.7Shadow registers1660
30.8DCMIPP low power modes1661
30.9DCMIPP interrupts1662
30.9.1Free-running DCMIPP1662
30.9.2Interrupts1662
30.9.3Event pins1664
30.10DCMIPP registers1665
30.10.1DCMIPP IP-Plug global register 1 (DCMIPP_IPGR1)1665
30.10.2DCMIPP IP-Plug global register 2 (DCMIPP_IPGR2)1666
30.10.3DCMIPP IP-Plug global register 3 (DCMIPP_IPGR3)1666
30.10.4DCMIPP IP-Plug identification register (DCMIPP_IPGR8)1666
30.10.5DCMIPP IP-Plug Clientx register 1 (DCMIPP_IPCxR1)1667
30.10.6DCMIPP IP-Plug Clientx register 2 (DCMIPP_IPCxR2)1668
30.10.7DCMIPP IP-Plug Clientx register 3 (DCMIPP_IPCxR3)1668
30.10.8DCMIPP parallel interface control register (DCMIPP_PRCR)1669
30.10.9DCMIPP parallel interface embedded synchronization code register (DCMIPP_PRESCR)1670
30.10.10DCMIPP parallel interface embedded synchronization unmask register (DCMIPP PRESUR)1671
30.10.11DCMIPP parallel interface interrupt enable register (DCMIPP_PRIER)1672
30.10.12DCMIPP parallel interface status register (DCMIPP PRSR)1672
30.10.13DCMIPP parallel interface interrupt clear register (DCMIPP PRFCR)1673
30.10.14DCMIPP common IP HW configuration register (DCMIPP_CMHWCFGR)1674
30.10.15DCMIPP common configuration register (DCMIPP_CMCR)1674
30.10.16DCMIPP common frame counter register (DCMIPP_CMFRCR)1675
30.10.17DCMIPP common interrupt enable register (DCMIPP_CMIER)1675
30.10.18DCMIPP common status register 1 (DCMIPP_CMSR1)1676
30.10.19DCMIPP common status register 2 (DCMIPP_CMSR2)1677
30.10.20DCMIPP common interrupt clear register (DCMIPP_CMFCR)1678
30.10.21DCMIPP Pipe0 HW configuration register (DCMIPP_P0HWCFGR)1680
30.10.22DCMIPP Pipe0 flow selection configuration register (DCMIPP_P0FSCR)1680
30.10.23 DCMIPP Pipe0 flow control configuration register
(DCMIPP_P0FCTCR) .....
1681
30.10.24 DCMIPP Pipe0 statistic/crop start register (DCMIPP_P0SCSTR) .....1681
30.10.25 DCMIPP Pipe0 statistic/crop size register (DCMIPP_P0SCSZR) .....1682
30.10.26 DCMIPP Pipe0 dump counter register (DCMIPP_P0DCCNTR) .....1683
30.10.27 DCMIPP Pipe0 dump limit register (DCMIPP_P0DCLMTR) .....1683
30.10.28 DCMIPP Pipe0 pixel packer configuration register
(DCMIPP_P0PPCR) .....
1684
30.10.29 DCMIPP Pipe0 pixel packer Memory0 address register 1
(DCMIPP_P0PPM0AR1) .....
1685
30.10.30 DCMIPP Pipe0 pixel packer Memory0 address register 2
(DCMIPP_P0PPM0AR2) .....
1685
30.10.31 DCMIPP Pipe0 interrupt enable register (DCMIPP_P0IER) .....1686
30.10.32 DCMIPP Pipe0 status register (DCMIPP_P0SR) .....1686
30.10.33 DCMIPP Pipe0 interrupt clear register (DCMIPP_P0FCR) .....1687
30.10.34 DCMIPP Pipe0 current flow control configuration register
(DCMIPP_P0CFCTCR) .....
1688
30.10.35 DCMIPP Pipe0 current statistic/crop start register
(DCMIPP_P0CSCSTR) .....
1689
30.10.36 DCMIPP Pipe0 current statistic/crop size register
(DCMIPP_P0CSCSZR) .....
1689
30.10.37 DCMIPP Pipe0 current pixel packer configuration register
(DCMIPP_P0CPPCR) .....
1690
30.10.38 DCMIPP Pipe0 current pixel packer Memory0 address register 1
(DCMIPP_P0CPPM0AR1) .....
1692
30.10.39 DCMIPP Pipe0 current pixel packer Memory0 address register 2
(DCMIPP_P0CPPM0AR2) .....
1692
30.10.40 DCMIPP hardware configuration register 3 (DCMIPP_HWCFGR3) .....1693
30.10.41 DCMIPP hardware configuration register 2 (DCMIPP_HWCFGR2) .....1693
30.10.42 DCMIPP hardware configuration register 1 (DCMIPP_HWCFGR1) .....1694
30.10.43 DCMIPP version register (DCMIPP_VERR) .....1695
30.10.44 DCMIPP identification register (DCMIPP_IPIDR) .....1695
30.10.45 DCMIPP size identification register (DCMIPP_SIDR) .....1695
30.11 DCMIPP register map .....1697
31 LCD-TFT display controller (LTDC) .....1701
31.1 LTDC introduction .....1701
31.2 LTDC main features .....1701
31.3 LTDC functional description .....1702
31.3.1 LTDC block diagram .....1702
31.3.2LTDC pins and internal signals1702
31.3.3LTDC reset and clocks1703
31.4LTDC configuration parameters1704
31.4.1AXI master1704
31.4.2Input layer definition and cropping1705
31.4.3Input pixel format1706
31.4.4YUV planar1708
31.4.5YUV-to-RGB color conversion1709
31.4.6Horizontal or vertical mirroring1710
31.4.7Default layer color1711
31.4.8Color look-up table (CLUT)1711
31.4.9Transparency color keying1712
31.4.10Display composition - windowing1712
31.4.11Display composition - blending1713
31.4.12Gamma correction1715
31.4.13YUV output conversion1715
31.4.14Dithering1716
31.4.15CRC hashing1717
31.4.16Display timing1717
31.4.17Output interface polarity1719
31.4.18Shadow registers1720
31.4.19General control1721
31.5LTDC interrupts1722
31.6LTDC programming procedure1723
31.7LTDC registers1723
31.7.1LTDC identification register (LTDC_IDR)1723
31.7.2LTDC layer count register (LTDC_LCR)1724
31.7.3LTDC synchronization size configuration register (LTDC_SSCR)1724
31.7.4LTDC back porch configuration register (LTDC_BPCR)1724
31.7.5LTDC active width configuration register (LTDC_AWCR)1725
31.7.6LTDC total width configuration register (LTDC_TWCR)1726
31.7.7LTDC global control register (LTDC_GCR)1726
31.7.8LTDC global configuration 1 register (LTDC_GC1R)1728
31.7.9LTDC global configuration 2 register (LTDC_GC2R)1729
31.7.10LTDC shadow reload configuration register (LTDC_SRCR)1730
31.7.11LTDC gamma correction configuration register (LTDC_GCCR)1730
31.7.12LTDC background color configuration register (LTDC_BCCR)1731
31.7.13LTDC interrupt enable register (LTDC_IER) .....1732
31.7.14LTDC interrupt status register (LTDC_ISR) .....1733
31.7.15LTDC interrupt clear register (LTDC_ICR) .....1733
31.7.16LTDC line interrupt position configuration register (LTDC_LIPCR) ..1734
31.7.17LTDC current position status register (LTDC_CPSR) .....1735
31.7.18LTDC current display status register (LTDC_CDSR) .....1735
31.7.19LTDC external display control register (LTDC_EDCR) .....1736
31.7.20LTDC interrupt enable register 2 (LTDC_IER2) .....1736
31.7.21LTDC interrupt status register 2 (LTDC_ISR2) .....1737
31.7.22LTDC interrupt clear register 2 (LTDC_ICR2) .....1738
31.7.23LTDC line interrupt position configuration register 2 (LTDC_LIPCR2)1739
31.7.24LTDC expected CRC register (LTDC_ECRCR) .....1739
31.7.25LTDC computed CRC register (LTDC_CCRCR) .....1740
31.7.26LTDC FIFO underrun threshold register (LTDC_FUTR) .....1740
31.7.27LTDC layer x configuration 0 register (LTDC_LxC0R) .....1741
31.7.28LTDC layer x configuration 1 register (LTDC_LxC1R) .....1742
31.7.29LTDC layer x reload control register (LTDC_LxRCR) .....1742
31.7.30LTDC layer x control register (LTDC_LxCR) .....1743
31.7.31LTDC layer x window horizontal position configuration register
(LTDC_LxWHPCR) .....
1744
31.7.32LTDC layer x window vertical position configuration register
(LTDC_LxWVPCR) .....
1745
31.7.33LTDC layer x color keying configuration register
(LTDC_LxCKCR) .....
1745
31.7.34LTDC layer x pixel format configuration register
(LTDC_LxPFCR) .....
1746
31.7.35LTDC layer x constant alpha configuration register
(LTDC_LxCACR) .....
1746
31.7.36LTDC layer x default color configuration register
(LTDC_LxDCCR) .....
1747
31.7.37LTDC layer x blending factors configuration register
(LTDC_LxBFCR) .....
1747
31.7.38LTDC layer x burst length configuration register
(LTDC_LxBLCR) .....
1748
31.7.39LTDC layer x planar configuration register
(LTDC_LxPCR) .....
1749
31.7.40LTDC layer x color frame buffer address register
(LTDC_LxCFBAR) .....
1750
31.7.41LTDC layer x color frame buffer length register
(LTDC_LxCFBLR) .....
1751
31.7.42LTDC layer x color frame buffer line number register (LTDC_LxCFBLNR) .....1751
31.7.43LTDC layer 1 auxiliary frame buffer address 0 register (LTDC_L1AFBA0R) .....1752
31.7.44LTDC layer 1 auxiliary frame buffer address 1 register (LTDC_L1AFBA1R) .....1752
31.7.45LTDC layer 1 auxiliary frame buffer length register (LTDC_L1AFBLR) .....1753
31.7.46LTDC layer 1 auxiliary frame buffer line number register (LTDC_L1AFBLNR) .....1753
31.7.47LTDC layer x CLUT write register (LTDC_LxCLUTWR) .....1754
31.7.48LTDC layer x conversion YCbCr RGB 0 register (LTDC_LxCYR0R) ..1754
31.7.49LTDC layer x conversion YCbCr RGB 1 register (LTDC_LxCYR1R) ..1755
31.7.50LTDC layer x flexible pixel format 0 register (LTDC_LxFPF0R) ....1755
31.7.51LTDC layer x flexible pixel format 1 register (LTDC_LxFPF1R) ....1756
31.7.52LTDC register map .....1756
32True random number generator (RNG) .....1762
32.1RNG introduction .....1762
32.2RNG main features .....1762
32.3RNG functional description .....1763
32.3.1RNG block diagram .....1763
32.3.2RNG internal signals .....1763
32.3.3Random number generation .....1763
32.3.4RNG initialization .....1766
32.3.5RNG operation .....1767
32.3.6RNG clocking .....1769
32.3.7Error management .....1769
32.3.8RNG low-power use .....1770
32.4RNG interrupts .....1771
32.5RNG processing time .....1771
32.6RNG entropy source validation .....1772
32.6.1Introduction .....1772
32.6.2Validation conditions .....1772
32.7RNG registers .....1773
32.7.1RNG control register (RNG_CR) .....1773
32.7.2RNG status register (RNG_SR) .....1775
32.7.3RNG data register (RNG_DR) .....1776
32.7.4RNG noise source control register (RNG_NSCR) . . . . .1777
32.7.5RNG health test control register (RNG_HTCR) . . . . .1778
32.7.6RNG hardware configuration register (RNG_HWCFGR) . . . . .1778
32.7.7RNG version register (RNG_VERR) . . . . .1779
32.7.8RNG identification register (RNG_IPIDR) . . . . .1779
32.7.9RNG size identification register (RNG_SIDR) . . . . .1779
32.7.10RNG register map . . . . .1780
33Secure AES coprocessor (SAES) . . . . .1781
33.1Introduction . . . . .1781
33.2SAES main features . . . . .1782
33.3SAES implementation . . . . .1782
33.4SAES functional description . . . . .1782
33.4.1SAES block diagram . . . . .1782
33.4.2SAES internal signals . . . . .1783
33.4.3SAES cryptographic core . . . . .1784
33.4.4SAES procedure to perform a cipher operation . . . . .1789
33.4.5SAES decryption round key preparation . . . . .1792
33.4.6SAES ciphertext stealing and data padding . . . . .1793
33.4.7SAES task suspend and resume . . . . .1793
33.4.8SAES basic chaining modes (ECB, CBC) . . . . .1794
33.4.9SAES counter (CTR) mode . . . . .1799
33.4.10SAES Galois/counter mode (GCM) . . . . .1801
33.4.11SAES Galois message authentication code (GMAC) . . . . .1806
33.4.12SAES counter with CBC-MAC (CCM) . . . . .1807
33.4.13SAES operation with wrapped keys . . . . .1813
33.4.14SAES operation with shared keys . . . . .1816
33.4.15SAES data registers and data swapping . . . . .1818
33.4.16SAES key registers . . . . .1820
33.4.17SAES initialization vector registers . . . . .1822
33.4.18SAES DMA interface . . . . .1822
33.4.19SAES error management . . . . .1823
33.5SAES interrupts . . . . .1825
33.6SAES processing latency . . . . .1826
33.7SAES registers . . . . .1827
33.7.1SAES control register (SAES_CR) . . . . .1827
33.7.2SAES status register (SAES_SR) .....1830
33.7.3SAES data input register (SAES_DINR) .....1832
33.7.4SAES data output register (SAES_DOUTR) .....1832
33.7.5SAES key register 0 (SAES_KEYR0) .....1833
33.7.6SAES key register 1 (SAES_KEYR1) .....1833
33.7.7SAES key register 2 (SAES_KEYR2) .....1834
33.7.8SAES key register 3 (SAES_KEYR3) .....1834
33.7.9SAES initialization vector register 0 (SAES_IVR0) .....1834
33.7.10SAES initialization vector register 1 (SAES_IVR1) .....1835
33.7.11SAES initialization vector register 2 (SAES_IVR2) .....1835
33.7.12SAES initialization vector register 3 (SAES_IVR3) .....1835
33.7.13SAES key register 4 (SAES_KEYR4) .....1836
33.7.14SAES key register 5 (SAES_KEYR5) .....1836
33.7.15SAES key register 6 (SAES_KEYR6) .....1836
33.7.16SAES key register 7 (SAES_KEYR7) .....1837
33.7.17SAES suspend registers (SAES_SUSPxR) .....1837
33.7.18SAES interrupt enable register (SAES_IER) .....1838
33.7.19SAES interrupt status register (SAES_ISR) .....1839
33.7.20SAES interrupt clear register (SAES_ICR) .....1840
33.7.21SAES hardware configuration register (SAES_HWCFGR) .....1841
33.7.22SAES version register (SAES_VERR) .....1841
33.7.23SAES identification register (SAES_IPIDR) .....1842
33.7.24SAES size ID register (SAES_SIDR) .....1842
33.7.25SAES register map .....1842
34Cryptographic processor (CRYP) .....1845
34.1Introduction .....1845
34.2CRYP main features .....1845
34.3CRYP implementation .....1846
34.4CRYP functional description .....1847
34.4.1CRYP block diagram .....1847
34.4.2CRYP internal signals .....1848
34.4.3CRYP DES/TDES cryptographic core .....1848
34.4.4CRYP AES cryptographic core .....1849
34.4.5CRYP procedure to perform a cipher operation .....1855
34.4.6CRYP busy state .....1857
34.4.7Preparing the CRYP AES key for decryption .....1858
34.4.8CRYP stealing and data padding .....1858
34.4.9CRYP suspend/resume operations .....1859
34.4.10CRYP DES/TDES basic chaining modes (ECB, CBC) .....1860
34.4.11CRYP AES basic chaining modes (ECB, CBC) .....1865
34.4.12CRYP AES counter mode (AES-CTR) .....1870
34.4.13CRYP AES Galois/counter mode (GCM) .....1874
34.4.14CRYP AES Galois message authentication code (GMAC) .....1879
34.4.15CRYP AES Counter with CBC-MAC (CCM) .....1880
34.4.16AES key sharing with secure AES co-processor .....1885
34.4.17CRYP data registers and data swapping .....1886
34.4.18CRYP key registers .....1890
34.4.19CRYP initialization vector registers .....1892
34.4.20CRYP DMA interface .....1892
34.4.21CRYP error management .....1895
34.5CRYP interrupts .....1895
34.6CRYP processing time .....1896
34.7CRYP registers .....1897
34.7.1CRYP control register (CRYP_CR) .....1897
34.7.2CRYP status register (CRYP_SR) .....1900
34.7.3CRYP data input register (CRYP_DIN) .....1901
34.7.4CRYP data output register (CRYP_DOUT) .....1902
34.7.5CRYP DMA control register (CRYP_DMACR) .....1903
34.7.6CRYP interrupt mask set/clear register (CRYP_IMSCR) .....1903
34.7.7CRYP raw interrupt status register (CRYP_RISR) .....1904
34.7.8CRYP masked interrupt status register (CRYP_MISR) .....1905
34.7.9CRYP key register 0L (CRYP_K0LR) .....1905
34.7.10CRYP key register 0R (CRYP_K0RR) .....1906
34.7.11CRYP key register 1L (CRYP_K1LR) .....1906
34.7.12CRYP key register 1R (CRYP_K1RR) .....1907
34.7.13CRYP key register 2L (CRYP_K2LR) .....1907
34.7.14CRYP key register 2R (CRYP_K2RR) .....1908
34.7.15CRYP key register 3L (CRYP_K3LR) .....1908
34.7.16CRYP key register 3R (CRYP_K3RR) .....1909
34.7.17CRYP initialization vector register 0L (CRYP_IV0LR) .....1909
34.7.18CRYP initialization vector register 0R (CRYP_IV0RR) .....1910
34.7.19CRYP initialization vector register 1L (CRYP_IV1LR) .....1910
34.7.20CRYP initialization vector register 1R (CRYP_IV1RR) .....1911
34.7.21CRYP context swap GCM-CCM registers (CRYP_CSGCMCCMxR)1911
34.7.22CRYP context swap GCM registers (CRYP_CSGCMxR)1912
34.7.23CRYP hardware configuration register (CRYP_HWCFGR)1912
34.7.24CRYP version register (CRYP_VERR)1913
34.7.25CRYP identification (CRYP_IPIDR)1913
34.7.26CRYP size identification register (CRYP_SIDR)1913
34.7.27CRYP register map1914
35Hash processor (HASH)1917
35.1HASH introduction1917
35.2HASH main features1917
35.3HASH implementation1918
35.4HASH functional description1918
35.4.1HASH block diagram1918
35.4.2HASH internal signals1919
35.4.3About secure hash algorithms1919
35.4.4Message data feeding1920
35.4.5Message digest computing1921
35.4.6Message padding1924
35.4.7HMAC operation1925
35.4.8HASH suspend/resume operations1927
35.4.9HASH DMA interface1929
35.4.10HASH error management1930
35.4.11HASH processing time1930
35.5HASH interrupts1930
35.6HASH registers1931
35.6.1HASH control register (HASH_CR)1931
35.6.2HASH data input register (HASH_DIN)1933
35.6.3HASH start register (HASH_STR)1934
35.6.4HASH digest registers1935
35.6.5HASH interrupt enable register (HASH_IMR)1937
35.6.6HASH status register (HASH_SR)1937
35.6.7HASH context swap registers1939
35.6.8HASH hardware configuration register (HASH_HWCFGR)1939
35.6.9HASH version register (HASH_VERR)1940
35.6.10HASH identification register (HASH_IPIDR)1940
35.6.11HASH size identification register (HASH_SIDR) . . . . .1941
35.6.12HASH register map . . . . .1941
36Public key accelerator (PKA) . . . . .1943
36.1PKA introduction . . . . .1943
36.2PKA main features . . . . .1943
36.3PKA implementation . . . . .1943
36.4PKA functional description . . . . .1944
36.4.1PKA block diagram . . . . .1944
36.4.2PKA internal signals . . . . .1944
36.4.3PKA reset and clocks . . . . .1944
36.4.4PKA public key acceleration . . . . .1945
36.4.5Typical applications for PKA . . . . .1947
36.4.6PKA procedure to perform an operation . . . . .1949
36.4.7PKA error management . . . . .1950
36.5PKA operating modes . . . . .1951
36.5.1Introduction . . . . .1951
36.5.2Montgomery parameter computation . . . . .1952
36.5.3Modular addition . . . . .1952
36.5.4Modular subtraction . . . . .1953
36.5.5Modular and Montgomery multiplication . . . . .1953
36.5.6Modular exponentiation . . . . .1954
36.5.7Modular inversion . . . . .1956
36.5.8Modular reduction . . . . .1956
36.5.9Arithmetic addition . . . . .1957
36.5.10Arithmetic subtraction . . . . .1957
36.5.11Arithmetic multiplication . . . . .1958
36.5.12Arithmetic comparison . . . . .1958
36.5.13RSA CRT exponentiation . . . . .1958
36.5.14Point on elliptic curve \(F_p\) check . . . . .1959
36.5.15ECC \(F_p\) scalar multiplication . . . . .1960
36.5.16ECDSA sign . . . . .1961
36.5.17ECDSA verification . . . . .1963
36.5.18ECC complete addition . . . . .1964
36.5.19ECC double base ladder . . . . .1964
36.5.20ECC projective to affine . . . . .1965
36.6Example of configurations and processing times . . . . .1966
36.6.1Supported elliptic curves . . . . .1966
36.6.2Computation times . . . . .1968
36.7PKA interrupts . . . . .1970
36.8PKA registers . . . . .1971
36.8.1PKA control register (PKA_CR) . . . . .1971
36.8.2PKA status register (PKA_SR) . . . . .1973
36.8.3PKA clear flag register (PKA_CLRFR) . . . . .1974
36.8.4PKA RAM . . . . .1974
36.8.5PKA hardware configuration register (PKA_HWCFGR) . . . . .1975
36.8.6PKA version register (PKA_VERR) . . . . .1975
36.8.7PKA identification register (PKA_IPIDR) . . . . .1975
36.8.8PKA size identification register (PKA_SIDR) . . . . .1976
36.8.9PKA register map . . . . .1977
37DDR memory cipher engine (DDRMCE) . . . . .1978
37.1MCE introduction . . . . .1978
37.2MCE main features . . . . .1978
37.3MCE implementation . . . . .1978
37.4MCE functional description . . . . .1979
37.4.1MCE block diagram . . . . .1979
37.4.2MCE internal signals . . . . .1979
37.4.3MCE programming . . . . .1979
37.4.4MCE reset and clocks . . . . .1980
37.4.5MCE block cipher encryption mode . . . . .1980
37.4.6MCE AXI traffic management . . . . .1981
37.4.7MCE encryption disable options . . . . .1981
37.4.8MCE error management . . . . .1981
37.5MCE interrupts . . . . .1981
37.6MCE registers . . . . .1982
37.6.1MCE configuration register (MCE_CR) . . . . .1982
37.6.2MCE status register (MCE_SR) . . . . .1982
37.6.3MCE illegal access status register (MCE_IASR) . . . . .1983
37.6.4MCE illegal access clear register (MCE_IACR) . . . . .1983
37.6.5MCE illegal access interrupt enable register (MCE_IAIER) . . . . .1984
37.6.6MCE privileged configuration register (MCE_PRIVCFGR) . . . . .1984
37.6.7MCE region configuration register (MCE_REGCR) . . . . .1985
37.6.8MCE start address register
(MCE_SADDR) . . . . .
1985
37.6.9MCE end address register
(MCE_EADDR) . . . . .
1986
37.6.10MCE master key x (MCE_MKEYRx) . . . . .1986
37.6.11MCE hardware configuration register 3 (MCE_HWCFGR3) . . . . .1987
37.6.12MCE hardware configuration register 2 (MCE_HWCFGR2) . . . . .1987
37.6.13MCE hardware configuration register 1 (MCE_HWCFGR1) . . . . .1988
37.6.14MCE version register (MCE_VERR) . . . . .1988
37.6.15MCE identification register (MCE_IPIDR) . . . . .1989
37.6.16MCE size identification register (MCE_SIDR) . . . . .1989
37.6.17MCE register map . . . . .1989
38Advanced-control timers (TIM1/TIM8) . . . . .1991
38.1TIM1/TIM8 introduction . . . . .1991
38.2TIM1/TIM8 main features . . . . .1991
38.3TIM1/TIM8 functional description . . . . .1993
38.3.1Time-base unit . . . . .1993
38.3.2Counter modes . . . . .1995
38.3.3Repetition counter . . . . .2006
38.3.4External trigger input . . . . .2008
38.3.5Clock selection . . . . .2009
38.3.6Capture/compare channels . . . . .2013
38.3.7Input capture mode . . . . .2015
38.3.8PWM input mode . . . . .2016
38.3.9Forced output mode . . . . .2017
38.3.10Output compare mode . . . . .2018
38.3.11PWM mode . . . . .2019
38.3.12Asymmetric PWM mode . . . . .2022
38.3.13Combined PWM mode . . . . .2023
38.3.14Combined 3-phase PWM mode . . . . .2024
38.3.15Complementary outputs and dead-time insertion . . . . .2025
38.3.16Using the break function . . . . .2027
38.3.17Bidirectional break inputs . . . . .2033
38.3.18Clearing the OCxREF signal on an external event . . . . .2034
38.3.196-step PWM generation . . . . .2036
38.3.20One-pulse mode2037
38.3.21Retriggerable one pulse mode2038
38.3.22Encoder interface mode2039
38.3.23UIF bit remapping2041
38.3.24Timer input XOR function2042
38.3.25Interfacing with Hall sensors2042
38.3.26Timer synchronization2045
38.3.27ADC synchronization2049
38.3.28DMA burst mode2049
38.3.29Debug mode2050
38.4TIM1/TIM8 registers2051
38.4.1TIMx control register 1 (TIMx_CR1)(x = 1, 8)2051
38.4.2TIMx control register 2 (TIMx_CR2)(x = 1, 8)2052
38.4.3TIMx slave mode control register
(TIMx_SMCR)(x = 1, 8)
2055
38.4.4TIMx DMA/interrupt enable register
(TIMx_DIER)(x = 1, 8)
2057
38.4.5TIMx status register (TIMx_SR)(x = 1, 8)2059
38.4.6TIMx event generation register (TIMx_EGR)(x = 1, 8)2061
38.4.7TIMx capture/compare mode register 1 (TIMx_CCMR1)(x = 1, 8)2062
38.4.8TIMx capture/compare mode register 1 [alternate]
(TIMx_CCMR1)(x = 1, 8)
2063
38.4.9TIMx capture/compare mode register 2 (TIMx_CCMR2)(x = 1, 8)2066
38.4.10TIMx capture/compare mode register 2 [alternate]
(TIMx_CCMR2)(x = 1, 8)
2067
38.4.11TIMx capture/compare enable register
(TIMx_CCER)(x = 1, 8)
2068
38.4.12TIMx counter (TIMx_CNT)(x = 1, 8)2072
38.4.13TIMx prescaler (TIMx_PSC)(x = 1, 8)2072
38.4.14TIMx auto-reload register (TIMx_ARR)(x = 1, 8)2072
38.4.15TIMx repetition counter register (TIMx_RCR)(x = 1, 8)2073
38.4.16TIMx capture/compare register 1
(TIMx_CCR1)(x = 1, 8)
2073
38.4.17TIMx capture/compare register 2
(TIMx_CCR2)(x = 1, 8)
2074
38.4.18TIMx capture/compare register 3
(TIMx_CCR3)(x = 1, 8)
2074
38.4.19TIMx capture/compare register 4
(TIMx_CCR4)(x = 1, 8)
2075
38.4.20TIMx break and dead-time register
(TIMx_BDTR)(x = 1, 8) .....
2075
38.4.21TIMx DMA control register
(TIMx_DCR)(x = 1, 8) .....
2079
38.4.22TIMx DMA address for full transfer
(TIMx_DMAR)(x = 1, 8) .....
2080
38.4.23TIMx capture/compare mode register 3
(TIMx_CCMR3)(x = 1, 8) .....
2081
38.4.24TIMx capture/compare register 5
(TIMx_CCR5)(x = 1, 8) .....
2082
38.4.25TIMx capture/compare register 6
(TIMx_CCR6)(x = 1, 8) .....
2083
38.4.26TIM1 alternate function option register 1 (TIM1_AF1) .....2083
38.4.27TIM1 Alternate function register 2 (TIM1_AF2) .....2084
38.4.28TIM8 Alternate function option register 1 (TIM8_AF1) .....2085
38.4.29TIM8 Alternate function option register 2 (TIM8_AF2) .....2086
38.4.30TIM1 timer input selection register (TIM1_TISEL) .....2087
38.4.31TIM8 timer input selection register (TIM8_TISEL) .....2088
38.4.32TIM1 register map .....2089
38.4.33TIM8 register map .....2091
39General-purpose timers (TIM2/TIM3/TIM4/TIM5) .....2094
39.1TIM2/TIM3/TIM4/TIM5 introduction .....2094
39.2TIM2/TIM3/TIM4/TIM5 main features .....2094
39.3TIM2/TIM3/TIM4/TIM5 functional description .....2096
39.3.1Time-base unit .....2096
39.3.2Counter modes .....2098
39.3.3Clock selection .....2108
39.3.4Capture/Compare channels .....2112
39.3.5Input capture mode .....2113
39.3.6PWM input mode .....2114
39.3.7Forced output mode .....2115
39.3.8Output compare mode .....2116
39.3.9PWM mode .....2117
39.3.10Asymmetric PWM mode .....2120
39.3.11Combined PWM mode .....2121
39.3.12Clearing the OCxREF signal on an external event .....2122
39.3.13One-pulse mode .....2124
39.3.14Retriggerable one pulse mode .....2125
39.3.15Encoder interface mode . . . . .2126
39.3.16UIF bit remapping . . . . .2128
39.3.17Timer input XOR function . . . . .2128
39.3.18Timers and external trigger synchronization . . . . .2129
39.3.19Timer synchronization . . . . .2132
39.3.20DMA burst mode . . . . .2137
39.3.21Debug mode . . . . .2138
39.4TIM2/TIM3/TIM4/TIM5 registers . . . . .2139
39.4.1TIMx control register 1 (TIMx_CR1)(x = 2 to 5) . . . . .2139
39.4.2TIMx control register 2 (TIMx_CR2)(x = 2 to 5) . . . . .2140
39.4.3TIMx slave mode control register (TIMx_SMCR)(x = 2 to 5) . . . . .2142
39.4.4TIMx DMA/Interrupt enable register (TIMx_DIER)(x = 2 to 5) . . . . .2145
39.4.5TIMx status register (TIMx_SR)(x = 2 to 5) . . . . .2146
39.4.6TIMx event generation register (TIMx_EGR)(x = 2 to 5) . . . . .2147
39.4.7TIMx capture/compare mode register 1 (TIMx_CCMR1)(x = 2 to 5) . . . . .2148
39.4.8TIMx capture/compare mode register 1 [alternate] (TIMx_CCMR1)
(x = 2 to 5) . . . . .
2150
39.4.9TIMx capture/compare mode register 2 (TIMx_CCMR2)(x = 2 to 5) . . . . .2152
39.4.10TIMx capture/compare mode register 2 [alternate] (TIMx_CCMR2)
(x = 2 to 5) . . . . .
2153
39.4.11TIMx capture/compare enable register
(TIMx_CCER)(x = 2 to 5) . . . . .
2154
39.4.12TIMx counter (TIMx_CNT)(x = 2 to 5) . . . . .2155
39.4.13TIMx counter [alternate] (TIMx_CNT)(x = 2 to 5) . . . . .2156
39.4.14TIMx prescaler (TIMx_PSC)(x = 2 to 5) . . . . .2156
39.4.15TIMx auto-reload register (TIMx_ARR)(x = 2 to 5) . . . . .2157
39.4.16TIMx capture/compare register 1 (TIMx_CCR1)(x = 2 to 5) . . . . .2157
39.4.17TIMx capture/compare register 2 (TIMx_CCR2)(x = 2 to 5) . . . . .2157
39.4.18TIMx capture/compare register 3 (TIMx_CCR3)(x = 2 to 5) . . . . .2158
39.4.19TIMx capture/compare register 4 (TIMx_CCR4)(x = 2 to 5) . . . . .2158
39.4.20TIMx DMA control register (TIMx_DCR)(x = 2 to 5) . . . . .2159
39.4.21TIMx DMA address for full transfer (TIMx_DMAR)(x = 2 to 5) . . . . .2160
39.4.22TIM2 alternate function option register 1 (TIM2_AF1) . . . . .2160
39.4.23TIM3 alternate function option register 1 (TIM3_AF1) . . . . .2160
39.4.24TIM4 alternate function option register 1 (TIM4_AF1) . . . . .2161
39.4.25TIM5 alternate function option register 1 (TIM5_AF1) . . . . .2161
39.4.26TIM2 timer input selection register (TIM2_TISEL) . . . . .2162
39.4.27TIM3 timer input selection register (TIM3_TISEL) . . . . .2163
39.4.28TIM4 timer input selection register (TIM4_TISEL) .....2164
39.4.29TIM5 timer input selection register (TIM5_TISEL) .....2164
39.4.30TIMx register map .....2166
40General-purpose timers (TIM12/TIM13/TIM14) .....2169
40.1TIM12/TIM13/TIM14 introduction .....2169
40.2TIM12/TIM13/TIM14 main features .....2169
40.2.1TIM12 main features .....2169
40.2.2TIM13/TIM14 main features .....2170
40.3TIM12/TIM13/TIM14 functional description .....2172
40.3.1Time-base unit .....2172
40.3.2Counter modes .....2174
40.3.3Clock selection .....2177
40.3.4Capture/compare channels .....2179
40.3.5Input capture mode .....2181
40.3.6PWM input mode (only for TIM12) .....2182
40.3.7Forced output mode .....2183
40.3.8Output compare mode .....2184
40.3.9PWM mode .....2185
40.3.10Combined PWM mode (TIM12 only) .....2186
40.3.11One-pulse mode .....2187
40.3.12Retriggerable one pulse mode (TIM12 only) .....2189
40.3.13UIF bit remapping .....2189
40.3.14Timer input XOR function .....2190
40.3.15TIM12 external trigger synchronization .....2190
40.3.16Slave mode – combined reset + trigger mode .....2193
40.3.17Timer synchronization (TIM12) .....2194
40.3.18Using timer output as trigger for other timers (TIM13/TIM14) .....2194
40.3.19Debug mode .....2194
40.4TIM12 registers .....2194
40.4.1TIM12 control register 1 (TIM12_CR1) .....2194
40.4.2TIM12 control register 2 (TIM12_CR2) .....2195
40.4.3TIM12 slave mode control register (TIM12_SMCR) .....2196
40.4.4TIM12 Interrupt enable register (TIM12_DIER) .....2198
40.4.5TIM12 status register (TIM12_SR) .....2198
40.4.6TIM12 event generation register (TIM12_EGR) .....2199
40.4.7TIM12 capture/compare mode register 1 (TIM12_CCMR1) .....2200
40.4.8TIM12 capture/compare mode register 1 [alternate]
(TIM12_CCMR1) .....
2201
40.4.9TIM12 capture/compare enable register (TIM12_CCER) .....2204
40.4.10TIM12 counter (TIM12_CNT) .....2205
40.4.11TIM12 prescaler (TIM12_PSC) .....2206
40.4.12TIM12 auto-reload register (TIM12_ARR) .....2206
40.4.13TIM12 capture/compare register 1 (TIM12_CCR1) .....2206
40.4.14TIM12 capture/compare register 2 (TIM12_CCR2) .....2207
40.4.15TIM12 timer input selection register (TIM12_TISEL) .....2207
40.4.16TIM12 register map .....2208
40.5TIM13/TIM14 registers .....2210
40.5.1TIMx control register 1 (TIMx_CR1)(x = 13 to 14) .....2210
40.5.2TIMx Interrupt enable register (TIMx_DIER)(x = 13 to 14) .....2211
40.5.3TIMx status register (TIMx_SR)(x = 13 to 14) .....2211
40.5.4TIMx event generation register (TIMx_EGR)(x = 13 to 14) .....2212
40.5.5TIMx capture/compare mode register 1
(TIMx_CCMR1)(x = 13 to 14) .....
2213
40.5.6TIMx capture/compare mode register 1 [alternate]
(TIMx_CCMR1)(x = 13 to 14) .....
2214
40.5.7TIMx capture/compare enable register
(TIMx_CCER)(x = 13 to 14) .....
2216
40.5.8TIMx counter (TIMx_CNT)(x = 13 to 14) .....2217
40.5.9TIMx prescaler (TIMx_PSC)(x = 13 to 14) .....2218
40.5.10TIMx auto-reload register (TIMx_ARR)(x = 13 to 14) .....2218
40.5.11TIMx capture/compare register 1 (TIMx_CCR1)(x = 13 to 14) .....2218
40.5.12TIM13 timer input selection register (TIM13_TISEL) .....2219
40.5.13TIM14 timer input selection register (TIM14_TISEL) .....2219
40.5.14TIM13/TIM14 register map .....2220
41General-purpose timers (TIM15/TIM16/TIM17) .....2222
41.1TIM15/TIM16/TIM17 introduction .....2222
41.2TIM15 main features .....2222
41.3TIM16/TIM17 main features .....2223
41.4TIM15/TIM16/TIM17 functional description .....2226
41.4.1Time-base unit .....2226
41.4.2Counter modes .....2228
41.4.3Repetition counter .....2232
41.4.4Clock selection .....2233
41.4.5Capture/compare channels .....2235
41.4.6Input capture mode .....2237
41.4.7PWM input mode (only for TIM15) .....2238
41.4.8Forced output mode .....2239
41.4.9Output compare mode .....2240
41.4.10PWM mode .....2241
41.4.11Combined PWM mode (TIM15 only) .....2242
41.4.12Complementary outputs and dead-time insertion .....2243
41.4.13Using the break function .....2245
41.4.14Bidirectional break inputs .....2250
41.4.156-step PWM generation .....2251
41.4.16One-pulse mode .....2253
41.4.17Retriggerable one pulse mode (TIM15 only) .....2254
41.4.18UIF bit remapping .....2255
41.4.19Timer input XOR function (TIM15 only) .....2256
41.4.20External trigger synchronization (TIM15 only) .....2257
41.4.21Slave mode – combined reset + trigger mode .....2259
41.4.22DMA burst mode .....2259
41.4.23Timer synchronization (TIM15) .....2261
41.4.24Using timer output as trigger for other timers (TIM16/TIM17) .....2261
41.4.25Debug mode .....2261
41.5TIM15 registers .....2262
41.5.1TIM15 control register 1 (TIM15_CR1) .....2262
41.5.2TIM15 control register 2 (TIM15_CR2) .....2263
41.5.3TIM15 slave mode control register (TIM15_SMCR) .....2265
41.5.4TIM15 DMA/interrupt enable register (TIM15_DIER) .....2266
41.5.5TIM15 status register (TIM15_SR) .....2267
41.5.6TIM15 event generation register (TIM15_EGR) .....2269
41.5.7TIM15 capture/compare mode register 1 (TIM15_CCMR1) .....2270
41.5.8TIM15 capture/compare mode register 1 [alternate]
(TIM15_CCMR1) .....
2271
41.5.9TIM15 capture/compare enable register (TIM15_CCER) .....2274
41.5.10TIM15 counter (TIM15_CNT) .....2277
41.5.11TIM15 prescaler (TIM15_PSC) .....2277
41.5.12TIM15 auto-reload register (TIM15_ARR) .....2277
41.5.13TIM15 repetition counter register (TIM15_RCR) .....2278
41.5.14TIM15 capture/compare register 1 (TIM15_CCR1) .....2278
41.5.15TIM15 capture/compare register 2 (TIM15_CCR2) . . . . .2279
41.5.16TIM15 break and dead-time register (TIM15_BDTR) . . . . .2279
41.5.17TIM15 DMA control register (TIM15_DCR) . . . . .2282
41.5.18TIM15 DMA address for full transfer (TIM15_DMAR) . . . . .2282
41.5.19TIM15 alternate register 1 (TIM15_AF1) . . . . .2283
41.5.20TIM15 input selection register (TIM15_TISEL) . . . . .2284
41.5.21TIM15 register map . . . . .2284
41.6TIM16/TIM17 registers . . . . .2287
41.6.1TIMx control register 1 (TIMx_CR1)(x = 16 to 17) . . . . .2287
41.6.2TIMx control register 2 (TIMx_CR2)(x = 16 to 17) . . . . .2288
41.6.3TIMx DMA/interrupt enable register (TIMx_DIER)(x = 16 to 17) . . . .2289
41.6.4TIMx status register (TIMx_SR)(x = 16 to 17) . . . . .2290
41.6.5TIMx event generation register (TIMx_EGR)(x = 16 to 17) . . . . .2291
41.6.6TIMx capture/compare mode register 1
(TIMx_CCMR1)(x = 16 to 17) . . . . .
2292
41.6.7TIMx capture/compare mode register 1 [alternate]
(TIMx_CCMR1)(x = 16 to 17) . . . . .
2293
41.6.8TIMx capture/compare enable register (TIMx_CCER)(x = 16 to 17) . .2295
41.6.9TIMx counter (TIMx_CNT)(x = 16 to 17) . . . . .2297
41.6.10TIMx prescaler (TIMx_PSC)(x = 16 to 17) . . . . .2298
41.6.11TIMx auto-reload register (TIMx_ARR)(x = 16 to 17) . . . . .2298
41.6.12TIMx repetition counter register (TIMx_RCR)(x = 16 to 17) . . . . .2299
41.6.13TIMx capture/compare register 1 (TIMx_CCR1)(x = 16 to 17) . . . . .2299
41.6.14TIMx break and dead-time register (TIMx_BDTR)(x = 16 to 17) . . . .2300
41.6.15TIMx DMA control register (TIMx_DCR)(x = 16 to 17) . . . . .2303
41.6.16TIMx DMA address for full transfer (TIMx_DMAR)(x = 16 to 17) . . . .2303
41.6.17TIM16 alternate function register 1 (TIM16_AF1) . . . . .2304
41.6.18TIM16 input selection register (TIM16_TISEL) . . . . .2304
41.6.19TIM17 alternate function register 1 (TIM17_AF1) . . . . .2305
41.6.20TIM17 input selection register (TIM17_TISEL) . . . . .2306
41.6.21TIM16/TIM17 register map . . . . .2307
42Basic timers (TIM6/TIM7) . . . . .2309
42.1TIM6/TIM7 introduction . . . . .2309
42.2TIM6/TIM7 main features . . . . .2309
42.3TIM6/TIM7 functional description . . . . .2310
42.3.1Time-base unit . . . . .2310
42.3.2Counting mode2312
42.3.3UIF bit remapping2315
42.3.4Clock source2315
42.3.5Debug mode2316
42.4TIM6/TIM7 registers2316
42.4.1TIMx control register 1 (TIMx_CR1)(x = 6 to 7)2316
42.4.2TIMx control register 2 (TIMx_CR2)(x = 6 to 7)2318
42.4.3TIMx DMA/Interrupt enable register (TIMx_DIER)(x = 6 to 7)2318
42.4.4TIMx status register (TIMx_SR)(x = 6 to 7)2319
42.4.5TIMx event generation register (TIMx_EGR)(x = 6 to 7)2319
42.4.6TIMx counter (TIMx_CNT)(x = 6 to 7)2319
42.4.7TIMx prescaler (TIMx_PSC)(x = 6 to 7)2320
42.4.8TIMx auto-reload register (TIMx_ARR)(x = 6 to 7)2320
42.4.9TIMx register map2321
43Low-power timer (LPTIM)2322
43.1Introduction2322
43.2LPTIM main features2322
43.3LPTIM implementation2323
43.4LPTIM functional description2323
43.4.1LPTIM block diagram2323
43.4.2LPTIM pins and internal signals2325
43.4.3LPTIM input and trigger mapping2325
43.4.4LPTIM reset and clocks2328
43.4.5Glitch filter2328
43.4.6Prescaler2329
43.4.7Trigger multiplexer2330
43.4.8Operating mode2330
43.4.9Timeout function2332
43.4.10Waveform generation2332
43.4.11Register update2333
43.4.12Counter mode2334
43.4.13Timer enable2334
43.4.14Timer counter reset2335
43.4.15Encoder mode2335
43.4.16Debug mode2337
43.5LPTIM low-power modes2337
43.6LPTIM interrupts2338
43.7LPTIM registers2338
43.7.1LPTIM interrupt and status register (LPTIM_ISR)2339
43.7.2LPTIM interrupt clear register (LPTIM_ICR)2340
43.7.3LPTIM interrupt enable register (LPTIM_IER)2340
43.7.4LPTIM configuration register (LPTIM_CFGR)2341
43.7.5LPTIM control register (LPTIM_CR)2344
43.7.6LPTIM compare register (LPTIM_CMP)2346
43.7.7LPTIM autoreload register (LPTIM_ARR)2346
43.7.8LPTIM counter register (LPTIM_CNT)2347
43.7.9LPTIM3 option register (LPTIM3_OR)2347
43.7.10LPTIM configuration register 2 (LPTIM_CFGR2)2348
43.7.11LPTIM x peripheral hardware configuration register
(LPTIMx_HWCFGR)(x = 1 to 5)
2349
43.7.12LPTIM peripheral version identification register (LPTIM_VERR)2349
43.7.13LPTIM peripheral type identification register (LPTIM_PIDR)2350
43.7.14LPTIM registers map size identification register (LPTIM_SIDR)2350
43.7.15LPTIM register map2351
44System timer generator (STGEN)2353
44.1STGEN introduction2353
44.2STGEN main features2353
44.3STGEN functional description2353
44.3.1STGEN block diagram2354
44.4STGEN registers2355
44.4.1STGENC control register (STGENC_CNTCR)2355
44.4.2STGENC status register (STGENC_CNTSR)2355
44.4.3STGENC value lower register (STGENC_CNTCVL)2356
44.4.4STGENC value upper register (STGENC_CNTCVU)2356
44.4.5STGENC base frequency register (STGENC_CNTFID0)2357
44.4.6STGENC peripheral ID4 register (STGENC_PIDR4)2357
44.4.7STGENC peripheral ID5 register (STGENC_PIDR5)2358
44.4.8STGENC peripheral ID6 register (STGENC_PIDR6)2358
44.4.9STGENC peripheral ID7 register (STGENC_PIDR7)2358
44.4.10STGENC peripheral ID0 register (STGENC_PIDR0)2359
44.4.11STGENC peripheral ID1 register (STGENC_PIDR1)2359
44.4.12STGENC peripheral ID2 register (STGENC_PIDR2) .....2359
44.4.13STGENC peripheral ID3 register (STGENC_PIDR3) .....2360
44.4.14STGENC component ID0 register (STGENC_CIDR0) .....2360
44.4.15STGENC component ID1 register (STGENC_CIDR1) .....2361
44.4.16STGENC component ID2 register (STGENC_CIDR2) .....2361
44.4.17STGENC component ID3 register (STGENC_CIDR3) .....2362
44.4.18STGENR value lower register (STGENR_CNTCVL) .....2362
44.4.19STGENR value upper register (STGENR_CNTCVU) .....2362
44.4.20STGENR peripheral ID4 register (STGENR_PIDR4) .....2363
44.4.21STGENR peripheral ID5 register (STGENR_PIDR5) .....2363
44.4.22STGENR peripheral ID6 register (STGENR_PIDR6) .....2363
44.4.23STGENR peripheral ID7 register (STGENR_PIDR7) .....2364
44.4.24STGENR peripheral ID0 register (STGENR_PIDR0) .....2364
44.4.25STGENR peripheral ID1 register (STGENR_PIDR1) .....2364
44.4.26STGENR peripheral ID2 register (STGENR_PIDR2) .....2365
44.4.27STGENR peripheral ID3 register (STGENR_PIDR3) .....2365
44.4.28STGENR component ID0 register (STGENR_CIDR0) .....2366
44.4.29STGENR component ID1 register (STGENR_CIDR1) .....2366
44.4.30STGENR component ID2 register (STGENR_CIDR2) .....2366
44.4.31STGENR component ID3 register (STGENR_CIDR3) .....2367
44.4.32STGEN register map .....2367
45Independent watchdog (IWDG) .....2370
45.1IWDG introduction .....2370
45.2IWDG main features .....2370
45.3IWDG implementation .....2370
45.4IWDG functional description .....2371
45.4.1IWDG block diagram .....2371
45.4.2IWDG internal signals .....2372
45.4.3Software and hardware watchdog modes .....2372
45.4.4Window option .....2373
45.4.5Debug .....2376
45.4.6Register access protection .....2376
45.5IWDG low power modes .....2376
45.6IWDG interrupts .....2377
45.7IWDG registers .....2378
45.7.1IWDG key register (IWDG_KR) . . . . .2378
45.7.2IWDG prescaler register (IWDG_PR) . . . . .2379
45.7.3IWDG reload register (IWDG_RLR) . . . . .2380
45.7.4IWDG status register (IWDG_SR) . . . . .2380
45.7.5IWDG window register (IWDG_WINR) . . . . .2381
45.7.6IWDG early wake-up interrupt register (IWDG_EWCR) . . . . .2382
45.7.7IWDG hardware configuration register (IWDG_HWCFGR) . . . . .2383
45.7.8IWDG version register (IWDG_VERR) . . . . .2384
45.7.9IWDG identification register (IWDG_IDR) . . . . .2385
45.7.10IWDG size identification register (IWDG_SIDR) . . . . .2385
45.7.11IWDG register map . . . . .2386
46Real-time clock (RTC) . . . . .2387
46.1RTC introduction . . . . .2387
46.2RTC main features . . . . .2387
46.3RTC functional description . . . . .2388
46.3.1RTC block diagram . . . . .2388
46.3.2RTC pins and internal signals . . . . .2390
46.3.3GPIOs controlled by the RTC and TAMP . . . . .2391
46.3.4RTC secure protection modes . . . . .2395
46.3.5RTC privilege protection modes . . . . .2396
46.3.6Clock and prescalers . . . . .2397
46.3.7Real-time clock and calendar . . . . .2399
46.3.8Calendar ultra-low power mode . . . . .2399
46.3.9Programmable alarms . . . . .2399
46.3.10Periodic auto-wake-up . . . . .2400
46.3.11RTC initialization and configuration . . . . .2401
46.3.12Reading the calendar . . . . .2403
46.3.13Resetting the RTC . . . . .2404
46.3.14RTC synchronization . . . . .2405
46.3.15RTC reference clock detection . . . . .2405
46.3.16RTC smooth digital calibration . . . . .2406
46.3.17Timestamp function . . . . .2408
46.3.18Calibration clock output . . . . .2409
46.3.19Tamper and alarm output . . . . .2410
46.4RTC low-power modes . . . . .2410
46.5RTC interrupts . . . . .2411
46.6RTC registers2412
46.6.1RTC time register (RTC_TR)2412
46.6.2RTC date register (RTC_DR)2413
46.6.3RTC subsecond register (RTC_SSR)2414
46.6.4RTC initialization control and status register (RTC_ICSR)2415
46.6.5RTC prescaler register (RTC_PRER)2417
46.6.6RTC wake-up timer register (RTC_WUTR)2418
46.6.7RTC control register (RTC_CR)2418
46.6.8RTC privilege mode control register (RTC_PRIVCFGR)2422
46.6.9RTC secure configuration register (RTC_SECCFGR)2424
46.6.10RTC write protection register (RTC_WPR)2425
46.6.11RTC calibration register (RTC_CALR)2426
46.6.12RTC shift control register (RTC_SHIFTR)2427
46.6.13RTC timestamp time register (RTC_TSTR)2428
46.6.14RTC timestamp date register (RTC_TSDR)2429
46.6.15RTC timestamp subsecond register (RTC_TSSSR)2430
46.6.16RTC alarm A register (RTC_ALRMAR)2430
46.6.17RTC alarm A subsecond register (RTC_ALRMASSR)2432
46.6.18RTC alarm B register (RTC_ALRMBR)2433
46.6.19RTC alarm B subsecond register (RTC_ALRMBSSR)2434
46.6.20RTC status register (RTC_SR)2435
46.6.21RTC nonsecure masked interrupt status register (RTC_MISR)2436
46.6.22RTC secure masked interrupt status register (RTC_SMISR)2437
46.6.23RTC status clear register (RTC_SCR)2438
46.6.24RTC option register (RTC_OR)2439
46.6.25RTC alarm A binary mode register (RTC_ALRABINR)2440
46.6.26RTC alarm B binary mode register (RTC_ALRBBINR)2440
46.6.27RTC hardware configuration register 2 (RTC_HWCFGR2)2441
46.6.28RTC hardware configuration register (RTC_HWCFGR1)2441
46.6.29RTC version register (RTC_VERR)2442
46.6.30RTC identification register (RTC_IPIDR)2443
46.6.31RTC size identification register (RTC_SIDR)2443
46.6.32RTC register map2444
47Tamper and backup registers (TAMP)2447
47.1TAMP introduction2447
47.2TAMP main features2448
47.3TAMP functional description2449
47.3.1TAMP block diagram2449
47.3.2TAMP pins and internal signals2450
47.3.3GPIOs controlled by the RTC and TAMP2453
47.3.4TAMP register write protection2453
47.3.5TAMP secure protection modes2453
47.3.6Backup registers protection zones2454
47.3.7TAMP privilege protection modes2454
47.3.8Boot hardware key (BHK)2455
47.3.9Tamper detection2455
47.3.10TAMP backup registers and other device secrets erase2455
47.3.11Tamper detection configuration and initialization2457
47.4TAMP low-power modes2463
47.5TAMP interrupts2464
47.6TAMP registers2465
47.6.1TAMP control register 1 (TAMP_CR1)2465
47.6.2TAMP control register 2 (TAMP_CR2)2467
47.6.3TAMP control register 3 (TAMP_CR3)2470
47.6.4TAMP filter control register (TAMP_FLTCR)2471
47.6.5TAMP active tamper control register 1 (TAMP_ATCR1)2473
47.6.6TAMP active tamper seed register (TAMP_ATSEEDR)2475
47.6.7TAMP active tamper output register (TAMP_ATOR)2476
47.6.8TAMP active tamper control register 2 (TAMP_ATCR2)2477
47.6.9TAMP secure configuration register (TAMP_SECCFGR)2480
47.6.10TAMP privilege configuration register (TAMP_PRIVCFGR)2482
47.6.11TAMP interrupt enable register (TAMP_IER)2483
47.6.12TAMP status register (TAMP_SR)2485
47.6.13TAMP nonsecure masked interrupt status register (TAMP_MISR)2487
47.6.14TAMP secure masked interrupt status register (TAMP_SMISR)2488
47.6.15TAMP status clear register (TAMP_SCR)2490
47.6.16TAMP monotonic counter 1 register (TAMP_COUNT1R)2492
47.6.17TAMP monotonic counter 2 register (TAMP_COUNT2R)2493
47.6.18TAMP option register (TAMP_OR)2493
47.6.19TAMP erase configuration register (TAMP_ERCFGR)2494
47.6.20TAMP backup x register (TAMP_BKPxR)2495
47.6.21TAMP hardware configuration register 2 (TAMP_HWCFGR2)2495
47.6.22TAMP hardware configuration register 1 (TAMP_HWCFGR1)2496
47.6.23TAMP version register (TAMP_VERR) .....2497
47.6.24TAMP identification register (TAMP_IPIDR) .....2497
47.6.25TAMP size identification register (TAMP_SIDR) .....2498
47.6.26TAMP register map .....2499
48Inter-integrated circuit interface (I2C) .....2502
48.1I2C introduction .....2502
48.2I2C main features .....2502
48.3I2C implementation .....2503
48.4I2C functional description .....2503
48.4.1I2C block diagram .....2504
48.4.2I2C pins and internal signals .....2504
48.4.3I2C clock requirements .....2505
48.4.4I2C mode selection .....2505
48.4.5I2C initialization .....2506
48.4.6I2C reset .....2510
48.4.7I2C data transfer .....2511
48.4.8I2C target mode .....2513
48.4.9I2C controller mode .....2522
48.4.10I2C_TIMINGR register configuration examples .....2533
48.4.11SMBus specific features .....2535
48.4.12SMBus initialization .....2538
48.4.13SMBus I2C_TIMEOUTR register configuration examples .....2540
48.4.14SMBus target mode .....2540
48.4.15SMBus controller mode .....2544
48.4.16Wake-up from Stop mode on address match .....2547
48.4.17Error conditions .....2548
48.5I2C in low-power modes .....2550
48.6I2C interrupts .....2550
48.7I2C DMA requests .....2551
48.7.1Transmission using DMA .....2551
48.7.2Reception using DMA .....2551
48.8I2C debug modes .....2551
48.9I2C registers .....2552
48.9.1I2C control register 1 (I2C_CR1) .....2552
48.9.2I2C control register 2 (I2C_CR2) .....2554
48.9.3I2C own address 1 register (I2C_OAR1) .....2556
48.9.4I2C own address 2 register (I2C_OAR2) .....2557
48.9.5I2C timing register (I2C_TIMINGR) .....2558
48.9.6I2C timeout register (I2C_TIMEOUTR) .....2559
48.9.7I2C interrupt and status register (I2C_ISR) .....2560
48.9.8I2C interrupt clear register (I2C_ICR) .....2562
48.9.9I2C PEC register (I2C_PECR) .....2563
48.9.10I2C receive data register (I2C_RXDR) .....2563
48.9.11I2C transmit data register (I2C_TXDR) .....2564
48.9.12I2C hardware configuration register (I2C_HWCFGR) .....2564
48.9.13I2C version register (I2C_VERR) .....2565
48.9.14I2C identification register (I2C_IPIDR) .....2565
48.9.15I2C size identification register (I2C_SIDR) .....2565
48.9.16I2C register map .....2566
49Universal synchronous/asynchronous receiver transmitter (USART/UART) .....2568
49.1USART introduction .....2568
49.2USART main features .....2569
49.3USART extended features .....2570
49.4USART implementation .....2570
49.5USART functional description .....2571
49.5.1USART block diagram .....2571
49.5.2USART signals .....2572
49.5.3USART character description .....2574
49.5.4USART FIFOs and thresholds .....2576
49.5.5USART transmitter .....2576
49.5.6USART receiver .....2580
49.5.7USART baud rate generation .....2587
49.5.8Tolerance of the USART receiver to clock deviation .....2588
49.5.9USART auto baud rate detection .....2590
49.5.10USART multiprocessor communication .....2592
49.5.11USART Modbus communication .....2594
49.5.12USART parity control .....2595
49.5.13USART LIN (local interconnection network) mode .....2596
49.5.14USART synchronous mode .....2598
49.5.15USART single-wire half-duplex communication .....2602
49.5.16USART receiver timeout2602
49.5.17USART smartcard mode2603
49.5.18USART IrDA SIR ENDEC block2607
49.5.19Continuous communication using USART and DMA2610
49.5.20RS232 hardware flow control and RS485 Driver Enable2612
49.5.21USART low-power management2615
49.6USART in low-power modes2618
49.7USART interrupts2619
49.8USART registers2620
49.8.1USART control register 1 (USART_CR1)2620
49.8.2USART control register 1 [alternate] (USART_CR1)2623
49.8.3USART control register 2 (USART_CR2)2627
49.8.4USART control register 3 (USART_CR3)2631
49.8.5USART baud rate register (USART_BRR)2635
49.8.6USART guard time and prescaler register (USART_GTPR)2635
49.8.7USART receiver timeout register (USART_RTOR)2636
49.8.8USART request register (USART_RQR)2637
49.8.9USART interrupt and status register (USART_ISR)2638
49.8.10USART interrupt and status register [alternate] (USART_ISR)2644
49.8.11USART interrupt flag clear register (USART_ICR)2649
49.8.12USART receive data register (USART_RDR)2651
49.8.13USART transmit data register (USART_TDR)2651
49.8.14USART prescaler register (USART_PRESC)2652
49.8.15USART hardware configuration register 2 (USART_HWCFGR2)2652
49.8.16USART hardware configuration register 1 (USART_HWCFGR1)2653
49.8.17USART version register (USART_VERR)2654
49.8.18USART Identification register (USART_IPIDR)2654
49.8.19USART Size Identification register (USART_SIDR)2654
49.8.20USART register map2656
50Serial peripheral interface (SPI)2658
50.1Introduction2658
50.2SPI main features2659
50.3SPI implementation2659
50.4SPI functional description2660
50.4.1SPI block diagram2660
50.4.2SPI signals . . . . .2661
50.4.3SPI communication general aspects . . . . .2661
50.4.4Communications between one master and one slave . . . . .2662
50.4.5Standard multislave communication . . . . .2664
50.4.6Multimaster communication . . . . .2667
50.4.7Slave select pin (NSS) management . . . . .2667
50.4.8Communication formats . . . . .2671
50.4.9Configuration of SPI . . . . .2673
50.4.10Procedure for enabling SPI . . . . .2674
50.4.11SPI data transmission and reception procedures . . . . .2674
50.4.12Procedure for disabling the SPI . . . . .2679
50.4.13Data packing . . . . .2680
50.4.14Communication using DMA (direct memory addressing) . . . . .2681
50.5SPI specific modes and control . . . . .2683
50.5.1TI mode . . . . .2683
50.5.2SPI error flags . . . . .2683
50.5.3CRC computation . . . . .2687
50.6Low-power mode management . . . . .2688
50.7SPI wake-up and interrupts . . . . .2691
50.8I2S main features . . . . .2692
50.9I2S functional description . . . . .2693
50.9.1I2S general description . . . . .2693
50.9.2Pin sharing with SPI function . . . . .2693
50.9.3Bitfields usable in I2S/PCM mode . . . . .2694
50.9.4Slave and master modes . . . . .2695
50.9.5Supported audio protocols . . . . .2695
50.9.6Additional Serial Interface Flexibility . . . . .2701
50.9.7Startup sequence . . . . .2703
50.9.8Stop sequence . . . . .2705
50.9.9Clock generator . . . . .2705
50.9.10Internal FIFOs . . . . .2708
50.9.11FIFOs status flags . . . . .2709
50.9.12Handling of underrun situation . . . . .2709
50.9.13Handling of overrun situation . . . . .2710
50.9.14Frame error detection . . . . .2711
50.9.15DMA Interface . . . . .2712
50.9.16Programing examples2714
50.10I2S wake-up and interrupts2716
50.11SPI/I2S registers2717
50.11.1SPI/I2S control register 1 (SPI_CR1)2717
50.11.2SPI control register 2 (SPI_CR2)2719
50.11.3SPI configuration register 1 (SPI_CFG1)2719
50.11.4SPI configuration register 2 (SPI_CFG2)2722
50.11.5SPI/I2S interrupt enable register (SPI_IER)2724
50.11.6SPI/I2S status register (SPI_SR)2725
50.11.7SPI/I2S interrupt/status flags clear register (SPI_IFCR)2728
50.11.8SPI/I2S transmit data register (SPI_TXDR)2729
50.11.9SPI/I2S receive data register (SPI_RXDR)2729
50.11.10SPI polynomial register (SPI_CRCPOLY)2730
50.11.11SPI transmitter CRC register (SPI_TXCRC)2730
50.11.12SPI receiver CRC register (SPI_RXCRC)2731
50.11.13SPI underrun data register (SPI_UDRDR)2732
50.11.14SPI/I2S configuration register (SPI_I2SCFGR)2732
50.11.15SPI/I2S hardware configuration register (SPI_I2S_HWCFGR)2734
50.11.16SPI/I2S version register (SPI_VERR)2735
50.11.17SPI/I2S identification register (SPI_IPIDR)2735
50.11.18SPI/I2S size identification register (SPI_SIDR)2736
50.12SPI register map and reset values2737
51Serial audio interface (SAI)2739
51.1SAI introduction2739
51.2SAI main features2739
51.3SAI implementation2740
51.4SAI functional description2741
51.4.1SAI block diagram2741
51.4.2SAI pins and internal signals2742
51.4.3Main SAI modes2743
51.4.4SAI synchronization mode2744
51.4.5Audio data size2745
51.4.6Frame synchronization2745
51.4.7Slot configuration2748
51.4.8SAI clock generator2750
51.4.9Internal FIFOs2753
51.4.10PDM interface2755
51.4.11AC'97 link controller2763
51.4.12SPDIF output2765
51.4.13Specific features2768
51.4.14Error flags2772
51.4.15Disabling the SAI2775
51.4.16SAI DMA interface2775
51.5SAI interrupts2776
51.6SAI registers2778
51.6.1SAI global configuration register (SAI_GCR)2778
51.6.2SAI configuration register 1 (SAI_ACR1)2778
51.6.3SAI configuration register 2 (SAI_ACR2)2781
51.6.4SAI frame configuration register (SAI_AFRCR)2783
51.6.5SAI slot register (SAI_ASLOTR)2784
51.6.6SAI interrupt mask register (SAI_AIM)2785
51.6.7SAI status register (SAI_ASR)2787
51.6.8SAI clear flag register (SAI_ACLRFR)2789
51.6.9SAI data register (SAI_ADR)2790
51.6.10SAI configuration register 1 (SAI_BCR1)2790
51.6.11SAI configuration register 2 (SAI_BCR2)2793
51.6.12SAI frame configuration register (SAI_BFRCR)2795
51.6.13SAI slot register (SAI_BSLOTR)2796
51.6.14SAI interrupt mask register (SAI_BIM)2797
51.6.15SAI status register (SAI_BSR)2798
51.6.16SAI clear flag register (SAI_BCLRFR)2800
51.6.17SAI data register (SAI_BDR)2801
51.6.18SAI PDM control register (SAI_PDMCR)2802
51.6.19SAI PDM delay register (SAI_PDMDLY)2803
51.6.20SAI hardware configuration register (SAI_HWCFGR)2805
51.6.21SAI version register (SAI_VERR)2806
51.6.22SAI identification register (SAI_IPIDR)2807
51.6.23SAI size identification register (SAI_SIDR)2807
51.6.24SAI register map2807
52SPDIF receiver interface (SPDIFRX)2810
52.1SPDIFRX interface introduction2810
52.2SPDIFRX main features . . . . .2810
52.3SPDIFRX functional description . . . . .2810
52.3.1SPDIFRX pins and internal signals . . . . .2811
52.3.2S/PDIF protocol (IEC-60958) . . . . .2812
52.3.3SPDIFRX decoder (SPDIFRX_DC) . . . . .2814
52.3.4SPDIFRX tolerance to clock deviation . . . . .2818
52.3.5SPDIFRX synchronization . . . . .2818
52.3.6SPDIFRX handling . . . . .2820
52.3.7Data reception management . . . . .2822
52.3.8Dedicated control flow . . . . .2824
52.3.9Reception errors . . . . .2825
52.3.10Clocking strategy . . . . .2827
52.3.11Symbol clock generation . . . . .2827
52.3.12DMA interface . . . . .2829
52.3.13Interrupt generation . . . . .2830
52.3.14Register protection . . . . .2831
52.4Programming procedures . . . . .2831
52.4.1Initialization phase . . . . .2832
52.4.2Handling of interrupts coming from SPDIFRX . . . . .2833
52.4.3Handling of interrupts coming from DMA . . . . .2833
52.5SPDIFRX interface registers . . . . .2834
52.5.1SPDIFRX control register (SPDIFRX_CR) . . . . .2834
52.5.2SPDIFRX interrupt mask register (SPDIFRX_IMR) . . . . .2836
52.5.3SPDIFRX status register (SPDIFRX_SR) . . . . .2837
52.5.4SPDIFRX interrupt flag clear register (SPDIFRX_IFCR) . . . . .2839
52.5.5SPDIFRX data input register (SPDIFRX_FMT0_DR) . . . . .2840
52.5.6SPDIFRX data input register (SPDIFRX_FMT1_DR) . . . . .2840
52.5.7SPDIFRX data input register (SPDIFRX_FMT2_DR) . . . . .2841
52.5.8SPDIFRX channel status register (SPDIFRX_CSR) . . . . .2842
52.5.9SPDIFRX debug information register (SPDIFRX_DIR) . . . . .2842
52.5.10SPDIFRX version register (SPDIFRX_VERR) . . . . .2843
52.5.11SPDIFRX identification register (SPDIFRX_IPIDR) . . . . .2843
52.5.12SPDIFRX size identification register (SPDIFRX_SIDR) . . . . .2844
52.5.13SPDIFRX interface register map . . . . .2844
53Controller area network with flexible data rate (FDCAN) . . . . .2846
53.1FDCAN introduction . . . . .2846
53.2FDCAN main features .....2849
53.3TTCAN implementation .....2849
53.4FDCAN functional description .....2850
53.4.1Operating modes .....2851
53.4.2Error management .....2860
53.4.3Message RAM .....2860
53.4.4FIFO acknowledge handling .....2872
53.4.5Bit timing .....2873
53.4.6Clock calibration on CAN .....2874
53.4.7Application .....2878
53.4.8TTCAN operations (FDCAN1 only) .....2879
53.4.9TTCAN configuration .....2880
53.4.10Message scheduling .....2882
53.4.11TTCAN gap control .....2889
53.4.12Stop watch .....2890
53.4.13Local time, cycle time, global time,
and external clock synchronization .....
2890
53.4.14TTCAN error level .....2893
53.4.15TTCAN message handling .....2894
53.4.16TTCAN interrupt and error handling .....2897
53.4.17Level 0 .....2898
53.4.18Synchronization to external time schedule .....2900
53.4.19FDCAN Rx buffer and FIFO element .....2901
53.4.20FDCAN Tx buffer element .....2903
53.4.21FDCAN Tx event FIFO element .....2905
53.4.22FDCAN standard message ID filter element .....2906
53.4.23FDCAN extended message ID filter element .....2908
53.4.24FDCAN trigger memory element .....2909
53.5FDCAN registers .....2911
53.5.1FDCAN core release register (FDCAN_CREL) .....2911
53.5.2FDCAN Endian register (FDCAN_ENDN) .....2911
53.5.3FDCAN data bit timing and prescaler register (FDCAN_DBTP) ....2911
53.5.4FDCAN test register (FDCAN_TEST) .....2912
53.5.5FDCAN RAM watchdog register (FDCAN_RWD) .....2913
53.5.6FDCAN CC control register (FDCAN_CCCR) .....2914
53.5.7FDCAN nominal bit timing and prescaler register (FDCAN_NBTP) .2916
53.5.8FDCAN timestamp counter configuration register (FDCAN_TSCC) .2917
53.5.9FDCAN timestamp counter value register (FDCAN_TSCV) . . . . .2917
53.5.10FDCAN timeout counter configuration register (FDCAN_TOCC) . . .2918
53.5.11FDCAN timeout counter value register (FDCAN_TOCV) . . . . .2919
53.5.12FDCAN error counter register (FDCAN_ECR) . . . . .2919
53.5.13FDCAN protocol status register (FDCAN_PSR) . . . . .2920
53.5.14FDCAN transmitter delay compensation register (FDCAN_TDCR) . .2922
53.5.15FDCAN interrupt register (FDCAN_IR) . . . . .2922
53.5.16FDCAN interrupt enable register (FDCAN_IE) . . . . .2925
53.5.17FDCAN interrupt line select register (FDCAN_ILS) . . . . .2927
53.5.18FDCAN interrupt line enable register (FDCAN_ILE) . . . . .2928
53.5.19FDCAN global filter configuration register (FDCAN_GFC) . . . . .2929
53.5.20FDCAN standard ID filter configuration register (FDCAN_SIDFC) . .2930
53.5.21FDCAN extended ID filter configuration register (FDCAN_XIDFC) . .2931
53.5.22FDCAN extended ID and mask register (FDCAN_XIDAM) . . . . .2931
53.5.23FDCAN high priority message status register (FDCAN_HPMS) . . . .2932
53.5.24FDCAN new data 1 register (FDCAN_NDAT1) . . . . .2933
53.5.25FDCAN new data 2 register (FDCAN_NDAT2) . . . . .2933
53.5.26FDCAN Rx FIFO 0 configuration register (FDCAN_RXF0C) . . . . .2934
53.5.27FDCAN Rx FIFO 0 status register (FDCAN_RXF0S) . . . . .2934
53.5.28FDCAN Rx FIFO 0 acknowledge register (FDCAN_RXF0A) . . . . .2935
53.5.29FDCAN Rx buffer configuration register (FDCAN_RXBC) . . . . .2936
53.5.30FDCAN Rx FIFO 1 configuration register (FDCAN_RXF1C) . . . . .2936
53.5.31FDCAN Rx FIFO 1 status register (FDCAN_RXF1S) . . . . .2937
53.5.32FDCAN Rx FIFO 1 acknowledge register (FDCAN_RXF1A) . . . . .2938
53.5.33FDCAN Rx buffer element size configuration register
(FDCAN_RXESC) . . . . .
2938
53.5.34FDCAN Tx buffer configuration register (FDCAN_TXBC) . . . . .2939
53.5.35FDCAN Tx FIFO/queue status register (FDCAN_TXFQS) . . . . .2940
53.5.36FDCAN Tx buffer element size configuration register
(FDCAN_TXESC) . . . . .
2941
53.5.37FDCAN Tx buffer request pending register (FDCAN_TXBRP) . . . . .2942
53.5.38FDCAN Tx buffer add request register (FDCAN_TXBAR) . . . . .2942
53.5.39FDCAN Tx buffer cancellation request register (FDCAN_TXBCR) . .2943
53.5.40FDCAN Tx buffer transmission occurred register (FDCAN_TXBTO) .2943
53.5.41FDCAN Tx buffer cancellation finished register (FDCAN_TXBCF) . .2944
53.5.42FDCAN Tx buffer transmission interrupt enable register
(FDCAN_TXBTIE) . . . . .
2944
53.5.43FDCAN Tx buffer cancellation finished interrupt enable register (FDCAN_TXBCIE) .....2945
53.5.44FDCAN Tx event FIFO configuration register (FDCAN_TXEFC) .....2945
53.5.45FDCAN Tx event FIFO status register (FDCAN_TXEFS) .....2946
53.5.46FDCAN Tx event FIFO acknowledge register (FDCAN_TXEFA) .....2947
53.5.47FDCAN register map .....2947
53.6TTCAN registers .....2951
53.6.1FDCAN TT trigger memory configuration register (FDCAN_TTTMC) .....2951
53.6.2FDCAN TT reference message configuration register (FDCAN_TTRMC) .....2951
53.6.3FDCAN TT operation configuration register (FDCAN_TTOCF) .....2952
53.6.4FDCAN TT matrix limits register (FDCAN_TTMLM) .....2954
53.6.5FDCAN TUR configuration register (FDCAN_TURCF) .....2955
53.6.6FDCAN TT operation control register (FDCAN_TTOCN) .....2956
53.6.7FDCAN TT global time preset register (FDCAN_TTGTP) .....2958
53.6.8FDCAN TT time mark register (FDCAN_TTTMK) .....2958
53.6.9FDCAN TT interrupt register (FDCAN_TTIR) .....2959
53.6.10FDCAN TT interrupt enable register (FDCAN_TTIE) .....2961
53.6.11FDCAN TT interrupt line select register (FDCAN_TTILS) .....2963
53.6.12FDCAN TT operation status register (FDCAN_TTOST) .....2964
53.6.13FDCAN TUR numerator actual register (FDCAN_TURNA) .....2966
53.6.14FDCAN TT local and global time register (FDCAN_TTLGT) .....2967
53.6.15FDCAN TT cycle time and count register (FDCAN_TTCTC) .....2967
53.6.16FDCAN TT capture time register (FDCAN_TTCPT) .....2968
53.6.17FDCAN TT cycle sync mark register (FDCAN_TTCSM) .....2968
53.6.18FDCAN TT trigger select register (FDCAN_TTTS) .....2969
53.6.19FDCAN TT register map .....2969
53.7CCU registers .....2971
53.7.1Clock calibration unit core release register (FDCAN_CCU_CREL) ..2971
53.7.2Calibration configuration register (FDCAN_CCU_CCFG) .....2971
53.7.3Calibration status register (FDCAN_CCU_CSTAT) .....2973
53.7.4Calibration watchdog register (FDCAN_CCU_CWD) .....2973
53.7.5Clock calibration unit interrupt register (FDCAN_CCU_IR) .....2974
53.7.6Clock calibration unit interrupt enable register (FDCAN_CCU_IE) ..2975
53.7.7CCU register map .....2975
54.1Introduction2977
54.2OTG main features2978
54.2.1General features2978
54.2.2Host-mode features2979
54.2.3Peripheral-mode features2979
54.3OTG implementation2980
54.4OTG functional description2981
54.4.1OTG block diagram2981
54.4.2OTG pin and internal signals2981
54.4.3OTG core2982
54.4.4OTG detections2982
54.4.5High-speed OTG PHY connected to OTG_HS2982
54.5OTG dual role device (DRD)2983
54.5.1ID line detection2983
54.5.2HNP dual role device2983
54.5.3SRP dual role device2984
54.6OTG as a USB peripheral2984
54.6.1SRP-capable peripheral2985
54.6.2Peripheral states2985
54.6.3Peripheral endpoints2986
54.7OTG as a USB host2988
54.7.1SRP-capable host2989
54.7.2USB host states2989
54.7.3Host channels2991
54.7.4Host scheduler2992
54.8OTG SOF trigger2993
54.8.1Host SOFs2993
54.8.2Peripheral SOFs2993
54.9OTG low-power modes2994
54.10OTG dynamic update of the OTG_HFIR register2995
54.11OTG data FIFOs2995
54.11.1FIFO allocation for DMA address register storage2995
54.11.2Peripheral FIFO architecture2997
54.11.3Host FIFO architecture2998
54.11.4FIFO RAM allocation2999
54.12OTG interrupts3001
54.13OTG control and status registers3003
54.13.1CSR memory map3003
54.14OTG registers3008
54.14.1OTG control and status register (OTG_GOTGCTL)3008
54.14.2OTG interrupt register (OTG_GOTGINT)3011
54.14.3OTG AHB configuration register (OTG_GAHBCFG)3012
54.14.4OTG USB configuration register (OTG_GUSBCFG)3014
54.14.5OTG reset register (OTG_GRSTCTL)3016
54.14.6OTG core interrupt register (OTG_GINTSTS)3017
54.14.7OTG interrupt mask register (OTG_GINTMSK)3022
54.14.8OTG receive status debug read register (OTG_GRXSTSR)3025
54.14.9OTG receive status debug read [alternate] (OTG_GRXSTSR)3026
54.14.10OTG status read and pop registers (OTG_GRXSTSP)3027
54.14.11OTG status read and pop registers [alternate] (OTG_GRXSTSP)3028
54.14.12OTG receive FIFO size register (OTG_GRXFSIZ)3029
54.14.13OTG host nonperiodic transmit FIFO size register
(OTG_HNPTXFSIZ)/Endpoint 0 Transmit FIFO size
(OTG_DIEPTXF0)
3030
54.14.14OTG nonperiodic transmit FIFO/queue status register
(OTG_HNPTXSTS)
3031
54.14.15OTG general core configuration register (OTG_GCCFG)3032
54.14.16OTG core ID register (OTG_CID)3032
54.14.17OTG core LPM configuration register (OTG_GLPMCFG)3033
54.14.18OTG interrupt register (OTG_GDFIFOCFG)3037
54.14.19OTG host periodic transmit FIFO size register
(OTG_HPTXFSIZ)
3037
54.14.20OTG device IN endpoint transmit FIFO x size register
(OTG_DIEPTXFx)
3038
54.14.21Host-mode registers3038
54.14.22OTG host configuration register (OTG_HCFG)3039
54.14.23OTG host frame interval register (OTG_HFIR)3040
54.14.24OTG host frame number/frame time remaining register
(OTG_HFNUM)
3041
54.14.25OTG_Host periodic transmit FIFO/queue status register
(OTG_HPTXSTS)
3042
54.14.26OTG host all channels interrupt register (OTG_HAINT)3043
54.14.27OTG host all channels interrupt mask register
(OTG_HAINTMSK)
3043
54.14.28 OTG host frame list base address register
(OTG_HFLBADDR)
3044
54.14.29 OTG host port control and status register (OTG_HPRT)3044
54.14.30 OTG host channel x characteristics register (OTG_HCCHARx)3047
54.14.31 OTG host channel x split control register (OTG_HCSPLTx)3048
54.14.32 OTG host channel x interrupt register (OTG_HCINTx)3049
54.14.33 OTG host channel x interrupt mask register (OTG_HCINTMSKx)3050
54.14.34 OTG host channel x transfer size register (OTG_HCTSIZx)3052
54.14.35 OTG host channel x transfer size register (OTG_HCTSIZSGx)3053
54.14.36 OTG host channel x DMA address register in buffer DMA [alternate]
(OTG_HCDMAx)
3055
54.14.37 OTG host channel x DMA address register in scatter/gather DMA
[alternate] (OTG_HCDMASGx)
3055
54.14.38 OTG host channel-n DMA address buffer register
(OTG_HCDMABx)
3056
54.14.39 Device-mode registers3057
54.14.40 OTG device configuration register (OTG_DCFG)3057
54.14.41 OTG device control register (OTG_DCTL)3058
54.14.42 OTG device status register (OTG_DSTS)3061
54.14.43 OTG device IN endpoint common interrupt mask register
(OTG_DIEPMSK)
3062
54.14.44 OTG device OUT endpoint common interrupt mask register
(OTG_DOEPMSK)
3063
54.14.45 OTG device all endpoints interrupt register (OTG_DAINT)3064
54.14.46 OTG all endpoints interrupt mask register
(OTG_DAINTMSK)
3065
54.14.47 OTG device VBUS discharge time register
(OTG_DVBUSDIS)
3066
54.14.48 OTG device VBUS pulsing time register
(OTG_DVBUSPULSE)
3066
54.14.49 OTG device threshold control register (OTG_DTHRCTL)3067
54.14.50 OTG device IN endpoint FIFO empty interrupt mask register
(OTG_DIEPEMPMSK)
3068
54.14.51 OTG device IN endpoint x control register (OTG_DIEPCTLx)3068
54.14.52 OTG device IN endpoint x interrupt register (OTG_DIEPINTx)3071
54.14.53 OTG device IN endpoint 0 transfer size register
(OTG_DIEPTSIZ0)
3072
54.14.54 OTG device IN endpoint x DMA address register
(OTG_DIEPDMAx)
3073
54.14.55 OTG device IN endpoint transmit FIFO status register
(OTG_DTXFSTSx)
3073
54.14.56OTG device IN endpoint x transfer size register (OTG_DIEPTSIZx) .3074
54.14.57OTG device control OUT endpoint 0 control register (OTG_DOEPTCTL0)3075
54.14.58OTG device OUT endpoint x interrupt register (OTG_DOEINTx) ..3076
54.14.59OTG device OUT endpoint 0 transfer size register (OTG_DOEPTSIZ0)3078
54.14.60OTG device OUT endpoint x DMA address register (OTG_DOEPDMAx)3079
54.14.61OTG device OUT endpoint x control register (OTG_DOEPTCTLx)3079
54.14.62OTG device OUT endpoint x transfer size register (OTG_DOEPTSIZx)3082
54.14.63OTG power and clock gating control register (OTG_PCGCCTL) ...3083
54.14.64OTG register map3084
54.15OTG programming model3095
54.15.1Core initialization3095
54.15.2Host initialization3096
54.15.3Device initialization3097
54.15.4DMA mode3097
54.15.5Host programming model3098
54.15.6Device programming model3130
54.15.7Worst case response time3151
54.15.8OTG programming model3153
55USB HS PHY controller (USBPHYC)3159
55.1USBPHYC introduction3159
55.2USBPHYC main features3159
55.3USBPHYC functional description3159
55.3.1USBPHYC block diagram3159
55.3.2USBPHYC reset and clocks3160
55.3.3PLL control3160
55.4USBPHYC registers3162
55.4.1USBPHYC PLL control register (USBPHYC_PLL)3162
55.4.2USBPHYC misc control register (USBPHYC_MISC)3164
55.4.3USBPHYC PHY x MONITOR register (USBPHYC_MONITORx) ...3165
55.4.4USBPHYC PHY x TUNE register (USBPHYC_TUNEx)3166
55.4.5USBPHYC VERSION register (USBPHYC_VERR)3168
55.4.6USBPHYC register map3169
56USB_EHCI/USB_OHCI high/full-speed link controller (USBH) . . . . .3171
56.1Introduction . . . . .3171
56.2USBH main features . . . . .3171
56.3USBH functional description . . . . .3172
56.3.1USBH block diagram . . . . .3172
56.3.2USBH reset and clocks . . . . .3172
56.3.3Description of USBH packet buffer . . . . .3172
56.3.4Description of USBH root hub . . . . .3173
56.4USBH interrupts . . . . .3173
56.5USBH registers . . . . .3173
56.5.1USBH OHCI standard registers . . . . .3173
56.5.2USBH OHCI implementation register #6
(USBH_OHCI_INSNREG06) . . . . .
3174
56.5.3USBH OHCI implementation register #7
(USBH_OHCI_INSNREG07) . . . . .
3175
56.5.4USBH EHCI standard registers . . . . .3176
56.5.5USBH EHCI implementation register #1
(USBH_EHCI_INSNREG01) . . . . .
3176
56.5.6USBH EHCI implementation register #2
(USBH_EHCI_INSNREG02) . . . . .
3177
56.5.7USBH EHCI implementation register #3
(USBH_EHCI_INSNREG03) . . . . .
3178
56.5.8USBH EHCI implementation register #4
(USBH_EHCI_INSNREG04) . . . . .
3179
56.5.9USBH EHCI implementation register #5
(USBH_EHCI_INSNREG05) . . . . .
3180
56.5.10USBH EHCI implementation register #6
(USBH_EHCI_INSNREG06) . . . . .
3181
56.5.11USBH EHCI implementation register #7
(USBH_EHCI_INSNREG07) . . . . .
3182
56.5.12USBH register map . . . . .3182
57Ethernet (ETH): gigabit media access control
(GMAC) with DMA controller . . . . .
3187
57.1Ethernet introduction . . . . .3187
57.2Ethernet main features . . . . .3187
57.2.1Standard compliance . . . . .3187
57.2.2MAC features . . . . .3187
57.2.3Transaction layer (MTL) features . . . . .3189
57.2.4DMA block features .....3190
57.2.5Bus interface features .....3191
57.2.6Generic queuing features .....3191
57.3Ethernet pins and internal signals .....3191
57.4Ethernet architecture .....3193
57.4.1DMA controller .....3194
57.4.2MTL .....3201
57.4.3MAC .....3201
57.4.4Multiple channels and queues support .....3206
57.5Ethernet functional description: MAC .....3209
57.5.1Double VLAN processing .....3209
57.5.2Source address and VLAN insertion, replacement, or deletion .....3211
57.5.3Packet filtering .....3212
57.5.4IEEE 1588 timestamp support .....3219
57.5.5Checksum offload engine .....3244
57.5.6TCP segmentation offload .....3250
57.5.7IPv4 ARP offload .....3256
57.5.8Loopback .....3257
57.5.9Flow control .....3258
57.5.10MAC management counters .....3260
57.5.11Interrupts generated by the MAC .....3262
57.5.12MAC and MMC register descriptions .....3262
57.6Ethernet functional description: PHY interfaces .....3263
57.6.1Station management agent (SMA) .....3263
57.6.2Media independent interface (MII) .....3270
57.6.3Reduced media independent interface (RMII) .....3271
57.6.4Reduced gigabit media independent interface (RGMII) .....3274
57.7Ethernet low-power modes .....3276
57.7.1Low-power management .....3276
57.7.2Energy-efficient Ethernet (EEE) .....3282
57.8Ethernet interrupts .....3289
57.8.1DMA interrupts .....3289
57.8.2MTL interrupts .....3291
57.8.3MAC interrupts .....3291
57.9Ethernet programming model .....3292
57.9.1DMA initialization .....3292
57.9.2MTL initialization3293
57.9.3MAC initialization3293
57.9.4Performing normal receive and transmit operation3294
57.9.5Stopping and starting transmission3295
57.9.6Programming guidelines for switching to new descriptor list
in RxDMA
3295
57.9.7Programming guidelines for switching the AXI clock frequency3296
57.9.8Programming guidelines for multichannel multiqueue operation3296
57.9.9Programming guidelines for GMII link state transitions3298
57.9.10Programming guidelines for IEEE 1588 timestamping3299
57.9.11Programming guidelines for PTP offload feature3300
57.9.12Programming guidelines for Energy Efficient Ethernet (EEE)3304
57.9.13Programming guidelines for flexible pulse-per-second (PPS) output3306
57.9.14Programming guidelines for IEEE 1588 auxiliary snapshot3308
57.9.15Programming guidelines for TSO3308
57.9.16Programming guidelines to perform VLAN filtering on the receiver3309
57.10Descriptors3310
57.10.1Descriptor overview3310
57.10.2Descriptor structure3310
57.10.3Transmit descriptor3314
57.10.4Receive descriptor3326
57.11Ethernet registers3338
57.11.1Ethernet register maps3338
57.11.2Ethernet DMA registers3338
57.11.3Ethernet MTL registers3365
57.11.4Ethernet MAC and MMC registers3378
58Hardware debug port (HDP)3480
58.1Features3480
58.2Block diagram3480
58.3Functional description3481
58.4HDP registers3484
58.4.1HDP control register (HDP_CTRL)3484
58.4.2HDP multiplexers control register (HDP_MUX)3484
58.4.3HDP read back value register (HDP_VAL)3485
58.4.4HDP general purpose output set register (HDP_GPOSET)3486
58.4.5HDP general purpose output clear register (HDP_GPOCLR)3486
58.4.6HDP general purpose output value register (HDP_GPOVAL) . . . . .3487
58.4.7HDP version register (HDP_VERR) . . . . .3487
58.4.8HDP IP identification register (HDP_IPIDR) . . . . .3488
58.4.9HDP size identification register (HDP_SIDR) . . . . .3488
58.4.10HDP register map . . . . .3488
59Debug support (DBG) . . . . .3490
59.1Introduction . . . . .3490
59.2Debug use cases . . . . .3491
59.3DBG block diagram . . . . .3492
59.4DBG pins . . . . .3492
59.5DBG power and clocking . . . . .3493
59.5.1DBG power domains . . . . .3493
59.5.2DBG clocks . . . . .3493
59.5.3Debug and low-power modes . . . . .3494
59.5.4DBG reset . . . . .3494
59.6Security . . . . .3494
59.6.1Authentication signals . . . . .3494
59.6.2JTAG/SWD tamper detection . . . . .3496
59.7Chip level TAP controller (CLTAPC) . . . . .3496
59.8Serial wire and JTAG debug port (SWJ-DP) . . . . .3497
59.8.1JTAG debug port . . . . .3498
59.8.2Serial Wire debug port . . . . .3501
59.8.3Debug port registers . . . . .3502
59.9Access ports . . . . .3511
59.9.1Authentication . . . . .3512
59.9.2MEM-AP registers . . . . .3513
59.10System debug features . . . . .3521
59.10.1System ROM tables . . . . .3521
59.10.2CoreSight™ global timestamp generator (TSGEN) . . . . .3531
59.10.3Cross trigger interface (CTI) and matrix (CTM) . . . . .3538
59.10.4Embedded trace FIFO (ETF) . . . . .3559
59.10.5Trace port interface unit (TPIU) . . . . .3579
59.10.6Microprocessor debug unit (DBGMCU) . . . . .3597
59.11Cortex®-A7 debug features . . . . .3609
59.11.1Cortex®-A7 debug unit . . . . .3610
59.11.2Cortex®-A7 performance monitoring unit (PMU) . . . . .3652
59.11.3Embedded trace macrocell (ETM) . . . . .3673
59.11.4Cross trigger interface (CTI) . . . . .3724
59.12References . . . . .3725
60Device electronic signature . . . . .3726
60.1Unique device ID register (96 bits) (UID) . . . . .3726
60.2Device Part Number (RPN) . . . . .3728
60.3Device Version . . . . .3729
61Important security notice . . . . .3730
62Revision history . . . . .3731

List of tables

Table 1.Memory map overview STM32MP13xx .....122
Table 2.Master ports main characteristics .....125
Table 3.Master ports security characteristics .....126
Table 4.Slave ports main characteristics .....127
Table 5.Slave ports security characteristics .....128
Table 6.Multi-layer AHB master ports main characteristics .....129
Table 7.Multi-layer AHB slave ports main characteristics .....130
Table 8.AXIMC register map and reset values .....145
Table 9.Register boundary addresses .....155
Table 10.Debugger Register boundary addresses .....163
Table 11.OTP modes definition .....168
Table 12.OTP permanent write lock .....171
Table 13.BSEC_DENABLE default values after reset .....172
Table 14.Write access permissions .....174
Table 15.Read access permissions .....174
Table 16.BSEC register map and reset values .....187
Table 17.OTP list words 0 to 31 .....191
Table 18.OTP list words 32 to 95 .....200
Table 19.DDRCTRL register map and reset values .....298
Table 20.NSAID and AXI_ID mapping .....315
Table 21.TZC register map and reset values .....336
Table 22.DDRPHYC I/O list .....343
Table 23.MSDLL control bits .....346
Table 24.PHY latency .....367
Table 25.DFI timing parameters .....369
Table 26.DDRPHYC register map and reset values .....413
Table 27.DDRPERFM signal sets .....420
Table 28.Power control register map and reset values .....429
Table 29.PWR pin overview .....433
Table 30.VSW domain fonctions when VDD is present .....440
Table 31.VSW domain functions when VBAT is present .....440
Table 32.MPU Low-power mode summary .....455
Table 33.PWR system mode summary .....456
Table 34.System Low-power mode summary .....456
Table 35.Functionalities depending on system operating mode .....458
Table 36.PDDS low-power mode control .....461
Table 37.Low-power mode exit flags .....461
Table 38.MPU CSleep .....463
Table 39.MPU CStop .....464
Table 40.System Stop .....466
Table 41.System LP-Stop .....467
Table 42.System LPLV-Stop .....468
Table 43.System LPLV-Stop2 .....470
Table 44.Standby .....473
Table 45.PWR status flags .....477
Table 46.Register security overview .....478
Table 47.Power control register map and reset values .....491
Table 48.Pin overview .....495
Table 49.Reset coverage summary . . . . .506
Table 50.RCC registers with specific reset and specific voltages . . . . .507
Table 51.Reset source identification (RCC_MP/BR_RSTSCLRR and PWR) . . . . .509
Table 52.Oscillator states versus system modes . . . . .514
Table 53.HSI, CSI and HSE states versus system modes . . . . .537
Table 54.Resources potentially reconfigured during clock restore sequence . . . . .542
Table 55.Peripheral clock distribution overview. . . . .544
Table 56.Kernel clock distribution versus peripherals . . . . .550
Table 57.Kernel clock settings examples for audio applications . . . . .551
Table 58.Ratio between clock timers and pclk . . . . .557
Table 59.Gating control of the aclk_1 clock. . . . .572
Table 60.DDRCKMOD control description . . . . .573
Table 61.DDRC low-power (DDRC-LP) states description . . . . .574
Table 62.Recommended configurations . . . . .579
Table 63.Peripheral clock enable details for MPU. . . . .586
Table 64.MPU mode details . . . . .587
Table 65.Bus clock enable details for AXIM . . . . .589
Table 66.Bus clock enable details for AHB5 and AHB6 . . . . .590
Table 67.Bus clock enable details for MLAHB and AHB4 . . . . .590
Table 68.Bus clock enable details for AHB2 and AHB1 . . . . .591
Table 69.Bus clock enable details for APB4 and APB[2:1] . . . . .591
Table 70.RCC security and peripherals/memories . . . . .595
Table 71.Interrupt sources and control . . . . .599
Table 72.Clock settings examples for MPU. . . . .609
Table 73.Clock setting examples for AXI, DDR and DCMIPP . . . . .610
Table 74.RCC register map and reset values . . . . .926
Table 75.Port bit configuration table . . . . .955
Table 76.GPIO secured bits . . . . .963
Table 77.GPIO register map and reset values . . . . .977
Table 78.Analog Switch Supply Voltage Settings . . . . .982
Table 79.High-speed low-voltage interfaces. . . . .983
Table 80.SYSCFG interface register map and reset values . . . . .1011
Table 81.STM32MP13xx secure and securable peripherals . . . . .1018
Table 82.STM32MP13xx TrustZone-aware peripherals . . . . .1019
Table 83.STM32MP13xx memory firewalls . . . . .1020
Table 84.STM32MP13xx TrustZone-capable bus masters . . . . .1020
Table 85.DECPROT assignment. . . . .1020
Table 86.ETZPC register map and reset values . . . . .1033
Table 87.Peripherals interconnect matrix . . . . .1036
Table 88.Peripherals interconnect matrix details. . . . .1037
Table 89.MDMA connections. . . . .1047
Table 90.MDMA internal input/output signals . . . . .1051
Table 91.MDMA interrupt requests . . . . .1057
Table 92.MDMA register map and reset values . . . . .1072
Table 93.Source and destination address . . . . .1078
Table 94.Source and destination address registers in double-buffer mode (DBM = 1). . . . .1083
Table 95.Packing/unpacking and endian behavior (bit PINC = MINC = 1) . . . . .1084
Table 96.Restriction on NDT versus PSIZE and MSIZE . . . . .1084
Table 97.FIFO threshold configurations . . . . .1087
Table 98.Possible DMA configurations . . . . .1091
Table 99.DMA interrupt requests. . . . .1093
Table 100.DMA register map and reset values1106
Table 101.DMAMUX1 and DMAMUX2 instantiation1112
Table 102.DMAMUX1: assignment of multiplexer inputs to resources1113
Table 103.DMAMUX1: assignment of trigger inputs to resources1114
Table 104.DMAMUX1: assignment of synchronization inputs to resources1114
Table 105.DMAMUX2: assignment of multiplexer inputs to resources1114
Table 106.DMAMUX2: assignment of trigger inputs to resources1115
Table 107.DMAMUX2: assignment of synchronization inputs to resources1116
Table 108.DMAMUX signals1117
Table 109.DMAMUX interrupts1121
Table 110.DMAMUX register map and reset values1129
Table 111.STM32MP13xx interrupt mapping for Cortex®-A7 GIC1132
Table 112.STM32MP13xx EXTI Events1137
Table 113.GICD register map and reset values1162
Table 114.GICC register map and reset values1175
Table 115.GICH register map and reset values1182
Table 116.GICV register map and reset values1190
Table 117.EXTI pin overview1193
Table 118.EVG pin overview1194
Table 119.EXTI event input configurations and register control1195
Table 120.Masking functionality1198
Table 121.Register security overview1199
Table 122.EXTI register map sections1200
Table 123.EXTI register map and reset values1222
Table 124.CRC internal input/output signals1227
Table 125.CRC register map and reset values1234
Table 126.FMC features1236
Table 127.FMC internal signals1237
Table 128.FMC memory regions (default mapping)1239
Table 129.NOR/PSRAM subregion selection1240
Table 130.NOR/PSRAM External memory address1240
Table 131.NAND memory mapping and timing registers1240
Table 132.NAND flash memory region selection1241
Table 133.NAND chip enable selection1241
Table 134.Programmable NOR/PSRAM access parameters1243
Table 135.Non-multiplexed I/O NOR flash memory1243
Table 136.16-bit multiplexed I/O NOR flash memory1244
Table 137.Non-multiplexed I/Os PSRAM/SRAM1244
Table 138.16-bit multiplexed I/O PSRAM1244
Table 139.NOR flash/PSRAM: Example of supported memories and transactions1245
Table 140.FMC_BCRx bitfields (mode 1)1249
Table 141.FMC_BTRx bitfields (mode 1)1249
Table 142.FMC_BCRx bitfields (mode A)1251
Table 143.FMC_BTRx bitfields (mode A)1252
Table 144.FMC_BWTRx bitfields (mode A)1252
Table 145.FMC_BCRx bitfields (mode 2/B)1255
Table 146.FMC_BTRx bitfields (mode 2/B)1255
Table 147.FMC_BWTRx bitfields (mode 2/B)1256
Table 148.FMC_BCRx bitfields (mode C)1258
Table 149.FMC_BTRx bitfields (mode C)1258
Table 150.FMC_BWTRx bitfields (mode C)1259
Table 151.FMC_BCRx bitfields (mode D)1260
Table 152.FMC_BTRx bitfields (mode D) .....1261
Table 153.FMC_BWTRx bitfields (mode D) .....1261
Table 154.FMC_BCRx bitfields (muxed mode) .....1263
Table 155.FMC_BTRx bitfields (muxed mode) .....1264
Table 156.FMC_BCRx bitfields (Synchronous multiplexed read mode) .....1269
Table 157.FMC_BTRx bitfields (Synchronous multiplexed read mode) .....1270
Table 158.FMC_BCRx bitfields (Synchronous multiplexed write mode) .....1271
Table 159.FMC_BTRx bitfields (Synchronous multiplexed write mode) .....1272
Table 160.Programmable NAND flash access parameters .....1286
Table 161.8-bit NAND flash memory .....1286
Table 162.16-bit NAND flash memory .....1287
Table 163.Supported memories and transactions .....1287
Table 164.Number of ECC parity bytes per sector .....1292
Table 165.FMC NAND controller Interrupt request .....1300
Table 166.HPR relevant bits .....1306
Table 167.ECC result relevant bits .....1307
Table 168.FMC register map .....1325
Table 169.QUADSPI internal signals .....1330
Table 170.QUADSPI pins .....1330
Table 171.QUADSPI interrupt requests .....1344
Table 172.QUADSPI register map and reset values .....1358
Table 173.SDMMC features .....1360
Table 174.SDMMC operation modes SD and SDIO .....1363
Table 175.SDMMC operation modes eMMC .....1363
Table 176.SDMMC internal input/output signals .....1364
Table 177.SDMMC pins .....1365
Table 178.SDMMC Command and data phase selection .....1366
Table 179.Command token format .....1372
Table 180.Short response with CRC token format .....1373
Table 181.Short response without CRC token format .....1373
Table 182.Long response with CRC token format .....1373
Table 183.Specific Commands overview .....1374
Table 184.Command path status flags .....1375
Table 185.Command path error handling .....1375
Table 186.Data token format .....1383
Table 187.Data path status flags and clear bits .....1383
Table 188.Data path error handling .....1385
Table 189.Data FIFO access .....1386
Table 190.Transmit FIFO status flags .....1387
Table 191.Receive FIFO status flags .....1388
Table 192.AHB and SDMMC_CK clock frequency relation .....1393
Table 193.SDIO special operation control .....1393
Table 194.4-bit mode Start, interrupt, and CRC-status Signaling detection .....1397
Table 195.CMD12 use cases .....1402
Table 196.SDMMC interrupts .....1416
Table 197.Response type and SDMMC_RESPxR registers .....1423
Table 198.SDMMC register map .....1440
Table 199.STM32MP13xx features .....1443
Table 200.DLYB internal input/output signals .....1444
Table 201.DLYB interconnection .....1444
Table 202.Delay block control .....1445
Table 203.DLYB register map and reset values .....1448
Table 204.ADC features .....1450
Table 205.ADC input/output pins .....1453
Table 206.ADC internal input/output signals .....1453
Table 207.ADC interconnection .....1453
Table 208.Configuring the trigger polarity for regular external triggers .....1473
Table 209.Configuring the trigger polarity for injected external triggers .....1474
Table 210.TSAR timings depending on resolution .....1486
Table 211.Offset computation versus data resolution .....1489
Table 212.Analog watchdog channel selection .....1501
Table 213.Analog watchdog 1 comparison .....1502
Table 214.Analog watchdog 2 and 3 comparison .....1502
Table 215.Maximum output results versus N and M (gray cells indicate truncation) .....1506
Table 216.ADC interrupts .....1516
Table 217.ADC global register map .....1550
Table 218.ADC register map and reset values .....1550
Table 219.ADC register map and reset values (master and slave ADC
common registers) .....
1552
Table 220.DTS internal input/output signals .....1555
Table 221.Sampling time configuration .....1558
Table 222.Trigger configuration .....1559
Table 223.Temperature sensor behavior in low-power modes .....1561
Table 224.Interrupt control bits .....1562
Table 225.DTS register map and reset values .....1570
Table 226.VREFBUF typical values .....1572
Table 227.VREF buffer modes .....1573
Table 228.VREFBUF register map and reset values .....1575
Table 229.DFSDM1 implementation .....1578
Table 230.DFSDM external pins .....1580
Table 231.DFSDM internal signals .....1580
Table 232.DFSDM triggers connection .....1580
Table 233.DFSDM break connection .....1581
Table 234.Filter maximum output resolution (peak data values from filter output)
for some FOSR values .....
1596
Table 235.Integrator maximum output resolution (peak data values from integrator
output) for some IOSR values and FOSR = 256 and Sinc3 filter type (largest data) .....
1597
Table 236.DFSDM interrupt requests .....1605
Table 237.DFSDM register map and reset values .....1629
Table 238.Available pipeline .....1634
Table 239.Glossary .....1635
Table 240.DCMIPP input/output pads .....1637
Table 241.DCMIPP input/output pins .....1638
Table 242.DCMIPP clocks .....1638
Table 243.DCMIPP resets .....1638
Table 244.Parallel interface maximum resolution (80 MHz) .....1639
Table 245.Supported pixel formats .....1640
Table 246.DCMIPP_CMCR bit function .....1641
Table 247.DCMIPP_PRCR bit function .....1644
Table 248.DCMIPP_PRESCR and DCMIPP_PRESUR bit function .....1645
Table 249.DCMIPP_PxFCTCR bit function .....1647
Table 250.DCMIPP_P0PPCR bit function .....1651
Table 251.DCMIPP_P0DCCNTR and DCMIPP_P0DCLMTR bit function .....1653
Table 252.DCMIPP_PxPPCR bit function .....1654
Table 253.Parallel interface input pixel formats1655
Table 254.Correspondence between index and DCMIPP_PRCR register values1656
Table 255.Parallel interface input pixel formats1657
Table 256.Dump pipe OUTPUT pixel formats1657
Table 257.Shadow and physical registers1660
Table 258.DCMIPP low power modes1661
Table 259.DCMIPP interrupts1664
Table 260.Event connection1664
Table 261.DCMIPP registers organization1665
Table 262.DCMIPP register map and reset values1697
Table 263.LTDC pins1702
Table 264.Clock domain for each register1703
Table 265.LTDC register access and updated durations1704
Table 266.Pixel data mapping versus color format1707
Table 267.LTDC interrupt requests1722
Table 268.LTDC register map and reset values1756
Table 269.RNG internal input/output signals1763
Table 270.RNG interrupt requests1771
Table 271.RNG initialization times1772
Table 272.RNG configurations1772
Table 273.Configuration selection1773
Table 274.RNG register map and reset map1780
Table 275.SAES internal input/output signals1783
Table 276.CTR mode initialization vector definition1800
Table 277.GCM last block definition1802
Table 278.Initialization of SAES_IVRx registers in GCM mode1803
Table 279.Initialization of SAES_IVRx registers in CCM mode1810
Table 280.Key endianness in SAES_KEYRx registers (128- or 256-bit key length)1820
Table 281.SAES interrupt requests1826
Table 282.Processing latency for ECB, CBC and CTR1826
Table 283.Processing latency for GCM and CCM (in SAES kernel clock cycles)1826
Table 284.SAES register map and reset values1842
Table 285.CRYP internal input/output signals1848
Table 286.Counter mode initialization vector1872
Table 287.GCM last block definition1875
Table 288.GCM mode IV registers initialization1875
Table 289.CCM mode IV registers initialization1882
Table 290.DES/TDES data swapping example1887
Table 291.AES data swapping example1888
Table 292.Key endianness in CRYP_KxR/LR registers (AES 128/192/256-bit keys)1890
Table 293.Key endianness in CRYP_KxR/LR registers (DES K1 and TDES K1/2/3)1891
Table 294.Initialization vector endianness in CRYP_IVx(L/R)R registers (AES)1892
Table 295.Initialization vector endianness in CRYP_IVx(L/R)R registers (DES/TDES)1892
Table 296.Cryptographic processor configuration for
memory-to-peripheral DMA transfers
1893
Table 297.Cryptographic processor configuration for
peripheral-to-memory DMA transfers
1893
Table 298.CRYP interrupt requests1896
Table 299.Processing latency for ECB, CBC and CTR1896
Table 300.Processing time (in clock cycle) for GCM and CCM per 128-bit block1897
Table 301.CRYP register map and reset values1914
Table 302.HASH internal input/output signals1919
Table 303.Information on supported hash algorithms . . . . .1919
Table 304.Hash processor outputs . . . . .1923
Table 305.Processing time (in clock cycle) . . . . .1930
Table 306.HASH interrupt requests . . . . .1931
Table 307.HASH1 register map and reset values . . . . .1941
Table 308.Internal input/output signals . . . . .1944
Table 309.PKA integer arithmetic functions list . . . . .1945
Table 310.PKA prime field (\(F_p\)) elliptic curve functions list . . . . .1946
Table 311.Example of 'a' curve coefficient for ECC \(F_p\) scalar . . . . .1952
Table 312.Montgomery parameter computation . . . . .1952
Table 313.Modular addition . . . . .1953
Table 314.Modular subtraction . . . . .1953
Table 315.Montgomery multiplication . . . . .1954
Table 316.Modular exponentiation (normal mode) . . . . .1955
Table 317.Modular exponentiation (fast mode) . . . . .1955
Table 318.Modular exponentiation (protected mode) . . . . .1956
Table 319.Modular inversion . . . . .1956
Table 320.Modular reduction . . . . .1957
Table 321.Arithmetic addition . . . . .1957
Table 322.Arithmetic subtraction . . . . .1957
Table 323.Arithmetic multiplication . . . . .1958
Table 324.Arithmetic comparison . . . . .1958
Table 325.CRT exponentiation . . . . .1959
Table 326.Point on elliptic curve \(F_p\) check . . . . .1960
Table 327.ECC \(F_p\) scalar multiplication . . . . .1960
Table 328.ECDSA sign - Inputs . . . . .1962
Table 329.ECDSA sign - Outputs . . . . .1962
Table 330.Extended ECDSA sign - additional outputs . . . . .1963
Table 331.ECDSA verification - inputs . . . . .1963
Table 332.ECDSA verification - outputs . . . . .1964
Table 333.ECC complete addition . . . . .1964
Table 334.ECC double base ladder . . . . .1965
Table 335.ECC projective to affine . . . . .1966
Table 336.Family of supported curves for ECC operations . . . . .1967
Table 337.Modular exponentiation . . . . .1968
Table 338.ECC scalar multiplication . . . . .1968
Table 339.ECDSA signature average computation time . . . . .1969
Table 340.ECDSA verification average computation times . . . . .1969
Table 341.ECC double base ladder average computation times . . . . .1969
Table 342.ECC projective to affine average computation times . . . . .1969
Table 343.ECC complete addition average computation times . . . . .1969
Table 344.Point on elliptic curve \(F_p\) check average computation times . . . . .1969
Table 345.Montgomery parameters average computation times . . . . .1970
Table 346.PKA interrupt requests . . . . .1970
Table 347.PKA register map and reset values . . . . .1977
Table 348.MCE internal input/output signals . . . . .1979
Table 349.MCE interrupt requests . . . . .1981
Table 350.MCE register map and reset values . . . . .1989
Table 351.Behavior of timer outputs versus BRK/BRK2 inputs . . . . .2032
Table 352.Break protection disarming conditions . . . . .2034
Table 353.Counting direction versus encoder signals . . . . .2040
Table 354.TIMx internal trigger connection . . . . .2057
Table 355.Output control bits for complementary OCx and OCxN channels with break feature . . .2071
Table 356.TIM1 register map and reset values . . . . .2089
Table 357.TIM8 register map and reset values . . . . .2091
Table 358.Counting direction versus encoder signals . . . . .2127
Table 359.TIMx internal trigger connection . . . . .2145
Table 360.Output control bit for standard OCx channels. . . . .2155
Table 361.TIM2/TIM3/TIM4/TIM5 register map and reset values . . . . .2166
Table 362.TIMx internal trigger connection . . . . .2197
Table 363.Output control bit for standard OCx channels. . . . .2205
Table 364.TIM12 register map and reset values . . . . .2208
Table 365.Output control bit for standard OCx channels. . . . .2217
Table 366.TIM13/TIM14 register map and reset values . . . . .2220
Table 367.Break protection disarming conditions . . . . .2250
Table 368.TIMx Internal trigger connection . . . . .2266
Table 369.Output control bits for complementary OCx and OCxN channels with break feature
(TIM15) . . . . .
2276
Table 370.TIM15 register map and reset values . . . . .2284
Table 371.Output control bits for complementary OCx and OCxN channels with break feature
(TIM16/17) . . . . .
2297
Table 372.TIM16/TIM17 register map and reset values . . . . .2307
Table 373.TIMx register map and reset values . . . . .2321
Table 374.STM32MP13xx LPTIM features . . . . .2323
Table 375.LPTIM input/output pins . . . . .2325
Table 376.LPTIM internal signals . . . . .2325
Table 377.LPTIM1 external trigger connection . . . . .2325
Table 378.LPTIM2 external trigger connection . . . . .2326
Table 379.LPTIM3 external trigger connection . . . . .2326
Table 380.LPTIM4 external trigger connection . . . . .2326
Table 381.LPTIM5 external trigger connection . . . . .2327
Table 382.LPTIM1 input 1 connection. . . . .2327
Table 383.LPTIM1 input 2 connection. . . . .2327
Table 384.LPTIM2 input 1 connection. . . . .2327
Table 385.LPTIM2 input 2 connection. . . . .2328
Table 386.LPTIM3 input 1 connection. . . . .2328
Table 387.Prescaler division ratios . . . . .2329
Table 388.Encoder counting scenarios . . . . .2336
Table 389.Effect of low-power modes on the LPTIM. . . . .2337
Table 390.Interrupt events. . . . .2338
Table 391.LPTIM register map and reset values. . . . .2351
Table 392.STGENC register map and reset values . . . . .2367
Table 393.STGENR register map and reset values . . . . .2368
Table 394.STM32MP13xx IWDG features . . . . .2370
Table 395.IWDG delays versus actions . . . . .2372
Table 396.IWDG internal input/output signals . . . . .2372
Table 397.Effect of low power modes on IWDG . . . . .2376
Table 398.IWDG interrupt request. . . . .2378
Table 399.IWDG register map and reset values . . . . .2386
Table 400.RTC input/output pins. . . . .2390
Table 401.RTC internal input/output signals . . . . .2390
Table 402.RTC interconnection. . . . .2391
Table 403.RTC pin PC13 configuration. . . . .2391
Table 404.PI1 configuration. . . . .2394
Table 405.RTC_OUT mapping2395
Table 406.Effect of low-power modes on RTC2410
Table 407.RTC pins functionality over modes2410
Table 408.Nonsecure interrupt requests2411
Table 409.Secure interrupt requests2411
Table 410.RTC register map and reset values2444
Table 411.TAMP input/output pins2450
Table 412.TAMP internal input/output signals2450
Table 413.TAMP interconnection2451
Table 414.Device resource x tamper protection2457
Table 415.Active tamper output change period2460
Table 416.Minimum ATPER value2461
Table 417.Active tamper filtered pulse duration2462
Table 418.Effect of low-power modes on TAMP2463
Table 419.TAMP pins functionality over modes2464
Table 420.Internal tampers functionality over modes2464
Table 421.Nonsecure interrupt requests2465
Table 422.Secure interrupt requests2465
Table 423.TAMP register map and reset values2499
Table 424.I2C implementation2503
Table 425.I2C input/output pins2504
Table 426.I2C internal input/output signals2505
Table 427.Comparison of analog and digital filters2507
Table 428.I2C-bus and SMBus specification data setup and hold times2509
Table 429.I2C configuration2513
Table 430.I2C-bus and SMBus specification clock timings2524
Table 431.Timing settings for fI2CCLK of 8 MHz2534
Table 432.Timing settings for fI2CCLK of 16 MHz2534
Table 433.Timing settings for fI2CCLK of 48 MHz2535
Table 434.SMBus timeout specifications2537
Table 435.SMBus with PEC configuration2539
Table 436.TIMEOUTA[11:0] for maximum tTIMEOUT of 25 ms2540
Table 437.TIMEOUTB[11:0] for maximum tLOW:SEXT and tLOW:MEXT of 8 ms2540
Table 438.TIMEOUTA[11:0] for maximum tIDLE of 50 µs2540
Table 439.Effect of low-power modes to I2C2550
Table 440.I2C interrupt requests2550
Table 441.I2C register map and reset values2566
Table 442.Instance implementation on STM32MP13xx2570
Table 443.USART features2570
Table 444.USART/UART input/output pins2573
Table 445.USART internal input/output signals2573
Table 446.Noise detection from sampled data2586
Table 447.Tolerance of the USART receiver when BRR [3:0] = 00002589
Table 448.Tolerance of the USART receiver when BRR[3:0] is different from 00002590
Table 449.USART frame formats2595
Table 450.Effect of low-power modes on the USART2618
Table 451.USART interrupt requests2619
Table 452.USART register map and reset values2656
Table 453.STM32MP13xx SPI features2659
Table 454.SPI wake-up and interrupt requests2691
Table 455.Bitfields usable in PCM/I2S mode2694
Table 456.WS and CK level before SPI/I2S is enabled when AFCNTR = 12702
Table 457.Serial data line swapping . . . . .2702
Table 458.CLKGEN programming examples for usual I2S frequencies . . . . .2707
Table 459.I2S interrupt requests . . . . .2716
Table 460.SPI register map and reset values . . . . .2737
Table 461.STM32MP13xx SAI features . . . . .2740
Table 462.SAI internal input/output signals . . . . .2742
Table 463.SAI input/output pins. . . . .2742
Table 464.External synchronization selection . . . . .2745
Table 465.MCLK_x activation conditions. . . . .2750
Table 466.Clock generator programming examples . . . . .2753
Table 467.SAI_A configuration for TDM mode . . . . .2760
Table 468.TDM frame configuration examples . . . . .2762
Table 469.SOPD pattern . . . . .2766
Table 470.Parity bit calculation . . . . .2766
Table 471.Audio sampling frequency versus symbol rates . . . . .2767
Table 472.SAI interrupt sources . . . . .2776
Table 473.SAI register map and reset values . . . . .2807
Table 474.SPDIFRX internal input/output signals . . . . .2811
Table 475.SPDIFRX pins. . . . .2811
Table 476.Transition sequence for preamble . . . . .2817
Table 477.Minimum spdifrx_ker_ck frequency versus audio sampling rate . . . . .2827
Table 478.Conditions of spdifrx_symb_ck generation. . . . .2828
Table 479.Bit field property versus SPDIFRX state. . . . .2831
Table 480.SPDIFRX interface register map and reset values . . . . .2844
Table 481.CAN subsystem I/O signals . . . . .2846
Table 482.CAN subsystem I/O pins. . . . .2847
Table 483.CAN triggers . . . . .2847
Table 484.Main features . . . . .2849
Table 485.DLC coding in FDCAN . . . . .2854
Table 486.Example of filter configuration for Rx buffers . . . . .2867
Table 487.Example of filter configuration for Debug messages . . . . .2868
Table 488.Possible configurations for frame transmission . . . . .2868
Table 489.Tx buffer/FIFO - Queue element size . . . . .2869
Table 490.First byte of level 1 reference message . . . . .2879
Table 491.First four bytes of level 2 reference message. . . . .2880
Table 492.First four bytes of level 0 reference message. . . . .2880
Table 493.TUR configuration example . . . . .2881
Table 494.System matrix, Node A. . . . .2886
Table 495.Trigger list, Node A. . . . .2887
Table 496.Number of data bytes transmitted with a reference message. . . . .2894
Table 497.Rx buffer and FIFO element . . . . .2901
Table 498.Rx buffer and FIFO element description. . . . .2901
Table 499.Tx buffer and FIFO element . . . . .2903
Table 500.Tx buffer element description . . . . .2903
Table 501.Tx Event FIFO element. . . . .2905
Table 502.Tx Event FIFO element description . . . . .2905
Table 503.Standard message ID filter element . . . . .2906
Table 504.Standard message ID filter element field description . . . . .2907
Table 505.Extended message ID filter element. . . . .2908
Table 506.Extended message ID filter element field description. . . . .2908
Table 507.Trigger memory element. . . . .2909
Table 508.Trigger memory element description . . . . .2909
Table 509.FDCAN register map and reset values . . . . .2947
Table 510.FDCAN TT register map and reset values . . . . .2969
Table 511.CCU register map and reset values . . . . .2975
Table 512.OTG speeds supported . . . . .2977
Table 513.OTG implementation. . . . .2980
Table 514.OTG input/output pins. . . . .2981
Table 515.OTG input/output signals . . . . .2982
Table 516.Compatibility of STM32 low power modes with the OTG . . . . .2994
Table 517.FIFO allocation for DMA address register storage
(OTG_DIEPDMAx/DOEPDMAx and OTG_HCDMAx) . . . . .
2996
Table 518.Core global control and status registers (CSRs). . . . .3003
Table 519.Host-mode control and status registers (CSRs) . . . . .3004
Table 520.Device-mode control and status registers . . . . .3006
Table 521.Data FIFO (DFIFO) access register map . . . . .3008
Table 522.Power and clock gating control and status registers . . . . .3008
Table 523.TRDT values. . . . .3015
Table 524.Minimum duration for soft disconnect. . . . .3060
Table 525.OTG register map and reset values . . . . .3084
Table 526.USBPHYC register map and reset values . . . . .3169
Table 527.USBH register map and reset values . . . . .3182
Table 528.Ethernet peripheral pins . . . . .3191
Table 529.Internal Ethernet input/output signals . . . . .3192
Table 530.Fixed priority scheme for DMA channels . . . . .3206
Table 531.Double VLAN processing features in Tx path. . . . .3210
Table 532.Double VLAN processing in Rx path . . . . .3210
Table 533.VLAN insertion or replacement based on VLTI bit . . . . .3212
Table 534.Destination address filtering . . . . .3215
Table 535.Source address filtering . . . . .3216
Table 536.VLAN match status . . . . .3217
Table 537.Ordinary clock: PTP messages for snapshot . . . . .3220
Table 538.End-to-end transparent clock: PTP messages for snapshot . . . . .3221
Table 539.Peer-to-peer transparent clock: PTP messages for snapshot. . . . .3221
Table 540.Egress and ingress latency for PHY interfaces . . . . .3225
Table 541.Minimum PTP clock frequency example. . . . .3226
Table 542.Message format defined in IEEE 1588-2008 . . . . .3226
Table 543.Message format defined in IEEE 1588-2008 . . . . .3227
Table 544.IPv6-UDP PTP packet fields required for control and status . . . . .3228
Table 545.Ethernet PTP packet fields required for control and status . . . . .3229
Table 546.Timestamp Snapshot Dependency on ETH_MACTSCR bits. . . . .3231
Table 547.PTP message generation criteria . . . . .3237
Table 548.Common PTP message header fields . . . . .3239
Table 549.MAC transmit PTP mode and one-step timestamping operation . . . . .3242
Table 550.Transmit checksum offload engine functions for different packet types . . . . .3246
Table 551.Receive checksum offload engine functions for different packet types . . . . .3249
Table 552.TSO: TCP and IP header fields . . . . .3253
Table 553.Pause packet fields. . . . .3258
Table 554.Tx MAC flow control . . . . .3259
Table 555.Rx MAC flow control . . . . .3259
Table 556.Size of the maximum receive packet . . . . .3262
Table 557.MCD clock selection . . . . .3264
Table 558.MDIO Clause 45 frame structure . . . . .3265
Table 559.MDIO Clause 22 frame structure . . . . .3266
Table 560.Remote wake-up packet filter register3279
Table 561.Description of the remote wake-up filter fields3279
Table 562.Remote wake-up packet and PMT interrupt generation3281
Table 563.Transfer complete interrupt behavior3290
Table 564.TDES0 normal descriptor (read format)3314
Table 565.TDES1 normal descriptor (read format)3315
Table 566.TDES2 normal descriptor (read format)3315
Table 567.TDES3 normal descriptor (read format)3316
Table 568.TDES0 normal descriptor (write-back format)3319
Table 569.TDES1 normal descriptor (write-back format)3319
Table 570.TDES2 normal descriptor (write-back format)3320
Table 571.TDES3 normal descriptor (write-back format)3320
Table 572.TDES0 context descriptor3323
Table 573.TDES1 context descriptor3324
Table 574.TDES2 context descriptor3324
Table 575.TDES3 context descriptor3324
Table 576.RDES0 normal descriptor (read format)3327
Table 577.RDES1 normal descriptor (read format)3327
Table 578.RDES2 normal descriptor (read format)3328
Table 579.RDES3 normal descriptor (read format)3328
Table 580.RDES0 normal descriptor (write-back format)3329
Table 581.RDES1 normal descriptor (write-back format)3330
Table 582.RDES2 normal descriptor (write-back format)3332
Table 583.RDES3 normal descriptor (write-back format)3333
Table 584.RDES0 context descriptor3336
Table 585.RDES1 context descriptor3337
Table 586.RDES2 context descriptor3337
Table 587.RDES3 context descriptor3337
Table 588.ETH_DMA common register map and reset values3361
Table 589.ETH_DMA_CH0 register map and reset values3362
Table 590.ETH_DMA_CH1 register map and reset values3364
Table 591.ETH_MTL register map and reset values3376
Table 592.Giant Packet Status based on S2KP and JE Bits3383
Table 593.Packet Length based on the CST and ACS bits3383
Table 594.Ethernet MAC register map and reset values3470
Table 595.HDP signal multiplexing3482
Table 596.HDP register map and reset values3488
Table 597.JTAG/Serial-wire debug port pins3492
Table 598.Trace port pins3492
Table 599.Trigger pins3492
Table 600.Authentication signal connectivity3495
Table 601.Authentication signal initial states3496
Table 602.CLTAPC registers3496
Table 603.JTAG-DP data registers3499
Table 604.Packet request3501
Table 605.ACK response3501
Table 606.Data transfer3501
Table 607.Debug port registers3503
Table 608.AP0 (system interconnect) authentication behavior3512
Table 609.AP1 (Debug APB) authentication behavior3512
Table 610.MEM-AP registers3513
Table 611.Debug subsystem ROM table3522
Table 612.Trace subsystem ROM table . . . . .3522
Table 613.Cortex-A7 subsystem ROM table . . . . .3523
Table 614.ROM table register map and reset values . . . . .3530
Table 615.TSGEN register map and reset values . . . . .3537
Table 616.Trace Subsystem CTI inputs . . . . .3539
Table 617.Trace Subsystem CTI outputs . . . . .3540
Table 618.Cortex®-A7 CTI inputs . . . . .3540
Table 619.Cortex®-A7 CTI outputs . . . . .3540
Table 620.CTI register map and reset values . . . . .3554
Table 621.ETF register map and reset values. . . . .3576
Table 622.TPIU register map and reset values . . . . .3594
Table 623.DBGMCU registers map and reset values . . . . .3608
Table 624.Debug unit register map and reset values . . . . .3647
Table 625.Performance monitoring unit registers map and reset values. . . . .3670
Table 626.ETM registers map and reset values . . . . .3718
Table 627.Document revision history . . . . .3731

List of figures

Figure 1.Bus interconnect for STM32MP13xx119
Figure 2.NIC-400 interconnect AXIM for STM32MP13xx124
Figure 3.Multi-layer AHB interconnect for STM32MP13xx129
Figure 4.Memory map154
Figure 5.BSEC block diagram166
Figure 6.Power-on and initial read timing diagram169
Figure 7.DDRCTRL block diagram206
Figure 8.TZC block diagram314
Figure 9.TZC example 1316
Figure 10.TZC example 2317
Figure 11.TZC example 3318
Figure 12.DDRPHYC block diagram343
Figure 13.DDRPHY block diagram345
Figure 14.MDLL block diagram346
Figure 15.MSDLL block diagram346
Figure 16.ITMs block diagram348
Figure 17.ITMC_D2 for LPDDR2/3349
Figure 18.ITMC_D2 for DDR3/3L350
Figure 19.ITMS and ITMD for DQ/DQS lanes351
Figure 20.PUBL block diagram353
Figure 21.DDRPHY initialization sequence355
Figure 22.Built-in DQS gate training flow359
Figure 23.Software DQS gate training flow361
Figure 24.Write timing with WL = 5, BL = 8366
Figure 25.Read timing with WL = 5, BL = 8367
Figure 26.DDRPERFM block diagram419
Figure 27.Power control block diagram432
Figure 28.Power supply overview436
Figure 29.Device startup supply sequence439
Figure 30.Backup domain442
Figure 31.Power-on reset/power-down reset waveform445
Figure 32.BOR thresholds446
Figure 33.Automatic domain Reset in Standby447
Figure 34.PVD thresholds448
Figure 35.AVD thresholds449
Figure 36.VBAT thresholds450
Figure 37.Temperature thresholds451
Figure 38.Power states and external regulator control460
Figure 39.Device low-power Stop supply sequence466
Figure 40.Device low-power LP-Stop supply sequence468
Figure 41.Device low-power LPLV-Stop supply sequence469
Figure 42.Device LPLV-Stop2 mode power control471
Figure 43.Device Standby mode power control474
Figure 44.Device VBAT mode power control475
Figure 45.PWR_ON and PWR_LP pins multiplexing477
Figure 46.RCC block diagram494
Figure 47.RCC reset graph497
Figure 48.Reset circuit overview500
Figure 49.Reset pulse control503
Figure 50.Reset delay control504
Figure 51.Reset source registers507
Figure 52.Startup, cold/warm reset and wakeup from any Stop mode sequences511
Figure 53.Top-level clock tree513
Figure 54.HSE clock source515
Figure 55.HSE clock generation515
Figure 56.HSI calibration flow518
Figure 57.CSI calibration flow519
Figure 58.LSE clock generation519
Figure 59.LSE and HSE CSS function523
Figure 60.PLL1 block diagram526
Figure 61.PLL2 block diagram526
Figure 62.PLL3 and PLL4 block diagram527
Figure 63.Spread spectrum modulation530
Figure 64.Triangular waveform generator532
Figure 65.Dynamic clock switching533
Figure 66.Core and busses clock generation535
Figure 67.Key signals controlling low-power modes537
Figure 68.Clock restore activation versus system mode539
Figure 69.Clock restore process activated after any system Stop mode541
Figure 70.Wake up from CStop process542
Figure 71.Peripheral clock distribution for SAIs and DFSDM552
Figure 72.Peripheral clock distribution for SPI/I2Ss and SPDIFRX553
Figure 73.Peripheral clock distribution for SPIs554
Figure 74.Peripheral clock distribution for I2Cs555
Figure 75.Peripheral clock distribution for UARTs, and USARTs556
Figure 76.Peripheral clock distribution for TIMs and LPTIMs558
Figure 77.Peripheral clock distribution for LTDC559
Figure 78.Peripheral clock distribution for QUADSPI and FMC559
Figure 79.Peripheral clock distribution for SDMMCs560
Figure 80.Peripheral clock distribution for USB561
Figure 81.Peripheral clock distribution for Ethernet562
Figure 82.Kernel clock distribution for RNG1563
Figure 83.Kernel clock distribution for FDCAN564
Figure 84.Kernel clock distribution for ADCs and STGEN565
Figure 85.Kernel clock distribution for DCMIPP566
Figure 86.Kernel clock distribution for DTS566
Figure 87.Clock distribution for RTC567
Figure 88.Clock distribution for IWDG[2:1]568
Figure 89.Clock distribution for TZC570
Figure 90.Clock distribution for DDRC, DDRPHYC and DDRPERFM571
Figure 91.Entering and exiting self-refresh in ASR1 or ASR2 modes576
Figure 92.Entering and exiting self-refresh in HSR1 or HSR2 modes577
Figure 93.Allowed transitions between SSR, ASR and HSR modes578
Figure 94.Clock description for DBG and trace582
Figure 95.Clock description for IO compensation cell582
Figure 96.Peripheral kernel clock enable logic details585
Figure 97.MPU low-power interface588
Figure 98.MPU clock path600
Figure 99.PLL2 clock path602
Figure 100.MLAHB clock path604
Figure 101. Exit from LP-Stop due to MPU event .....615
Figure 102. Fast clock restore .....616
Figure 103. Basic structure of an I/O port bit .....954
Figure 104. Basic structure of a 5-Volt tolerant I/O port bit .....954
Figure 105. Input floating/pull up/pull down configurations .....959
Figure 106. Output configuration .....960
Figure 107. Alternate function configuration .....961
Figure 108. High impedance-analog configuration .....962
Figure 109. I/O compensation control overview .....980
Figure 110. STM32MP13xx security architecture .....1018
Figure 111. MDMA block diagram .....1051
Figure 112. DMA block diagram .....1076
Figure 113. Peripheral-to-memory mode .....1079
Figure 114. Memory-to-peripheral mode .....1080
Figure 115. Memory-to-memory mode .....1081
Figure 116. FIFO structure .....1086
Figure 117. DMAMUX block diagram .....1116
Figure 118. Synchronization mode of the DMAMUX request line multiplexer channel .....1119
Figure 119. Event generation of the DMA request line multiplexer channel .....1119
Figure 120. GIC block diagram .....1142
Figure 121. EXTI block diagram .....1193
Figure 122. Configurable event trigger logic CPU wakeup .....1196
Figure 123. Direct event trigger logic CPU wakeup .....1197
Figure 124. EXTI mux GPIO selection .....1198
Figure 125. CRC calculation unit block diagram .....1227
Figure 126. FMC block diagram .....1237
Figure 127. Mode 1 read access waveforms .....1248
Figure 128. Mode 1 write access waveforms .....1248
Figure 129. Mode A read access waveforms .....1250
Figure 130. Mode A write access waveforms .....1251
Figure 131. Mode 2 and mode B read access waveforms .....1253
Figure 132. Mode 2 write access waveforms .....1254
Figure 133. Mode B write access waveforms .....1254
Figure 134. Mode C read access waveforms .....1257
Figure 135. Mode C write access waveforms .....1257
Figure 136. Mode D read access waveforms .....1259
Figure 137. Mode D write access waveforms .....1260
Figure 138. Muxed read access waveforms .....1262
Figure 139. Muxed write access waveforms .....1263
Figure 140. Asynchronous wait during a read access waveforms .....1266
Figure 141. Asynchronous wait during a write access waveforms .....1266
Figure 142. Wait configuration waveforms .....1268
Figure 143. Synchronous multiplexed read mode waveforms - NOR, PSRAM (CRAM) .....1269
Figure 144. Synchronous multiplexed write mode waveforms - PSRAM (CRAM) .....1271
Figure 145. NAND flash controller waveforms for common memory access .....1288
Figure 146. NAND flash controller waveforms for TCLR and TAR timings .....1288
Figure 147. Access to NAND flash memory .....1290
Figure 148. NAND flash page (2 Kbytes) layout with BCH .....1294
Figure 149. Example of 2 Kbyte page program sequence with 4-bit BCH .....1295
Figure 150. Chained-page read command timings .....1297
Figure 151. Example of 2-Kbyte page read sequence with 4-bit BCH .....1298
Figure 152. QUADSPI block diagram .....1329
Figure 153.QUADSPI block diagram when dual-flash mode is enabled1330
Figure 154.Example of read command in quad-SPI mode1331
Figure 155.Example of a DDR command in quad-SPI mode1334
Figure 156.NCS when CKMODE = 0 (T = CLK period)1342
Figure 157.NCS when CKMODE = 1 in SDR mode (T = CLK period)1343
Figure 158.NCS when CKMODE = 1 in DDR mode (T = CLK period)1343
Figure 159.NCS when CKMODE = 1 with an abort (T = CLK period)1344
Figure 160.SDMMC “no response” and “no data” operations1361
Figure 161.SDMMC (multiple) block read operation1361
Figure 162.SDMMC (multiple) block write operation1362
Figure 163.SDMMC (sequential) stream read operation1362
Figure 164.SDMMC (sequential) stream write operation1362
Figure 165.SDMMC block diagram1364
Figure 166.SDMMC Command and data phase relation1366
Figure 167.Control unit1368
Figure 168.Command/response path1369
Figure 169.Command path state machine (CPSM)1370
Figure 170.Data path1376
Figure 171.DDR mode data packet clocking1377
Figure 172.DDR mode CRC status / boot acknowledgment clocking1377
Figure 173.Data path state machine (DPSM)1378
Figure 174.CLKMUX unit1389
Figure 175.Linked list structures1391
Figure 176.Asynchronous interrupt generation1394
Figure 177.Synchronous interrupt period data read1395
Figure 178.Synchronous interrupt period data write1395
Figure 179.Asynchronous interrupt period data read1396
Figure 180.Asynchronous interrupt period data write1397
Figure 181.Clock stop with SDMMC_CK for DS, HS, SDR12, SDR251400
Figure 182.Clock stop with SDMMC_CK for DDR50, SDR50, SDR1041400
Figure 183.Read Wait with SDMMC_CK < 50 MHz1401
Figure 184.Read Wait with SDMMC_CK > 50 MHz1401
Figure 185.CMD12 stream timing1404
Figure 186.CMD5 Sleep Awake procedure1406
Figure 187.Normal boot mode operation1408
Figure 188.Alternative boot mode operation1409
Figure 189.Command response R1b busy signaling1410
Figure 190.SDMMC state control1411
Figure 191.Card cycle power / power up diagram1412
Figure 192.CMD11 signal voltage switch sequence1413
Figure 193.Voltage switch transceiver typical application1415
Figure 194.DLYB block diagram1444
Figure 195.ADC block diagram1452
Figure 196.ADC clock scheme1457
Figure 197.ADC1 connectivity1458
Figure 198.ADC2 connectivity1459
Figure 199.ADC calibration1462
Figure 200.Updating the ADC calibration factor1463
Figure 201.Mixing single-ended and differential channels1464
Figure 202.Enabling / disabling the ADC1465
Figure 203.Bulb mode timing diagram1468
Figure 204.Analog-to-digital conversion time1471
Figure 205. Stopping ongoing regular conversions . . . . .1472
Figure 206. Stopping ongoing regular and injected conversions . . . . .1473
Figure 207. Trigger selection . . . . .1474
Figure 208. Injected conversion latency . . . . .1476
Figure 209. Example of ADC_JSQR queue of context (sequence change) . . . . .1479
Figure 210. Example of ADC_JSQR queue of context (trigger change) . . . . .1479
Figure 211. Example of ADC_JSQR queue of context with overflow before conversion. . . . .1480
Figure 212. Example of ADC_JSQR queue of context with overflow during conversion . . . . .1480
Figure 213. Example of ADC_JSQR queue of context with empty queue (case JQM = 0) . . . . .1481
Figure 214. Example of ADC_JSQR queue of context with empty queue (JQM = 1) . . . . .1482
Figure 215. Flushing ADC_JSQR queue of context by setting JADSTP = 1 (JQM = 0) -
JADSTP occurs during an ongoing conversion. . . . .
1482
Figure 216. Flushing ADC_JSQR queue of context by setting JADSTP = 1 (JQM = 0) -
JADSTP occurs during an ongoing conversion and a new
trigger occurs . . . . .
1483
Figure 217. Flushing ADC_JSQR queue of context by setting JADSTP = 1 (JQM = 0) -
JADSTP occurs outside an ongoing conversion. . . . .
1483
Figure 218. Flushing ADC_JSQR queue of context by setting JADSTP = 1 (JQM = 1) . . . . .1484
Figure 219. Flushing ADC_JSQR queue of context by setting ADDIS = 1 (JQM = 0) . . . . .1484
Figure 220. Flushing ADC_JSQR queue of context by setting ADDIS = 1 (JQM = 1) . . . . .1485
Figure 221. Single conversions of a sequence, software trigger . . . . .1487
Figure 222. Continuous conversion of a sequence, software trigger. . . . .1487
Figure 223. Single conversions of a sequence, hardware trigger . . . . .1488
Figure 224. Continuous conversions of a sequence, hardware trigger . . . . .1488
Figure 225. Right alignment (offset disabled, unsigned value) . . . . .1490
Figure 226. Right alignment (offset enabled, signed value). . . . .1491
Figure 227. Left alignment (offset disabled, unsigned value) . . . . .1491
Figure 228. Left alignment (offset enabled, signed value). . . . .1492
Figure 229. Example of overrun (OVRMOD = 0). . . . .1493
Figure 230. Example of overrun (OVRMOD = 1). . . . .1494
Figure 231. AUTODLY = 1, regular conversion in continuous mode, software trigger . . . . .1497
Figure 232. AUTODLY = 1, regular HW conversions interrupted by injected conversions
(DISCEN = 0; JDISCEN = 0) . . . . .
1498
Figure 233. AUTODLY = 1, regular HW conversions interrupted by injected conversions . . . . .
(DISCEN = 1, JDISCEN = 1) . . . . .
1499
Figure 234. AUTODLY = 1, regular continuous conversions interrupted by injected conversions . . . . .1500
Figure 235. AUTODLY = 1 in auto- injected mode (JAUTO = 1) . . . . .1500
Figure 236. Analog watchdog guarded area . . . . .1501
Figure 237. ADCy_AWDx_OUT signal generation (on all regular channels). . . . .1503
Figure 238. ADCy_AWDx_OUT signal generation (AWDx flag not cleared by software) . . . . .1504
Figure 239. ADCy_AWDx_OUT signal generation (on a single regular channel) . . . . .1504
Figure 240. ADCy_AWDx_OUT signal generation (on all injected channels) . . . . .1504
Figure 241. 20-bit to 16-bit result truncation . . . . .1506
Figure 242. Numerical example with 5-bit shift and rounding . . . . .1506
Figure 243. Triggered regular oversampling mode (TROVS bit = 1) . . . . .1508
Figure 244. Regular oversampling modes (4x ratio) . . . . .1509
Figure 245. Regular and injected oversampling modes used simultaneously . . . . .1510
Figure 246. Triggered regular oversampling with injection . . . . .1510
Figure 247. Oversampling in auto-injected mode . . . . .1511
Figure 248. Temperature sensor channel block diagram . . . . .1512
Figure 249. VBAT channel block diagram . . . . .1513
Figure 250. VREFINT channel block diagram . . . . .1514
Figure 251. Temperature sensor functional block diagram1555
Figure 252. Method for low REF_CLK frequencies1557
Figure 253. Method for high REF_CLK frequencies1557
Figure 254. Temperature sensor sequence1560
Figure 255. VREFBUF block diagram1572
Figure 256. Single DFSDM block diagram1579
Figure 257. Input channel pins redirection1583
Figure 258. Channel transceiver timing diagrams1586
Figure 259. Clock absence timing diagram for SPI1587
Figure 260. Clock absence timing diagram for Manchester coding1588
Figure 261. First conversion for Manchester coding (Manchester synchronization)1590
Figure 262. DFSDM_CHyDATINR registers operation modes and assignment1594
Figure 263. Example: Sinc3 filter response1596
Figure 264. DCMIPP overview1634
Figure 265. DCMIPP block diagram1637
Figure 266. Snapshot (CPTMODE = 1) and Continuous (CPTMODE = 0) capture modes1647
Figure 267. Pipe0 (dump) architecture overview1650
Figure 268. LTDC block diagram1702
Figure 269. Layer window programmable parameters1713
Figure 270. Blending two layers1714
Figure 271. LTDC synchronous timings1718
Figure 272. RNG block diagram1763
Figure 273. NIST SP800-90B entropy source model1764
Figure 274. RNG initialization overview1767
Figure 275. SAES block diagram1783
Figure 276. ECB encryption and decryption principle1785
Figure 277. CBC encryption and decryption principle1786
Figure 278. CTR encryption and decryption principle1787
Figure 279. GCM encryption and authentication principle1788
Figure 280. GMAC authentication principle1788
Figure 281. CCM encryption and authentication principle1789
Figure 282. Example of suspend mode management1794
Figure 283. ECB encryption1794
Figure 284. ECB decryption1795
Figure 285. CBC encryption1795
Figure 286. CBC decryption1796
Figure 287. ECB/CBC encryption (Mode 1)1797
Figure 288. ECB/CBC decryption (Mode 3)1798
Figure 289. Message construction in CTR mode1799
Figure 290. CTR encryption1800
Figure 291. CTR decryption1800
Figure 292. Message construction in GCM1802
Figure 293. GCM authenticated encryption1803
Figure 294. Message construction in GMAC mode1806
Figure 295. GMAC authentication mode1807
Figure 296. Message construction in CCM mode1808
Figure 297. CCM mode authenticated encryption1809
Figure 298. Operation with wrapped keys in ECB and CBC modes1813
Figure 299. Operation with wrapped keys in CTR mode1815
Figure 300. Usage of Shared-key mode1817
Figure 301. 128-bit block construction with respect to data swap1819
Figure 302. Key protection mechanisms1821
Figure 303. DMA transfer of a 128-bit data block during input phase .....1822
Figure 304. DMA transfer of a 128-bit data block during output phase .....1823
Figure 305. CRYP block diagram .....1847
Figure 306. AES-ECB mode overview .....1850
Figure 307. AES-CBC mode overview .....1851
Figure 308. AES-CTR mode overview .....1852
Figure 309. AES-GCM mode overview .....1853
Figure 310. AES-GMAC mode overview .....1853
Figure 311. AES-CCM mode overview .....1854
Figure 312. Example of suspend mode management .....1859
Figure 313. DES/TDES-ECB mode encryption .....1860
Figure 314. DES/TDES-ECB mode decryption .....1861
Figure 315. DES/TDES-CBC mode encryption .....1862
Figure 316. DES/TDES-CBC mode decryption .....1863
Figure 317. AES-ECB mode encryption .....1865
Figure 318. AES-ECB mode decryption .....1866
Figure 319. AES-CBC mode encryption .....1867
Figure 320. AES-CBC mode decryption .....1868
Figure 321. Message construction for the Counter mode .....1870
Figure 322. AES-CTR mode encryption .....1871
Figure 323. AES-CTR mode decryption .....1872
Figure 324. Message construction for the Galois/counter mode .....1874
Figure 325. Message construction for the Galois Message Authentication Code mode .....1879
Figure 326. Message construction for the Counter with CBC-MAC mode .....1880
Figure 327. 64-bit block construction according to the data type (IN FIFO) .....1888
Figure 328. 128-bit block construction according to the data type .....1890
Figure 329. HASH block diagram .....1918
Figure 330. Message data swapping feature .....1921
Figure 331. HASH suspend/resume mechanism .....1927
Figure 332. PKA block diagram .....1944
Figure 333. MCE block diagram .....1979
Figure 334. MCE implementation of block ciphers .....1980
Figure 335. Advanced-control timer block diagram .....1992
Figure 336. Counter timing diagram with prescaler division change from 1 to 2 .....1994
Figure 337. Counter timing diagram with prescaler division change from 1 to 4 .....1994
Figure 338. Counter timing diagram, internal clock divided by 1 .....1996
Figure 339. Counter timing diagram, internal clock divided by 2 .....1996
Figure 340. Counter timing diagram, internal clock divided by 4 .....1997
Figure 341. Counter timing diagram, internal clock divided by N .....1997
Figure 342. Counter timing diagram, update event when ARPE=0 (TIMx_ARR not preloaded) .....1998
Figure 343. Counter timing diagram, update event when ARPE=1 (TIMx_ARR preloaded) .....1998
Figure 344. Counter timing diagram, internal clock divided by 1 .....2000
Figure 345. Counter timing diagram, internal clock divided by 2 .....2000
Figure 346. Counter timing diagram, internal clock divided by 4 .....2001
Figure 347. Counter timing diagram, internal clock divided by N .....2001
Figure 348. Counter timing diagram, update event when repetition counter is not used .....2002
Figure 349. Counter timing diagram, internal clock divided by 1, TIMx_ARR = 0x6 .....2003
Figure 350. Counter timing diagram, internal clock divided by 2 .....2004
Figure 351. Counter timing diagram, internal clock divided by 4, TIMx_ARR=0x36 .....2004
Figure 352. Counter timing diagram, internal clock divided by N .....2005
Figure 353. Counter timing diagram, update event with ARPE=1 (counter underflow) .....2005
Figure 354. Counter timing diagram, Update event with ARPE=1 (counter overflow) .....2006
Figure 355.Update rate examples depending on mode and TIMx_RCR register settings2007
Figure 356.External trigger input block2008
Figure 357.TIM1/TIM8 ETR input circuitry2008
Figure 358.Control circuit in normal mode, internal clock divided by 12009
Figure 359.TI2 external clock connection example2010
Figure 360.Control circuit in external clock mode 12011
Figure 361.External trigger input block2011
Figure 362.Control circuit in external clock mode 22012
Figure 363.Capture/compare channel (example: channel 1 input stage)2013
Figure 364.Capture/compare channel 1 main circuit2013
Figure 365.Output stage of capture/compare channel (channel 1, idem ch. 2 and 3)2014
Figure 366.Output stage of capture/compare channel (channel 4)2014
Figure 367.Output stage of capture/compare channel (channel 5, idem ch. 6)2015
Figure 368.PWM input mode timing2017
Figure 369.Output compare mode, toggle on OC12019
Figure 370.Edge-aligned PWM waveforms (ARR=8)2020
Figure 371.Center-aligned PWM waveforms (ARR=8)2021
Figure 372.Generation of 2 phase-shifted PWM signals with 50% duty cycle2023
Figure 373.Combined PWM mode on channel 1 and 32024
Figure 374.3-phase combined PWM signals with multiple trigger pulses per period2025
Figure 375.Complementary output with dead-time insertion2026
Figure 376.Dead-time waveforms with delay greater than the negative pulse2026
Figure 377.Dead-time waveforms with delay greater than the positive pulse2027
Figure 378.Break and Break2 circuitry overview2029
Figure 379.Various output behavior in response to a break event on BRK (OSSI = 1)2031
Figure 380.PWM output state following BRK and BRK2 pins assertion (OSSI=1)2032
Figure 381.PWM output state following BRK assertion (OSSI=0)2033
Figure 382.Output redirection (BRK2 request not represented)2034
Figure 383.Clearing TIMx OCxREF2035
Figure 384.6-step generation, COM example (OSSR=1)2036
Figure 385.Example of one pulse mode2037
Figure 386.Retriggerable one pulse mode2039
Figure 387.Example of counter operation in encoder interface mode2040
Figure 388.Example of encoder interface mode with TI1FP1 polarity inverted2041
Figure 389.Measuring time interval between edges on 3 signals2042
Figure 390.Example of Hall sensor interface2044
Figure 391.Control circuit in reset mode2045
Figure 392.Control circuit in Gated mode2046
Figure 393.Control circuit in trigger mode2047
Figure 394.Control circuit in external clock mode 2 + trigger mode2048
Figure 395.General-purpose timer block diagram2095
Figure 396.Counter timing diagram with prescaler division change from 1 to 22097
Figure 397.Counter timing diagram with prescaler division change from 1 to 42097
Figure 398.Counter timing diagram, internal clock divided by 12098
Figure 399.Counter timing diagram, internal clock divided by 22099
Figure 400.Counter timing diagram, internal clock divided by 42099
Figure 401.Counter timing diagram, internal clock divided by N2100
Figure 402.Counter timing diagram, Update event when ARPE=0 (TIMx_ARR not preloaded)2100
Figure 403.Counter timing diagram, Update event when ARPE=1 (TIMx_ARR preloaded)2101
Figure 404.Counter timing diagram, internal clock divided by 12102
Figure 405.Counter timing diagram, internal clock divided by 22102
Figure 406.Counter timing diagram, internal clock divided by 42103
Figure 407. Counter timing diagram, internal clock divided by N2103
Figure 408. Counter timing diagram, Update event2104
Figure 409. Counter timing diagram, internal clock divided by 1, TIMx_ARR=0x62105
Figure 410. Counter timing diagram, internal clock divided by 22106
Figure 411. Counter timing diagram, internal clock divided by 4, TIMx_ARR=0x362106
Figure 412. Counter timing diagram, internal clock divided by N2107
Figure 413. Counter timing diagram, Update event with ARPE=1 (counter underflow)2107
Figure 414. Counter timing diagram, Update event with ARPE=1 (counter overflow)2108
Figure 415. Control circuit in normal mode, internal clock divided by 12109
Figure 416. TI2 external clock connection example2109
Figure 417. Control circuit in external clock mode 12110
Figure 418. External trigger input block2111
Figure 419. Control circuit in external clock mode 22112
Figure 420. Capture/Compare channel (example: channel 1 input stage)2112
Figure 421. Capture/Compare channel 1 main circuit2113
Figure 422. Output stage of Capture/Compare channel (channel 1)2113
Figure 423. PWM input mode timing2115
Figure 424. Output compare mode, toggle on OC12117
Figure 425. Edge-aligned PWM waveforms (ARR=8)2118
Figure 426. Center-aligned PWM waveforms (ARR=8)2119
Figure 427. Generation of 2 phase-shifted PWM signals with 50% duty cycle2120
Figure 428. Combined PWM mode on channels 1 and 32122
Figure 429. Clearing TIMx OCxREF2123
Figure 430. Example of one-pulse mode2124
Figure 431. Retriggerable one-pulse mode2126
Figure 432. Example of counter operation in encoder interface mode2127
Figure 433. Example of encoder interface mode with TI1FP1 polarity inverted2128
Figure 434. Control circuit in reset mode2129
Figure 435. Control circuit in gated mode2130
Figure 436. Control circuit in trigger mode2131
Figure 437. Control circuit in external clock mode 2 + trigger mode2132
Figure 438. Master/Slave timer example2133
Figure 439. Master/slave connection example with 1 channel only timers2133
Figure 440. Gating TIM2 with OC1REF of TIM32134
Figure 441. Gating TIM2 with Enable of TIM32135
Figure 442. Triggering TIM2 with update of TIM32136
Figure 443. Triggering TIM2 with Enable of TIM32136
Figure 444. Triggering TIM3 and TIM2 with TIM3 TI1 input2137
Figure 445. General-purpose timer block diagram (TIM12)2170
Figure 446. General-purpose timer block diagram (TIM13/TIM14)2171
Figure 447. Counter timing diagram with prescaler division change from 1 to 22173
Figure 448. Counter timing diagram with prescaler division change from 1 to 42173
Figure 449. Counter timing diagram, internal clock divided by 12174
Figure 450. Counter timing diagram, internal clock divided by 22175
Figure 451. Counter timing diagram, internal clock divided by 42175
Figure 452. Counter timing diagram, internal clock divided by N2176
Figure 453. Counter timing diagram, update event when ARPE=0 (TIMx_ARR not preloaded)2176
Figure 454. Counter timing diagram, update event when ARPE=1 (TIMx_ARR preloaded)2177
Figure 455. Control circuit in normal mode, internal clock divided by 12178
Figure 456. TI2 external clock connection example2178
Figure 457. Control circuit in external clock mode 1 .....2179
Figure 458. Capture/compare channel (example: channel 1 input stage) .....2180
Figure 459. Capture/compare channel 1 main circuit .....2180
Figure 460. Output stage of capture/compare channel (channel 1) .....2181
Figure 461. PWM input mode timing .....2183
Figure 462. Output compare mode, toggle on OC1 .....2185
Figure 463. Edge-aligned PWM waveforms (ARR=8) .....2186
Figure 464. Combined PWM mode on channel 1 and 2 .....2187
Figure 465. Example of one pulse mode .....2188
Figure 466. Retriggerable one pulse mode .....2189
Figure 467. Measuring time interval between edges on 2 signals .....2190
Figure 468. Control circuit in reset mode .....2191
Figure 469. Control circuit in gated mode .....2192
Figure 470. Control circuit in trigger mode .....2192
Figure 471. TIM15 block diagram .....2224
Figure 472. TIM16/TIM17 block diagram .....2225
Figure 473. Counter timing diagram with prescaler division change from 1 to 2 .....2227
Figure 474. Counter timing diagram with prescaler division change from 1 to 4 .....2227
Figure 475. Counter timing diagram, internal clock divided by 1 .....2229
Figure 476. Counter timing diagram, internal clock divided by 2 .....2229
Figure 477. Counter timing diagram, internal clock divided by 4 .....2230
Figure 478. Counter timing diagram, internal clock divided by N .....2230
Figure 479. Counter timing diagram, update event when ARPE=0 (TIMx_ARR not
preloaded) .....
2231
Figure 480. Counter timing diagram, update event when ARPE=1 (TIMx_ARR
preloaded) .....
2231
Figure 481. Update rate examples depending on mode and TIMx_RCR register settings .....2233
Figure 482. Control circuit in normal mode, internal clock divided by 1 .....2234
Figure 483. TI2 external clock connection example .....2234
Figure 484. Control circuit in external clock mode 1 .....2235
Figure 485. Capture/compare channel (example: channel 1 input stage) .....2236
Figure 486. Capture/compare channel 1 main circuit .....2236
Figure 487. Output stage of capture/compare channel (channel 1) .....2237
Figure 488. Output stage of capture/compare channel (channel 2 for TIM15) .....2237
Figure 489. PWM input mode timing .....2239
Figure 490. Output compare mode, toggle on OC1 .....2241
Figure 491. Edge-aligned PWM waveforms (ARR=8) .....2242
Figure 492. Combined PWM mode on channel 1 and 2 .....2243
Figure 493. Complementary output with dead-time insertion .....2244
Figure 494. Dead-time waveforms with delay greater than the negative pulse .....2244
Figure 495. Dead-time waveforms with delay greater than the positive pulse .....2245
Figure 496. Break circuitry overview .....2247
Figure 497. Output behavior in response to a break .....2249
Figure 498. Output redirection .....2251
Figure 499. 6-step generation, COM example (OSSR=1) .....2252
Figure 500. Example of one pulse mode .....2253
Figure 501. Retriggerable one pulse mode .....2255
Figure 502. Measuring time interval between edges on 2 signals .....2256
Figure 503. Control circuit in reset mode .....2257
Figure 504. Control circuit in gated mode .....2258
Figure 505. Control circuit in trigger mode .....2259
Figure 506. Basic timer block diagram .....2309
Figure 507. Counter timing diagram with prescaler division change from 1 to 2 . . . . .2311
Figure 508. Counter timing diagram with prescaler division change from 1 to 4 . . . . .2311
Figure 509. Counter timing diagram, internal clock divided by 1 . . . . .2312
Figure 510. Counter timing diagram, internal clock divided by 2 . . . . .2313
Figure 511. Counter timing diagram, internal clock divided by 4 . . . . .2313
Figure 512. Counter timing diagram, internal clock divided by N . . . . .2314
Figure 513. Counter timing diagram, update event when ARPE = 0 (TIMx_ARR not
preloaded) . . . . .
2314
Figure 514. Counter timing diagram, update event when ARPE=1 (TIMx_ARR
preloaded) . . . . .
2315
Figure 515. Control circuit in normal mode, internal clock divided by 1 . . . . .2316
Figure 516. Low-power timer block diagram (LPTIM1 and LPTIM2) . . . . .2323
Figure 517. Low-power timer block diagram (LPTIM3) . . . . .2324
Figure 518. Low-power timer block diagram (LPTIM4 and LPTIM5) . . . . .2324
Figure 519. Glitch filter timing diagram . . . . .2329
Figure 520. LPTIM output waveform, single counting mode configuration . . . . .2331
Figure 521. LPTIM output waveform, Single counting mode configuration
and Set-once mode activated (WAVE bit is set) . . . . .
2331
Figure 522. LPTIM output waveform, Continuous counting mode configuration . . . . .2332
Figure 523. Waveform generation . . . . .2333
Figure 524. Encoder mode counting sequence . . . . .2337
Figure 525. STGEN block diagram . . . . .2354
Figure 526. Independent watchdog block diagram . . . . .2371
Figure 527. Reset timing due to timeout . . . . .2373
Figure 528. Reset timing due to refresh in the not allowed area . . . . .2374
Figure 529. Changing PR, RL, and performing a refresh(1) . . . . .2375
Figure 530. Independent watchdog interrupt timing diagram . . . . .2377
Figure 531. RTC block diagram . . . . .2389
Figure 532. TAMP block diagram . . . . .2449
Figure 533. Backup registers protection zones . . . . .2454
Figure 534. Tamper sampling with precharge pulse . . . . .2459
Figure 535. Low level detection with precharge and filtering . . . . .2459
Figure 536. Active tamper filtering . . . . .2461
Figure 537. Block diagram . . . . .2504
Figure 538. I2C-bus protocol . . . . .2506
Figure 539. Setup and hold timings . . . . .2508
Figure 540. I2C initialization flow . . . . .2510
Figure 541. Data reception . . . . .2511
Figure 542. Data transmission . . . . .2512
Figure 543. Target initialization flow . . . . .2515
Figure 544. Transfer sequence flow for I2C target transmitter, NOSTRETCH = 0 . . . . .2517
Figure 545. Transfer sequence flow for I2C target transmitter, NOSTRETCH = 1 . . . . .2518
Figure 546. Transfer bus diagrams for I2C target transmitter (mandatory events only) . . . . .2519
Figure 547. Transfer sequence flow for I2C target receiver, NOSTRETCH = 0 . . . . .2520
Figure 548. Transfer sequence flow for I2C target receiver, NOSTRETCH = 1 . . . . .2521
Figure 549. Transfer bus diagrams for I2C target receiver
(mandatory events only) . . . . .
2521
Figure 550. Controller clock generation . . . . .2523
Figure 551. Controller initialization flow . . . . .2525
Figure 552. 10-bit address read access with HEAD10R = 0 . . . . .2525
Figure 553. 10-bit address read access with HEAD10R = 1 . . . . .2526
Figure 554. Transfer sequence flow for I2C controller transmitter, N ≤ 255 bytes . . . . .2527
Figure 555. Transfer sequence flow for I2C controller transmitter, N > 255 bytes. ....2528
Figure 556. Transfer bus diagrams for I2C controller transmitter
(mandatory events only) .....
2529
Figure 557. Transfer sequence flow for I2C controller receiver, N ≤ 255 bytes .....2531
Figure 558. Transfer sequence flow for I2C controller receiver, N > 255 bytes. ....2532
Figure 559. Transfer bus diagrams for I2C controller receiver
(mandatory events only) .....
2533
Figure 560. Timeout intervals for \(t_{\text{LOW:SEXT}}\), \(t_{\text{LOW:MEXT}}\) .....2537
Figure 561. Transfer sequence flow for SMBus target transmitter N bytes + PEC .....2541
Figure 562. Transfer bus diagram for SMBus target transmitter (SBC = 1) .....2541
Figure 563. Transfer sequence flow for SMBus target receiver N bytes + PEC .....2543
Figure 564. Bus transfer diagrams for SMBus target receiver (SBC = 1) .....2544
Figure 565. Bus transfer diagrams for SMBus controller transmitter .....2545
Figure 566. Bus transfer diagrams for SMBus controller receiver .....2547
Figure 567. USART block diagram .....2571
Figure 568. Word length programming .....2575
Figure 569. Configurable stop bits .....2577
Figure 570. TC/TXE behavior when transmitting .....2580
Figure 571. Start bit detection when oversampling by 16 or 8 .....2581
Figure 572. usart_ker_ck clock divider block diagram .....2584
Figure 573. Data sampling when oversampling by 16 .....2585
Figure 574. Data sampling when oversampling by 8 .....2586
Figure 575. Mute mode using Idle line detection .....2593
Figure 576. Mute mode using address mark detection .....2594
Figure 577. Break detection in LIN mode (11-bit break length - LBDL bit is set) .....2597
Figure 578. Break detection in LIN mode vs. Framing error detection .....2598
Figure 579. USART example of synchronous master transmission .....2599
Figure 580. USART data clock timing diagram in synchronous master mode
(M bits = 00) .....
2599
Figure 581. USART data clock timing diagram in synchronous master mode
(M bits = 01) .....
2600
Figure 582. USART data clock timing diagram in synchronous slave mode
(M bits = 00) .....
2601
Figure 583. ISO 7816-3 asynchronous protocol .....2603
Figure 584. Parity error detection using the 1.5 stop bits .....2605
Figure 585. IrDA SIR ENDEC block diagram .....2609
Figure 586. IrDA data modulation (3/16) - normal mode .....2609
Figure 587. Transmission using DMA .....2611
Figure 588. Reception using DMA .....2612
Figure 589. Hardware flow control between 2 USARTs .....2612
Figure 590. RS232 RTS flow control .....2613
Figure 591. RS232 CTS flow control .....2614
Figure 592. Wake-up event verified (wake-up event = address match, FIFO disabled) .....2617
Figure 593. Wake-up event not verified (wake-up event = address match,
FIFO disabled) .....
2617
Figure 594. SPI2S block diagram .....2660
Figure 595. Full-duplex single master/ single slave application .....2662
Figure 596. Half-duplex single master/ single slave application .....2663
Figure 597. Simplex single master/single slave application (master in transmit-only/
slave in receive-only mode) .....
2664
Figure 598. Master and three independent slaves at star topology .....2665
Figure 599. Master and three slaves at circular (daisy chain) topology .....2666
Figure 600. Multimaster application . . . . .2667
Figure 601. Scheme of slave select control logic . . . . .2669
Figure 602. Data flow timing control (SSOE=1, SSOM=0, SSM=0) . . . . .2669
Figure 603. NSS interleaving pulses between data (SSOE=1, SSOM=1, SSM=0) . . . . .2670
Figure 604. Data clock timing diagram . . . . .2672
Figure 605. Data alignment when data size is not equal to 8-bit, 16-bit or 32-bit . . . . .2673
Figure 606. Packing data in FIFO for transmission and reception . . . . .2681
Figure 607. TI mode transfer . . . . .2683
Figure 608. Optional configurations of slave behavior at detection of underrun condition . . . . .2685
Figure 609. Low-power mode application example . . . . .2689
Figure 610. Waveform examples . . . . .2696
Figure 611. Master I2S Philips protocol waveforms (16/32-bit full accuracy) . . . . .2697
Figure 612. I2S Philips standard waveforms . . . . .2697
Figure 613. Master MSB Justified 16-bit or 32-bit full-accuracy length . . . . .2698
Figure 614. Master MSB justified 16 or 24-bit data length . . . . .2698
Figure 615. Slave MSB justified . . . . .2699
Figure 616. LSB justified 16 or 24-bit data length . . . . .2699
Figure 617. Master PCM when the frame length is equal the data length . . . . .2700
Figure 618. Master PCM standard waveforms (16 or 24-bit data length) . . . . .2700
Figure 619. Slave PCM waveforms . . . . .2701
Figure 620. Startup sequence, I2S Philips standard, master . . . . .2704
Figure 621. Startup sequence, I2S Philips standard, slave . . . . .2704
Figure 622. Stop sequence, I2S Philips standard, master . . . . .2705
Figure 623. I2S clock generator architecture . . . . .2706
Figure 624. Data Format . . . . .2708
Figure 625. Handling of underrun situation . . . . .2710
Figure 626. Handling of overrun situation . . . . .2711
Figure 627. Frame error detection, with FIXCH=0 . . . . .2712
Figure 628. Frame error detection, with FIXCH=1 . . . . .2712
Figure 629. SAI functional block diagram . . . . .2741
Figure 630. Audio frame . . . . .2745
Figure 631. FS role is start of frame + channel side identification (FSDEF = TRIS = 1) . . . . .2747
Figure 632. FS role is start of frame (FSDEF = 0) . . . . .2748
Figure 633. Slot size configuration with FBOFF = 0 in SAI_xSLOTR . . . . .2749
Figure 634. First bit offset . . . . .2749
Figure 635. Audio block clock generator overview . . . . .2751
Figure 636. PDM typical connection and timing . . . . .2755
Figure 637. Detailed PDM interface block diagram . . . . .2756
Figure 638. Start-up sequence . . . . .2757
Figure 639. SAI_ADR format in TDM mode, 32-bit slot width . . . . .2758
Figure 640. SAI_ADR format in TDM mode, 16-bit slot width . . . . .2759
Figure 641. SAI_ADR format in TDM mode, 8-bit slot width . . . . .2760
Figure 642. AC'97 audio frame . . . . .2763
Figure 643. Example of typical AC'97 configuration on devices featuring at least
two embedded SAIs (three external AC'97 decoders) . . . . .
2764
Figure 644. SPDIF format . . . . .2765
Figure 645. SAI_xDR register ordering . . . . .2766
Figure 646. Data companding hardware in an audio block in the SAI . . . . .2769
Figure 647. Tristate strategy on SD output line on an inactive slot . . . . .2771
Figure 648. Tristate on output data line in a protocol like I2S . . . . .2772
Figure 649. Overrun detection error . . . . .2773
Figure 650. FIFO underrun event . . . . .2773
Figure 651. SPDIFRX block diagram .....2811
Figure 652. S/PDIF sub-frame format .....2812
Figure 653. S/PDIF block format .....2813
Figure 654. S/PDIF preambles .....2813
Figure 655. Channel coding example .....2814
Figure 656. SPDIFRX decoder .....2815
Figure 657. Noise filtering and edge detection .....2815
Figure 658. Thresholds .....2817
Figure 659. Synchronization flowchart .....2819
Figure 660. Synchronization process scheduling .....2820
Figure 661. SPDIFRX states .....2821
Figure 662. SPDIFRX_FMTx_DR register format .....2823
Figure 663. Channel/user data format .....2824
Figure 664. S/PDIF overrun error when RXSTEO = 0 .....2826
Figure 665. S/PDIF overrun error when RXSTEO = 1 .....2827
Figure 666. SPDIFRX interface interrupt mapping diagram .....2830
Figure 667. CAN subsystem .....2848
Figure 668. FDCAN block diagram .....2850
Figure 669. Transceiver delay measurement .....2855
Figure 670. Pin control in bus monitoring mode .....2857
Figure 671. Pin control in loop back mode .....2859
Figure 672. CAN error state diagram .....2860
Figure 673. Message RAM configuration .....2861
Figure 674. Standard message ID filter path .....2864
Figure 675. Extended message ID filter path .....2865
Figure 676. Example of mixed configuration dedicated Tx buffers / Tx FIFO .....2871
Figure 677. Example of mixed configuration dedicated Tx buffers / Tx queue .....2871
Figure 678. Bit timing .....2873
Figure 679. Bypass operation .....2875
Figure 680. FSM calibration .....2876
Figure 681. Cycle time and global time synchronization .....2891
Figure 682. TTCAN level 0 and level 2 drift compensation .....2892
Figure 683. Level 0 schedule synchronization state machine .....2899
Figure 684. Level 0 master to slave relation .....2900
Figure 685. OTG high-speed block diagram .....2981
Figure 686. OTG A-B device connection .....2983
Figure 687. OTG peripheral-only connection .....2985
Figure 688. OTG host-only connection .....2989
Figure 689. SOF connectivity (SOF trigger output to TIM and ITRx connection) .....2993
Figure 690. Updating OTG_HFIR dynamically (RLDCTRL = 1) .....2995
Figure 691. Device-mode FIFO address mapping and AHB FIFO access mapping .....2997
Figure 692. Host-mode FIFO address mapping and AHB FIFO access mapping .....2998
Figure 693. Interrupt hierarchy .....3002
Figure 694. Transmit FIFO write task .....3100
Figure 695. Receive FIFO read task .....3101
Figure 696. Normal bulk/control OUT/SETUP .....3102
Figure 697. Bulk/control IN transactions .....3106
Figure 698. Normal interrupt OUT .....3109
Figure 699. Normal interrupt IN .....3114
Figure 700. Isochronous OUT transactions .....3116
Figure 701. Isochronous IN transactions .....3119
Figure 702. Normal bulk/control OUT/SETUP transactions - DMA .....3121
Figure 703. Normal bulk/control IN transaction - DMA. . . . .3123
Figure 704. Normal interrupt OUT transactions - DMA mode . . . . .3124
Figure 705. Normal interrupt IN transactions - DMA mode . . . . .3125
Figure 706. Normal isochronous OUT transaction - DMA mode . . . . .3126
Figure 707. Normal isochronous IN transactions - DMA mode . . . . .3127
Figure 708. Receive FIFO packet read . . . . .3133
Figure 709. Processing a SETUP packet . . . . .3135
Figure 710. Bulk OUT transaction . . . . .3142
Figure 711. TRDT max timing case . . . . .3152
Figure 712. A-device SRP . . . . .3153
Figure 713. B-device SRP . . . . .3154
Figure 714. A-device HNP . . . . .3155
Figure 715. B-device HNP . . . . .3157
Figure 716. USBPHYC block diagram . . . . .3160
Figure 717. USBH block diagram . . . . .3172
Figure 718. High-level Ethernet block diagram . . . . .3194
Figure 719. DMA transmission flow (standard mode) . . . . .3196
Figure 720. DMA transmission flow (OSP mode) . . . . .3198
Figure 721. Receive DMA flow . . . . .3200
Figure 722. Overview of MAC transmission flow . . . . .3203
Figure 723. MAC reception flow . . . . .3205
Figure 724. Packet filtering sequence . . . . .3213
Figure 725. Networked time synchronization . . . . .3222
Figure 726. Propagation delay calculation in clocks supporting
peer-to-peer path correction . . . . .
3223
Figure 727. System time update using fine correction method . . . . .3233
Figure 728. TCP segmentation offload overview . . . . .3250
Figure 729. TCP segmentation offload flow . . . . .3251
Figure 730. Header and payload fields of segmented packets . . . . .3254
Figure 731. Supported PHY interfaces . . . . .3263
Figure 732. SMA Interface block . . . . .3264
Figure 733. MDIO packet structure (Clause 45) . . . . .3264
Figure 734. MDIO packet structure (Clause 22) . . . . .3265
Figure 735. SMA write operation flow . . . . .3267
Figure 736. Write data packet . . . . .3268
Figure 737. Read data packet . . . . .3268
Figure 738. Media independent interface (MII) signals . . . . .3270
Figure 739. RMII block diagram . . . . .3272
Figure 740. Transmission bit order . . . . .3273
Figure 741. Receive bit order . . . . .3274
Figure 742. RGMII block diagram and interface signals . . . . .3275
Figure 743. LPI transitions (Transmit, 100 Mbds) . . . . .3284
Figure 744. LPI Tx clock gating (when LPITCSE = 1) . . . . .3285
Figure 745. LPI transitions (receive, 100 Mbit/s) . . . . .3286
Figure 746. Descriptor ring structure . . . . .3310
Figure 747. DMA descriptor ring . . . . .3312
Figure 748. Descriptor tail pointer example 1 . . . . .3312
Figure 749. Descriptor tail pointer example 2 . . . . .3313
Figure 750. Transmit descriptor (read format) . . . . .3314
Figure 751. Transmit descriptor write-back format . . . . .3319
Figure 752. Transmit context descriptor format . . . . .3323
Figure 753. Receive normal descriptor (read format) . . . . .3327
Figure 754. Receive normal descriptor (write-back format) . . . . .3329
Figure 755. Receive context descriptor . . . . .3336
Figure 756. Generation of ETH_DMAISR flags . . . . .3355
Figure 757. Hardware debug port block diagram. . . . .3480
Figure 758. Block diagram of debug support infrastructure . . . . .3492
Figure 759. Debug clock domains . . . . .3493
Figure 760. JTAG TAP state machine . . . . .3498
Figure 761. SWD successful data transfer . . . . .3502
Figure 762. Debug and access port connections. . . . .3511
Figure 763. Debug APB CoreSight™ topology . . . . .3525
Figure 764. CoreSight™ timestamp distribution . . . . .3531
Figure 765. Embedded cross trigger . . . . .3539
Figure 766. Mapping trigger inputs to outputs . . . . .3541