40. Universal serial bus full-speed host/device interface (USB) . . . . . 1621

40.1Introduction . . . . .1621
40.2USB main features . . . . .1621
40.3USB implementation . . . . .1621
40.4USB functional description . . . . .1622
40.4.1USB block diagram . . . . .1622
40.4.2USB pins and internal signals . . . . .1622
40.4.3USB reset and clocks . . . . .1623
40.4.4General description and Device mode functionality . . . . .1623
40.4.5Description of USB blocks used in both Device and Host modes . . .1624
40.4.6Description of host frame scheduler (HFS) specific to Host mode . .1625
40.5Programming considerations for Device and Host modes . . . . .1626
40.5.1Generic USB Device programming . . . . .1626
40.5.2System and power-on reset . . . . .1626
40.5.3Double-buffered endpoints and usage in Device mode . . . . .1633
40.5.4Double buffered channels: usage in Host mode . . . . .1635
40.5.5Isochronous transfers in Device mode . . . . .1636
40.5.6Isochronous transfers in Host mode . . . . .1637
40.5.7Suspend/resume events . . . . .1638
40.6USB registers . . . . .1642
40.6.1USB control register (USB_CNTR) . . . . .1642
40.6.2USB interrupt status register (USB_ISTR) . . . . .1645
40.6.3USB frame number register (USB_FNR) . . . . .1649
40.6.4USB Device address (USB_DADDR) . . . . .1649
40.6.5USB LPM control and status register (USB_LPMCSR) . . . . .1650
40.6.6USB battery charging detector (USB_BCDR) . . . . .1651
40.6.7USB endpoint/channel n register (USB_CHEPnR) . . . . .1652
40.6.8USB register map . . . . .1661
40.7USBSRAM registers . . . . .1662
40.7.1Channel/endpoint transmit buffer descriptor n
(USB_CHEP_TXRXBD_n) . . . . .
1663
40.7.2Channel/endpoint receive buffer descriptor n [alternate]
(USB_CHEP_TXRXBD_n) . . . . .
1663
40.7.3Channel/endpoint receive buffer descriptor n
(USB_CHEP_RXTXBD_n) . . . . .
1665
40.7.4Channel/endpoint transmit buffer descriptor n [alternate]
(USB_CHEP_RXTXBD_n) . . . . .
1666
40.7.5USBSRAM register map . . . . .1667
41Debug support (DBG) . . . . .1668
41.1Introduction . . . . .1668
41.2DBG functional description1669
41.2.1DBG block diagram1669
41.2.2DBG pins and internal signals1669
41.2.3DBG reset and clocks1670
41.2.4DBG power domains1670
41.2.5Debug and low-power modes1670
41.2.6Security1671
41.2.7Debug authentication1672
41.3Serial-wire and JTAG debug port (SWJ-DP)1673
41.3.1JTAG debug port1674
41.3.2Serial-wire debug port1676
41.3.3Debug port registers1677
41.3.4Debug port register map and reset values1684
41.4Access ports1685
41.4.1Access port registers1685
41.4.2Access port register map1692
41.5ROM tables1693
41.5.1System ROM table registers1696
41.5.2System ROM table register map1700
41.5.3MCU ROM table registers1701
41.5.4MCU ROM table register map1706
41.5.5Processor ROM table registers1707
41.5.6Processor ROM table register map1711
41.6Data watchpoint and trace unit (DWT)1712
41.6.1DWT registers1713
41.6.2DWT register map1727
41.7Instrumentation trace macrocell (ITM)1730
41.7.1ITM registers1731
41.7.2ITM register map1739
41.8Breakpoint unit (BPU)1741
41.8.1BPU registers1741
41.8.2BPU register map1747
41.9Embedded trace macrocell (ETM)1748
41.9.1ETM registers1749
41.9.2ETM register map1774
41.10Trace port interface unit (TPIU)1778
41.10.1TPIU registers .....1779
41.10.2TPIU register map .....1789
41.11Cross-trigger interface (CTI) .....1791
41.11.1CTI registers .....1792
41.11.2CTI register map .....1803
41.12Microcontroller debug unit (DBGMCU) .....1805
41.12.1Device ID .....1805
41.12.2Low-power mode emulation .....1805
41.12.3Peripheral clock freeze .....1806
41.12.4DBGMCU registers .....1807
41.12.5DBGMCU register map .....1820
41.13References .....1823
42Device electronic signature .....1824
42.1Unique device ID register (96 bits) .....1824
42.2Flash size data register .....1825
42.3Package data register .....1826
43Important security notice .....1827
44Revision history .....1828

List of tables

Table 1.Memory map and peripheral register boundary addresses .....72
Table 2.DMA channel use (privilege).....80
Table 3.Internal tampers in TAMP .....83
Table 4.Effect of low-power modes on TAMP .....85
Table 5.Main product life-cycle transitions.....86
Table 6.Typical product life-cycle phases .....87
Table 7.Software intellectual property protection with PRODUCT_STATE.....90
Table 8.STM32H503 boot modes .....91
Table 9.Internal SRAMs features.....93
Table 10.Effect of low-power modes on RAMCFG .....95
Table 11.RAMCFG interrupt requests .....96
Table 12.RAMCFG register map and reset values .....101
Table 13.GTZC implementation.....105
Table 14.GTZC features .....105
Table 15.GTZC1 subblock address offset .....106
Table 16.MPCWM resource assignment.....106
Table 17.MPCBB resource assignment.....106
Table 18.GTZC1 TZSC register map and reset values .....115
Table 19.GTZC1 MPCBBz register map and reset values (z = 1 to 2) .....116
Table 20.FLASH recommended number of wait states and programming delay .....123
Table 21.Flash memory OTP organization .....131
Table 22.Read-only public data organization .....132
Table 23.Flash memory read-only organization .....132
Table 24.memory map and the swapping option.....133
Table 25.Recommended reactions to FLASH_OPSR contents .....135
Table 26.Option-byte organization.....138
Table 27.Specific OB modifying rules overview.....142
Table 28.OB modifiable in closed product .....143
Table 29.HDP protected definition.....145
Table 30.Secure hide protection .....145
Table 31.HDP protections summary .....146
Table 32.Privilege protection summary .....147
Table 33.Privilege and mass or bank erase .....147
Table 34.Privilege configuration register access conditions .....147
Table 35.Flash interface register protection summary.....150
Table 36.Product states, debug states and debug policy .....150
Table 37.PRODUCT_STATE transitions .....152
Table 38.OTP/RO access constraints .....153
Table 39.C defined macro for RSS services .....153
Table 40.NSSlib interface function list.....153
Table 41.Effect of low-power modes on the embedded flash memory .....155
Table 42.Locating ECC failure.....160
Table 43.Flash interrupt request .....162
Table 44.Register map and reset value table .....188
Table 45.ICACHE features .....193
Table 46.TAG memory dimensioning parameters
for n-way set associative operating mode (default) .....
195
Table 47.TAG memory dimensioning parameters for direct-mapped cache mode .....196
Table 48.ICACHE cacheability for AHB transaction .....197
Table 49.ICACHE interrupts .....200
Table 50.ICACHE register map and reset values .....204
Table 51.PWR input/output pins .....206
Table 52.PWR internal input/output signals. ....206
Table 53.Analog switched recommended configuration .....210
Table 54.Low-power mode summary .....221
Table 55.Functionalities depending on the working mode. ....222
Table 56.Sleep mode. ....225
Table 57.Stop mode .....227
Table 58.Standby mode. ....230
Table 59.Power modes output states versus MCU power modes. ....231
Table 60.PWR privilege configuration summary .....231
Table 61.PWR interrupt requests .....232
Table 62.PWR register map and reset values .....244
Table 63.RCC input/output signals connected to package pins or balls .....246
Table 64.Reset source identification (RCC_RSR). ....249
Table 65.STOPWUCK and STOPKERWUCK description. ....263
Table 66.HSIKERON and CSIKERON behavior .....263
Table 67.Kernel clock distribution overview. ....266
Table 68.RCC privilege configuration summary .....270
Table 69.Interrupt sources and control .....273
Table 70.RCC register map and reset values .....326
Table 71.CRS features .....331
Table 72.CRS internal input/output signals .....332
Table 73.CRS interconnection. ....333
Table 74.Effect of low-power modes on CRS .....336
Table 75.Interrupt control bits .....336
Table 76.CRS register map and reset values .....341
Table 77.Port bit configuration. ....344
Table 78.GPIO register map and reset values .....359
Table 79.SBS internal input/output signals .....362
Table 80.HDPL encoded values .....365
Table 81.SBS boot logic .....366
Table 82.Debug authentication logic .....368
Table 83.SBS register map and reset values .....377
Table 84.Peripherals interconnect matrix .....379
Table 85.GPDMA1/2 channel implementation. ....393
Table 86.GPDMA1/2 wake-up in low-power modes .....393
Table 87.Programmed GPDMA1/2 request. ....393
Table 88.Programmed GPDMA1/2 request as a block request. ....398
Table 89.GPDMA1/2 channel with peripheral early termination .....398
Table 90.Programmed GPDMA1/2 request with peripheral early termination. ....398
Table 91.Programmed GPDMA1/2 trigger. ....398
Table 92.Programmed GPDMA source/destination burst .....419
Table 93.Programmed data handling .....424
Table 94.Effect of low-power modes on GPDMA .....436
Table 95.GPDMA interrupt requests .....437
Table 96.GPDMA register map and reset values .....463
Table 97.STM32H503xx vector table .....466
Table 98.EXTI pin overview. ....471
Table 99.EVG pin overview .....471
Table 100.EXTI line connections . . . . .472
Table 101.Masking functionality . . . . .475
Table 102.Register protection overview . . . . .475
Table 103.EXTI register map sections. . . . .476
Table 104.EXTI register map and reset values . . . . .494
Table 105.CRC internal input/output signals . . . . .497
Table 106.CRC register map and reset values . . . . .502
Table 107.ADC features . . . . .505
Table 108.ADC input/output pins. . . . .507
Table 109.ADC internal input/output signals . . . . .507
Table 110.ADC interconnection . . . . .507
Table 111.Configuring the trigger polarity for regular external triggers . . . . .526
Table 112.Configuring the trigger polarity for injected external triggers . . . . .527
Table 113.TSAR timings depending on resolution . . . . .539
Table 114.Offset computation versus data resolution . . . . .542
Table 115.Analog watchdog channel selection . . . . .553
Table 116.Analog watchdog 1 comparison . . . . .554
Table 117.Analog watchdog 2 and 3 comparison . . . . .555
Table 118.Maximum output results versus N and M (gray cells indicate truncation). . . . .558
Table 119.ADC interrupts . . . . .568
Table 120.ADC global register map. . . . .603
Table 121.ADC register map and reset values . . . . .603
Table 122.ADC register map and reset values (master and slave ADC
common registers) . . . . .
605
Table 123.DTS internal input/output signals . . . . .608
Table 124.Sampling time configuration . . . . .611
Table 125.Trigger configuration. . . . .612
Table 126.Temperature sensor behavior in low-power modes . . . . .614
Table 127.Interrupt control bits . . . . .615
Table 128.DTS register map and reset values . . . . .623
Table 129.DAC features . . . . .625
Table 130.DAC input/output pins. . . . .627
Table 131.DAC internal input/output signals . . . . .627
Table 132.DAC interconnection . . . . .628
Table 133.Data format (case of 12-bit data) . . . . .630
Table 134.HFSEL description . . . . .631
Table 135.Sample and refresh timings . . . . .636
Table 136.Channel output modes summary . . . . .638
Table 137.Effect of low-power modes on DAC . . . . .644
Table 138.DAC interrupts . . . . .644
Table 139.DAC register map and reset values . . . . .660
Table 140.COMP1 input/output internal signals . . . . .664
Table 141.COMP1 blanking source selection . . . . .665
Table 142.COMP1 noninverting input assignment . . . . .665
Table 143.COMP1 inverting input assignment . . . . .665
Table 144.COMP1 blanking source assignment . . . . .665
Table 145.Comparator behavior in low-power modes . . . . .668
Table 146.Interrupt through EXTI control bits . . . . .668
Table 147.Interrupt through NVIC control bits . . . . .669
Table 148.COMP register map and reset values. . . . .674
Table 149.Possible connections for OPAMP. . . . .676
Table 150.Operating modes and calibration . . . . .683
Table 151.Effect of low-power modes on the OPAMP685
Table 152.OPAMP register map and reset values688
Table 153.RNG internal input/output signals690
Table 154.RNG interrupt requests698
Table 155.RNG initialization times699
Table 156.RNG configurations699
Table 157.Configuration selection700
Table 158.RNG register map and reset map705
Table 159.HASH internal input/output signals707
Table 160.Information on supported hash algorithms708
Table 161.Hash processor outputs711
Table 162.Processing time (in clock cycle)716
Table 163.HASH interrupt requests717
Table 164.HASH1 register map and reset values725
Table 165.TIM input/output pins730
Table 166.TIM internal input/output signals730
Table 167.Interconnect to the tim_ti1 input multiplexer732
Table 168.Interconnect to the tim_ti2 input multiplexer732
Table 169.Interconnect to the tim_ti3 input multiplexer732
Table 170.Interconnect to the tim_ti4 input multiplexer732
Table 171.Internal trigger connection732
Table 172.Interconnect to the tim_etr input multiplexer733
Table 173.Timer break interconnect733
Table 174.Timer break2 interconnect733
Table 175.System break interconnect733
Table 176.CCR and ARR register change dithering pattern767
Table 177.CCR register change dithering pattern in center-aligned PWM mode768
Table 178.Behavior of timer outputs versus tim_brk/tim_brk2 inputs780
Table 179.Break protection disarming conditions782
Table 180.Counting direction versus encoder signals (CC1P = CC2P = 0)791
Table 181.Counting direction versus encoder signals and polarity settings795
Table 182.DMA request816
Table 183.Effect of low-power modes on TIM1817
Table 184.Interrupt requests817
Table 185.Output control bits for complementary tim_ocx and tim_ocxn channels
with break feature
844
Table 186.TIM1 register map and reset values867
Table 187.STM32H503xx general purpose timers871
Table 188.TIM input/output pins873
Table 189.TIM internal input/output signals873
Table 190.Interconnect to the tim_ti1 input multiplexer874
Table 191.Interconnect to the tim_ti2 input multiplexer874
Table 192.Interconnect to the tim_ti3 input multiplexer875
Table 193.Interconnect to the tim_ti4 input multiplexer875
Table 194.TIMx internal trigger connection875
Table 195.Interconnect to the tim_etr input multiplexer875
Table 196.CCR and ARR register change dithering pattern906
Table 197.CCR register change dithering pattern in center-aligned PWM mode907
Table 198.Counting direction versus encoder signals(CC1P = CC2P = 0)916
Table 199.Counting direction versus encoder signals and polarity settings921
Table 200.DMA request945
Table 201.Effect of low-power modes on TIM2/TIM3945
Table 202.Interrupt requests . . . . .946
Table 203.Output control bit for standard tim_ocx channels . . . . .967
Table 204.TIM2/TIM3 register map and reset values . . . . .983
Table 205.TIM internal input/output signals . . . . .987
Table 206.TIMx_ARR register change dithering pattern . . . . .997
Table 207.DMA request . . . . .998
Table 208.Effect of low-power modes on TIM6/TIM7 . . . . .998
Table 209.Interrupt request . . . . .998
Table 210.TIMx register map and reset values . . . . .1004
Table 211.STM32H503xx LPTIM features . . . . .1006
Table 212.LPTIM1/2 input/output pins . . . . .1007
Table 213.LPTIM1/2 internal signals . . . . .1008
Table 214.LPTIM1/2 external trigger connections . . . . .1009
Table 215.LPTIM1/2 input 1 connections . . . . .1009
Table 216.LPTIM1/2 input 2 connections . . . . .1009
Table 217.LPTIM1/2 input capture 1 connections . . . . .1009
Table 218.LPTIM1/2 input capture 2 connections . . . . .1010
Table 219.Prescaler division ratios . . . . .1011
Table 220.Encoder counting scenarios . . . . .1018
Table 221.Input capture Glitch filter latency (in counter step unit) . . . . .1022
Table 222.Effect of low-power modes on the LPTIM . . . . .1026
Table 223.Interrupt events . . . . .1027
Table 224.LPTIM register map and reset values . . . . .1048
Table 225.IWDG features . . . . .1050
Table 226.IWDG delays versus actions . . . . .1051
Table 227.IWDG internal input/output signals . . . . .1052
Table 228.Effect of low power modes on IWDG . . . . .1057
Table 229.IWDG interrupt request . . . . .1059
Table 230.IWDG register map and reset values . . . . .1065
Table 231.WWDG features . . . . .1066
Table 232.WWDG internal input/output signals . . . . .1067
Table 233.WWDG interrupt requests . . . . .1070
Table 234.WWDG register map and reset values . . . . .1072
Table 235.RTC input/output pins . . . . .1075
Table 236.RTC internal input/output signals . . . . .1075
Table 237.RTC interconnection . . . . .1076
Table 238.RTC pin PC13 configuration . . . . .1076
Table 239.RTC_OUT mapping . . . . .1079
Table 240.Effect of low-power modes on RTC . . . . .1092
Table 241.RTC pins functionality over modes . . . . .1093
Table 242.Interrupt requests . . . . .1093
Table 243.RTC register map and reset values . . . . .1120
Table 244.TAMP input/output pins . . . . .1124
Table 245.TAMP internal input/output signals . . . . .1124
Table 246.TAMP interconnection . . . . .1125
Table 247.Device resource x tamper protection . . . . .1129
Table 248.Active tamper output change period . . . . .1133
Table 249.Minimum ATPER value . . . . .1134
Table 250.Active tamper filtered pulse duration . . . . .1135
Table 251.Effect of low-power modes on TAMP . . . . .1136
Table 252.TAMP pins functionality over modes . . . . .1136
Table 253.Interrupt requests . . . . .1137
Table 254.TAMP register map and reset values1159
Table 255.I2C implementation1162
Table 256.I2C input/output pins1163
Table 257.I2C internal input/output signals1164
Table 258.Comparison of analog and digital filters1166
Table 259.I2C-bus and SMBus specification data setup and hold times1168
Table 260.I2C configuration1172
Table 261.I2C-bus and SMBus specification clock timings1183
Table 262.Timing settings for fI2CCLK of 8 MHz1193
Table 263.Timing settings for fI2CCLK of 16 MHz1193
Table 264.SMBus timeout specifications1195
Table 265.SMBus with PEC configuration1197
Table 266.TIMEOUTA[11:0] for maximum tTIMEOUT of 25 ms1198
Table 267.TIMEOUTB[11:0] for maximum tLOW:SEXT and tLOW:MEXT of 8 ms1198
Table 268.TIMEOUTA[11:0] for maximum tIDLE of 50 µs1198
Table 269.Effect of low-power modes to I2C1208
Table 270.I2C interrupt requests1208
Table 271.I2C register map and reset values1224
Table 272.I3C wake-up1227
Table 273.I3C FIFOs implementation1227
Table 274.I3C interrupt(s)1227
Table 275.I3C peripheral controller/target features versus MIPI v1.11228
Table 276.I3C input/output pins1229
Table 277.I3C internal input/output signals1229
Table 278.I3C register usage1241
Table 279.I3C registers/fields usage versus controller state1242
Table 280.I3C registers/fields usage versus target state1245
Table 281.List of supported I3C CCCs, as controller/target1248
Table 282.I3C controller error management1279
Table 283.I3C target error management1281
Table 284.Effect of low-power modes1285
Table 285.I3C interrupt requests1286
Table 286.I3C register map and reset values1331
Table 287.Instance implementation on STM32H503xx1335
Table 288.USART/LPUART features1335
Table 289.USART/UART input/output pins1338
Table 290.USART internal input/output signals1339
Table 291.Noise detection from sampled data1351
Table 292.Tolerance of the USART receiver when BRR [3:0] = 00001355
Table 293.Tolerance of the USART receiver when BRR[3:0] is different from 00001355
Table 294.USART frame formats1360
Table 295.Effect of low-power modes on the USART1383
Table 296.USART interrupt requests1384
Table 297.USART register map and reset values1422
Table 298.Instance implementation on STM32H503xx1425
Table 299.USART/LPUART features1425
Table 300.LPUART input/output pins1427
Table 301.LPUART internal input/output signals1427
Table 302.Error calculation for programmed baud rates at lpuart_ker_ck_pres= 32.768 kHz1438
Table 303.Tolerance of the LPUART receiver1439
Table 305.Effect of low-power modes on the LPUART1451
Table 306.LPUART interrupt requests1452
Table 307.LPUART register map and reset values .....1478
Table 308.SPI features .....1481
Table 309.SPI/I2S input/output pins .....1483
Table 310.SPI internal input/output signals .....1484
Table 311.Effect of low-power modes on the SPI .....1510
Table 312.SPI wake-up and interrupt requests .....1511
Table 313.Bitfields usable in PCM/I2S mode .....1513
Table 314.WS and CK level before SPI/I2S is enabled when AFCNTR = 1 .....1522
Table 315.Serial data line swapping .....1522
Table 316.CLKGEN programming examples for usual I2S frequencies .....1526
Table 317.I2S interrupt requests .....1535
Table 318.SPI register map and reset values .....1553
Table 319.CAN subsystem I/O signals .....1559
Table 320.CAN subsystem I/O pins .....1559
Table 321.DLC coding in FDCAN .....1563
Table 322.Possible configurations for frame transmission .....1577
Table 323.Rx FIFO element .....1580
Table 324.Rx FIFO element description .....1580
Table 325.Tx buffer and FIFO element .....1582
Table 326.Tx buffer element description .....1582
Table 327.Tx event FIFO element .....1584
Table 328.Tx event FIFO element description .....1584
Table 329.Standard message ID filter element .....1585
Table 330.Standard message ID filter element field description .....1586
Table 331.Extended message ID filter element .....1586
Table 332.Extended message ID filter element field description .....1587
Table 333.FDCAN register map and reset values .....1617
Table 334.STM32H503xx USB implementation .....1621
Table 335.USB input/output pins .....1622
Table 336.Double-buffering buffer flag definition .....1634
Table 337.Bulk double-buffering memory buffers usage (Device mode) .....1634
Table 338.Bulk double-buffering memory buffers usage (Host mode) .....1636
Table 339.Isochronous memory buffers usage .....1637
Table 340.Isochronous memory buffers usage .....1638
Table 341.Resume event detection .....1640
Table 342.Resume event detection for host .....1641
Table 343.Reception status encoding .....1659
Table 344.Endpoint/channel type encoding .....1659
Table 345.Endpoint/channel kind meaning .....1659
Table 346.Transmission status encoding .....1659
Table 347.USB register map and reset values .....1661
Table 348.Definition of allocated buffer memory .....1664
Table 349.USBSRAM register map and reset values .....1667
Table 350.SPIRIT address block DBG .....1668
Table 351.JTAG/Serial-wire debug port pins .....1669
Table 352.Trace port pins .....1669
Table 353.Single-wire trace port pins .....1670
Table 354.Authentication signal states .....1671
Table 355.Life cycle state and debug states .....1671
Table 356.JTAG-DP data registers .....1675
Table 357.Packet request .....1677
Table 358.ACK response .....1677
Table 359.Data transfer . . . . .1677
Table 360.Debug port registers . . . . .1678
Table 361.Debug port register map and reset values . . . . .1684
Table 362.MEM-AP registers. . . . .1686
Table 363.Access port register map and reset values. . . . .1692
Table 364.System ROM table . . . . .1693
Table 365.MCU ROM table . . . . .1694
Table 366.Processor ROM table . . . . .1694
Table 367.System ROM table register map and reset values . . . . .1700
Table 368.MCU ROM table register map and reset values . . . . .1706
Table 369.CPU ROM table register map and reset values . . . . .1711
Table 370.DWT register map and reset values . . . . .1727
Table 371.ITM register map and reset values . . . . .1739
Table 372.BPU register map and reset values . . . . .1747
Table 373.ETM register map and reset values . . . . .1774
Table 374.TPIU register map and reset values . . . . .1789
Table 375.CTI inputs . . . . .1791
Table 376.CTI outputs . . . . .1791
Table 377.CTI register map and reset values . . . . .1803
Table 378.Peripheral clock freeze control bits. . . . .1806
Table 379.Peripheral behaviour in debug mode . . . . .1807
Table 380.DBGMCU register map and reset values . . . . .1820
Table 381.Document revision history . . . . .1828

List of figures

Figure 1.System architecture .....68
Figure 2.Memory map .....71
Figure 3.Flash memory secure HDP area .....78
Figure 4.Device life-cycle security .....86
Figure 5.Product life-cycle .....88
Figure 6.Collaborative development principle .....89
Figure 7.SRAM1 and SRAM2 with ECC memory map .....94
Figure 8.GTZC privilege architecture .....105
Figure 9.GTZC block diagram .....107
Figure 10.Watermark memory protection controller (region x/subregion A) .....108
Figure 11.MPCBB block diagram .....108
Figure 12.Flash block diagram (simplified) .....118
Figure 13.Embedded flash memory organization .....120
Figure 14.Embedded flash memory usage .....121
Figure 15.Flash bank swapping sequence .....134
Figure 16.HDP in user flash memory .....145
Figure 17.Protection attributes in case of bank swap illustration .....149
Figure 18.ICACHE block diagram .....194
Figure 19.ICACHE TAG and data memories functional view .....196
Figure 20.Power supply overview with LDO .....207
Figure 21.System supply configurations .....208
Figure 22.Power-on reset (POR)/power-down reset (PDR) waveform .....213
Figure 23.BOR thresholds .....214
Figure 24.PVD thresholds .....215
Figure 25.AVD thresholds .....216
Figure 26.VBAT thresholds .....217
Figure 27.Temperature thresholds .....218
Figure 28.Dynamic voltage scaling in Run mode .....220
Figure 29.I/O states in Standby mode .....229
Figure 30.Simplified diagram of the reset circuit .....247
Figure 31.Clock tree .....251
Figure 32.HSE/ LSE clock sources .....252
Figure 33.HSE/ LSE bypass .....252
Figure 34.HSI calibration flow .....254
Figure 35.CSI calibration flow .....255
Figure 36.PLL block diagram .....257
Figure 37.PLLs initialization flowchart .....260
Figure 38.CRS block diagram .....332
Figure 39.CRS counter behavior .....334
Figure 40.Structure of three-volt or five-volt tolerant GPIO (TT or FT) .....344
Figure 41.Input floating/pull-up/pull-down configurations .....348
Figure 42.Output configuration .....349
Figure 43.Alternate function configuration .....350
Figure 44.High-impedance analog configuration .....350
Figure 45.SBS block diagram .....362
Figure 46.Compensation cell management .....363
Figure 47.Compensation cell use .....364
Figure 48.SBS boot control .....364
Figure 49.SBS debug control367
Figure 50.GPDMA block diagram400
Figure 51.GPDMA channel direct programming without linked-list (GPDMA_CxLLR = 0)401
Figure 52.GPDMA channel suspend and resume sequence402
Figure 53.GPDMA channel abort and restart sequence403
Figure 54.Static linked-list data structure (all Uxx = 1)
of a linear addressing channel x
404
Figure 55.Static linked-list data structure (all Uxx = 1)
of a 2D addressing channel x
405
Figure 56.GPDMA dynamic linked-list data structure
of a linear addressing channel x
406
Figure 57.GPDMA dynamic linked-list data structure
of a 2D addressing channel x
406
Figure 58.GPDMA channel execution and linked-list programming
in run-to-completion mode (GPDMA_CxCR.LSM = 0)
408
Figure 59.Inserting a LLIn with an auxiliary GPDMA channel y410
Figure 60.GPDMA channel execution and linked-list programming
in link step mode (GPDMA_CxCR.LSM = 1)
412
Figure 61.Building LLIn+1: GPDMA dynamic linked-lists in link step mode413
Figure 62.Replace with a new LLIn' in register file in link step mode414
Figure 63.Replace with a new LLIn' and LLIn+1' in memory in link step mode (option 1)415
Figure 64.Replace with a new LLIn' and LLIn+1' in memory in link step mode (option 2)416
Figure 65.GPDMA channel execution and linked-list programming418
Figure 66.Programmed 2D addressing421
Figure 67.GPDMA arbitration policy428
Figure 68.Trigger hit, memorization, and overrun waveform431
Figure 69.GPDMA circular buffer programming: update of the memory start address
with a linear addressing channel
432
Figure 70.Shared GPDMA channel with circular buffering: update of the memory
start address with a linear addressing channel
433
Figure 71.EXTI block diagram471
Figure 72.Configurable event trigger logic CPU wakeup473
Figure 73.EXTI mux GPIO selection474
Figure 74.CRC calculation unit block diagram497
Figure 75.ADC block diagram506
Figure 76.ADC clock scheme511
Figure 77.ADC1 connectivity512
Figure 78.ADC calibration515
Figure 79.Updating the ADC calibration factor516
Figure 80.Mixing single-ended and differential channels517
Figure 81.Enabling / disabling the ADC518
Figure 82.Bulb mode timing diagram521
Figure 83.Analog-to-digital conversion time524
Figure 84.Stopping ongoing regular conversions525
Figure 85.Stopping ongoing regular and injected conversions526
Figure 86.Trigger selection527
Figure 87.Injected conversion latency529
Figure 88.Example of JSQR queue of context (sequence change)532
Figure 89.Example of JSQR queue of context (trigger change)532
Figure 90.Example of JSQR queue of context with overflow before conversion533
Figure 91.Example of JSQR queue of context with overflow during conversion533
Figure 92.Example of JSQR queue of context with empty queue (case JQM = 0)534
Figure 93.Example of JSQR queue of context with empty queue (JQM = 1) . . . . .535
Figure 94.Flushing JSQR queue of context by setting JADSTP = 1 (JQM = 0) -
JADSTP occurs during an ongoing conversion. . . . .
535
Figure 95.Flushing JSQR queue of context by setting JADSTP = 1 (JQM = 0) -
JADSTP occurs during an ongoing conversion and a new
trigger occurs . . . . .
536
Figure 96.Flushing JSQR queue of context by setting JADSTP = 1 (JQM = 0) -
JADSTP occurs outside an ongoing conversion. . . . .
536
Figure 97.Flushing JSQR queue of context by setting JADSTP = 1 (JQM = 1) . . . . .537
Figure 98.Flushing JSQR queue of context by setting ADDIS = 1 (JQM = 0). . . . .537
Figure 99.Flushing JSQR queue of context by setting ADDIS = 1 (JQM = 1). . . . .538
Figure 100.Single conversions of a sequence, software trigger . . . . .540
Figure 101.Continuous conversion of a sequence, software trigger. . . . .540
Figure 102.Single conversions of a sequence, hardware trigger . . . . .541
Figure 103.Continuous conversions of a sequence, hardware trigger . . . . .541
Figure 104.Right alignment (offset disabled, unsigned value) . . . . .543
Figure 105.Right alignment (offset enabled, signed value). . . . .544
Figure 106.Left alignment (offset disabled, unsigned value) . . . . .544
Figure 107.Left alignment (offset enabled, signed value). . . . .545
Figure 108.Example of overrun (OVRMOD = 0). . . . .546
Figure 109.Example of overrun (OVRMOD = 1). . . . .547
Figure 110.AUTODLY = 1, regular conversion in continuous mode, software trigger . . . . .550
Figure 111.AUTODLY = 1, regular HW conversions interrupted by injected conversions
(DISCEN = 0; JDISCEN = 0) . . . . .
550
Figure 112.AUTODLY = 1, regular HW conversions interrupted by injected conversions . . . . .
(DISCEN = 1, JDISCEN = 1) . . . . .
551
Figure 113.AUTODLY = 1, regular continuous conversions interrupted by injected conversions . . . . .552
Figure 114.AUTODLY = 1 in auto- injected mode (JAUTO = 1). . . . .552
Figure 115.Analog watchdog guarded area . . . . .553
Figure 116.ADCy_AWDx_OUT signal generation (on all regular channels). . . . .555
Figure 117.ADCy_AWDx_OUT signal generation (AWDx flag not cleared by software) . . . . .556
Figure 118.ADCy_AWDx_OUT signal generation (on a single regular channel) . . . . .556
Figure 119.ADCy_AWDx_OUT signal generation (on all injected channels) . . . . .556
Figure 120.20-bit to 16-bit result truncation . . . . .558
Figure 121.Numerical example with 5-bit shift and rounding . . . . .558
Figure 122.Triggered regular oversampling mode (TROVS bit = 1) . . . . .560
Figure 123.Regular oversampling modes (4x ratio) . . . . .561
Figure 124.Regular and injected oversampling modes used simultaneously . . . . .562
Figure 125.Triggered regular oversampling with injection . . . . .562
Figure 126.Oversampling in auto-injected mode . . . . .563
Figure 127.Temperature sensor channel block diagram . . . . .564
Figure 128.VBAT channel block diagram . . . . .565
Figure 129.VREFINT channel block diagram . . . . .566
Figure 130.Temperature sensor functional block diagram . . . . .608
Figure 131.Method for low REF_CLK frequencies . . . . .610
Figure 132.Method for high REF_CLK frequencies . . . . .610
Figure 133.Temperature sensor sequence. . . . .613
Figure 134.Dual-channel DAC block diagram . . . . .626
Figure 135.Data registers in single DAC channel mode. . . . .629
Figure 136.Data registers in dual DAC channel mode . . . . .629
Figure 137.Timing diagram for conversion with trigger disabled TEN = 0 . . . . .631
Figure 138.DAC LFSR register calculation algorithm . . . . .633
Figure 139.DAC conversion (SW trigger enabled) with LFSR wave generation. . . . .634
Figure 140.DAC triangle wave generation . . . . .634
Figure 141.DAC conversion (SW trigger enabled) with triangle wave generation . . . . .635
Figure 142.DAC sample and hold mode phase diagram . . . . .637
Figure 143.Comparator functional block diagram . . . . .664
Figure 144.Comparator hysteresis . . . . .666
Figure 145.Comparator output blanking . . . . .667
Figure 146.Scaler block diagram . . . . .670
Figure 147.Standalone mode: external gain setting mode . . . . .677
Figure 148.Follower configuration. . . . .678
Figure 149.PGA mode, internal gain setting (x2/x4/x8/x16), inverting input not used . . . . .679
Figure 150.PGA mode, internal gain setting (x2/x4/x8/x16),
inverting input used for filtering. . . . .
680
Figure 151.PGA mode, non-inverting gain setting (x2/x4/x8/x16)
or inverting gain setting (x-1/x-3/x-7/x-15) . . . . .
681
Figure 152.Example configuration . . . . .681
Figure 153.PGA mode, non-inverting gain setting (x2/x4/x8/x16) or inverting gain
setting (x-1/x-3/x-7/x-15) with filtering. . . . .
682
Figure 154.Example configuration . . . . .682
Figure 155.RNG block diagram . . . . .690
Figure 156.NIST SP800-90B entropy source model. . . . .691
Figure 157.RNG initialization overview. . . . .694
Figure 158.HASH block diagram . . . . .707
Figure 159.Message data swapping feature. . . . .709
Figure 160.HASH suspend/resume mechanism. . . . .714
Figure 161.Advanced-control timer block diagram . . . . .729
Figure 162.Counter timing diagram with prescaler division change from 1 to 2 . . . . .735
Figure 163.Counter timing diagram with prescaler division change from 1 to 4 . . . . .735
Figure 164.Counter timing diagram, internal clock divided by 1 . . . . .737
Figure 165.Counter timing diagram, internal clock divided by 2 . . . . .737
Figure 166.Counter timing diagram, internal clock divided by 4 . . . . .738
Figure 167.Counter timing diagram, internal clock divided by N. . . . .738
Figure 168.Counter timing diagram, update event when ARPE = 0
(TIMx_ARR not preloaded). . . . .
739
Figure 169.Counter timing diagram, update event when ARPE = 1
(TIMx_ARR preloaded). . . . .
740
Figure 170.Counter timing diagram, internal clock divided by 1 . . . . .741
Figure 171.Counter timing diagram, internal clock divided by 2 . . . . .742
Figure 172.Counter timing diagram, internal clock divided by 4 . . . . .742
Figure 173.Counter timing diagram, internal clock divided by N. . . . .743
Figure 174.Counter timing diagram, update event when repetition counter is not used. . . . .743
Figure 175.Counter timing diagram, internal clock divided by 1, TIMx_ARR = 0x6 . . . . .745
Figure 176.Counter timing diagram, internal clock divided by 2 . . . . .745
Figure 177.Counter timing diagram, internal clock divided by 4, TIMx_ARR = 0x36 . . . . .746
Figure 178.Counter timing diagram, internal clock divided by N. . . . .746
Figure 179.Counter timing diagram, update event with ARPE = 1 (counter underflow) . . . . .747
Figure 180.Counter timing diagram, Update event with ARPE = 1 (counter overflow) . . . . .748
Figure 181.Update rate examples depending on mode and TIMx_RCR register settings . . . . .749
Figure 183.Control circuit in normal mode, internal clock divided by 1. . . . .751
Figure 184.tim_ti2 external clock connection example . . . . .751
Figure 185.Control circuit in external clock mode 1 . . . . .752
Figure 186.External trigger input block . . . . .753
Figure 187. Control circuit in external clock mode 2 .....754
Figure 188. Capture/compare channel (example: channel 1 input stage) .....754
Figure 189. Capture/compare channel 1 main circuit .....755
Figure 190. Output stage of capture/compare channel (channel 1, idem ch. 2, 3 and 4) .....756
Figure 191. Output stage of capture/compare channel (channel 5, idem ch. 6) .....756
Figure 192. PWM input mode timing .....759
Figure 193. Output compare mode, toggle on tim_oc1 .....761
Figure 194. Edge-aligned PWM waveforms (ARR = 8) .....762
Figure 195. Center-aligned PWM waveforms (ARR = 8) .....763
Figure 196. Dithering principle .....764
Figure 197. Data format and register coding in dithering mode .....765
Figure 198. PWM resolution vs frequency .....766
Figure 199. PWM dithering pattern .....767
Figure 200. Dithering effect on duty cycle in center-aligned PWM mode .....768
Figure 201. Generation of 2 phase-shifted PWM signals with 50% duty cycle .....770
Figure 202. Combined PWM mode on channel 1 and 3 .....771
Figure 203. 3-phase combined PWM signals with multiple trigger pulses per period .....772
Figure 204. Complementary output with symmetrical dead-time insertion .....773
Figure 205. Asymmetrical deadtime .....774
Figure 206. Dead-time waveforms with delay greater than the negative pulse .....774
Figure 207. Dead-time waveforms with delay greater than the positive pulse .....774
Figure 208. Break and Break2 circuitry overview .....777
Figure 209. Various output behavior in response to a break event on tim_brk (OSSI = 1) .....779
Figure 210. PWM output state following tim_brk and tim_brk2 assertion (OSSI = 1) .....780
Figure 211. PWM output state following tim_brk assertion (OSSI = 0) .....781
Figure 212. Output redirection (tim_brk2 request not represented) .....782
Figure 213. tim_ocref_clr input selection multiplexer .....783
Figure 214. Clearing TIMx tim_ocxref .....784
Figure 215. 6-step generation, COM example (OSSR = 1) .....785
Figure 216. Example of one pulse mode .....786
Figure 217. Retriggerable one-pulse mode .....787
Figure 218. Pulse generator circuitry .....788
Figure 219. Pulse generation on compare event, for edge-aligned and encoder modes .....789
Figure 220. Extended pulsewidth in case of concurrent triggers .....790
Figure 221. Example of counter operation in encoder interface mode .....792
Figure 222. Example of encoder interface mode with tim_ti1fp1 polarity inverted .....792
Figure 223. Quadrature encoder counting modes .....793
Figure 224. Direction plus clock encoder mode .....794
Figure 225. Directional clock encoder mode (CC1P = CC2P = 0) .....794
Figure 226. Directional clock encoder mode (CC1P = CC2P = 1) .....795
Figure 227. Index gating options .....796
Figure 228. Jittered Index signals .....796
Figure 229. Index generation for IPOS[1:0] = 11 .....797
Figure 230. Counter reading with index gated on channel A (IPOS[1:0] = 11) .....797
Figure 231. Counter reading with index ungated (IPOS[1:0] = 00) .....798
Figure 232. Counter reading with index gated on channel A and B .....798
Figure 233. Encoder mode behavior in case of narrow index pulse (IPOS[1:0] = 11) .....799
Figure 234. Counter reset Narrow index pulse (closer view, ARR = 0x07) .....800
Figure 235. Index behavior in x1 and x2 mode (IPOS[1:0] = 01) .....801
Figure 236. Directional index sensitivity .....801
Figure 237. Counter reset as function of FIDX bit setting .....802
Figure 238. Index blanking .....802
Figure 239. Index behavior in clock + direction mode, IPOS[0] = 1 . . . . .803
Figure 240. Index behavior in directional clock mode, IPOS[0] = 1 . . . . .803
Figure 241. State diagram for quadrature encoded signals . . . . .804
Figure 242. Up-counting encoder error detection . . . . .805
Figure 243. Down-counting encode error detection . . . . .806
Figure 244. Encoder mode change with preload transferred on update (SMSPS = 0) . . . . .807
Figure 245. Measuring time interval between edges on three signals . . . . .808
Figure 246. Example of Hall sensor interface . . . . .810
Figure 247. Control circuit in reset mode . . . . .811
Figure 248. Control circuit in Gated mode . . . . .812
Figure 249. Control circuit in trigger mode . . . . .813
Figure 250. Control circuit in external clock mode 2 + trigger mode . . . . .814
Figure 251. General-purpose timer block diagram . . . . .872
Figure 252. Counter timing diagram with prescaler division change from 1 to 2 . . . . .877
Figure 253. Counter timing diagram with prescaler division change from 1 to 4 . . . . .877
Figure 254. Counter timing diagram, internal clock divided by 1 . . . . .878
Figure 255. Counter timing diagram, internal clock divided by 2 . . . . .879
Figure 256. Counter timing diagram, internal clock divided by 4 . . . . .879
Figure 257. Counter timing diagram, internal clock divided by N . . . . .880
Figure 258. Counter timing diagram, Update event when ARPE = 0 (TIMx_ARR not preloaded) . . . . .880
Figure 259. Counter timing diagram, Update event when ARPE = 1 (TIMx_ARR preloaded) . . . . .881
Figure 260. Counter timing diagram, internal clock divided by 1 . . . . .882
Figure 261. Counter timing diagram, internal clock divided by 2 . . . . .883
Figure 262. Counter timing diagram, internal clock divided by 4 . . . . .883
Figure 263. Counter timing diagram, internal clock divided by N . . . . .884
Figure 264. Counter timing diagram, Update event . . . . .884
Figure 265. Counter timing diagram, internal clock divided by 1, TIMx_ARR = 0x6 . . . . .886
Figure 266. Counter timing diagram, internal clock divided by 2 . . . . .886
Figure 267. Counter timing diagram, internal clock divided by 4, TIMx_ARR = 0x36 . . . . .887
Figure 268. Counter timing diagram, internal clock divided by N . . . . .887
Figure 269. Counter timing diagram, Update event with ARPE = 1 (counter underflow) . . . . .888
Figure 270. Counter timing diagram, Update event with ARPE = 1 (counter overflow) . . . . .889
Figure 271. Control circuit in normal mode, internal clock divided by 1 . . . . .890
Figure 272. tim_ti2 external clock connection example . . . . .890
Figure 273. Control circuit in external clock mode 1 . . . . .891
Figure 274. External trigger input block . . . . .892
Figure 275. Control circuit in external clock mode 2 . . . . .893
Figure 276. Capture/compare channel (example: channel 1 input stage) . . . . .893
Figure 277. Capture/compare channel 1 main circuit . . . . .894
Figure 278. Output stage of capture/compare channel (channel 1, idem ch.2, 3 and 4) . . . . .894
Figure 279. PWM input mode timing . . . . .897
Figure 280. Output compare mode, toggle on tim_oc1 . . . . .899
Figure 281. Edge-aligned PWM waveforms (ARR = 8) . . . . .900
Figure 282. Center-aligned PWM waveforms (ARR = 8) . . . . .901
Figure 283. Dithering principle . . . . .902
Figure 284. Data format and register coding in dithering mode . . . . .903
Figure 285. PWM resolution vs frequency (16-bit mode) . . . . .904
Figure 286. PWM resolution vs frequency (32-bit mode) . . . . .904
Figure 287. PWM dithering pattern . . . . .905
Figure 288. Dithering effect on duty cycle in center-aligned PWM mode . . . . .906
Figure 289. Generation of two phase-shifted PWM signals with 50% duty cycle . . . . .908
Figure 290. Combined PWM mode on channels 1 and 3 . . . . .909
Figure 291. OCREF_CLR input selection multiplexer .....910
Figure 292. Clearing TIMx tim_ocxref .....910
Figure 293. Example of One-pulse mode .....911
Figure 294. Retriggerable one-pulse mode .....913
Figure 295. Pulse generator circuitry .....914
Figure 296. Pulse generation on compare event, for edge-aligned and encoder modes .....914
Figure 297. Extended pulse width in case of concurrent triggers .....915
Figure 298. Example of counter operation in encoder interface mode .....917
Figure 299. Example of encoder interface mode with tim_ti1fp1 polarity inverted .....917
Figure 300. Quadrature encoder counting modes .....918
Figure 301. Direction plus clock encoder mode .....919
Figure 302. Directional clock encoder mode (CC1P = CC2P = 0) .....920
Figure 303. Directional clock encoder mode (CC1P = CC2P = 1) .....920
Figure 304. Index gating options .....922
Figure 305. Jittered Index signals .....922
Figure 306. Index generation for IPOS[1:0] = 11 .....923
Figure 307. Counter reading with index gated on channel A (IPOS[1:0] = 11) .....923
Figure 308. Counter reading with index ungated (IPOS[1:0] = 00) .....924
Figure 309. Counter reading with index gated on channel A and B .....924
Figure 310. Encoder mode behavior in case of narrow index pulse (IPOS[1:0] = 11) .....925
Figure 311. Counter reset Narrow index pulse (closer view, ARR = 0x07) .....926
Figure 312. Index behavior in x1 and x2 mode (IPOS[1:0] = 01) .....927
Figure 313. Directional index sensitivity .....927
Figure 314. Counter reset as function of FIDX bit setting .....928
Figure 315. Index blanking .....928
Figure 316. Index behavior in clock + direction mode, IPOS[0] = 1 .....929
Figure 317. Index behavior in directional clock mode, IPOS[0] = 1 .....929
Figure 318. State diagram for quadrature encoded signals .....930
Figure 319. Up-counting encoder error detection .....931
Figure 320. Down-counting encode error detection .....932
Figure 321. Encoder mode change with preload transferred on update (SMSPS = 0) .....933
Figure 322. Control circuit in reset mode .....935
Figure 323. Control circuit in gated mode .....936
Figure 324. Control circuit in trigger mode .....936
Figure 325. Control circuit in external clock mode 2 + trigger mode .....938
Figure 326. Master/Slave timer example .....938
Figure 327. Master/slave connection example with 1 channel only timers .....939
Figure 328. Gating TIM_slv with tim_oc1ref of TIM_mstr .....940
Figure 329. Gating TIM_slv with Enable of TIM_mstr .....941
Figure 330. Triggering TIM_slv with update of TIM_mstr .....942
Figure 331. Triggering TIM_slv with Enable of TIM_mstr .....942
Figure 332. Triggering TIM_mstr and TIM_slv with TIM_mstr tim_ti1 input .....943
Figure 333. Basic timer block diagram .....987
Figure 334. Control circuit in normal mode, internal clock divided by 1 .....988
Figure 335. Counter timing diagram with prescaler division change from 1 to 2 .....989
Figure 336. Counter timing diagram with prescaler division change from 1 to 4 .....990
Figure 337. Counter timing diagram, internal clock divided by 1 .....991
Figure 338. Counter timing diagram, internal clock divided by 2 .....991
Figure 339. Counter timing diagram, internal clock divided by 4 .....992
Figure 340. Counter timing diagram, internal clock divided by N .....992
Figure 341. Counter timing diagram, update event when ARPE = 0 (TIMx_ARR not
preloaded) .....
993
Figure 342. Counter timing diagram, update event when ARPE = 1 (TIMx_ARR preloaded) . . . . .994
Figure 343. Dithering principle . . . . .995
Figure 344. Data format and register coding in dithering mode . . . . .995
Figure 345. FCnt resolution vs frequency . . . . .996
Figure 346. PWM dithering pattern . . . . .996
Figure 347. LPTIM1/2 block diagram(1) . . . . .1007
Figure 348. Glitch filter timing diagram . . . . .1011
Figure 349. LPTIM output waveform, single-counting mode configuration when repetition register content is different than zero (with PRELOAD = 1) . . . . .1013
Figure 350. LPTIM output waveform, single-counting mode configuration and Set-once mode activated (WAVE bit is set) . . . . .1013
Figure 351. LPTIM output waveform, Continuous counting mode configuration . . . . .1014
Figure 352. Waveform generation . . . . .1015
Figure 353. Encoder mode counting sequence . . . . .1019
Figure 354. Continuous counting mode when repetition register LPTIM_RCR different from zero (with PRELOAD = 1) . . . . .1020
Figure 355. Capture/compare input stage (channel 1) . . . . .1021
Figure 356. Capture/compare output stage (channel 1) . . . . .1021
Figure 357. Edge-aligned PWM mode (PRELOAD = 1) . . . . .1023
Figure 358. Edge-aligned PWM waveforms (ARR=8 and CCxP = 0) . . . . .1024
Figure 359. PWM mode with immediate update versus preloaded update . . . . .1025
Figure 360. Independent watchdog block diagram . . . . .1051
Figure 361. Reset timing due to timeout . . . . .1053
Figure 362. Reset timing due to refresh in the not allowed area . . . . .1054
Figure 363. Changing PR, RL, and performing a refresh(1) . . . . .1055
Figure 364. Window comparator update(1) . . . . .1056
Figure 365. Independent watchdog interrupt timing diagram . . . . .1058
Figure 366. Early wake-up comparator update(1) . . . . .1059
Figure 367. Watchdog block diagram . . . . .1067
Figure 368. Window watchdog timing diagram . . . . .1069
Figure 369. RTC block diagram . . . . .1074
Figure 370. TAMP block diagram . . . . .1123
Figure 371. Backup registers protection zones . . . . .1127
Figure 372. Tamper sampling with precharge pulse . . . . .1131
Figure 373. Low level detection with precharge and filtering . . . . .1132
Figure 374. Active tamper filtering . . . . .1134
Figure 375. Block diagram . . . . .1163
Figure 376. I2C-bus protocol . . . . .1165
Figure 377. Setup and hold timings . . . . .1167
Figure 378. I2C initialization flow . . . . .1169
Figure 379. Data reception . . . . .1170
Figure 380. Data transmission . . . . .1171
Figure 381. Target initialization flow . . . . .1174
Figure 382. Transfer sequence flow for I2C target transmitter, NOSTRETCH = 0 . . . . .1176
Figure 383. Transfer sequence flow for I2C target transmitter, NOSTRETCH = 1 . . . . .1177
Figure 384. Transfer bus diagrams for I2C target transmitter (mandatory events only) . . . . .1178
Figure 385. Transfer sequence flow for I2C target receiver, NOSTRETCH = 0 . . . . .1179
Figure 386. Transfer sequence flow for I2C target receiver, NOSTRETCH = 1 . . . . .1180
Figure 387. Transfer bus diagrams for I2C target receiver (mandatory events only) . . . . .1180
Figure 388. Controller clock generation . . . . .1182
Figure 389. Controller initialization flow1184
Figure 390. 10-bit address read access with HEAD10R = 01184
Figure 391. 10-bit address read access with HEAD10R = 11185
Figure 392. Transfer sequence flow for I2C controller transmitter, N ≤ 255 bytes.1186
Figure 393. Transfer sequence flow for I2C controller transmitter, N > 255 bytes.1187
Figure 394. Transfer bus diagrams for I2C controller transmitter
(mandatory events only)
1188
Figure 395. Transfer sequence flow for I2C controller receiver, N ≤ 255 bytes1190
Figure 396. Transfer sequence flow for I2C controller receiver, N > 255 bytes.1191
Figure 397. Transfer bus diagrams for I2C controller receiver
(mandatory events only)
1192
Figure 398. Timeout intervals for \(t_{LOW:SEXT}\), \(t_{LOW:MEXT}\)1196
Figure 399. Transfer sequence flow for SMBus target transmitter N bytes + PEC1199
Figure 400. Transfer bus diagram for SMBus target transmitter (SBC = 1)1200
Figure 401. Transfer sequence flow for SMBus target receiver N bytes + PEC1201
Figure 402. Bus transfer diagrams for SMBus target receiver (SBC = 1)1202
Figure 403. Bus transfer diagrams for SMBus controller transmitter1203
Figure 404. Bus transfer diagrams for SMBus controller receiver1205
Figure 405. I3C block diagram1229
Figure 406. I3C (primary) controller state and programming sequence diagram1233
Figure 407. I3C target state and programing sequence diagram1238
Figure 408. I3C CCC messages, as controller1252
Figure 409. I3C broadcast ENTDAACCC, as controller1253
Figure 410. I3C broadcast, direct read and direct write RSTACT CCC, as controller1254
Figure 411. I3C CCC messages, as target1256
Figure 412. I3C broadcast ENTDAACCC, as target1257
Figure 413. I3C broadcast DEFTGTS CCC, as target1258
Figure 414. I3C broadcast DEFGRPA CCC, as target1259
Figure 415. I3C private read/write messages, as controller1261
Figure 416. I3C private read/write messages, as target1262
Figure 417. Legacy I2C read/write messages, as controller1263
Figure 418. IBI transfer, as controller/target1264
Figure 419. Hot-join request transfer, as controller/target1265
Figure 420. Controller-role request transfer, as controller/target1266
Figure 421. C-FIFO management, as controller1267
Figure 422. TX-FIFO management, as controller1269
Figure 423. RX-FIFO management, as controller1271
Figure 424. S-FIFO management, as controller1274
Figure 425. RX-FIFO management, as target1275
Figure 426. TX-FIFO management with I3C_TGTTDR, as target1277
Figure 427. TX-FIFO management by software without I3C_TGTTDR
if reading less bytes than TX-FIFO size, as target
1279
Figure 428. USART block diagram1337
Figure 429. Word length programming1341
Figure 430. Configurable stop bits1343
Figure 431. TC/TXE behavior when transmitting1345
Figure 432. Start bit detection when oversampling by 16 or 81346
Figure 433. usart_ker_ck clock divider block diagram1349
Figure 434. Data sampling when oversampling by 161350
Figure 435. Data sampling when oversampling by 81351
Figure 436. Mute mode using Idle line detection1358
Figure 437. Mute mode using address mark detection1359
Figure 438. Break detection in LIN mode (11-bit break length - LBDL bit is set) . . . . .1362
Figure 439. Break detection in LIN mode vs. Framing error detection. . . . .1363
Figure 440. USART example of synchronous master transmission. . . . .1364
Figure 441. USART data clock timing diagram in synchronous master mode
(M bits = 00) . . . . .
1364
Figure 442. USART data clock timing diagram in synchronous master mode
(M bits = 01) . . . . .
1365
Figure 443. USART data clock timing diagram in synchronous slave mode
(M bits = 00) . . . . .
1366
Figure 444. ISO 7816-3 asynchronous protocol . . . . .1368
Figure 445. Parity error detection using the 1.5 stop bits . . . . .1370
Figure 446. IrDA SIR ENDEC block diagram. . . . .1374
Figure 447. IrDA data modulation (3/16) - normal mode . . . . .1374
Figure 448. Transmission using DMA . . . . .1376
Figure 449. Reception using DMA. . . . .1377
Figure 450. Hardware flow control between two USARTs. . . . .1377
Figure 451. RS232 RTS flow control . . . . .1378
Figure 452. RS232 CTS flow control . . . . .1379
Figure 453. Wake-up event verified (wake-up event = address match, FIFO disabled) . . . . .1382
Figure 454. Wake-up event not verified (wake-up event = address match,
FIFO disabled) . . . . .
1382
Figure 455. LPUART block diagram . . . . .1426
Figure 456. LPUART word length programming . . . . .1429
Figure 457. Configurable stop bits. . . . .1431
Figure 458. TC/TXE behavior when transmitting . . . . .1433
Figure 459. lpuart_ker_ck clock divider block diagram . . . . .1437
Figure 460. Mute mode using Idle line detection . . . . .1441
Figure 461. Mute mode using address mark detection . . . . .1442
Figure 462. Transmission using DMA . . . . .1444
Figure 463. Reception using DMA. . . . .1445
Figure 464. Hardware flow control between two LPUARTs. . . . .1446
Figure 465. RS232 RTS flow control . . . . .1446
Figure 466. RS232 CTS flow control . . . . .1447
Figure 467. Wake-up event verified (wake-up event = address match,
FIFO disabled) . . . . .
1450
Figure 468. Wake-up event not verified (wake-up event = address match,
FIFO disabled) . . . . .
1450
Figure 469. SPI/I2S block diagram . . . . .1482
Figure 470. Full-duplex single master/ single slave application. . . . .1485
Figure 471. Half-duplex single master/ single slave application . . . . .1486
Figure 472. Simplex single master / single slave application
(master in transmit-only / slave in receive-only mode) . . . . .
1487
Figure 473. Master and three independent slaves connected in star topology . . . . .1488
Figure 474. Master and three slaves connected in circular (daisy chain) topology . . . . .1489
Figure 475. Multimaster application . . . . .1490
Figure 476. Scheme of SS control logic. . . . .1492
Figure 477. Data flow timing control (SSOE = 1, SSOM = 0, SSM = 0) . . . . .1492
Figure 478. SS interleaving pulses between data (SSOE = 1, SSOM = 1, SSM = 0) . . . . .1493
Figure 479. Data clock timing diagram . . . . .1495
Figure 480. Data alignment when data size is not equal to 8, 16 or 32 bits . . . . .1496
Figure 481. TI mode transfer . . . . .1505
Figure 482. Optional configurations of the slave behavior when an underrun condition is detected . . . . .1507
Figure 483. Waveform examples . . . . .1515
Figure 484. Master I2S Philips protocol waveforms (16/32-bit full accuracy) . . . . .1516
Figure 485. I2S Philips standard waveforms . . . . .1516
Figure 486. Master MSB-justified 16- or 32-bit full-accuracy length . . . . .1517
Figure 487. Master MSB-justified 16- or 24-bit data length . . . . .1517
Figure 488. Slave MSB-justified 16-, 24- or 32-bit data length . . . . .1518
Figure 489. LSB-justified 16 or 24-bit data length . . . . .1518
Figure 490. Master PCM when the frame length is equal the data length . . . . .1519
Figure 491. Master PCM standard waveforms (16 or 24-bit data length) . . . . .1519
Figure 492. Slave PCM waveforms . . . . .1520
Figure 493. Startup sequence, I2S Philips standard, master . . . . .1523
Figure 494. Startup sequence, I2S Philips standard, slave . . . . .1524
Figure 495. Stop sequence, I2S Philips standard, master . . . . .1524
Figure 496. I2S clock generator architecture . . . . .1525
Figure 497. Data Format . . . . .1527
Figure 498. Handling of underrun situation . . . . .1529
Figure 499. Handling of overrun situation . . . . .1530
Figure 500. Frame error detection, with FIXCH = 0 . . . . .1531
Figure 501. Frame error detection, with FIXCH = 1 . . . . .1531
Figure 502. CAN subsystem . . . . .1556
Figure 503. FDCAN block diagram . . . . .1558
Figure 504. Bit timing . . . . .1560
Figure 505. Transceiver delay measurement . . . . .1565
Figure 506. Pin control in bus monitoring mode . . . . .1566
Figure 507. Pin control in loop-back mode . . . . .1569
Figure 508. CAN error state diagram . . . . .1570
Figure 509. Message RAM configuration . . . . .1571
Figure 510. Standard message ID filter path . . . . .1574
Figure 511. Extended message ID filter path . . . . .1575
Figure 512. USB peripheral block diagram . . . . .1622
Figure 513. Packet buffer areas with examples of buffer description table locations . . . . .1628
Figure 514. Block diagram of debug support infrastructure . . . . .1669
Figure 515. Product life cycle states and debug authentication . . . . .1672
Figure 516. JTAG TAP state machine . . . . .1674
Figure 517. CoreSight topology . . . . .1695
Figure 518. Trace port interface unit (TPIU) . . . . .1778
Figure 519. Embedded cross trigger . . . . .1791