41. Advanced-control timers (TIM1) 1626

41.1TIM1 introduction1626
41.2TIM1 main features1627
41.3TIM1 functional description1628
41.3.1Block diagram1628
41.3.2TIM1 pins and internal signals1629
41.3.3Time-base unit1633
41.3.4Counter modes1635
41.3.5Repetition counter1647
41.3.6External trigger input1648
41.3.7Clock selection1649
41.3.8Capture/compare channels1653
41.3.9Input capture mode1655
41.3.10PWM input mode1656
41.3.11Forced output mode1657
41.3.12Output compare mode1658
41.3.13PWM mode1659
41.3.14Asymmetric PWM mode1667
41.3.15Combined PWM mode1668
41.3.16Combined 3-phase PWM mode1669
41.3.17Complementary outputs and dead-time insertion1670
41.3.18Using the break function1673
41.3.19Bidirectional break inputs1679
41.3.20Clearing the tim_ocxref signal on an external event1680
41.3.216-step PWM generation1681
41.3.22One-pulse mode1682
41.3.23Retriggerable One-pulse mode1684
41.3.24Pulse on compare mode1685
41.3.25Encoder interface mode1687
41.3.26Direction bit output1704
41.3.27UIF bit remapping1705
41.3.28Timer input XOR function1705
41.3.29Interfacing with Hall sensors1705
41.3.30Timer synchronization1707
41.3.31ADC triggers1712
41.3.32DMA burst mode1712
41.3.33TIM1 DMA requests1713
41.3.34Debug mode1713
41.4TIM1 low-power modes .....1714
41.5TIM1 interrupts .....1714
41.6TIM1 registers .....1715
41.6.1TIM1 control register 1 (TIM1_CR1) .....1715
41.6.2TIM1 control register 2 (TIM1_CR2) .....1716
41.6.3TIM1 slave mode control register (TIM1_SMCR) .....1720
41.6.4TIM1 DMA/interrupt enable register (TIM1_DIER) .....1724
41.6.5TIM1 status register (TIM1_SR) .....1725
41.6.6TIM1 event generation register (TIM1_EGR) .....1728
41.6.7TIM1 capture/compare mode register 1 (TIM1_CCMR1) .....1729
41.6.8TIM1 capture/compare mode register 1 [alternate]
(TIM1_CCMR1) .....
1731
41.6.9TIM1 capture/compare mode register 2 (TIM1_CCMR2) .....1734
41.6.10TIM1 capture/compare mode register 2 [alternate]
(TIM1_CCMR2) .....
1735
41.6.11TIM1 capture/compare enable register (TIM1_CCER) .....1738
41.6.12TIM1 counter (TIM1_CNT) .....1742
41.6.13TIM1 prescaler (TIM1_PSC) .....1742
41.6.14TIM1 autoreload register (TIM1_ARR) .....1743
41.6.15TIM1 repetition counter register (TIM1_RCR) .....1743
41.6.16TIM1 capture/compare register 1 (TIM1_CCR1) .....1744
41.6.17TIM1 capture/compare register 2 (TIM1_CCR2) .....1744
41.6.18TIM1 capture/compare register 3 (TIM1_CCR3) .....1745
41.6.19TIM1 capture/compare register 4 (TIM1_CCR4) .....1746
41.6.20TIM1 break and dead-time register (TIM1_BDTR) .....1747
41.6.21TIM1 capture/compare register 5 (TIM1_CCR5) .....1751
41.6.22TIM1 capture/compare register 6 (TIM1_CCR6) .....1752
41.6.23TIM1 capture/compare mode register 3 (TIM1_CCMR3) .....1753
41.6.24TIM1 timer deadtime register 2 (TIM1_DTR2) .....1754
41.6.25TIM1 timer encoder control register (TIM1_ECR) .....1755
41.6.26TIM1 timer input selection register (TIM1_TISEL) .....1756
41.6.27TIM1 alternate function option register 1 (TIM1_AF1) .....1757
41.6.28TIM1 alternate function register 2 (TIM1_AF2) .....1760
41.6.29TIM1 DMA control register (TIM1_DCR) .....1762
41.6.30TIM1 DMA address for full transfer (TIM1_DMAR) .....1764
41.6.31TIM1 register map .....1764
42General-purpose timers (TIM2/TIM3/TIM4/TIM5) . . . . .1767
42.1TIM2/TIM3/TIM4/TIM5 introduction . . . . .1767
42.2TIM2/TIM3/TIM4/TIM5 main features . . . . .1767
42.3TIM2/TIM3/TIM4/TIM5 implementation . . . . .1768
42.4TIM2/TIM3/TIM4/TIM5 functional description . . . . .1769
42.4.1Block diagram . . . . .1769
42.4.2TIM2/TIM3/TIM4/TIM5 pins and internal signals . . . . .1770
42.4.3Time-base unit . . . . .1773
42.4.4Counter modes . . . . .1775
42.4.5Clock selection . . . . .1787
42.4.6Capture/compare channels . . . . .1791
42.4.7Input capture mode . . . . .1793
42.4.8PWM input mode . . . . .1794
42.4.9Forced output mode . . . . .1795
42.4.10Output compare mode . . . . .1795
42.4.11PWM mode . . . . .1797
42.4.12Asymmetric PWM mode . . . . .1805
42.4.13Combined PWM mode . . . . .1806
42.4.14Clearing the tim_ocxref signal on an external event . . . . .1807
42.4.15One-pulse mode . . . . .1809
42.4.16Retriggerable one-pulse mode . . . . .1810
42.4.17Pulse on compare mode . . . . .1811
42.4.18Encoder interface mode . . . . .1813
42.4.19Direction bit output . . . . .1831
42.4.20UIF bit remapping . . . . .1832
42.4.21Timer input XOR function . . . . .1832
42.4.22Timers and external trigger synchronization . . . . .1832
42.4.23Timer synchronization . . . . .1836
42.4.24ADC triggers . . . . .1841
42.4.25DMA burst mode . . . . .1842
42.4.26TIM2/TIM3/TIM4/TIM5 DMA requests . . . . .1843
42.4.27Debug mode . . . . .1843
42.4.28TIM2/TIM3/TIM4/TIM5 low-power modes . . . . .1843
42.4.29TIM2/TIM3/TIM4/TIM5 interrupts . . . . .1844
42.5TIM2/TIM3/TIM4/TIM5 registers . . . . .1845
42.5.1TIMx control register 1 (TIMx_CR1)(x = 2 to 5) . . . . .1845
42.5.2TIMx control register 2 (TIMx_CR2)(x = 2 to 5) . . . . .1846
42.5.3TIMx slave mode control register (TIMx_SMCR)(x = 2 to 5) . . . . .1848
42.5.4TIMx DMA/Interrupt enable register (TIMx_DIER)(x = 2 to 5) . . . . .1852
42.5.5TIMx status register (TIMx_SR)(x = 2 to 5) . . . . .1853
42.5.6TIMx event generation register (TIMx_EGR)(x = 2 to 5) . . . . .1855
42.5.7TIMx capture/compare mode register 1 (TIMx_CCMR1)(x = 2 to 5) .1856
42.5.8TIMx capture/compare mode register 1 [alternate]
(TIMx_CCMR1)(x = 2 to 5) . . . . .
1858
42.5.9TIMx capture/compare mode register 2 (TIMx_CCMR2)(x = 2 to 5) .1860
42.5.10TIMx capture/compare mode register 2 [alternate]
(TIMx_CCMR2)(x = 2 to 5) . . . . .
1861
42.5.11TIMx capture/compare enable register (TIMx_CCER)(x = 2 to 5) . . .1864
42.5.12TIMx counter (TIMx_CNT)(x = 2 to 5) . . . . .1866
42.5.13TIMx prescaler (TIMx_PSC)(x = 2 to 5) . . . . .1866
42.5.14TIMx autoreload register (TIMx_ARR)(x = 2 to 5) . . . . .1867
42.5.15TIMx capture/compare register 1 (TIMx_CCR1)(x = 2 to 5) . . . . .1867
42.5.16TIMx capture/compare register 2 (TIMx_CCR2)(x = 2 to 5) . . . . .1868
42.5.17TIMx capture/compare register 3 (TIMx_CCR3)(x = 2 to 5) . . . . .1869
42.5.18TIMx capture/compare register 4 (TIMx_CCR4)(x = 2 to 5) . . . . .1870
42.5.19TIMx timer encoder control register (TIMx_ECR)(x = 2 to 5) . . . . .1871
42.5.20TIMx timer input selection register (TIMx_TISEL)(x = 2 to 5) . . . . .1872
42.5.21TIMx alternate function register 1 (TIMx_AF1)(x = 2 to 5) . . . . .1873
42.5.22TIMx alternate function register 2 (TIMx_AF2)(x = 2 to 5) . . . . .1874
42.5.23TIMx DMA control register (TIMx_DCR)(x = 2 to 5) . . . . .1875
42.5.24TIMx DMA address for full transfer (TIMx_DMAR)(x = 2 to 5) . . . . .1876
42.5.25TIMx register map . . . . .1877
43Basic timers (TIM6/TIM7) . . . . .1880
43.1TIM6/TIM7 introduction . . . . .1880
43.2TIM6/TIM7 main features . . . . .1880
43.3TIM6/TIM7 functional description . . . . .1880
43.3.1TIM6/TIM7 block diagram . . . . .1880
43.3.2TIM6/TIM7 internal signals . . . . .1881
43.3.3TIM6/TIM7 clocks . . . . .1881
43.3.4Time-base unit . . . . .1882
43.3.5Counting mode . . . . .1884
43.3.6UIF bit remapping . . . . .1890
43.3.7ADC triggers1891
43.3.8TIM6/TIM7 DMA requests1891
43.3.9Debug mode1891
43.3.10TIM6/TIM7 low-power modes1891
43.3.11TIM6/TIM7 interrupts1891
43.4TIM6/TIM7 registers1892
43.4.1TIMx control register 1 (TIMx_CR1)(x = 6 to 7)1892
43.4.2TIMx control register 2 (TIMx_CR2)(x = 6 to 7)1894
43.4.3TIMx DMA/Interrupt enable register (TIMx_DIER)(x = 6 to 7)1894
43.4.4TIMx status register (TIMx_SR)(x = 6 to 7)1895
43.4.5TIMx event generation register (TIMx_EGR)(x = 6 to 7)1895
43.4.6TIMx counter (TIMx_CNT)(x = 6 to 7)1895
43.4.7TIMx prescaler (TIMx_PSC)(x = 6 to 7)1896
43.4.8TIMx autoreload register (TIMx_ARR)(x = 6 to 7)1896
43.4.9TIMx register map1897
44General-purpose timers (TIM9/TIM12/TIM13/TIM14)1898
44.1TIM9/TIM12/TIM13/TIM14 introduction1898
44.2TIM9/TIM12 main features1898
44.3TIM13/TIM14 main features1899
44.4TIM9/TIM12/TIM13/TIM14 functional description1900
44.4.1Block diagram1900
44.4.2TIM9/TIM12/TIM13/TIM14 pins and internal signals1901
44.4.3Time-base unit1903
44.4.4Counter modes1905
44.4.5Clock selection1908
44.4.6Capture/compare channels1910
44.4.7Input capture mode1912
44.4.8PWM input mode (TIM9/TIM12 only)1913
44.4.9Forced output mode1914
44.4.10Output compare mode1915
44.4.11PWM mode1916
44.4.12Combined PWM mode (TIM9/TIM12 only)1921
44.4.13One-pulse mode1922
44.4.14Retriggerable one pulse mode (TIM9/TIM12 only)1924
44.4.15UIF bit remapping1925
44.4.16Timer input XOR function1925
44.4.17TIM9/TIM12 external trigger synchronization1925
44.4.18Slave mode – combined reset + trigger mode1928
44.4.19Slave mode – combined reset + gated mode1928
44.4.20Timer synchronization (TIM9/TIM12 only)1928
44.4.21Using timer output as trigger for other timers
(TIM13/TIM14 only)
1928
44.4.22ADC triggers (TIM9/TIM12 only)1928
44.4.23Debug mode1928
44.5TIM9/TIM12/TIM13/TIM14 low-power modes1929
44.6TIM9/TIM12/TIM13/TIM14 interrupts1929
44.7TIM9/TIM12 registers1929
44.7.1TIMx control register 1 (TIMx_CR1)(x = 9, 12)1929
44.7.2TIM12 control register 2 (TIMx_CR2)(x = 9, 12)1931
44.7.3TIMx slave mode control register (TIMx_SMCR)(x = 9, 12)1931
44.7.4TIMx interrupt enable register (TIMx_DIER)(x = 9, 12)1933
44.7.5TIMx status register (TIMx_SR)(x = 9, 12)1934
44.7.6TIMx event generation register (TIMx_EGR)(x = 9, 12)1935
44.7.7TIMx capture/compare mode register 1 (TIMx_CCMR1)(x = 9, 12)1936
44.7.8TIMx capture/compare mode register 1 [alternate]
(TIMx_CCMR1)(x = 9, 12)
1937
44.7.9TIMx capture/compare enable register (TIMx_CCER)(x = 9, 12)1940
44.7.10TIMx counter (TIMx_CNT)(x = 9, 12)1941
44.7.11TIMx prescaler (TIMx_PSC)(x = 9, 12)1942
44.7.12TIMx autoreload register (TIMx_ARR)(x = 9, 12)1942
44.7.13TIMx capture/compare register 1 (TIMx_CCR1)(x = 9, 12)1943
44.7.14TIMx capture/compare register 2 (TIMx_CCR2)(x = 9, 12)1943
44.7.15TIMx timer input selection register (TIMx_TISEL)(x = 9, 12)1944
44.7.16TIM9/TIM12 register map1945
44.8TIM13/TIM14 registers1947
44.8.1TIMx control register 1 (TIMx_CR1)(x = 13, 14)1947
44.8.2TIMx interrupt enable register (TIMx_DIER)(x = 13, 14)1948
44.8.3TIMx status register (TIMx_SR)(x = 13, 14)1948
44.8.4TIMx event generation register (TIMx_EGR)(x = 13, 14)1949
44.8.5TIMx capture/compare mode register 1
(TIMx_CCMR1)(x = 13, 14)
1950
44.8.6TIMx capture/compare mode register 1 [alternate]
(TIMx_CCMR1)(x = 13, 14)
1951
44.8.7TIMx capture/compare enable register
(TIMx_CCER)(x = 13, 14) .....
1953
44.8.8TIMx counter (TIMx_CNT)(x = 13, 14) .....1954
44.8.9TIMx prescaler (TIMx_PSC)(x = 13, 14) .....1955
44.8.10TIMx autoreload register (TIMx_ARR)(x = 13, 14) .....1955
44.8.11TIMx capture/compare register 1 (TIMx_CCR1)(x = 13, 14) .....1956
44.8.12TIMx timer input selection register (TIMx_TISEL)(x = 13, 14) .....1956
44.8.13TIM13/TIM14 register map .....1957
45General purpose timers (TIM15/TIM16/TIM17) .....1959
45.1TIM15/TIM16/TIM17 introduction .....1959
45.2TIM15 main features .....1959
45.3TIM16/TIM17 main features .....1960
45.4TIM15/TIM16/TIM17 functional description .....1961
45.4.1Block diagram .....1961
45.4.2TIM15/TIM16/TIM17 pins and internal signals .....1962
45.4.3Time-base unit .....1965
45.4.4Counter modes .....1967
45.4.5Repetition counter .....1971
45.4.6Clock selection .....1972
45.4.7Capture/compare channels .....1974
45.4.8Input capture mode .....1976
45.4.9PWM input mode (only for TIM15) .....1978
45.4.10Forced output mode .....1979
45.4.11Output compare mode .....1979
45.4.12PWM mode .....1981
45.4.13Combined PWM mode (TIM15 only) .....1986
45.4.14Complementary outputs and dead-time insertion .....1987
45.4.15Using the break function .....1990
45.4.16Bidirectional break input .....1994
45.4.17Clearing the tim_ocxref signal on an external event .....1995
45.4.186-step PWM generation .....1996
45.4.19One-pulse mode .....1998
45.4.20Retriggerable one pulse mode (TIM15 only) .....1999
45.4.21UIF bit remapping .....2000
45.4.22Timer input XOR function (TIM15 only) .....2000
45.4.23External trigger synchronization (TIM15 only) .....2000
45.4.24Slave mode – combined reset + trigger mode (TIM15 only) . . . . .2003
45.4.25Slave mode – combined reset + gated mode (TIM15 only) . . . . .2003
45.4.26Timer synchronization (TIM15 only) . . . . .2004
45.4.27Using timer output as trigger for other timers (TIM16/TIM17 only) . . .2004
45.4.28ADC triggers (TIM15 only) . . . . .2004
45.4.29DMA burst mode . . . . .2004
45.4.30TIM15/TIM16/TIM17 DMA requests . . . . .2005
45.4.31Debug mode . . . . .2006
45.5TIM15/TIM16/TIM17 low-power modes . . . . .2006
45.6TIM15/TIM16/TIM17 interrupts . . . . .2006
45.7TIM15 registers . . . . .2006
45.7.1TIM15 control register 1 (TIM15_CR1) . . . . .2007
45.7.2TIM15 control register 2 (TIM15_CR2) . . . . .2008
45.7.3TIM15 slave mode control register (TIM15_SMCR) . . . . .2010
45.7.4TIM15 DMA/interrupt enable register (TIM15_DIER) . . . . .2012
45.7.5TIM15 status register (TIM15_SR) . . . . .2013
45.7.6TIM15 event generation register (TIM15_EGR) . . . . .2015
45.7.7TIM15 capture/compare mode register 1 (TIM15_CCMR1) . . . . .2016
45.7.8TIM15 capture/compare mode register 1 [alternate]
(TIM15_CCMR1) . . . . .
2018
45.7.9TIM15 capture/compare enable register (TIM15_CCER) . . . . .2020
45.7.10TIM15 counter (TIM15_CNT) . . . . .2023
45.7.11TIM15 prescaler (TIM15_PSC) . . . . .2023
45.7.12TIM15 autoreload register (TIM15_ARR) . . . . .2024
45.7.13TIM15 repetition counter register (TIM15_RCR) . . . . .2024
45.7.14TIM15 capture/compare register 1 (TIM15_CCR1) . . . . .2025
45.7.15TIM15 capture/compare register 2 (TIM15_CCR2) . . . . .2026
45.7.16TIM15 break and dead-time register (TIM15_BDTR) . . . . .2026
45.7.17TIM15 timer deadtime register 2 (TIM15_DTR2) . . . . .2029
45.7.18TIM15 input selection register (TIM15_TISEL) . . . . .2030
45.7.19TIM15 alternate function register 1 (TIM15_AF1) . . . . .2031
45.7.20TIM15 alternate function register 2 (TIM15_AF2) . . . . .2033
45.7.21TIM15 DMA control register (TIM15_DCR) . . . . .2034
45.7.22TIM15 DMA address for full transfer (TIM15_DMAR) . . . . .2035
45.7.23TIM15 register map . . . . .2035
45.8TIM16/TIM17 registers . . . . .2038
45.8.1TIMx control register 1 (TIMx_CR1)(x = 16 to 17) . . . . .2038
45.8.2TIMx control register 2 (TIMx_CR2)(x = 16 to 17) . . . . .2039
45.8.3TIMx DMA/interrupt enable register (TIMx_DIER)(x = 16 to 17) . . . . .2040
45.8.4TIMx status register (TIMx_SR)(x = 16 to 17) . . . . .2041
45.8.5TIMx event generation register (TIMx_EGR)(x = 16 to 17) . . . . .2042
45.8.6TIMx capture/compare mode register 1 (TIMx_CCMR1)
(x = 16 to 17) . . . . .
2043
45.8.7TIMx capture/compare mode register 1 [alternate]
(TIMx_CCMR1)(x = 16 to 17) . . . . .
2044
45.8.8TIMx capture/compare enable register (TIMx_CCER)(x = 16 to 17) . . . . .2046
45.8.9TIMx counter (TIMx_CNT)(x = 16 to 17) . . . . .2049
45.8.10TIMx prescaler (TIMx_PSC)(x = 16 to 17) . . . . .2049
45.8.11TIMx auto-reautoreload register (TIMx_ARR)(x = 16 to 17) . . . . .2050
45.8.12TIMx repetition counter register (TIMx_RCR)(x = 16 to 17) . . . . .2050
45.8.13TIMx capture/compare register 1 (TIMx_CCR1)(x = 16 to 17) . . . . .2051
45.8.14TIMx break and dead-time register (TIMx_BDTR)(x = 16 to 17) . . . . .2052
45.8.15TIMx timer deadtime register 2 (TIMx_DTR2)(x = 16 to 17) . . . . .2055
45.8.16TIMx input selection register (TIMx_TISEL)(x = 16 to 17) . . . . .2056
45.8.17TIMx alternate function register 1 (TIMx_AF1)(x = 16 to 17) . . . . .2056
45.8.18TIMx alternate function register 2 (TIMx_AF2)(x = 16 to 17) . . . . .2059
45.8.19TIMx DMA control register (TIMx_DCR)(x = 16 to 17) . . . . .2060
45.8.20TIM16/TIM17 DMA address for full transfer (TIMx_DMAR)
(x = 16 to 17) . . . . .
2061
45.8.21TIM16/TIM17 register map . . . . .2062
46Low-power timer (LPTIM) . . . . .2064
46.1LPTIM introduction . . . . .2064
46.2LPTIM main features . . . . .2064
46.3LPTIM implementation . . . . .2065
46.4LPTIM functional description . . . . .2066
46.4.1LPTIM block diagram . . . . .2066
46.4.2LPTIM pins and internal signals . . . . .2067
46.4.3LPTIM input and trigger mapping . . . . .2069
46.4.4LPTIM reset and clocks . . . . .2070
46.4.5Glitch filter . . . . .2071
46.4.6Prescaler . . . . .2072
46.4.7Trigger multiplexer . . . . .2072
46.4.8Operating mode . . . . .2073
46.4.9Timeout function . . . . .2075
46.4.10Waveform generation .....2075
46.4.11Register update .....2076
46.4.12Counter mode .....2077
46.4.13Timer enable .....2077
46.4.14Timer counter reset .....2078
46.4.15Encoder mode .....2078
46.4.16Repetition counter .....2080
46.4.17Capture/compare channels .....2081
46.4.18Input capture mode .....2082
46.4.19PWM mode .....2084
46.4.20DMA requests .....2086
46.4.21Debug mode .....2087
46.5LPTIM low-power modes .....2087
46.6LPTIM interrupts .....2087
46.7LPTIM registers .....2088
46.7.1LPTIMx interrupt and status register (LPTIMx_ISR)(x = 4 to 5) .....2089
46.7.2LPTIMx interrupt and status register [alternate] (LPTIMx_ISR)
(x = 1 to 3) .....
2090
46.7.3LPTIMx interrupt and status register [alternate] (LPTIMx_ISR)
(x = 1 to 3) .....
2092
46.7.4LPTIMx interrupt clear register (LPTIMx_ICR)(x = 4 to 5) .....2094
46.7.5LPTIMx interrupt clear register [alternate] (LPTIMx_ICR)
(x = 1 to 3) .....
2095
46.7.6LPTIMx interrupt clear register [alternate] (LPTIMx_ICR)
(x = 1 to 3) .....
2096
46.7.7LPTIMx interrupt enable register (LPTIMx_DIER)(x = 4 to 5) .....2097
46.7.8LPTIMx interrupt enable register [alternate] (LPTIMx_DIER)
(x = 1 to 3) .....
2099
46.7.9LPTIMx interrupt enable register [alternate] (LPTIMx_DIER)
(x = 1 to 3) .....
2100
46.7.10LPTIM configuration register (LPTIM_CFGR) .....2102
46.7.11LPTIM control register (LPTIM_CR) .....2105
46.7.12LPTIM compare register 1 (LPTIM_CCR1) .....2106
46.7.13LPTIM autoreload register (LPTIM_ARR) .....2107
46.7.14LPTIM counter register (LPTIM_CNT) .....2107
46.7.15LPTIM configuration register 2 (LPTIM_CFGR2) .....2108
46.7.16LPTIM repetition register (LPTIM_RCR) .....2109
46.7.17LPTIM capture/compare mode register 1 (LPTIM_CCMR1) .....2109
46.7.18LPTIM compare register 2 (LPTIM_CCR2) .....2112
46.7.19LPTIM register map .....2112
47System window watchdog (WWDG) .....2115
47.1WWDG introduction .....2115
47.2WWDG main features .....2115
47.3WWDG implementation .....2115
47.4WWDG functional description .....2116
47.4.1WWDG block diagram .....2116
47.4.2WWDG internal signals .....2116
47.4.3Enabling the watchdog .....2117
47.4.4Controlling the down-counter .....2117
47.4.5How to program the watchdog timeout .....2117
47.4.6Debug mode .....2118
47.5WWDG interrupts .....2119
47.6WWDG registers .....2119
47.6.1WWDG control register (WWDG_CR) .....2119
47.6.2WWDG configuration register (WWDG_CFR) .....2120
47.6.3WWDG status register (WWDG_SR) .....2120
47.6.4WWDG register map .....2121
48Independent watchdog (IWDG) .....2122
48.1IWDG introduction .....2122
48.2IWDG main features .....2122
48.3IWDG implementation .....2122
48.4IWDG functional description .....2123
48.4.1IWDG block diagram .....2123
48.4.2IWDG internal signals .....2124
48.4.3Software and hardware watchdog modes .....2124
48.4.4Window option .....2125
48.4.5Debug .....2128
48.4.6Register access protection .....2128
48.5IWDG low power modes .....2129
48.6IWDG interrupts .....2129
48.7IWDG registers .....2131
48.7.1IWDG key register (IWDG_KR) .....2132
48.7.2IWDG prescaler register (IWDG_PR) .....2132
48.7.3IWDG reload register (IWDG_RLR) .....2133
48.7.4IWDG status register (IWDG_SR) .....2133
48.7.5IWDG window register (IWDG_WINR) .....2135
48.7.6IWDG early wake-up interrupt register (IWDG_EWCR) .....2135
48.7.7IWDG register map .....2136
49Real-time clock (RTC) .....2137
49.1RTC introduction .....2137
49.2RTC main features .....2137
49.3RTC functional description .....2137
49.3.1RTC block diagram .....2137
49.3.2RTC pins and internal signals .....2139
49.3.3GPIOs controlled by the RTC and TAMP .....2140
49.3.4RTC privilege protection modes .....2143
49.3.5Clock and prescalers .....2144
49.3.6Real-time clock and calendar .....2145
49.3.7Calendar ultra-low power mode .....2146
49.3.8Programmable alarms .....2146
49.3.9Periodic auto-wake-up .....2146
49.3.10RTC initialization and configuration .....2147
49.3.11Reading the calendar .....2150
49.3.12Resetting the RTC .....2151
49.3.13RTC synchronization .....2152
49.3.14RTC reference clock detection .....2152
49.3.15RTC smooth digital calibration .....2153
49.3.16Timestamp function .....2155
49.3.17Calibration clock output .....2156
49.3.18Tamper and alarm output .....2156
49.4RTC low-power modes .....2157
49.5RTC interrupts .....2157
49.6RTC registers .....2158
49.6.1RTC time register (RTC_TR) .....2158
49.6.2RTC date register (RTC_DR) .....2159
49.6.3RTC subsecond register (RTC_SSR) .....2160
49.6.4RTC initialization control and status register (RTC_ICSR) .....2161
49.6.5RTC prescaler register (RTC_PRER) .....2163
49.6.6RTC wake-up timer register (RTC_WUTR) .....2163
49.6.7RTC control register (RTC_CR) .....2164
49.6.8RTC privilege mode control register (RTC_PRIVCFGR) .....2168
49.6.9RTC write protection register (RTC_WPR) .....2169
49.6.10RTC calibration register (RTC_CALR) .....2170
49.6.11RTC shift control register (RTC_SHIFTR) .....2171
49.6.12RTC timestamp time register (RTC_TSTR) .....2172
49.6.13RTC timestamp date register (RTC_TSDR) .....2173
49.6.14RTC timestamp subsecond register (RTC_TSSSR) .....2174
49.6.15RTC alarm A register (RTC_ALRMAR) .....2174
49.6.16RTC alarm A subsecond register (RTC_ALRMASSR) .....2175
49.6.17RTC alarm B register (RTC_ALRMBR) .....2176
49.6.18RTC alarm B subsecond register (RTC_ALRMBSSR) .....2177
49.6.19RTC status register (RTC_SR) .....2178
49.6.20RTC masked interrupt status register (RTC_MISR) .....2180
49.6.21RTC status clear register (RTC_SCR) .....2181
49.6.22RTC alarm A binary mode register (RTC_ALRABINR) .....2182
49.6.23RTC alarm B binary mode register (RTC_ALRBBINR) .....2182
49.6.24RTC register map .....2184
50Tamper and backup registers (TAMP) .....2186
50.1TAMP introduction .....2186
50.2TAMP main features .....2186
50.3TAMP functional description .....2187
50.3.1TAMP block diagram .....2187
50.3.2TAMP pins and internal signals .....2188
50.3.3GPIOs controlled by the RTC and TAMP .....2190
50.3.4TAMP register write protection .....2191
50.3.5Backup registers protection zones .....2191
50.3.6TAMP privilege protection modes .....2191
50.3.7Boot hardware key (BHK) .....2192
50.3.8Tamper detection .....2192
50.3.9TAMP backup registers and other device secrets erase .....2193
50.3.10Tamper detection configuration and initialization .....2194
50.4TAMP low-power modes .....2200
50.5TAMP interrupts .....2201
50.6TAMP registers .....2201
50.6.1TAMP control register 1 (TAMP_CR1) .....2201
50.6.2TAMP control register 2 (TAMP_CR2) .....2203
50.6.3TAMP control register 3 (TAMP_CR3) .....2206
50.6.4TAMP filter control register (TAMP_FLTCR) .....2207
50.6.5TAMP active tamper control register 1 (TAMP_ATCR1) .....2208
50.6.6TAMP active tamper seed register (TAMP_ATSEEDR) .....2211
50.6.7TAMP active tamper output register (TAMP_ATOMR) .....2211
50.6.8TAMP active tamper control register 2 (TAMP_ATCR2) .....2212
50.6.9TAMP configuration register (TAMP_CFGR) .....2215
50.6.10TAMP privilege configuration register (TAMP_PRIVCFGR) .....2216
50.6.11TAMP interrupt enable register (TAMP_IER) .....2217
50.6.12TAMP status register (TAMP_SR) .....2219
50.6.13TAMP masked interrupt status register (TAMP_MISR) .....2221
50.6.14TAMP status clear register (TAMP_SCR) .....2223
50.6.15TAMP monotonic counter 1 register (TAMP_COUNT1R) .....2225
50.6.16TAMP resources protection configuration register (TAMP_RPCFGR) .....2225
50.6.17TAMP backup x register (TAMP_BKPxR) .....2226
50.6.18TAMP register map .....2227
51Inter-integrated circuit interface (I2C) .....2229
51.1I2C introduction .....2229
51.2I2C main features .....2229
51.3I2C implementation .....2230
51.4I2C functional description .....2230
51.4.1I2C block diagram .....2231
51.4.2I2C pins and internal signals .....2231
51.4.3I2C clock requirements .....2232
51.4.4I2C mode selection .....2232
51.4.5I2C initialization .....2233
51.4.6I2C reset .....2237
51.4.7I2C data transfer .....2238
51.4.8I2C target mode .....2240
51.4.9I2C controller mode .....2249
51.4.10I2C_TIMINGR register configuration examples .....2260
51.4.11SMBus specific features .....2262
51.4.12SMBus initialization .....2264
51.4.13SMBus I2C_TIMEOUTR register configuration examples2266
51.4.14SMBus target mode2267
51.4.15SMBus controller mode2270
51.4.16Wake-up from Stop mode on address match2273
51.4.17Error conditions2274
51.5I2C in low-power modes2276
51.6I2C interrupts2276
51.7I2C DMA requests2277
51.7.1Transmission using DMA2277
51.7.2Reception using DMA2277
51.8I2C debug modes2277
51.9I2C registers2278
51.9.1I2C control register 1 (I2C_CR1)2278
51.9.2I2C control register 2 (I2C_CR2)2281
51.9.3I2C own address 1 register (I2C_OAR1)2283
51.9.4I2C own address 2 register (I2C_OAR2)2283
51.9.5I2C timing register (I2C_TIMINGR)2284
51.9.6I2C timeout register (I2C_TIMEOUTR)2285
51.9.7I2C interrupt and status register (I2C_ISR)2286
51.9.8I2C interrupt clear register (I2C_ICR)2289
51.9.9I2C PEC register (I2C_PECR)2290
51.9.10I2C receive data register (I2C_RXDR)2290
51.9.11I2C transmit data register (I2C_TXDR)2291
51.9.12I2C register map2292
52Improved inter-integrated circuit (I3C)2293
52.1I3C introduction2293
52.2I3C main features2293
52.3I3C implementation2295
52.3.1I3C instantiation2295
52.3.2I3C wake-up from low-power mode(s)2295
52.3.3I3C FIFOs2295
52.3.4I3C triggers2295
52.3.5I3C interrupt(s)2295
52.3.6I3C MIPI® support2296
52.4I3C block diagram2297
52.5I3C pins and internal signals .....2297
52.6I3C reset and clocks .....2298
52.6.1I3C reset .....2298
52.6.2I3C clocks and requirements .....2298
52.7I3C peripheral state and programming .....2300
52.7.1I3C peripheral state .....2300
52.7.2I3C controller state and programming sequence .....2301
52.7.3I3C target state and programming sequence .....2305
52.8I3C registers and programming .....2309
52.8.1I3C register set, as controller/target .....2309
52.8.2I3C registers and fields use versus peripheral state, as controller ..2310
52.8.3I3C registers and fields usage versus peripheral state, as target ..2313
52.9I3C bus transfers and programming .....2315
52.9.1I3C command set (CCCs), as controller/target .....2315
52.9.2I3C broadcast/direct CCC transfer (except ENTDA, RSTACT),
as controller .....
2319
52.9.3I3C broadcast ENTDA CCC transfer, as controller .....2321
52.9.4I3C broadcast/direct RSTACT CCC transfer, as controller .....2321
52.9.5I3C broadcast/direct CCC transfer
(except ENTDA, DEFTGTS, DEFGRPA), as target .....
2323
52.9.6I3C broadcast ENTDA CCC transfer, as target .....2325
52.9.7I3C broadcast DEFTGTS CCC transfer, as target .....2326
52.9.8I3C broadcast DEFGRPA CCC transfer, as target .....2327
52.9.9I3C direct GETSTATUS CCC response, as target .....2328
52.9.10I3C private read/write transfer, as controller .....2329
52.9.11I3C private read/write transfer, as target .....2330
52.9.12Legacy I2C read/write transfer, as controller .....2331
52.9.13I3C IBI transfer, as controller/target .....2332
52.9.14I3C hot-join request transfer, as controller/target .....2333
52.9.15I3C controller-role request transfer, as controller/target .....2334
52.10I3C FIFOs management, as controller .....2335
52.10.1C-FIFO management, as controller .....2335
52.10.2TX-FIFO management, as controller .....2336
52.10.3RX-FIFO management, as controller .....2339
52.10.4S-FIFO management, as controller .....2341
52.11I3C FIFOs management, as target .....2343
52.11.1RX-FIFO management, as target .....2343
52.11.2TX-FIFO management, as target .....2344
52.12I3C error management .....2347
52.12.1Controller error management .....2347
52.12.2Target error management .....2349
52.13I3C wake-up from low-power mode(s) .....2350
52.13.1Wake-up from Stop .....2350
52.14I3C in low-power modes .....2353
52.15I3C interrupts .....2354
52.16I3C registers .....2355
52.16.1I3C message control register (I3C_CR) .....2355
52.16.2I3C message control register [alternate] (I3C_CR) .....2357
52.16.3I3C configuration register (I3C_CFGR) .....2359
52.16.4I3C receive data byte register (I3C_RDR) .....2364
52.16.5I3C receive data word register (I3C_RDWR) .....2364
52.16.6I3C transmit data byte register (I3C_TDR) .....2365
52.16.7I3C transmit data word register (I3C_TDWR) .....2366
52.16.8I3C IBI payload data register (I3C_IBIDR) .....2368
52.16.9I3C target transmit configuration register (I3C_TGTTDR) .....2369
52.16.10I3C status register (I3C_SR) .....2370
52.16.11I3C status error register (I3C_SER) .....2371
52.16.12I3C received message register (I3C_RMR) .....2373
52.16.13I3C event register (I3C_EVR) .....2374
52.16.14I3C interrupt enable register (I3C_IER) .....2378
52.16.15I3C clear event register (I3C_CEV) .....2380
52.16.16I3C own device characteristics register (I3C_DEVR0) .....2382
52.16.17I3C device x characteristics register (I3C_DEVRx) .....2384
52.16.18I3C maximum read length register (I3C_MAXRLR) .....2386
52.16.19I3C maximum write length register (I3C_MAXWLR) .....2387
52.16.20I3C timing register 0 (I3C_TIMINGR0) .....2388
52.16.21I3C timing register 1 (I3C_TIMINGR1) .....2389
52.16.22I3C timing register 2 (I3C_TIMINGR2) .....2391
52.16.23I3C bus characteristics register (I3C_BCR) .....2392
52.16.24I3C device characteristics register (I3C_DCR) .....2393
52.16.25I3C get capability register (I3C_GETCAPR) .....2394
52.16.26I3C controller-role capability register (I3C_CRCAPR) .....2395
52.16.27I3C get max data speed register (I3C_GETMXDSR) .....2396
52.16.28I3C extended provisioned ID register (I3C_EPIDR) .....2398
52.16.29I3C register map .....2399
53Universal synchronous/asynchronous receiver transmitter (USART/UART) .....2402
53.1USART introduction .....2402
53.2USART main features .....2402
53.3USART extended features .....2403
53.4USART implementation .....2403
53.5USART functional description .....2405
53.5.1USART block diagram .....2405
53.5.2USART pins and internal signals .....2405
53.5.3USART clocks .....2407
53.5.4USART character description .....2407
53.5.5USART FIFOs and thresholds .....2410
53.5.6USART transmitter .....2410
53.5.7USART receiver .....2413
53.5.8USART baud rate generation .....2420
53.5.9Tolerance of the USART receiver to clock deviation .....2422
53.5.10USART auto baud rate detection .....2423
53.5.11USART multiprocessor communication .....2425
53.5.12USART Modbus communication .....2427
53.5.13USART parity control .....2428
53.5.14USART LIN (local interconnection network) mode .....2429
53.5.15USART synchronous mode .....2431
53.5.16USART single-wire half-duplex communication .....2435
53.5.17USART receiver timeout .....2435
53.5.18USART smartcard mode .....2436
53.5.19USART IrDA SIR ENDEC block .....2440
53.5.20Continuous communication using USART and DMA .....2443
53.5.21RS232 hardware flow control and RS485 driver enable .....2445
53.5.22USART low-power management .....2448
53.6USART in low-power modes .....2451
53.7USART interrupts .....2451
53.8USART registers .....2454
53.8.1USART control register 1 (USART_CR1) .....2454
53.8.2USART control register 1 [alternate] (USART_CR1) .....2458
53.8.3USART control register 2 (USART_CR2) .....2461
53.8.4USART control register 3 (USART_CR3) .....2465
53.8.5USART control register 3 [alternate] (USART_CR3) .....2469
53.8.6USART baud rate register (USART_BRR) .....2472
53.8.7USART guard time and prescaler register (USART_GTPR) .....2473
53.8.8USART receiver timeout register (USART_RTOR) .....2474
53.8.9USART request register (USART_RQR) .....2475
53.8.10USART interrupt and status register (USART_ISR) .....2476
53.8.11USART interrupt and status register [alternate] (USART_ISR) .....2482
53.8.12USART interrupt flag clear register (USART_ICR) .....2487
53.8.13USART receive data register (USART_RDR) .....2488
53.8.14USART transmit data register (USART_TDR) .....2489
53.8.15USART prescaler register (USART_PRESC) .....2489
53.8.16USART register map .....2490
54Low-power universal asynchronous receiver
transmitter (LPUART) .....
2492
54.1LPUART introduction .....2492
54.2LPUART main features .....2492
54.3LPUART implementation .....2493
54.4LPUART functional description .....2495
54.4.1LPUART block diagram .....2495
54.4.2LPUART pins and internal signals .....2496
54.4.3LPUART clocks .....2497
54.4.4LPUART character description .....2497
54.4.5LPUART FIFOs and thresholds .....2499
54.4.6LPUART transmitter .....2499
54.4.7LPUART receiver .....2503
54.4.8LPUART baud rate generation .....2507
54.4.9Tolerance of the LPUART receiver to clock deviation .....2508
54.4.10LPUART multiprocessor communication .....2509
54.4.11LPUART parity control .....2511
54.4.12LPUART single-wire half-duplex communication .....2512
54.4.13Continuous communication using DMA and LPUART .....2512
54.4.14RS232 hardware flow control and RS485 driver enable .....2515
54.4.15LPUART low-power management .....2517
54.5LPUART in low-power modes2520
54.6LPUART interrupts2521
54.7LPUART registers2522
54.7.1LPUART control register 1 (LPUART_CR1)2522
54.7.2LPUART control register 1 [alternate] (LPUART_CR1)2525
54.7.3LPUART control register 2 (LPUART_CR2)2528
54.7.4LPUART control register 3 (LPUART_CR3)2530
54.7.5LPUART control register 3 [alternate] (LPUART_CR3)2533
54.7.6LPUART baud rate register (LPUART_BRR)2535
54.7.7LPUART request register (LPUART_RQR)2535
54.7.8LPUART interrupt and status register (LPUART_ISR)2536
54.7.9LPUART interrupt and status register [alternate] (LPUART_ISR)2541
54.7.10LPUART interrupt flag clear register (LPUART_ICR)2544
54.7.11LPUART receive data register (LPUART_RDR)2545
54.7.12LPUART transmit data register (LPUART_TDR)2545
54.7.13LPUART prescaler register (LPUART_PRESC)2546
54.7.14LPUART register map2547
55Serial peripheral interface (SPI)2549
55.1SPI introduction2549
55.2SPI main features2549
55.3SPI implementation2550
55.4SPI functional description2551
55.4.1SPI block diagram2551
55.4.2SPI pins and internal signals2552
55.4.3SPI communication general aspects2553
55.4.4Communications between one master and one slave2553
55.4.5Standard multislave communication2556
55.4.6Multimaster communication2559
55.4.7Slave select (NSS pin) management2560
55.4.8Ready pin (RDY) management2564
55.4.9Communication formats2564
55.4.10Configuring the SPI2566
55.4.11Enabling the SPI2567
55.4.12SPI data transmission and reception procedures2568
55.4.13Disabling the SPI2572
55.4.14Communication using DMA (direct memory addressing) . . . . .2573
55.5SPI specific modes and control . . . . .2575
55.5.1TI mode . . . . .2575
55.5.2SPI error flags . . . . .2575
55.5.3CRC computation . . . . .2579
55.6SPI in low-power modes . . . . .2580
55.7SPI interrupts . . . . .2580
55.8I2S main features . . . . .2582
55.9I2S functional description . . . . .2582
55.9.1I2S general description . . . . .2582
55.9.2Pin sharing with SPI function . . . . .2583
55.9.3Bitfields usable in I2S/PCM mode . . . . .2583
55.9.4Slave and master modes . . . . .2584
55.9.5Supported audio protocols . . . . .2584
55.9.6Additional serial interface flexibility . . . . .2590
55.9.7Startup sequence . . . . .2592
55.9.8Stop sequence . . . . .2594
55.9.9Clock generator . . . . .2595
55.9.10Internal FIFOs . . . . .2597
55.9.11FIFO status flags . . . . .2598
55.9.12Handling of underrun situation . . . . .2598
55.9.13Handling of overrun situation . . . . .2599
55.9.14Frame error detection . . . . .2600
55.9.15DMA interface . . . . .2602
55.9.16Programing examples . . . . .2602
55.10I2S interrupts . . . . .2605
55.11SPI/I2S registers . . . . .2605
55.11.1SPI/I2S control register 1 (SPI_CR1) . . . . .2605
55.11.2SPI/I2S control register 2 (SPI_CR2) . . . . .2607
55.11.3SPI/I2S configuration register 1 (SPI_CFG1) . . . . .2608
55.11.4SPI/I2S configuration register 2 (SPI_CFG2) . . . . .2611
55.11.5SPI/I2S interrupt enable register (SPI_IER) . . . . .2613
55.11.6SPI/I2S status register (SPI_SR) . . . . .2614
55.11.7SPI/I2S interrupt/status flags clear register (SPI_IFCR) . . . . .2617
55.11.8SPI/I2S transmit data register (SPI_TXDR) . . . . .2618
55.11.9SPI/I2S receive data register (SPI_RXDR) . . . . .2618
55.11.10SPI/I2S polynomial register (SPI_CRCPOLY) . . . . .2619
55.11.11SPI/I2S transmitter CRC register (SPI_TXCRC) . . . . .2619
55.11.12SPI/I2S receiver CRC register (SPI_RXCRC) . . . . .2620
55.11.13SPI/I2S underrun data register (SPI_UDRDR) . . . . .2621
55.11.14SPI/I2S configuration register (SPI_I2SCFGR) . . . . .2621
55.11.15SPI/I2S register map . . . . .2623
56Serial audio interface (SAI) . . . . .2625
56.1SAI introduction . . . . .2625
56.2SAI main features . . . . .2625
56.3SAI implementation . . . . .2626
56.4SAI functional description . . . . .2626
56.4.1SAI block diagram . . . . .2626
56.4.2SAI pins and internal signals . . . . .2628
56.4.3Main SAI modes . . . . .2629
56.4.4SAI synchronization mode . . . . .2630
56.4.5Audio data size . . . . .2631
56.4.6Frame synchronization . . . . .2631
56.4.7Slot configuration . . . . .2634
56.4.8SAI clock generator . . . . .2636
56.4.9Internal FIFOs . . . . .2639
56.4.10PDM interface . . . . .2641
56.4.11AC'97 link controller . . . . .2649
56.4.12SPDIF output . . . . .2651
56.4.13Specific features . . . . .2654
56.4.14Error flags . . . . .2658
56.4.15Disabling the SAI . . . . .2661
56.4.16SAI DMA interface . . . . .2661
56.5SAI interrupts . . . . .2662
56.6SAI registers . . . . .2664
56.6.1SAI global configuration register (SAI_GCR) . . . . .2664
56.6.2SAI configuration register 1 (SAI_ACR1) . . . . .2664
56.6.3SAI configuration register 2 (SAI_ACR2) . . . . .2667
56.6.4SAI frame configuration register (SAI_AFRCR) . . . . .2669
56.6.5SAI slot register (SAI_ASLOTR) . . . . .2670
56.6.6SAI interrupt mask register (SAI_AIM) . . . . .2671
56.6.7SAI status register (SAI_ASR) .....2673
56.6.8SAI clear flag register (SAI_ACLRFR) .....2675
56.6.9SAI data register (SAI_ADR) .....2676
56.6.10SAI configuration register 1 (SAI_BCR1) .....2676
56.6.11SAI configuration register 2 (SAI_BCR2) .....2679
56.6.12SAI frame configuration register (SAI_BFRCR) .....2681
56.6.13SAI slot register (SAI_BSLOTR) .....2682
56.6.14SAI interrupt mask register (SAI_BIM) .....2683
56.6.15SAI status register (SAI_BSR) .....2684
56.6.16SAI clear flag register (SAI_BCLRFR) .....2686
56.6.17SAI data register (SAI_BDR) .....2687
56.6.18SAI PDM control register (SAI_PDMCR) .....2688
56.6.19SAI PDM delay register (SAI_PDMDLY) .....2689
56.6.20SAI register map .....2691
57SPDIF receiver interface (SPDIFRX) .....2693
57.1SPDIFRX interface introduction .....2693
57.2SPDIFRX main features .....2693
57.3SPDIFRX functional description .....2693
57.3.1SPDIFRX pins and internal signals .....2694
57.3.2S/PDIF protocol (IEC-60958) .....2695
57.3.3SPDIFRX decoder (SPDIFRX_DC) .....2697
57.3.4SPDIFRX tolerance to clock deviation .....2701
57.3.5SPDIFRX synchronization .....2701
57.3.6SPDIFRX handling .....2703
57.3.7Data reception management .....2705
57.3.8Dedicated control flow .....2707
57.3.9Reception errors .....2708
57.3.10Clocking strategy .....2710
57.3.11Symbol clock generation .....2710
57.3.12DMA interface .....2712
57.3.13Interrupt generation .....2713
57.3.14Register protection .....2714
57.4Programming procedures .....2714
57.4.1Initialization phase .....2715
57.4.2Handling of interrupts coming from SPDIFRX .....2716
57.4.3Handling of interrupts coming from DMA .....2716
57.5SPDIFRX interface registers2717
57.5.1SPDIFRX control register (SPDIFRX_CR)2717
57.5.2SPDIFRX interrupt mask register (SPDIFRX_IMR)2719
57.5.3SPDIFRX status register (SPDIFRX_SR)2720
57.5.4SPDIFRX interrupt flag clear register (SPDIFRX_IFCR)2722
57.5.5SPDIFRX data input register (SPDIFRX_FMT0_DR)2723
57.5.6SPDIFRX data input register (SPDIFRX_FMT1_DR)2723
57.5.7SPDIFRX data input register (SPDIFRX_FMT2_DR)2724
57.5.8SPDIFRX channel status register (SPDIFRX_CSR)2725
57.5.9SPDIFRX debug information register (SPDIFRX_DIR)2725
57.5.10SPDIFRX interface register map2726
58Management data input/output (MDIOS)2727
58.1MDIOS introduction2727
58.2MDIOS main features2727
58.3MDIOS functional description2728
58.3.1MDIOS block diagram2728
58.3.2MDIOS pins and internal signals2728
58.3.3MDIOS protocol2728
58.3.4MDIOS enabling and disabling2729
58.3.5MDIOS data2730
58.3.6MDIOS APB frequency2731
58.3.7Write/read flags and interrupts2731
58.3.8MDIOS error management2732
58.3.9MDIOS in Stop mode2733
58.3.10MDIOS interrupts2733
58.4MDIOS registers2733
58.4.1MDIOS configuration register (MDIOS_CR)2733
58.4.2MDIOS write flag register (MDIOS_WRFR)2734
58.4.3MDIOS clear write flag register (MDIOS_CWRFR)2735
58.4.4MDIOS read flag register (MDIOS_RDFR)2735
58.4.5MDIOS clear read flag register (MDIOS_CRDFR)2736
58.4.6MDIOS status register (MDIOS_SR)2736
58.4.7MDIOS clear flag register (MDIOS_CLRFR)2737
58.4.8MDIOS input data register x (MDIOS_DINRx)2737
58.4.9MDIOS output data register x (MDIOS_DOUTRx)2738
58.4.10MDIOS register map2738
59Secure digital input/output MultiMediaCard interface (SDMMC) . .2740
59.1SDMMC main features . . . . .2740
59.2SDMMC implementation . . . . .2740
59.3SDMMC bus topology . . . . .2741
59.4SDMMC operation modes . . . . .2743
59.5SDMMC functional description . . . . .2744
59.5.1SDMMC block diagram . . . . .2744
59.5.2SDMMC pins and internal signals . . . . .2744
59.5.3General description . . . . .2745
59.5.4SDMMC adapter . . . . .2747
59.5.5SDMMC AHB slave interface . . . . .2769
59.5.6SDMMC AHB master interface . . . . .2770
59.5.7AHB and SDMMC_CK clock relation . . . . .2773
59.6Card functional description . . . . .2773
59.6.1SD I/O mode . . . . .2773
59.6.2CMD12 send timing . . . . .2781
59.6.3Sleep (CMD5) . . . . .2785
59.6.4Interrupt mode (Wait-IRQ) . . . . .2786
59.6.5Boot operation . . . . .2787
59.6.6Response R1b handling . . . . .2790
59.6.7Reset and card cycle power . . . . .2791
59.7Hardware flow control . . . . .2792
59.8Ultra-high-speed phase I (UHS-I) voltage switch . . . . .2792
59.9SDMMC interrupts . . . . .2796
59.10SDMMC registers . . . . .2797
59.10.1SDMMC power control register (SDMMC_POWER) . . . . .2797
59.10.2SDMMC clock control register (SDMMC_CLKCR) . . . . .2798
59.10.3SDMMC argument register (SDMMC_ARGR) . . . . .2800
59.10.4SDMMC command register (SDMMC_CMDR) . . . . .2800
59.10.5SDMMC command response register (SDMMC_RESPCMDR) . . . . .2802
59.10.6SDMMC response x register (SDMMC_RESPxR) . . . . .2803
59.10.7SDMMC data timer register (SDMMC_DTIMER) . . . . .2803
59.10.8SDMMC data length register (SDMMC_DLENR) . . . . .2804
59.10.9SDMMC data control register (SDMMC_DCTRL) . . . . .2805
59.10.10SDMMC data counter register (SDMMC_DCNTR) . . . . .2806
59.10.11SDMMC status register (SDMMC_STAR) . . . . .2807
59.10.12SDMMC interrupt clear register (SDMMC_ICR) . . . . .2810
59.10.13SDMMC mask register (SDMMC_MASKR) . . . . .2812
59.10.14SDMMC acknowledgment timer register (SDMMC_ACKTIMER) . . .2815
59.10.15SDMMC DMA control register (SDMMC_IDMACTRLR) . . . . .2815
59.10.16SDMMC IDMA buffer size register (SDMMC_IDMABSIZER) . . . . .2816
59.10.17SDMMC IDMA buffer base address register
(SDMMC_IDMABASER) . . . . .
2817
59.10.18SDMMC IDMA linked list address register (SDMMC_IDMALAR) . . .2817
59.10.19SDMMC IDMA linked list memory base register
(SDMMC_IDMABAR) . . . . .
2818
59.10.20SDMMC data FIFO registers x (SDMMC_FIFORx) . . . . .2819
59.10.21SDMMC register map . . . . .2819
60FD controller area network (FDCAN) . . . . .2822
60.1FDCAN introduction . . . . .2822
60.2FDCAN main features . . . . .2824
60.3FDCAN functional description . . . . .2825
60.3.1FDCAN block diagram . . . . .2825
60.3.2FDCAN pins and internal signals . . . . .2826
60.3.3Bit timing . . . . .2827
60.3.4Operating modes . . . . .2828
60.3.5Error management . . . . .2837
60.3.6Message RAM . . . . .2838
60.3.7FIFO acknowledge handling . . . . .2847
60.3.8FDCAN Rx FIFO element . . . . .2847
60.3.9FDCAN Tx buffer element . . . . .2849
60.3.10FDCAN Tx event FIFO element . . . . .2851
60.3.11FDCAN standard message ID filter element . . . . .2852
60.3.12FDCAN extended message ID filter element . . . . .2853
60.4FDCAN registers . . . . .2855
60.4.1FDCAN core release register (FDCAN_CREL) . . . . .2855
60.4.2FDCAN endian register (FDCAN_ENDN) . . . . .2855
60.4.3FDCAN data bit timing and prescaler register (FDCAN_DBTP) . . . .2855
60.4.4FDCAN test register (FDCAN_TEST) . . . . .2856
60.4.5FDCAN RAM watchdog register (FDCAN_RWD) . . . . .2857
60.4.6FDCAN CC control register (FDCAN_CCCR) . . . . .2858
60.4.7FDCAN nominal bit timing and prescaler register (FDCAN_NBTP) .2859
60.4.8FDCAN timestamp counter configuration register (FDCAN_TSCC) .2861
60.4.9FDCAN timestamp counter value register (FDCAN_TSCV) . . . . .2861
60.4.10FDCAN timeout counter configuration register (FDCAN_TOCC) . . .2862
60.4.11FDCAN timeout counter value register (FDCAN_TOCV) . . . . .2863
60.4.12FDCAN error counter register (FDCAN_ECR) . . . . .2863
60.4.13FDCAN protocol status register (FDCAN_PSR) . . . . .2864
60.4.14FDCAN transmitter delay compensation register (FDCAN_TDCR) . .2866
60.4.15FDCAN interrupt register (FDCAN_IR) . . . . .2866
60.4.16FDCAN interrupt enable register (FDCAN_IE) . . . . .2869
60.4.17FDCAN interrupt line select register (FDCAN_ILS) . . . . .2871
60.4.18FDCAN interrupt line enable register (FDCAN_ILE) . . . . .2872
60.4.19FDCAN global filter configuration register (FDCAN_RXGFC) . . . . .2872
60.4.20FDCAN extended ID and mask register (FDCAN_XIDAM) . . . . .2874
60.4.21FDCAN high-priority message status register (FDCAN_HPMS) . . . .2874
60.4.22FDCAN Rx FIFO 0 status register (FDCAN_RXF0S) . . . . .2875
60.4.23CAN Rx FIFO 0 acknowledge register (FDCAN_RXF0A) . . . . .2876
60.4.24FDCAN Rx FIFO 1 status register (FDCAN_RXF1S) . . . . .2876
60.4.25FDCAN Rx FIFO 1 acknowledge register (FDCAN_RXF1A) . . . . .2877
60.4.26FDCAN Tx buffer configuration register (FDCAN_TXBC) . . . . .2877
60.4.27FDCAN Tx FIFO/queue status register (FDCAN_TXFQS) . . . . .2878
60.4.28FDCAN Tx buffer request pending register (FDCAN_TXBRP) . . . . .2878
60.4.29FDCAN Tx buffer add request register (FDCAN_TXBAR) . . . . .2879
60.4.30FDCAN Tx buffer cancellation request register (FDCAN_TXBCR) . .2880
60.4.31FDCAN Tx buffer transmission occurred register (FDCAN_TXBTO) .2880
60.4.32FDCAN Tx buffer cancellation finished register (FDCAN_TXBCF) . .2881
60.4.33FDCAN Tx buffer transmission interrupt enable register
(FDCAN_TXBTIE) . . . . .
2881
60.4.34FDCAN Tx buffer cancellation finished interrupt enable register
(FDCAN_TXBCIE) . . . . .
2882
60.4.35FDCAN Tx event FIFO status register (FDCAN_TXEFS) . . . . .2882
60.4.36FDCAN Tx event FIFO acknowledge register (FDCAN_TXEFA) . . .2883
60.4.37FDCAN CFG clock divider register (FDCAN_CKDIV) . . . . .2883
60.4.38FDCAN register map . . . . .2884
61USB on-the-go full-speed (OTG_FS) . . . . .2888
61.1OTG_FS introduction . . . . .2888
61.2OTG_FS main features . . . . .2889
61.2.1General features .....2889
61.2.2Host-mode features .....2890
61.2.3Peripheral-mode features .....2890
61.3OTG_FS implementation .....2891
61.4OTG_FS functional description .....2892
61.4.1OTG_FS block diagram .....2892
61.4.2OTG_FS pin and internal signals .....2892
61.4.3OTG_FS core .....2893
61.4.4Embedded full-speed OTG PHY connected to OTG_FS .....2893
61.4.5OTG detections .....2894
61.5OTG_FS dual role device (DRD) .....2894
61.5.1ID line detection .....2894
61.6OTG_FS as a USB peripheral .....2895
61.6.1Peripheral states .....2895
61.6.2Peripheral endpoints .....2896
61.7OTG_FS as a USB host .....2898
61.7.1USB host states .....2899
61.7.2Host channels .....2900
61.7.3Host scheduler .....2902
61.8OTG_FS SOF trigger .....2903
61.8.1Host SOFs .....2903
61.8.2Peripheral SOFs .....2903
61.9OTG_FS low-power modes .....2904
61.10OTG_FS Dynamic update of the OTG_HFIR register .....2905
61.11OTG_FS data FIFOs .....2905
61.11.1Peripheral FIFO architecture .....2906
61.11.2Host FIFO architecture .....2907
61.11.3FIFO RAM allocation .....2908
61.12OTG_FS system performance .....2910
61.13OTG_FS interrupts .....2910
61.14OTG_FS control and status registers .....2912
61.14.1CSR memory map .....2912
61.15OTG_FS registers .....2917
61.15.1OTG control and status register (OTG_GOTGCTL) .....2917
61.15.2OTG interrupt register (OTG_GOTGINT) .....2919
61.15.3OTG AHB configuration register (OTG_GAHBCFG) .....2920
61.15.4OTG USB configuration register (OTG_GUSBCFG) .....2921
61.15.5OTG reset register (OTG_GRSTCTL) .....2922
61.15.6OTG core interrupt register [alternate] (OTG_GINTSTS) .....2925
61.15.7OTG core interrupt register [alternate] (OTG_GINTSTS) .....2929
61.15.8OTG interrupt mask register [alternate] (OTG_GINTMSK) .....2933
61.15.9OTG interrupt mask register [alternate] (OTG_GINTMSK) .....2934
61.15.10OTG receive status debug read [alternate] (OTG_GRXSTSR) ....2936
61.15.11OTG receive status debug read register [alternate]
(OTG_GRXSTSR) .....
2937
61.15.12OTG status read and pop registers [alternate] (OTG_GRXSTSP) ..2938
61.15.13OTG status read and pop registers [alternate] (OTG_GRXSTSP) ..2939
61.15.14OTG receive FIFO size register (OTG_GRXFSIZ) .....2940
61.15.15OTG host non-periodic transmit FIFO size register [alternate]
(OTG_HNPTXFSIZ) .....
2941
61.15.16Endpoint 0 Transmit FIFO size [alternate] (OTG_DIEPTXF0) ....2941
61.15.17OTG non-periodic transmit FIFO/queue status register
(OTG_HNPTXSTS) .....
2942
61.15.18OTG general core configuration register (OTG_GCCFG) .....2943
61.15.19OTG core ID register (OTG_CID) .....2944
61.15.20OTG core LPM configuration register (OTG_GLPMCFG) .....2944
61.15.21OTG host periodic transmit FIFO size register
(OTG_HPTXFSIZ) .....
2949
61.15.22OTG device IN endpoint transmit FIFO x size register
(OTG_DIEPTXFx) .....
2949
61.15.23Host-mode registers .....2949
61.15.24OTG host configuration register (OTG_HCFG) .....2950
61.15.25OTG host frame interval register (OTG_HFIR) .....2950
61.15.26OTG host frame number/frame time remaining register
(OTG_HFNUM) .....
2951
61.15.27OTG_Host periodic transmit FIFO/queue status register
(OTG_HPTXSTS) .....
2952
61.15.28OTG host all channels interrupt register (OTG_HAINT) .....2953
61.15.29OTG host all channels interrupt mask register
(OTG_HAINTMSK) .....
2953
61.15.30OTG host port control and status register (OTG_HPRT) .....2954
61.15.31OTG host channel x characteristics register (OTG_HCCHARx) ....2956
61.15.32OTG host channel x interrupt register (OTG_HCINTx) .....2957
61.15.33OTG host channel x interrupt mask register (OTG_HCINTMSKx) ..2958
61.15.34 OTG host channel x transfer size register (OTG_HCTSIZx)2959
61.15.35 Device-mode registers2960
61.15.36 OTG device configuration register (OTG_DCFG)2960
61.15.37 OTG device control register (OTG_DCTL)2961
61.15.38 OTG device status register (OTG_DSTS)2964
61.15.39 OTG device IN endpoint common interrupt mask register
(OTG_DIEPMSK)
2965
61.15.40 OTG device OUT endpoint common interrupt mask register
(OTG_DOEPMSK)
2966
61.15.41 OTG device all endpoints interrupt register (OTG_DAINT)2967
61.15.42 OTG all endpoints interrupt mask register
(OTG_DAINTMSK)
2968
61.15.43 OTG device IN endpoint FIFO empty interrupt mask register
(OTG_DIEPEMPMSK)
2968
61.15.44 OTG device each endpoint interrupt register (OTG_DEACHINT)2969
61.15.45 OTG device each endpoint interrupt mask register
(OTG_DEACHINTMSK)
2969
61.15.46 OTG device each IN endpoint-1 interrupt mask register
(OTG_DIEPEACHM)
2970
61.15.47 OTG device each OUT endpoint-1 interrupt mask register
(OTG_DOEPEACHMSK1)
2971
61.15.48 OTG device control IN endpoint 0 control register
(OTG_DIEPCTL0)
2972
61.15.49 OTG device IN endpoint x control register [alternate]
(OTG_DIEPCTLx)
2974
61.15.50 OTG device IN endpoint x control register [alternate]
(OTG_DIEPCTLx)
2976
61.15.51 OTG device IN endpoint x interrupt register (OTG_DIEPINTx)2978
61.15.52 OTG device IN endpoint 0 transfer size register
(OTG_DIEPTSIZ0)
2979
61.15.53 OTG device IN endpoint transmit FIFO status register
(OTG_DTXFSTSx)
2980
61.15.54 OTG device IN endpoint x transfer size register (OTG_DIEPTSIZx)2980
61.15.55 OTG device control OUT endpoint 0 control register
(OTG_DOEPCTL0)
2981
61.15.56 OTG device OUT endpoint x interrupt register (OTG_DOEPINTx)2983
61.15.57 OTG device OUT endpoint 0 transfer size register
(OTG_DOEPTSIZ0)
2984
61.15.58 OTG device OUT endpoint x control register [alternate]
(OTG_DOEPCTLx)
2985
61.15.59 OTG device OUT endpoint x control register [alternate]
(OTG_DOEPCTLx)
2987
61.15.60OTG device OUT endpoint x transfer size register (OTG_DOEPTSIZx) .....2989
61.15.61OTG power and clock gating control register (OTG_PCGCCTL) ...2990
61.15.62OTG power and clock gating control register 1 (OTG_PCGCCTL1) .2991
61.15.63OTG_FS register map .....2992
61.16OTG_FS programming model .....3000
61.16.1Core initialization .....3000
61.16.2Host initialization .....3001
61.16.3Device initialization .....3001
61.16.4Host programming model .....3002
61.16.5Device programming model .....3023
61.16.6Worst case response time .....3044
61.16.7OTG programming model .....3046
62USB on-the-go high-speed (OTG_HS) .....3047
62.1OTG_HS introduction .....3047
62.2OTG_HS main features .....3048
62.2.1General features .....3048
62.2.2Host-mode features .....3049
62.2.3Peripheral-mode features .....3049
62.3OTG_HS implementation .....3049
62.4OTG_HS functional description .....3050
62.4.1OTG_HS block diagram .....3050
62.4.2OTG_HS pin and internal signals .....3050
62.4.3OTG_HS core .....3051
62.4.4OTG detections .....3051
62.4.5High-speed OTG PHY connected to OTG_HS .....3051
62.4.6Battery charging detection .....3051
62.5OTG_HS dual role device (DRD) .....3052
62.5.1ID line detection .....3052
62.6OTG_HS as a USB peripheral .....3053
62.6.1Peripheral states .....3053
62.6.2Peripheral endpoints .....3054
62.7OTG_HS as a USB host .....3056
62.7.1USB host states .....3057
62.7.2Host channels .....3058
62.7.3Host scheduler .....3060
62.8OTG_HS SOF trigger .....3061
62.8.1Host SOFs .....3061
62.8.2Peripheral SOFs .....3061
62.9OTG_HS low-power modes .....3062
62.10OTG_HS Dynamic update of the OTG_HFIR register .....3063
62.11OTG_HS data FIFOs .....3063
62.11.1Peripheral FIFO architecture .....3064
62.11.2Host FIFO architecture .....3065
62.11.3FIFO RAM allocation .....3066
62.12OTG_HS interrupts .....3068
62.13OTG_HS control and status registers .....3070
62.13.1CSR memory map .....3070
62.14OTG_HS registers .....3075
62.14.1OTG control and status register (OTG_GOTGCTL) .....3075
62.14.2OTG interrupt register (OTG_GOTGINT) .....3077
62.14.3OTG AHB configuration register (OTG_GAHBCFG) .....3078
62.14.4OTG USB configuration register (OTG_GUSBCFG) .....3079
62.14.5OTG reset register (OTG_GRSTCTL) .....3081
62.14.6OTG core interrupt register [alternate] (OTG_GINTSTS) .....3084
62.14.7OTG core interrupt register [alternate] (OTG_GINTSTS) .....3088
62.14.8OTG interrupt mask register [alternate] (OTG_GINTMSK) .....3093
62.14.9OTG interrupt mask register [alternate] (OTG_GINTMSK) .....3094
62.14.10OTG receive status debug read register [alternate]
(OTG_GRXSTSR) .....
3096
62.14.11OTG receive status debug read register [alternate]
(OTG_GRXSTSR) .....
3097
62.14.12OTG status read and pop registers (OTG_GRXSTSP) .....3098
62.14.13OTG status read and pop registers [alternate] (OTG_GRXSTSP) ..3099
62.14.14OTG receive FIFO size register (OTG_GRXFSIZ) .....3100
62.14.15OTG host non-periodic transmit FIFO size register [alternate]
(OTG_HNPTXFSIZ) .....
3101
62.14.16Endpoint 0 transmit FIFO size [alternate] (OTG_DIEPTXF0) .....3101
62.14.17OTG non-periodic transmit FIFO/queue status register
(OTG_HNPTXSTS) .....
3102
62.14.18OTG general core configuration register (OTG_GCCFG) .....3103
62.14.19OTG core ID register (OTG_CID) .....3104
62.14.20 OTG core LPM configuration register (OTG_GLPMCFG)3105
62.14.21 OTG host periodic transmit FIFO size register (OTG_HPTXFSIZ)3109
62.14.22 OTG device IN endpoint transmit FIFO x size register (OTG_DIEPTXFx)3109
62.14.23 Host-mode registers3109
62.14.24 OTG host configuration register (OTG_HCFG)3110
62.14.25 OTG host frame interval register (OTG_HFIR)3110
62.14.26 OTG host frame number/frame time remaining register (OTG_HFNUM)3111
62.14.27 OTG_Host periodic transmit FIFO/queue status register (OTG_HPTXSTS)3112
62.14.28 OTG host all channels interrupt register (OTG_HAINT)3113
62.14.29 OTG host all channels interrupt mask register (OTG_HAINTMSK)3113
62.14.30 OTG host port control and status register (OTG_HPRT)3114
62.14.31 OTG host channel x characteristics register (OTG_HCCHARx)3116
62.14.32 OTG host channel x split control register (OTG_HCSPLTx)3117
62.14.33 OTG host channel x interrupt register (OTG_HCINTx)3118
62.14.34 OTG host channel x interrupt mask register (OTG_HCINTMSKx)3119
62.14.35 OTG host channel x transfer size register (OTG_HCTSIZx)3120
62.14.36 OTG host channel x DMA address register(OTG_HCDMAx)3121
62.14.37 Device-mode registers3121
62.14.38 OTG device configuration register (OTG_DCFG)3121
62.14.39 OTG device control register (OTG_DCTL)3123
62.14.40 OTG device status register (OTG_DSTS)3125
62.14.41 OTG device IN endpoint common interrupt mask register (OTG_DIEPMSK)3126
62.14.42 OTG device OUT endpoint common interrupt mask register (OTG_DOEPMSK)3127
62.14.43 OTG device all endpoints interrupt register (OTG_DAINT)3128
62.14.44 OTG all endpoints interrupt mask register (OTG_DAINTMSK)3129
62.14.45 OTG device threshold control register (OTG_DTHRCTL)3129
62.14.46 OTG device IN endpoint FIFO empty interrupt mask register (OTG_DIEPEMPMSK)3130
62.14.47 OTG device IN endpoint x control register [alternate] (OTG_DIEPCTLx)3131
62.14.48 OTG device IN endpoint x control register [alternate] (OTG_DIEPCTLx)3133
62.14.49OTG device IN endpoint x interrupt register (OTG_DIEPINTx)3135
62.14.50OTG device IN endpoint 0 transfer size register (OTG_DIEPTSIZ0)3136
62.14.51OTG device IN endpoint x DMA address register (OTG_DIEPDMAx)3137
62.14.52OTG device IN endpoint transmit FIFO status register (OTG_DTXFSTSx)3137
62.14.53OTG device IN endpoint x transfer size register (OTG_DIEPTSIZx)3138
62.14.54OTG device control OUT endpoint 0 control register (OTG_DOEPCTL0)3138
62.14.55OTG device OUT endpoint x interrupt register (OTG_DOEPINTx)3140
62.14.56OTG device OUT endpoint 0 transfer size register (OTG_DOEPTSIZ0)3142
62.14.57OTG device OUT endpoint x DMA address register (OTG_DOEPDMAx)3143
62.14.58OTG device OUT endpoint x control register [alternate] (OTG_DOEPCTLx)3143
62.14.59OTG device OUT endpoint x control register [alternate] (OTG_DOEPCTLx)3145
62.14.60OTG device OUT endpoint x transfer size register (OTG_DOEPTSIZx)3147
62.14.61OTG power and clock gating control register (OTG_PCGCCTL)3148
62.14.62OTG power and clock gating control register 1 (OTG_PCGCCTL1)3149
62.14.63OTG_HS register map3150
62.15OTG_HS programming model3157
62.15.1Core initialization3157
62.15.2Host initialization3158
62.15.3Device initialization3159
62.15.4DMA mode3159
62.15.5Host programming model3159
62.15.6Device programming model3192
62.15.7Worst case response time3212
62.15.8OTG programming model3214
63USB Type-C®/USB Power Delivery interface (UCPD)3215
63.1UCPD introduction3215
63.2UCPD main features3215
63.3UCPD implementation3216
63.4UCPD functional description3216
63.4.1UCPD block diagram3217
63.4.2UCPD reset and clocks3218
63.4.3Physical layer protocol3219
63.4.4UCPD BMC transmitter3225
63.4.5UCPD BMC receiver3227
63.4.6UCPD Type-C pull-ups (Rp) and pull-downs (Rd)3228
63.4.7UCPD Type-C voltage monitoring and de-bouncing3229
63.4.8UCPD fast role swap (FRS)3229
63.4.9UCPD DMA Interface3229
63.4.10Wake-up from Stop mode3229
63.5UCPD programming sequences3230
63.5.1Initialization phase3230
63.5.2Type-C state machine handling3230
63.5.3USB PD transmit3232
63.5.4USB PD receive3233
63.5.5UCPD software trimming3234
63.6UCPD low-power modes3234
63.7UCPD interrupts3235
63.8UCPD registers3236
63.8.1UCPD configuration register 1 (UCPD_CFGR1)3236
63.8.2UCPD configuration register 2 (UCPD_CFGR2)3238
63.8.3UCPD configuration register 3 (UCPD_CFGR3)3238
63.8.4UCPD control register (UCPD_CR)3239
63.8.5UCPD interrupt mask register (UCPD_IMR)3241
63.8.6UCPD status register (UCPD_SR)3243
63.8.7UCPD interrupt clear register (UCPD_ICR)3246
63.8.8UCPD Tx ordered set type register (UCPD_TX_ORDSETR)3247
63.8.9UCPD Tx payload size register (UCPD_TX_PAYSZR)3247
63.8.10UCPD Tx data register (UCPD_TXDR)3248
63.8.11UCPD Rx ordered set register (UCPD_RX_ORDSETR)3248
63.8.12UCPD Rx payload size register (UCPD_RX_PAYSZR)3249
63.8.13UCPD receive data register (UCPD_RXDR)3250
63.8.14UCPD Rx ordered set extension register 1
(UCPD_RX_ORDEXTR1)
3250
63.8.15UCPD Rx ordered set extension register 2
(UCPD_RX_ORDEXTR2)
3251
63.8.16UCPD register map3251
64Ethernet (ETH): media access control (MAC) with DMA controller3254
64.1Ethernet introduction3254
64.2Ethernet main features3254
64.2.1Standard compliance3254
64.2.2MAC features3254
64.2.3Transaction layer (MTL) features3256
64.2.4DMA block features3257
64.2.5Bus interface features3257
64.3Ethernet pins and internal signals3258
64.4Ethernet architecture3259
64.4.1DMA controller3260
64.4.2MTL3269
64.4.3MAC3269
64.5Ethernet functional description: MAC3274
64.5.1Double VLAN processing3274
64.5.2Source address and VLAN insertion, replacement, or deletion3275
64.5.3Packet filtering3277
64.5.4IEEE 1588 timestamp support3284
64.5.5Checksum offload engine3308
64.5.6TCP segmentation offload3314
64.5.7IPv4 ARP offload3320
64.5.8Loopback3321
64.5.9Flow control3322
64.5.10MAC management counters3324
64.5.11Interrupts generated by the MAC3326
64.5.12MAC and MMC register descriptions3326
64.6Ethernet functional description: PHY interfaces3327
64.6.1Station management agent (SMA)3327
64.6.2Media independent interface (MII)3334
64.6.3Reduced media independent interface (RMII)3335
64.7Ethernet low-power modes3338
64.7.1Low-power management3338
64.7.2Energy-efficient Ethernet (EEE)3344
64.8Ethernet interrupts3350
64.8.1DMA interrupts3350
64.8.2MTL interrupts3352
64.8.3MAC interrupts3352
64.9Ethernet programming model3353
64.9.1DMA initialization3353
64.9.2MTL initialization3354
64.9.3MAC initialization3354
64.9.4Performing normal receive and transmit operation3355
64.9.5Stopping and starting transmission3356
64.9.6Programming guidelines for switching to new descriptor list in RxDMA3356
64.9.7Programming guidelines for switching the AHB clock frequency3356
64.9.8Programming guidelines for MII link state transitions3357
64.9.9Programming guidelines for IEEE 1588 timestamping3358
64.9.10Programming guidelines for PTP offload feature3359
64.9.11Programming guidelines for Energy Efficient Ethernet (EEE)3363
64.9.12Programming guidelines for flexible pulse-per-second (PPS) output3365
64.9.13Programming guidelines for IEEE 1588 auxiliary snapshot3367
64.9.14Programming guidelines for TSO3367
64.9.15Programming guidelines to perform VLAN filtering on the receiver3368
64.10Descriptors3369
64.10.1Descriptor overview3369
64.10.2Descriptor structure3369
64.10.3Transmit descriptor3373
64.10.4Receive descriptor3385
64.11Ethernet registers3397
64.11.1Ethernet register maps3397
64.11.2Ethernet DMA registers3397
64.11.3Ethernet MTL registers3418
64.11.4Ethernet MAC and MMC registers3428
65HDMI-CEC controller (CEC)3522
65.1HDMI-CEC introduction3522
65.2HDMI-CEC controller main features3522
65.3HDMI-CEC functional description3523
65.3.1HDMI-CEC pin and internal signals3523
65.3.2HDMI-CEC block diagram3524
65.3.3Message description3524
65.3.4Bit timing3525
65.4Arbitration3525
65.4.1SFT option bit3527
65.5Error handling3527
65.5.1Bit error3527
65.5.2Message error3528
65.5.3Bit rising error (BRE)3528
65.5.4Short bit period error (SBPE)3528
65.5.5Long bit period error (LBPE)3528
65.5.6Transmission error detection (TXERR)3530
65.6HDMI-CEC interrupts3531
65.7HDMI-CEC registers3532
65.7.1CEC control register (CEC_CR)3532
65.7.2CEC configuration register (CEC_CFGR)3533
65.7.3CEC Tx data register (CEC_TXDR)3535
65.7.4CEC Rx data register (CEC_RXDR)3535
65.7.5CEC interrupt and status register (CEC_ISR)3535
65.7.6CEC interrupt enable register (CEC_IER)3537
65.7.7HDMI-CEC register map3539
66Debug infrastructure3540
66.1Introduction3540
66.2Debug infrastructure features3541
66.3Debug infrastructure functional description3541
66.3.1Debug infrastructure block diagram3541
66.3.2Debug infrastructure powering, clocking and reset3542
66.3.3Security3543
66.3.4Debug authentication3545
66.4Serial-wire and JTAG debug port (SWJ-DP)3546
66.4.1Serial wire debug port3547
66.4.2JTAG debug port3549
66.4.3Debug port registers3552
66.4.4Debug port register map3561
66.5Access ports3562
66.5.1MEM-AP registers3563
66.5.2Access port register map3571
66.6Trace and debug subsystem functional description . . . . .3572
66.6.1System ROM tables . . . . .3572
66.6.2System ROM registers . . . . .3576
66.6.3System ROM register map and reset values . . . . .3580
66.6.4Cross trigger interfaces (CTI) and matrix (CTM) . . . . .3582
66.6.5CTI registers . . . . .3585
66.6.6CTI register map and reset values . . . . .3599
66.6.7Trace funnel (CSTF) . . . . .3601
66.6.8Trace funnel registers . . . . .3602
66.6.9Trace funnel register map and reset values . . . . .3611
66.6.10Embedded trace FIFO (ETF) . . . . .3613
66.6.11ETF registers . . . . .3615
66.6.12ETF register map and reset values . . . . .3632
66.6.13Trace port interface unit (TPIU) . . . . .3635
66.6.14TPIU registers . . . . .3636
66.6.15TPIU register map and reset values . . . . .3651
66.7Serial wire output (SWO) . . . . .3653
66.7.1SWO registers . . . . .3654
66.7.2SWO register map and reset values . . . . .3663
66.8Microcontroller debug unit (DBGMCU) . . . . .3665
66.8.1DBGMCU registers . . . . .3666
66.8.2DBGMCU register map and reset values . . . . .3680
66.9Cortex-M7 debug functional description . . . . .3683
66.9.1Cortex-M7 ROM tables . . . . .3683
66.9.2Cortex-M7 CPU ROM registers . . . . .3686
66.9.3Cortex-M7 CPU ROM table register map and reset values . . . . .3690
66.9.4Cortex-M7 PPB ROM registers . . . . .3691
66.9.5Cortex-M7 PPB ROM table register map and reset values . . . . .3695
66.9.6Cortex-M7 data watchpoint and trace unit (DWT) . . . . .3696
66.9.7Cortex-M7 DWT registers . . . . .3697
66.9.8Cortex-M7 DWT register map and reset values . . . . .3706
66.9.9Cortex-M7 instrumentation trace macrocell (ITM) . . . . .3708
66.9.10Cortex-M7 ITM registers . . . . .3709
66.9.11Cortex-M7 ITM register map and reset values . . . . .3715
66.9.12Cortex-M7 breakpoint unit (FPB) . . . . .3717
66.9.13Cortex-M7 FPB registers . . . . .3717
66.9.14Cortex-M7 FPB register map and reset values . . . . .3722
66.9.15Cortex-M7 embedded trace macrocell (ETM) .....3723
66.9.16Cortex-M7 ETM registers .....3724
66.9.17Cortex-M7 ETM register map and reset values .....3750
66.9.18Cortex-M7 cross trigger interface (CTI) .....3754
66.10References for debug infrastructure .....3755
67Device electronic signature .....3756
67.1Unique device ID register (96 bits) .....3756
67.2Package data register .....3758
68Important security notice .....3759
69Revision history .....3760

List of tables

Table 1.Availability of security features .....121
Table 2.Bus-master-to-bus-slave interconnect .....123
Table 3.ASIB configuration .....130
Table 4.AMIB configuration .....130
Table 5.AXI interconnect register map and reset values .....140
Table 6.Memory map and default device memory area attribute. ....152
Table 7.Register boundary addresses .....154
Table 8.SRAMs structure .....161
Table 9.SRAM1 / ITCM configurations .....161
Table 10.SRAM3 / DTCM configurations .....161
Table 11.SRAM4 / ECC configurations .....162
Table 12.ITCM/AXI configuration .....162
Table 13.DTCM/AXI configuration .....162
Table 14.ECC/AXI configuration .....162
Table 15.Boot modes .....163
Table 16.RAMECC internal input/output signals .....167
Table 17.ECC controller mapping .....168
Table 18.Effect of low-power modes on RAMECC .....169
Table 19.RAMECC interrupt requests .....170
Table 20.RAMECC register map and reset values .....177
Table 21.Internal tampers in TAMP .....185
Table 22.Effect of low-power modes on TAMP .....187
Table 23.Accelerated cryptographic operations .....189
Table 24.Product life-cycle states .....192
Table 25.Macros for RSS services .....193
Table 26.RSS lib interface functions .....194
Table 27.FLASH internal input/output signals .....202
Table 28.Flash memory organization .....205
Table 29.FLASH recommended read wait states and programming delays .....211
Table 30.Flash memory OTP organization .....219
Table 31.Read-only public data organization .....221
Table 32.Option byte user words organization .....226
Table 33.STM32H7Rx/7Sx device lifecycle table .....230
Table 34.Flash interface register protection summary .....232
Table 35.Flash security lifecycle definition .....233
Table 36.Boot level and HDP area protections (non STiRoT case) .....235
Table 37.Boot level and HDP area protections (STiRoT case) .....235
Table 38.Effect of low-power modes on the embedded flash memory .....237
Table 39.Flash interrupt request .....244
Table 40.FLASH register map and reset values .....275
Table 41.PWR input/output signals connected to package pins or balls .....281
Table 42.PWR internal input/output signals .....281
Table 43.table wake-up source selection .....282
Table 44.Supply configuration control .....286
Table 45.Operating mode summary .....305
Table 46.Sleep mode .....312
Table 47.Stop mode operation .....313
Table 48.Stop mode .....314
Table 49.Standby and Stop flags316
Table 50.Standby mode316
Table 51.Low-power modes monitoring pin overview317
Table 52.GPIO state according to CPU and domain state317
Table 53.Power control register map and reset values339
Table 54.RCC input/output signals connected to package pins or balls343
Table 55.RCC internal input/output signals343
Table 56.Reset coverage summary350
Table 57.Reset source identification (RCC_RSR)351
Table 58.Oscillator states versus system modes355
Table 59.Oscillator states versus system modes369
Table 60.VCO frequency and output frequency in integer mode373
Table 61.VCO frequency and output frequency in fractional mode374
Table 62.Clock protection summary379
Table 63.STOPWUCK and STOPKERWUCK description381
Table 64.HSIKERON and CSIKERON behavior381
Table 65.Peripheral clock distribution summary382
Table 66.SDMMC interface clock constraints399
Table 67.Ratio between clock timer and pclk407
Table 68.Peripheral clock enabling414
Table 69.RNG clock enabling415
Table 70.Interrupt sources and control418
Table 71.Clock configuration examples with PLLs in integer mode422
Table 72.Clock configuration examples with PLLs in fractional mode423
Table 73.RCC register map and reset values531
Table 74.SBS input/output pins541
Table 75.SBS internal input/output signals541
Table 76.SBS boot control543
Table 77.Analog switches recommended configuration544
Table 78.SBS register map and reset values559
Table 79.CRS features561
Table 80.CRS internal input/output signals562
Table 81.CRS interconnection563
Table 82.Effect of low-power modes on CRS566
Table 83.Interrupt control bits566
Table 84.CRS register map and reset values571
Table 85.Port bit configuration574
Table 86.GPIO register map and reset values590
Table 87.Peripheral interconnect matrix592
Table 88.GPDMA1 channel implementation603
Table 89.GPDMA1 wake-up in low-power modes604
Table 90.Programmed GPDMA1 request604
Table 91.Programmed GPDMA1 request as a block request607
Table 92.GPDMA1 channel with peripheral early termination607
Table 93.Programmed GPDMA1 request with peripheral early termination608
Table 94.Programmed GPDMA1 trigger608
Table 95.Programmed GPDMA source/destination burst629
Table 96.Programmed data handling634
Table 97.Effect of low-power modes on GPDMA646
Table 98.GPDMA interrupt requests647
Table 99.GPDMA register map and reset values673
Table 100.Implementation of HPDMA1 channels676
Table 101.HPDMA1 in low-power modes .....677
Table 102.Programmed HPDMA1 request .....677
Table 103.Programmed HPDMA1 request as a block request .....678
Table 104.HPDMA1 channel with peripheral early termination .....678
Table 105.Programmed HPDMA request with peripheral early termination .....678
Table 106.Programmed HPDMA1 trigger .....678
Table 107.Programmed HPDMA source/destination burst .....700
Table 108.Programmed data handling .....705
Table 109.Effect of low-power modes on HPDMA .....726
Table 110.HPDMA interrupt requests .....727
Table 111.HPDMA register map and reset values .....755
Table 112.GFXMMU internal input/output signals .....758
Table 113.GFXMMU interrupt requests .....764
Table 114.GFXMMU register map and reset values .....770
Table 115.DMA2D internal signals .....774
Table 116.DMA2D trigger interconnections .....774
Table 117.Supported color mode in input .....775
Table 118.Data order in memory .....776
Table 119.Alpha mode configuration .....777
Table 120.Supported CLUT color mode .....778
Table 121.CLUT data order in memory .....778
Table 122.Supported color mode in output .....779
Table 123.Data order in memory .....780
Table 124.Standard data order in memory .....780
Table 125.Output FIFO byte reordering steps .....781
Table 126.MCU order in memory .....786
Table 127.DMA2D interrupt requests .....787
Table 128.DMA2D register map and reset values .....805
Table 129.GPU2D internal input/output signals .....808
Table 130.GPU2D trigger connections .....809
Table 131.ICACHE features .....811
Table 132.TAG memory dimensioning parameters for n-way set associative
operating mode (default) .....
813
Table 133.TAG memory dimensioning parameters for direct-mapped cache mode .....814
Table 134.ICACHE cacheability for AHB transaction .....815
Table 135.ICACHE interrupts .....818
Table 136.ICACHE register map and reset values .....821
Table 137.GFXTIM input/output pins .....824
Table 138.GFXTIM internal signals .....824
Table 139.GFXTIM trigger interconnections .....825
Table 140.Graphic timer interrupt requests .....835
Table 141.GFXTIM register map and reset values .....856
Table 142.NVIC .....860
Table 143.EXTI event input configurations and register control .....869
Table 144.EXTI event input mapping .....872
Table 145.Masking functionality .....874
Table 146.Extended interrupt and event controller register map and reset values .....885
Table 147.CRC internal input/output signals .....888
Table 148.CRC register map and reset values .....893
Table 149.CORDIC functions .....895
Table 150.Cosine parameters .....895
Table 151.Sine parameters .....896
Table 152.Phase parameters896
Table 153.Modulus parameters897
Table 154.Arctangent parameters898
Table 155.Hyperbolic cosine parameters898
Table 156.Hyperbolic sine parameters899
Table 157.Hyperbolic arctangent parameters899
Table 158.Natural logarithm parameters900
Table 159.Natural log scaling factors and corresponding ranges900
Table 160.Square root parameters901
Table 161.Square root scaling factors and corresponding ranges901
Table 162.Precision vs. number of iterations904
Table 163.CORDIC register map and reset value911
Table 164.FMC pins915
Table 165.FMC bank mapping options918
Table 166.NOR/PSRAM bank selection918
Table 167.NOR/PSRAM External memory address918
Table 168.NAND memory mapping and timing registers919
Table 169.NAND bank selection919
Table 170.SDRAM bank selection919
Table 171.SDRAM address mapping920
Table 172.SDRAM address mapping with 8-bit data bus width920
Table 173.SDRAM address mapping with 16-bit data bus width921
Table 174.SDRAM address mapping with 32-bit data bus width922
Table 175.Programmable NOR/PSRAM access parameters924
Table 176.Non-multiplexed I/O NOR flash memory924
Table 177.16-bit multiplexed I/O NOR flash memory925
Table 178.Non-multiplexed I/Os PSRAM/SRAM925
Table 179.16-Bit multiplexed I/O PSRAM925
Table 180.NOR flash/PSRAM: Example of supported memories and transactions926
Table 181.FMC_BCRx bitfields (mode 1)929
Table 182.FMC_BTRx bitfields (mode 1)930
Table 183.FMC_BCRx bitfields (mode A)932
Table 184.FMC_BTRx bitfields (mode A)933
Table 185.FMC_BWTRx bitfields (mode A)933
Table 186.FMC_BCRx bitfields (mode 2/B)935
Table 187.FMC_BTRx bitfields (mode 2/B)936
Table 188.FMC_BWTRx bitfields (mode 2/B)936
Table 189.FMC_BCRx bitfields (mode C)938
Table 190.FMC_BTRx bitfields (mode C)939
Table 191.FMC_BWTRx bitfields (mode C)939
Table 192.FMC_BCRx bitfields (mode D)941
Table 193.FMC_BTRx bitfields (mode D)941
Table 194.FMC_BWTRx bitfields (mode D)942
Table 195.FMC_BCRx bitfields (Muxed mode)944
Table 196.FMC_BTRx bitfields (Muxed mode)944
Table 197.FMC_BCRx bitfields (Synchronous multiplexed read mode)950
Table 198.FMC_BTRx bitfields (Synchronous multiplexed read mode)950
Table 199.FMC_BCRx bitfields (Synchronous multiplexed write mode)951
Table 200.FMC_BTRx bitfields (Synchronous multiplexed write mode)952
Table 201.Programmable NAND flash access parameters962
Table 202.8-bit NAND flash memory962
Table 203.16-bit NAND flash memory963
Table 204.Supported memories and transactions963
Table 205.ECC result relevant bits973
Table 206.SDRAM signals974
Table 207.FMC register map991
Table 208.XSPI implementation995
Table 209.XSPI input/output pins1000
Table 210.XSPI internal signals1000
Table 211.Command/address phase description1011
Table 212.OctaRAM command address bit assignment
(based on 64 Mb OctaRAM)
1023
Table 213.Address alignment cases1031
Table 214.XSPI interrupt requests1033
Table 215.XSPI register map and reset values1058
Table 216.XSPIM implementation1062
Table 217.XSPIM input/output pins1063
Table 218.Use cases1064
Table 219.XSPIM register map and reset values1072
Table 220.DLYB internal input/output signals1074
Table 221.DLYB interconnection1074
Table 222.Delay block control1074
Table 223.DLYB register map and reset values1077
Table 224.ADC features1080
Table 225.Memory location of the temperature sensor calibration values1080
Table 226.Memory location of the internal reference voltage sensor calibration value1080
Table 227.ADC input/output pins1082
Table 228.ADC internal input/output signals1082
Table 229.ADC interconnection1082
Table 230.Configuring the trigger polarity for regular external triggers1102
Table 231.Configuring the trigger polarity for injected external triggers1103
Table 232.TSAR timings depending on resolution1115
Table 233.Offset computation versus data resolution1118
Table 234.Analog watchdog channel selection1130
Table 235.Analog watchdog 1 comparison1131
Table 236.Analog watchdog 2 and 3 comparison1131
Table 237.Maximum output results versus N and M (gray cells indicate truncation)1135
Table 238.Oversampler operating modes summary1140
Table 239.Effect of low-power modes on the ADC1159
Table 240.ADC interrupts1160
Table 241.DELAY bits versus ADC resolution1195
Table 242.ADC global register map1197
Table 243.ADC register map and reset values for each ADC (offset = 0x000
for master ADC, 0x100 for slave ADC)
1197
Table 244.ADC register map and reset values (master and slave ADC common registers)1199
Table 245.DTS internal input/output signals1202
Table 246.Sampling time configuration1205
Table 247.Trigger configuration1206
Table 248.Temperature sensor behavior in low-power modes1208
Table 249.Interrupt control bits1209
Table 250.DTS register map and reset values1217
Table 251.VREFBUF typical values1219
Table 252.VREF buffer modes1220
Table 253.VREFBUF register map and reset values1223
Table 254.ADF features1225
Table 255.ADF external pins1226
Table 256.ADF internal signals1226
Table 257.ADF trigger connections1227
Table 258.Control of the common clock generation1233
Table 259.Clock constraints with respect to the incoming stream1234
Table 260.Data size according to CIC order and CIC decimation values1239
Table 261.Possible gain values1240
Table 262.Recommended maximum gain values versus CIC decimation ratios1242
Table 263.Most common microphone settings1243
Table 264.HPF 3 dB cut-off frequency examples1245
Table 265.ANSLP values versus FRSIZE and sampling rates1258
Table 266.Threshold values according SNTHR1259
Table 267.Register protection summary1265
Table 268.Effect of low-power modes on ADF1266
Table 269.ADF interrupt requests1267
Table 270.Examples of ADF settings for microphone capture1268
Table 271.Programming sequence (CIC4)1269
Table 272.Programming sequence (CIC5)1270
Table 273.Output signal levels1275
Table 274.ADF register map and reset values1295
Table 275.Available pipeline1298
Table 276.Glossary1299
Table 277.DCMIPP input/output pads1301
Table 278.DCMIPP input/output pins1302
Table 279.DCMIPP clocks1302
Table 280.DCMIPP resets1302
Table 281.Parallel interface maximum resolution (80 MHz)1303
Table 282.Supported pixel formats1304
Table 283.DCMIPP_CMCR bit function1305
Table 284.DCMIPP_PRCR bit function1308
Table 285.DCMIPP_PRESCR and DCMIPP PRESUR bit function1309
Table 286.DCMIPP_PxFCTCR bit function1311
Table 287.DCMIPP_P0PPCR bit function1315
Table 288.DCMIPP_P0DCCNTR and DCMIPP_P0DCLMTR bit function1317
Table 289.DCMIPP_PxPPCR bit function1318
Table 290.Parallel interface input pixel formats1319
Table 291.Correspondence between index and DCMIPP_PRCR register values1320
Table 292.Parallel interface input pixel formats1321
Table 293.Dump pipe OUTPUT pixel formats1321
Table 294.Shadow and physical registers1324
Table 295.DCMIPP low power modes1325
Table 296.DCMIPP interrupts1328
Table 297.Event connection1328
Table 298.DCMIPP registers organization1329
Table 299.DCMIPP register map and reset values1356
Table 300.PSSI input/output pins1360
Table 301.PSSI internal input/output signals1361
Table 302.Positioning of captured data bytes in 32-bit words (8-bit width)1362
Table 303.Positioning of captured data bytes in 32-bit words (16-bit width)1363
Table 304.PSSI interrupt requests1366
Table 305.PSSI register map and reset values1372
Table 306.LTDC external pins . . . . .1374
Table 307.LTDC internal signals . . . . .1375
Table 308.LTDC trigger interconnection . . . . .1375
Table 309.Clock domain for each register . . . . .1375
Table 310.LTDC register access and update durations . . . . .1376
Table 311.Pixel data mapping versus color format . . . . .1380
Table 312.LTDC interrupt requests . . . . .1384
Table 313.LTDC register map and reset values . . . . .1401
Table 314.JPEG internal signals . . . . .1405
Table 315.JPEG trigger connections . . . . .1406
Table 316.JPEG codec interrupt requests . . . . .1411
Table 317.JPEG codec register map and reset values . . . . .1424
Table 318.RNG internal input/output signals . . . . .1427
Table 319.RNG interrupt requests . . . . .1435
Table 320.RNG initialization times . . . . .1436
Table 321.RNG configurations . . . . .1436
Table 322.Configuration selection . . . . .1437
Table 323.RNG register map and reset map . . . . .1442
Table 324.CRYP versus SAES features . . . . .1444
Table 325.SAES internal input/output signals . . . . .1445
Table 326.SAES approved symmetric key functions . . . . .1446
Table 327.Counter mode initialization vector definition . . . . .1456
Table 328.Initialization of IV registers in GCM mode . . . . .1459
Table 329.GCM last block definition . . . . .1459
Table 330.Initialization of IV registers in CCM mode . . . . .1465
Table 331.AES data swapping example . . . . .1474
Table 332.Key endianness in SAES_KEYRx registers (128/256-bit keys) . . . . .1476
Table 333.IVI bitfield spread over SAES_IVRx registers . . . . .1477
Table 334.SAES interrupt requests . . . . .1479
Table 335.Processing latency for ECB, CBC and CTR . . . . .1480
Table 336.Processing latency for GCM and CCM (in SAES kernel clock cycles) . . . . .1481
Table 337.SAES register map and reset values . . . . .1494
Table 338.CRYP versus SAES features . . . . .1498
Table 339.CRYP internal input/output signals . . . . .1500
Table 340.CRYP approved AES symmetric key functions . . . . .1500
Table 341.Counter mode initialization vector definition . . . . .1511
Table 342.GCM mode IVI registers initialization . . . . .1514
Table 343.GCM last block definition . . . . .1514
Table 344.CCM mode IVI registers initialization . . . . .1521
Table 345.AES data swapping example . . . . .1526
Table 346.Key endianness in CRYP_KxR/LR registers (128/192/256-bit keys) . . . . .1528
Table 347.Initialization vector endianness in CRYP_IVxR registers (AES) . . . . .1528
Table 348.CRYP interrupt requests . . . . .1530
Table 349.Processing latency for ECB, CBC and CTR . . . . .1531
Table 350.Processing latency for GCM and CCM (in clock cycles) . . . . .1532
Table 351.CRYP register map and reset values . . . . .1545
Table 352.HASH internal input/output signals . . . . .1548
Table 353.Information on supported hash algorithms . . . . .1549
Table 354.Hash processor outputs . . . . .1552
Table 355.Processing time (in clock cycle) . . . . .1558
Table 356.HASH interrupt requests . . . . .1559
Table 357.HASH1 register map and reset values . . . . .1567
Table 358.MCE implementation1570
Table 359.MCE internal input/output signals1571
Table 360.MCE block cipher latencies1575
Table 361.MCE stream cipher latencies1576
Table 362.MCE interrupt requests1577
Table 363.MCE register map and reset values1591
Table 364.Internal input/output signals1594
Table 365.PKA integer arithmetic functions list1595
Table 366.PKA prime field (Fp) elliptic curve functions list1596
Table 367.Example of 'a' curve coefficient for ECC Fp scalar1602
Table 368.Montgomery parameter computation1602
Table 369.Modular addition1603
Table 370.Modular subtraction1603
Table 371.Montgomery multiplication1604
Table 372.Modular exponentiation (normal mode)1605
Table 373.Modular exponentiation (fast mode)1605
Table 374.Modular exponentiation (protected mode)1606
Table 375.Modular inversion1606
Table 376.Modular reduction1607
Table 377.Arithmetic addition1607
Table 378.Arithmetic subtraction1607
Table 379.Arithmetic multiplication1608
Table 380.Arithmetic comparison1608
Table 381.CRT exponentiation1609
Table 382.Point on elliptic curve Fp check1610
Table 383.ECC Fp scalar multiplication1610
Table 384.ECDSA sign - Inputs1612
Table 385.ECDSA sign - Outputs1612
Table 386.Extended ECDSA sign - additional outputs1613
Table 387.ECDSA verification - inputs1613
Table 388.ECDSA verification - outputs1614
Table 389.ECC complete addition1614
Table 390.ECC double base ladder1615
Table 391.ECC projective to affine1616
Table 392.Family of supported curves for ECC operations1617
Table 393.Modular exponentiation1618
Table 394.ECC scalar multiplication1618
Table 395.ECDSA signature average computation time1619
Table 396.ECDSA verification average computation times1619
Table 397.ECC double base ladder average computation times1619
Table 398.ECC projective to affine average computation times1619
Table 399.ECC complete addition average computation times1619
Table 400.Point on elliptic curve Fp check average computation times1619
Table 401.Montgomery parameters average computation times1620
Table 402.PKA interrupt requests1620
Table 403.PKA register map and reset values1625
Table 404.TIM input/output pins1629
Table 405.TIM internal input/output signals1629
Table 406.Interconnect to the tim_ti1 input multiplexer1630
Table 407.Interconnect to the tim_ti2 input multiplexer1630
Table 408.Interconnect to the tim_ti3 input multiplexer1631
Table 409.Interconnect to the tim_ti4 input multiplexer1631
Table 410.Internal trigger connection . . . . .1631
Table 411.Interconnect to the tim_etr input multiplexer . . . . .1631
Table 412.Timer break interconnect . . . . .1632
Table 413.Timer break2 interconnect . . . . .1632
Table 414.System break interconnect . . . . .1632
Table 415.CCR and ARR register change dithering pattern . . . . .1665
Table 416.CCR register change dithering pattern in center-aligned PWM mode . . . . .1666
Table 417.Behavior of timer outputs versus tim_brk/tim_brk2 inputs . . . . .1678
Table 418.Break protection disarming conditions . . . . .1680
Table 419.Counting direction versus encoder signals (CC1P = CC2P = 0) . . . . .1688
Table 420.Counting direction versus encoder signals and polarity settings . . . . .1692
Table 421.DMA request . . . . .1713
Table 422.Effect of low-power modes on TIM1 . . . . .1714
Table 423.Interrupt requests . . . . .1714
Table 424.Output control bits for complementary tim_ocx and tim_ocxn channels
with break feature . . . . .
1741
Table 425.TIM1 register map and reset values . . . . .1764
Table 426.STM32H7Rx/7Sx general purpose timers . . . . .1768
Table 427.TIM input/output pins . . . . .1770
Table 428.TIM internal input/output signals . . . . .1770
Table 429.Interconnect to the tim_ti1 input multiplexer . . . . .1771
Table 430.Interconnect to the tim_ti2 input multiplexer . . . . .1771
Table 431.Interconnect to the tim_ti3 input multiplexer . . . . .1771
Table 432.Interconnect to the tim_ti4 input multiplexer . . . . .1772
Table 433.TIMx internal trigger connection . . . . .1772
Table 434.Interconnect to the tim_etr input multiplexer . . . . .1772
Table 435.CCR and ARR register change dithering pattern . . . . .1804
Table 436.CCR register change dithering pattern in center-aligned PWM mode . . . . .1805
Table 437.Counting direction versus encoder signals(CC1P = CC2P = 0) . . . . .1814
Table 438.Counting direction versus encoder signals and polarity settings . . . . .1819
Table 439.DMA request . . . . .1843
Table 440.Effect of low-power modes on TIM2/TIM3/TIM4/TIM5 . . . . .1843
Table 441.Interrupt requests . . . . .1844
Table 442.Output control bit for standard tim_ocx channels . . . . .1865
Table 443.TIM2/TIM3/TIM4/TIM5 register map and reset values . . . . .1877
Table 444.TIM internal input/output signals . . . . .1881
Table 445.TIMx_ARR register change dithering pattern . . . . .1890
Table 446.DMA request . . . . .1891
Table 447.Effect of low-power modes on TIM6/TIM7 . . . . .1891
Table 448.Interrupt request . . . . .1891
Table 449.TIMx register map and reset values . . . . .1897
Table 450.TIM input/output pins . . . . .1901
Table 451.TIM internal input/output signals . . . . .1901
Table 452.Interconnect to the tim_ti1 input multiplexer . . . . .1902
Table 453.Interconnect to the tim_ti2 input multiplexer . . . . .1902
Table 454.TIMx internal trigger connection . . . . .1902
Table 455.CCR and ARR register change dithering pattern . . . . .1920
Table 456.Effect of low-power modes on TIM9/TIM12/TIM13/TIM14 . . . . .1929
Table 457.Interrupt requests . . . . .1929
Table 458.Output control bit for standard tim_ocx channels . . . . .1941
Table 459.TIMx register map and reset values (x = 9, 12) . . . . .1945
Table 460.Output control bit for standard tim_ocx channels . . . . .1954
Table 461.TIM13/TIM14 register map and reset values1957
Table 462.TIM input/output pins1962
Table 463.TIM internal input/output signals1963
Table 464.Interconnect to the tim_ti1 input multiplexer1963
Table 465.Interconnect to the tim_ti2 input multiplexer1964
Table 466.TIMx internal trigger connection1964
Table 467.Timer break interconnect1965
Table 468.System break interconnect1965
Table 469.CCR and ARR register change dithering pattern1985
Table 470.Break protection disarming conditions1994
Table 471.DMA request2005
Table 472.Effect of low-power modes on TIM15/TIM16/TIM172006
Table 473.Interrupt requests2006
Table 474.Output control bits for complementary tim_ocx and tim_ocxn channels with break feature (TIM15)2022
Table 475.TIM15 register map and reset values2035
Table 476.Output control bits for complementary tim_oc1 and tim_oc1n channels with break feature (TIM16/TIM17)2048
Table 477.TIM16/TIM17 register map and reset values2062
Table 478.STM32H7Rx/7Sx LPTIM features2065
Table 479.LPTIM1/2/3 input/output pins2067
Table 480.LPTIM4/5 input/output pins2067
Table 481.LPTIM1/2/3 internal signals2068
Table 482.LPTIM4/5 internal signals2068
Table 483.LPTIM1/2/3/4/5 external trigger connections2069
Table 484.LPTIM1/2/3 input 1 connections2069
Table 485.LPTIM1/2/3 input 2 connections2069
Table 486.LPTIM1/2/3 input capture 1 connections2069
Table 487.LPTIM1 input capture 2 connections2070
Table 488.LPTIM2 input capture 2 connections2070
Table 489.LPTIM3 input capture 2 connections2070
Table 490.Prescaler division ratios2072
Table 491.Encoder counting scenarios2079
Table 492.Input capture Glitch filter latency (in counter step unit)2083
Table 493.Interrupt events2088
Table 494.LPTIM register map and reset values2112
Table 495.WWDG features2115
Table 496.WWDG internal input/output signals2116
Table 497.WWDG register map and reset values2121
Table 498.IWDG features2122
Table 499.IWDG delays versus actions2123
Table 500.IWDG internal input/output signals2124
Table 501.Effect of low power modes on IWDG2129
Table 502.IWDG interrupt request2131
Table 503.IWDG register map and reset values2136
Table 504.RTC input/output pins2139
Table 505.RTC internal input/output signals2139
Table 506.RTC interconnection2140
Table 507.RTC pin PC13 configuration2140
Table 508.RTC_OUT mapping2143
Table 509.Effect of low-power modes on RTC2157
Table 510.RTC pins functionality over modes2157
Table 511.Interrupt requests . . . . .2158
Table 512.RTC register map and reset values . . . . .2184
Table 513.TAMP input/output pins . . . . .2188
Table 514.TAMP internal input/output signals . . . . .2188
Table 515.TAMP interconnection . . . . .2189
Table 516.Device resource x tamper protection . . . . .2194
Table 517.Active tamper output change period . . . . .2197
Table 518.Minimum ATPER value. . . . .2198
Table 519.Active tamper filtered pulse duration . . . . .2199
Table 520.Effect of low-power modes on TAMP . . . . .2200
Table 521.TAMP pins functionality over modes . . . . .2201
Table 522.Interrupt requests . . . . .2201
Table 523.TAMP register map and reset values . . . . .2227
Table 524.I2C implementation. . . . .2230
Table 525.I2C input/output pins. . . . .2231
Table 526.I2C internal input/output signals . . . . .2232
Table 527.Comparison of analog and digital filters . . . . .2234
Table 528.I2C-bus and SMBus specification data setup and hold times . . . . .2236
Table 529.I2C configuration. . . . .2240
Table 530.I2C-bus and SMBus specification clock timings . . . . .2251
Table 531.Timing settings for fI2CCLK of 8 MHz. . . . .2261
Table 532.Timing settings for fI2CCLK of 16 MHz. . . . .2261
Table 533.SMBus timeout specifications. . . . .2263
Table 534.SMBus with PEC configuration. . . . .2265
Table 535.TIMEOUTA[11:0] for maximum tTIMEOUT of 25 ms. . . . .2266
Table 536.TIMEOUTB[11:0] for maximum tLOW:SEXT and tLOW:MEXT of 8 ms . . . . .2266
Table 537.TIMEOUTA[11:0] for maximum tIDLE of 50 µs . . . . .2266
Table 538.Effect of low-power modes to I2C. . . . .2276
Table 539.I2C interrupt requests . . . . .2276
Table 540.I2C register map and reset values . . . . .2292
Table 541.I3C instantiation . . . . .2295
Table 542.I3C wake-up . . . . .2295
Table 543.I3C FIFOs implementation . . . . .2295
Table 544.I3C interrupt(s) . . . . .2295
Table 545.I3C peripheral controller/target features versus MIPI v1.1 . . . . .2296
Table 546.I3C input/output pins. . . . .2297
Table 547.I3C internal input/output signals . . . . .2297
Table 548.I3C register usage . . . . .2309
Table 549.I3C registers/fields usage versus controller state. . . . .2310
Table 550.I3C registers/fields usage versus target state. . . . .2313
Table 551.List of supported I3C CCCs, as controller/target . . . . .2316
Table 552.I3C controller error management . . . . .2347
Table 553.I3C target error management . . . . .2349
Table 554.Effect of low-power modes . . . . .2353
Table 555.I3C interrupt requests . . . . .2354
Table 556.I3C register map and reset values . . . . .2399
Table 557.Instance implementation on STM32H7Rx/7Sx. . . . .2403
Table 558.USART/LPUART features . . . . .2404
Table 559.USART/UART input/output pins . . . . .2406
Table 560.USART internal input/output signals. . . . .2407
Table 561.Noise detection from sampled data . . . . .2419
Table 562.Tolerance of the USART receiver when BRR [3:0] = 0000. . . . .2423
Table 563.Tolerance of the USART receiver when BRR[3:0] is different from 0000 . . . . .2423
Table 564.USART frame formats . . . . .2428
Table 565.Effect of low-power modes on the USART . . . . .2451
Table 566.USART interrupt requests. . . . .2452
Table 567.USART register map and reset values . . . . .2490
Table 568.Instance implementation on STM32H7Rx/7Sx . . . . .2493
Table 569.USART/LPUART features . . . . .2493
Table 570.LPUART input/output pins . . . . .2496
Table 571.LPUART internal input/output signals. . . . .2496
Table 572.Error calculation for programmed baud rates at lpuart_ker_ck_pres= 32.768 kHz . . . . .2507
Table 573.Tolerance of the LPUART receiver. . . . .2508
Table 575.Effect of low-power modes on the LPUART . . . . .2520
Table 576.LPUART interrupt requests. . . . .2521
Table 577.LPUART register map and reset values . . . . .2547
Table 578.SPI features . . . . .2550
Table 579.SPI/I2S input/output pins . . . . .2553
Table 580.SPI internal input/output signals . . . . .2553
Table 581.Effect of low-power modes on the SPI . . . . .2580
Table 582.SPI wake-up and interrupt requests . . . . .2581
Table 583.Bitfields usable in PCM/I2S mode . . . . .2583
Table 584.WS and CK level before SPI/I2S is enabled when AFCNTR = 1 . . . . .2592
Table 585.Serial data line swapping . . . . .2592
Table 586.CLKGEN programming examples for usual I2S frequencies . . . . .2596
Table 587.I2S interrupt requests . . . . .2605
Table 588.SPI register map and reset values . . . . .2623
Table 589.STM32H7Rx/7Sx SAI features . . . . .2626
Table 590.SAI internal input/output signals . . . . .2628
Table 591.SAI input/output pins. . . . .2628
Table 592.External synchronization selection . . . . .2631
Table 593.MCLK_x activation conditions. . . . .2636
Table 594.Clock generator programming examples . . . . .2639
Table 595.SAI_A configuration for TDM mode . . . . .2646
Table 596.TDM frame configuration examples . . . . .2648
Table 597.SOPD pattern . . . . .2652
Table 598.Parity bit calculation . . . . .2652
Table 599.Audio sampling frequency versus symbol rates . . . . .2653
Table 600.SAI interrupt sources . . . . .2662
Table 601.SAI register map and reset values . . . . .2691
Table 602.SPDIFRX internal input/output signals . . . . .2694
Table 603.SPDIFRX pins. . . . .2694
Table 604.Transition sequence for preamble . . . . .2700
Table 605.Minimum spdifrx_ker_ck frequency versus audio sampling rate . . . . .2710
Table 606.Conditions of spdifrx_symb_ck generation. . . . .2711
Table 607.Bit field property versus SPDIFRX state. . . . .2714
Table 608.SPDIFRX interface register map and reset values . . . . .2726
Table 609.MDIOS input/output signals connected to package pins or balls . . . . .2728
Table 610.MDIOS internal input/output signals . . . . .2728
Table 611.Interrupt control bits . . . . .2733
Table 612.MDIOS register map and reset values . . . . .2738
Table 613.SDMMC features . . . . .2740
Table 614.SDMMC operation modes SD and SDIO . . . . .2743
Table 615.SDMMC operation modes eMMC . . . . .2743
Table 616.SDMMC internal input/output signals . . . . .2744
Table 617.SDMMC pins . . . . .2745
Table 618.SDMMC Command and data phase selection . . . . .2746
Table 619.Command token format . . . . .2752
Table 620.Short response with CRC token format . . . . .2753
Table 621.Short response without CRC token format . . . . .2753
Table 622.Long response with CRC token format . . . . .2753
Table 623.Specific Commands overview . . . . .2754
Table 624.Command path status flags . . . . .2755
Table 625.Command path error handling . . . . .2755
Table 626.Data token format . . . . .2763
Table 627.Data path status flags and clear bits . . . . .2763
Table 628.Data path error handling . . . . .2765
Table 629.Data FIFO access . . . . .2766
Table 630.Transmit FIFO status flags . . . . .2767
Table 631.Receive FIFO status flags . . . . .2768
Table 632.AHB and SDMMC_CK clock frequency relation . . . . .2773
Table 633.SDIO special operation control . . . . .2773
Table 634.4-bit mode Start, interrupt, and CRC-status Signaling detection . . . . .2777
Table 635.CMD12 use cases . . . . .2782
Table 636.SDMMC interrupts . . . . .2796
Table 637.Response type and SDMMC_RESPxR registers . . . . .2803
Table 638.SDMMC register map . . . . .2819
Table 639.CAN subsystem I/O signals . . . . .2826
Table 640.CAN subsystem I/O pins . . . . .2826
Table 641.DLC coding in FDCAN . . . . .2830
Table 642.Possible configurations for frame transmission . . . . .2844
Table 643.Rx FIFO element . . . . .2847
Table 644.Rx FIFO element description . . . . .2847
Table 645.Tx buffer and FIFO element . . . . .2849
Table 646.Tx buffer element description . . . . .2849
Table 647.Tx event FIFO element . . . . .2851
Table 648.Tx event FIFO element description . . . . .2851
Table 649.Standard message ID filter element . . . . .2852
Table 650.Standard message ID filter element field description . . . . .2853
Table 651.Extended message ID filter element . . . . .2853
Table 652.Extended message ID filter element field description . . . . .2854
Table 653.FDCAN register map and reset values . . . . .2884
Table 654.OTG_FS speeds supported . . . . .2888
Table 655.OTG_FS implementation . . . . .2891
Table 656.OTG_FS input/output pins . . . . .2892
Table 657.OTG_FS input/output signals . . . . .2893
Table 658.Compatibility of STM32 low power modes with the OTG . . . . .2904
Table 659.Core global control and status registers (CSRs) . . . . .2912
Table 660.Host-mode control and status registers (CSRs) . . . . .2913
Table 661.Device-mode control and status registers . . . . .2914
Table 662.Data FIFO (DFIFO) access register map . . . . .2916
Table 663.Power and clock gating control and status registers . . . . .2916
Table 664.TRDT values . . . . .2922
Table 665.Minimum duration for soft disconnect . . . . .2963
Table 666.OTG_FS register map and reset values . . . . .2992
Table 667.OTG_HS speeds supported . . . . .3047
Table 668.OTG_HS implementation . . . . .3049
Table 669.OTG_HS input/output pins . . . . .3050
Table 670.OTG_HS input/output signals . . . . .3051
Table 671.Compatibility of STM32 low power modes with the OTG . . . . .3062
Table 672.Core global control and status registers (CSRs) . . . . .3070
Table 673.Host-mode control and status registers (CSRs) . . . . .3071
Table 674.Device-mode control and status registers . . . . .3072
Table 675.Data FIFO (DFIFO) access register map . . . . .3074
Table 676.Power and clock gating control and status registers . . . . .3075
Table 677.TRDT values . . . . .3081
Table 678.Minimum duration for soft disconnect . . . . .3124
Table 679.OTG_HS register map and reset values . . . . .3150
Table 680.UCPD implementation . . . . .3216
Table 681.UCPD software trim data . . . . .3216
Table 682.UCPD signals on pins . . . . .3217
Table 683.UCPD internal signals . . . . .3218
Table 684.4b5b symbol encoding table . . . . .3220
Table 685.Ordered sets . . . . .3221
Table 686.Validation of ordered sets . . . . .3221
Table 687.Data size . . . . .3222
Table 688.Coding for ANAMODE, ANASUBMODE and link with TYPEC_VSTATE_CCx . . . . .3230
Table 689.Type-C sequence (source: 3A); cable/sink connected (Rd on CC1; Ra on CC2) . . . . .3232
Table 690.Effect of low power modes on the UCPD . . . . .3234
Table 691.UCPD interrupt requests . . . . .3235
Table 692.UCPD register map and reset values . . . . .3251
Table 693.Ethernet peripheral pins . . . . .3258
Table 694.Internal Ethernet input/output signals . . . . .3259
Table 695.Priority scheme for Tx DMA and Rx DMA . . . . .3268
Table 696.Double VLAN processing features in Tx path . . . . .3274
Table 697.Double VLAN processing in Rx path . . . . .3275
Table 698.VLAN insertion or replacement based on VLTI bit . . . . .3276
Table 699.Destination address filtering . . . . .3279
Table 700.Source address filtering . . . . .3280
Table 701.VLAN match status . . . . .3281
Table 702.Ordinary clock: PTP messages for snapshot . . . . .3285
Table 703.End-to-end transparent clock: PTP messages for snapshot . . . . .3285
Table 704.Peer-to-peer transparent clock: PTP messages for snapshot . . . . .3286
Table 705.Egress and ingress latency for PHY interfaces . . . . .3290
Table 706.Minimum PTP clock frequency example . . . . .3290
Table 707.Message format defined in IEEE 1588-2008 . . . . .3291
Table 708.Message format defined in IEEE 1588-2008 . . . . .3291
Table 709.IPv6-UDP PTP packet fields required for control and status . . . . .3292
Table 710.Ethernet PTP packet fields required for control and status . . . . .3293
Table 711.Timestamp Snapshot Dependency on ETH_MACTSCR bits . . . . .3295
Table 712.PTP message generation criteria . . . . .3301
Table 713.Common PTP message header fields . . . . .3303
Table 714.MAC transmit PTP mode and one-step timestamping operation . . . . .3306
Table 715.Transmit checksum offload engine functions for different packet types . . . . .3310
Table 716.Receive checksum offload engine functions for different packet types . . . . .3313
Table 717.TSO: TCP and IP header fields . . . . .3317
Table 718.Pause packet fields . . . . .3322
Table 719.Tx MAC flow control . . . . .3323
Table 720.Rx MAC flow control . . . . .3323
Table 721.Size of the maximum receive packet . . . . .3326
Table 722.MCD clock selection . . . . .3328
Table 723.MDIO Clause 45 frame structure . . . . .3329
Table 724.MDIO Clause 22 frame structure . . . . .3330
Table 725.Remote wake-up packet filter register . . . . .3341
Table 726.Description of the remote wake-up filter fields . . . . .3341
Table 727.Remote wake-up packet and PMT interrupt generation . . . . .3343
Table 728.Transfer complete interrupt behavior . . . . .3351
Table 729.TDES0 normal descriptor (read format) . . . . .3373
Table 730.TDES1 normal descriptor (read format) . . . . .3374
Table 731.TDES2 normal descriptor (read format) . . . . .3374
Table 732.TDES3 normal descriptor (read format) . . . . .3375
Table 733.TDES0 normal descriptor (write-back format) . . . . .3378
Table 734.TDES1 normal descriptor (write-back format) . . . . .3378
Table 735.TDES2 normal descriptor (write-back format) . . . . .3379
Table 736.TDES3 normal descriptor (write-back format) . . . . .3379
Table 737.TDES0 context descriptor . . . . .3382
Table 738.TDES1 context descriptor . . . . .3382
Table 739.TDES2 context descriptor . . . . .3383
Table 740.TDES3 context descriptor . . . . .3383
Table 741.RDES0 normal descriptor (read format) . . . . .3386
Table 742.RDES1 normal descriptor (read format) . . . . .3386
Table 743.RDES2 normal descriptor (read format) . . . . .3386
Table 744.RDES3 normal descriptor (read format) . . . . .3386
Table 745.RDES0 normal descriptor (write-back format) . . . . .3388
Table 746.RDES1 normal descriptor (write-back format) . . . . .3388
Table 747.RDES2 normal descriptor (write-back format) . . . . .3390
Table 748.RDES3 normal descriptor (write-back format) . . . . .3392
Table 749.RDES0 context descriptor . . . . .3395
Table 750.RDES1 context descriptor . . . . .3396
Table 751.RDES2 context descriptor . . . . .3396
Table 752.RDES3 context descriptor . . . . .3396
Table 753.ETH_DMA common register map and reset values . . . . .3416
Table 754.ETH_DMA_CH register map and reset values . . . . .3417
Table 755.ETH_MTL register map and reset values . . . . .3427
Table 756.Giant Packet Status based on S2KP and JE Bits . . . . .3433
Table 757.Packet Length based on the CST and ACS bits . . . . .3433
Table 758.Ethernet MAC register map and reset values . . . . .3512
Table 759.HDMI pin . . . . .3523
Table 760.HDMI-CEC internal input/output signals . . . . .3523
Table 761.Error handling timing parameters . . . . .3529
Table 762.TXERR timing parameters . . . . .3530
Table 763.HDMI-CEC interrupts . . . . .3531
Table 764.HDMI-CEC register map and reset values . . . . .3539
Table 765.Authentication signal states . . . . .3544
Table 766.Authentication signal states . . . . .3544
Table 767.Packet request . . . . .3547
Table 768.ACK response . . . . .3547
Table 769.Data transfer . . . . .3548
Table 770.JTAG-DP data registers . . . . .3550
Table 771.Debug port registers . . . . .3552
Table 772.Debug port register map and reset values . . . . .3561
Table 773.MEM-AP registers. . . . .3563
Table 774.Access port register map and reset values. . . . .3571
Table 775.System ROM table 1. . . . .3573
Table 776.System ROM table 2. . . . .3573
Table 777.System ROM table 1 register map and reset values . . . . .3580
Table 778.System ROM table 2 register map and reset values . . . . .3581
Table 779.System CTI inputs . . . . .3583
Table 780.System CTI outputs . . . . .3583
Table 781.Cortex-M7 CTI inputs . . . . .3583
Table 782.Cortex-M7 CTI outputs . . . . .3584
Table 783.CTI register map and reset values . . . . .3599
Table 784.CSTF register map and reset values . . . . .3611
Table 785.ETF register map and reset values. . . . .3632
Table 786.TPIU register map and reset values . . . . .3651
Table 787.SWO register map and reset values. . . . .3663
Table 788.DBGMCU register map and reset values . . . . .3680
Table 789.Cortex-M7 CPU ROM table . . . . .3683
Table 790.Cortex-M7 PPB ROM table. . . . .3684
Table 791.Cortex-M7 CPU ROM table register map and reset values . . . . .3690
Table 792.Cortex-M7 PPB ROM table register map and reset values . . . . .3695
Table 793.Cortex-M7 DWT register map and reset values . . . . .3706
Table 794.Cortex-M7 ITM register map and reset values . . . . .3715
Table 795.Cortex-M7 FPB register map and reset values. . . . .3722
Table 796.Cortex-M7 ETM register map and reset values . . . . .3750
Table 797.Document revision history . . . . .3760

List of figures

Figure 1.System architecture .....124
Figure 2.AXI interconnect .....129
Figure 3.Memory map .....151
Figure 4.RAM ECC controller implementation schematic.....166
Figure 5.Connection between RAM ECC controller and RAMECC monitoring unit .....167
Figure 6.Secure boot process.....182
Figure 7.Key management principle .....188
Figure 8.Product life-cycle security .....191
Figure 9.FLASH block diagram .....201
Figure 10.Detailed FLASH architecture .....203
Figure 11.Embedded flash memory organization .....204
Figure 12.Embedded flash memory usage (STM32H7R).....206
Figure 13.Embedded flash memory usage (STM32H7S).....207
Figure 14.Flash decommissioning options .....208
Figure 15.FLASH read pipeline architecture .....210
Figure 16.FLASH write pipeline architecture .....214
Figure 17.FLASH stateful initialization .....221
Figure 18.Life cycle management scheme .....233
Figure 19.Power control block diagram .....280
Figure 20.Power supply overview .....284
Figure 21.System supply configurations .....285
Figure 22.Device startup with VCORE supplied directly from SMPS step-down converter .....288
Figure 23.Device startup with VCORE supplied in Bypass mode from external regulator .....289
Figure 24.Backup domain .....294
Figure 25.USB supply configurations .....296
Figure 26.Power-on reset/power-down reset waveform .....297
Figure 27.BOR thresholds .....298
Figure 28.PVD thresholds .....299
Figure 29.AVD thresholds .....300
Figure 30.VBAT thresholds .....301
Figure 31.Temperature thresholds .....302
Figure 32.VCORE overvoltage protection.....303
Figure 33.VCORE voltage scaling versus system power modes .....306
Figure 34.Dynamic voltage scaling in Run mode .....307
Figure 35.Dynamic voltage scaling behavior in Stop mode .....308
Figure 36.Dynamic voltage scaling from Standby mode.....309
Figure 37.RCC block diagram.....342
Figure 38.Simplified reset circuit.....346
Figure 39.Boot sequences versus system states .....352
Figure 40.Top-level clock tree.....354
Figure 41.HSE/LSE clock source .....356
Figure 42.HSE clock generation .....356
Figure 43.LSE clock generation .....358
Figure 44.HSI calibration flow .....362
Figure 45.CSI calibration flow .....363
Figure 46.HSI48 calibration flow .....364
Figure 47.LSE and HSE CSS function .....365
Figure 48.PLL block diagram .....371
Figure 49.Spread-spectrum modulation . . . . .375
Figure 50.Triangular waveform generator . . . . .376
Figure 51.Core and bus clock generation . . . . .378
Figure 52.Key signals controlling low-power modes . . . . .380
Figure 53.Clock distribution for SAIs, ADF and SPDIFRX . . . . .391
Figure 54.Clock distribution for SPIs and SPI/I2S . . . . .392
Figure 55.Clock distribution for I2C[3:2] and I2C1/I3C1 . . . . .393
Figure 56.Clock distribution for UARTs, LPUART1 and USARTs . . . . .394
Figure 57.Clock distribution for FDCAN . . . . .395
Figure 58.Clock distribution for GPU2D . . . . .396
Figure 59.Clock distribution for LTDC and DCMIPP . . . . .396
Figure 60.Clock distribution for PSSI . . . . .397
Figure 61.Clock distribution for FMC, XSPIs, and MCEs . . . . .399
Figure 62.Clock distribution for SDMMC[2:1] and DB_SDMMC[2:1] . . . . .400
Figure 63.Clock distribution for USB and UCPD . . . . .402
Figure 64.Clock distribution for ETH1 . . . . .403
Figure 65.ETH clock configuration . . . . .404
Figure 66.Clock distribution For ADCs . . . . .405
Figure 67.Clock distribution for SAES and RNG . . . . .405
Figure 68.Clock distribution for HDMI-CEC . . . . .406
Figure 69.Clock distribution for TIMs . . . . .406
Figure 70.Clock distribution for LPTIMs . . . . .408
Figure 71.Clock distribution for RTC . . . . .409
Figure 72.Clock distribution for WWDG and IWDG . . . . .410
Figure 73.Clock distribution for DBG and trace . . . . .410
Figure 74.Kernel clock switching . . . . .412
Figure 75.Peripheral kernel clock enable logic details . . . . .413
Figure 76.SBS block diagram . . . . .541
Figure 77.SBS boot control . . . . .542
Figure 78.Compensation cell management . . . . .545
Figure 79.Compensation cell use . . . . .545
Figure 80.CRS block diagram . . . . .562
Figure 81.CRS counter behavior . . . . .564
Figure 82.Structure of three-volt or five-volt tolerant GPIO (TT or FT) . . . . .574
Figure 83.Input floating/pull-up/pull-down configurations . . . . .578
Figure 84.Output configuration . . . . .579
Figure 85.Alternate function configuration . . . . .580
Figure 86.High-impedance analog configuration . . . . .580
Figure 87.GPDMA block diagram . . . . .610
Figure 88.GPDMA channel direct programming without linked-list (GPDMA_CxLLR = 0) . . . . .611
Figure 89.GPDMA channel suspend and resume sequence . . . . .612
Figure 90.GPDMA channel abort and restart sequence . . . . .613
Figure 91.Static linked-list data structure (all Uxx = 1) of a linear addressing channel x . . . . .614
Figure 92.Static linked-list data structure (all Uxx = 1) of a 2D addressing channel x . . . . .615
Figure 93.GPDMA dynamic linked-list data structure of a linear addressing channel x . . . . .616
Figure 94.GPDMA dynamic linked-list data structure of a 2D addressing channel x . . . . .616
Figure 95.GPDMA channel execution and linked-list programming
in run-to-completion mode (GPDMA_CxCR.LSM = 0) . . . . .
618
Figure 96.Inserting a LLIn with an auxiliary GPDMA channel y . . . . .620
Figure 97.GPDMA channel execution and linked-list programming
in link step mode (GPDMA_CxCR.LSM = 1) . . . . .
622
Figure 98.Building LLIn+1: GPDMA dynamic linked-lists in link step mode . . . . .623
Figure 99.Replace with a new LLIn' in register file in link step mode624
Figure 100.Replace with a new LLIn' and LLIn+1' in memory in link step mode (option 1)625
Figure 101.Replace with a new LLIn' and LLIn+1' in memory in link step mode (option 2)626
Figure 102.GPDMA channel execution and linked-list programming628
Figure 103.Programmed 2D addressing631
Figure 104.GPDMA arbitration policy638
Figure 105.Trigger hit, memorization, and overrun waveform641
Figure 106.GPDMA circular buffer programming: update of the memory start address with a linear addressing channel642
Figure 107.Shared GPDMA channel with circular buffering: update of the memory start address with a linear addressing channel643
Figure 108.HPDMA block diagram681
Figure 109.HPDMA channel direct programming without linked-list (HPDMA_CxLLR = 0)682
Figure 110.HPDMA channel suspend and resume sequence683
Figure 111.HPDMA channel abort and restart sequence684
Figure 112.Static linked-list data structure (all Uxx = 1) of a linear addressing channel x685
Figure 113.Static linked-list data structure (all Uxx = 1) of a 2D addressing channel x686
Figure 114.HPDMA dynamic linked-list data structure of linear addressing channel x687
Figure 115.HPDMA dynamic linked-list data structure of a 2D addressing channel x687
Figure 116.HPDMA channel execution and linked-list programming in run-to-completion mode (HPDMA_CxCR.LSM = 0)689
Figure 117.Inserting a LLIn with an auxiliary HPDMA channel y691
Figure 118.HPDMA channel execution and linked-list programming in link step mode (HPDMA_CxCR.LSM = 1)693
Figure 119.Building LLIn+1: HPDMA dynamic linked-lists in link step mode694
Figure 120.Replace with a new LLIn' in register file in link step mode695
Figure 121.Replace with a new LLIn' and LLIn+1' in memory in link step mode (option 1)696
Figure 122.Replace with a new LLIn' and LLIn+1' in memory in link step mode (option 2)697
Figure 123.HPDMA channel execution and linked-list programming699
Figure 124.Programmed 2D addressing702
Figure 125.HPDMA arbitration policy717
Figure 126.Trigger hit, memorization and overrun waveform721
Figure 127.HPDMA circular buffer programming: update of the memory start address with a linear addressing channel722
Figure 128.Shared HPDMA channel with circular buffering: update of the memory start address with a linear addressing channel723
Figure 129.GFXMMU block diagram757
Figure 130.Virtual buffer759
Figure 131.Virtual buffer and physical buffer memory map760
Figure 132.MMU block diagram761
Figure 133.Block validation/comparator implementation763
Figure 134.DMA2D block diagram774
Figure 135.Intel 8080 16-bit mode (RGB565)781
Figure 136.Intel 8080 18/24-bit mode (RGB888)781
Figure 137.GPU2D block diagram808
Figure 138.ICACHE block diagram812
Figure 139.ICACHE TAG and data memories functional view814
Figure 140.GFXTIM block diagram824
Figure 141.Clock generator826
Figure 142.Waveforms in standalone828
Figure 143.Active counters and signals in standalone828
Figure 144.Waveforms with external HSYNC and VSYNC828
Figure 145. Waveforms with external HSYNC only . . . . .829
Figure 146. Active counters and signals with external HSYNC only . . . . .829
Figure 147. Waveforms with external VSYNC only . . . . .829
Figure 148. Active counters with external VSYNC only . . . . .830
Figure 149. Prescaling when external VSYNC only . . . . .830
Figure 150. Waveforms with external CSYNC only . . . . .830
Figure 151. Active counters and signals with external CSYNC only . . . . .831
Figure 152. Prescaling when external CSYNC only . . . . .831
Figure 153. Tearing-effect configurations . . . . .833
Figure 154. Watchdog timer . . . . .834
Figure 155. EXTI block diagram . . . . .868
Figure 156. Configurable event triggering logic CPU wake-up . . . . .870
Figure 157. Direct event triggering logic CPU wake up . . . . .871
Figure 158. CRC calculation unit block diagram . . . . .888
Figure 159. CORDIC convergence for trigonometric functions . . . . .902
Figure 160. CORDIC convergence for hyperbolic functions . . . . .903
Figure 161. CORDIC convergence for square root . . . . .904
Figure 162. FMC block diagram . . . . .914
Figure 163. FMC memory banks (default mapping) . . . . .917
Figure 164. Mode 1 read access waveforms . . . . .928
Figure 165. Mode 1 write access waveforms . . . . .929
Figure 166. Mode A read access waveforms . . . . .931
Figure 167. Mode A write access waveforms . . . . .932
Figure 168. Mode 2 and mode B read access waveforms . . . . .934
Figure 169. Mode 2 write access waveforms . . . . .934
Figure 170. Mode B write access waveforms . . . . .935
Figure 171. Mode C read access waveforms . . . . .937
Figure 172. Mode C write access waveforms . . . . .937
Figure 173. Mode D read access waveforms . . . . .940
Figure 174. Mode D write access waveforms . . . . .940
Figure 175. Muxed read access waveforms . . . . .943
Figure 176. Muxed write access waveforms . . . . .943
Figure 177. Asynchronous wait during a read access waveforms . . . . .946
Figure 178. Asynchronous wait during a write access waveforms . . . . .946
Figure 179. Wait configuration waveforms . . . . .949
Figure 180. Synchronous multiplexed read mode waveforms - NOR, PSRAM (CRAM) . . . . .949
Figure 181. Synchronous multiplexed write mode waveforms - PSRAM (CRAM) . . . . .951
Figure 182. NAND flash controller waveforms for common memory access . . . . .965
Figure 183. Access to non 'CE don't care' NAND-flash . . . . .966
Figure 184. Burst write SDRAM access waveforms . . . . .976
Figure 185. Burst read SDRAM access . . . . .977
Figure 186. Logic diagram of Read access with RBURST bit set (RPIPE=0) . . . . .978
Figure 187. Read access crossing row boundary . . . . .980
Figure 188. Write access crossing row boundary . . . . .980
Figure 189. Self-refresh mode . . . . .983
Figure 190. Power-down mode . . . . .984
Figure 191. XSPI block diagram for 16-bit configuration(1) . . . . .996
Figure 192. XSPI block diagram for dual-octal configuration(1) . . . . .997
Figure 193. XSPI block diagram for octal configuration . . . . .998
Figure 194. XSPI block diagram in quad configuration . . . . .999
Figure 195. XSPI block diagram for dual-quad configuration . . . . .1000
Figure 196. SDR read command in 16-bit configuration . . . . .1002
Figure 197.DTR read in octal-SPI mode with DQS (Macronix mode) example1005
Figure 198.SDR write command in octal-SPI mode example1007
Figure 199.DTR write in octal-SPI mode (Macronix mode) example1008
Figure 200.Example of HyperBus read operation (8-bit data mode)1011
Figure 201.HyperBus write operation with initial latency (8-bit data mode)1012
Figure 202.HyperBus read operation with additional latency (8-bit data mode)1013
Figure 203.HyperBus write operation with additional latency (8-bit data mode)1013
Figure 204.HyperBus write operation with no latency (register write)1014
Figure 205.HyperBus read operation page crossing with latency (8-bit data mode)1014
Figure 206.HyperBus write operation with initial latency (16-bit mode)1015
Figure 207.D0/D1 data ordering in octal-SPI DTR mode (Micron) - Read access1022
Figure 208.D0/D1 data ordering in octal-SPI DTR mode with DQS and CLK polarity aligned during Read access1022
Figure 209.OctaRAM read operation with reverse data ordering D1/D01023
Figure 210.NCS when CKMODE = 0 (T = CLK period)1029
Figure 211.NCS when CKMODE = 1 in SDR mode (T = CLK period)1029
Figure 212.NCS when CKMODE = 1 in DTR mode (T = CLK period)1030
Figure 213.NCS when CKMODE =1 with an abort (T = CLK period)1030
Figure 214.Example of software control of two external memories1031
Figure 215.XSPIM block diagram1063
Figure 216.XSPI direct octal mode1065
Figure 217.XSPI direct 16-bit mode1066
Figure 218.XSPI dual-octal mode1066
Figure 219.XSPI swapped (octal) mode1067
Figure 220.XSPI multiplexed mode to Port 11068
Figure 221.XSPI multiplexed (octal and dual-octal) mode to Port 21068
Figure 222.XSPI1 and XSPI2 drive a single external memory (octal mode)1069
Figure 223.Single XSPI driving two external memories1070
Figure 224.DLYB block diagram1073
Figure 225.ADC block diagram1081
Figure 226.ADC clock scheme1086
Figure 227.ADC1 connectivity1087
Figure 228.ADC2 connectivity1088
Figure 229.ADC calibration1091
Figure 230.Updating the ADC calibration factor1092
Figure 231.Mixing single-ended and differential channels1093
Figure 232.Enabling / disabling the ADC1094
Figure 233.Bulb mode timing diagram1097
Figure 234.Analog-to-digital conversion time1100
Figure 235.Stopping ongoing regular conversions1101
Figure 236.Stopping ongoing regular and injected conversions1102
Figure 237.Triggers shared between ADC master and slave1103
Figure 238.Injected conversion latency1105
Figure 239.Example of ADC_JSQR queue of context (sequence change)1108
Figure 240.Example of ADC_JSQR queue of context (trigger change)1108
Figure 241.Example of ADC_JSQR queue of context with overflow before conversion1109
Figure 242.Example of ADC_JSQR queue of context with overflow during conversion1109
Figure 243.Example of ADC_JSQR queue of context with empty queue (case JQM = 0)1110
Figure 244.Example of ADC_JSQR queue of context with empty queue (JQM = 1)1111
Figure 245.Flushing ADC_JSQR queue of context by setting JADSTP = 1 (JQM = 0) - JADSTP occurs during an ongoing conversion1111
Figure 246.Flushing ADC_JSQR queue of context by setting JADSTP = 1 (JQM = 0) -
Figure 247.JADSTP occurs during an ongoing conversion and a new trigger occurs ..... 1112
Figure 248.Flushing ADC_JSQR queue of context by setting JADSTP = 1 (JQM = 0) - JADSTP occurs outside an ongoing conversion. .... 1112
Figure 249.Flushing ADC_JSQR queue of context by setting JADSTP = 1 (JQM = 1) ..... 1113
Figure 250.Flushing ADC_JSQR queue of context by setting ADDIS = 1 (JQM = 0) ..... 1113
Figure 251.Flushing ADC_JSQR queue of context by setting ADDIS = 1 (JQM = 1) ..... 1114
Figure 252.Single conversions of a sequence, software trigger ..... 1116
Figure 253.Continuous conversion of a sequence, software trigger ..... 1116
Figure 254.Single conversions of a sequence, hardware trigger ..... 1117
Figure 255.Continuous conversions of a sequence, hardware trigger ..... 1117
Figure 256.Right alignment (offset disabled, unsigned value) ..... 1119
Figure 257.Right alignment (offset enabled, signed value) ..... 1120
Figure 258.Left alignment (offset disabled, unsigned value) ..... 1120
Figure 259.Left alignment (offset enabled, signed value) ..... 1121
Figure 260.Example of overrun (OVRMOD = 0) ..... 1122
Figure 261.Example of overrun (OVRMOD = 1) ..... 1123
Figure 262.AUTODLY = 1, regular conversion in continuous mode, software trigger ..... 1126
Figure 263.AUTODLY = 1, regular HW conversions interrupted by injected conversions (DISCEN = 0; JDISCEN = 0) ..... 1127
Figure 264.AUTODLY = 1, regular HW conversions interrupted by injected conversions (DISCEN = 1, JDISCEN = 1) ..... 1128
Figure 265.AUTODLY = 1, regular continuous conversions interrupted by injected conversions ..... 1129
Figure 266.AUTODLY = 1 in auto-injected mode (JAUTO = 1) ..... 1129
Figure 267.Analog watchdog guarded area ..... 1130
Figure 268.ADCy_AWDx_OUT signal generation (on all regular channels) ..... 1132
Figure 269.ADCy_AWDx_OUT signal generation (AWDx flag not cleared by software) ..... 1133
Figure 270.ADCy_AWDx_OUT signal generation (on a single regular channel) ..... 1133
Figure 271.ADCy_AWDx_OUT signal generation (on all injected channels) ..... 1133
Figure 272.20-bit to 16-bit result truncation ..... 1135
Figure 273.Numerical example with 5-bit shift and rounding ..... 1135
Figure 274.Triggered regular oversampling mode (TROVS bit = 1) ..... 1137
Figure 275.Regular oversampling modes (4x ratio) ..... 1138
Figure 276.Regular and injected oversampling modes used simultaneously ..... 1139
Figure 277.Triggered regular oversampling with injection ..... 1139
Figure 278.Oversampling in auto-injected mode ..... 1140
Figure 279.Dual ADC block diagram(1) ..... 1142
Figure 280.Injected simultaneous mode on 4 channels: dual ADC mode ..... 1143
Figure 281.Regular simultaneous mode on 16 channels: dual ADC mode ..... 1145
Figure 282.Interleaved mode on one channel in continuous conversion mode: dual ADC mode ..... 1146
Figure 283.Interleaved mode on 1 channel in single conversion mode: dual ADC mode ..... 1147
Figure 284.Interleaved conversion with injection ..... 1147
Figure 285.Alternate trigger: injected group of each ADC ..... 1148
Figure 286.Alternate trigger: 4 injected channels (each ADC) in discontinuous mode ..... 1149
Figure 287.Alternate + regular simultaneous ..... 1150
Figure 288.Case of trigger occurring during injected conversion ..... 1150
Figure 289.Interleaved single channel CH0 with injected sequence CH11, CH12 ..... 1151
Figure 290.Two Interleaved channels (CH1, CH2) with injected sequence CH11, CH12 - case 1: Master interrupted first ..... 1151
Figure 291.Two Interleaved channels (CH1, CH2) with injected sequence CH11, CH12 - case 2: Slave interrupted first ..... 1151
Figure 292.DMA Requests in regular simultaneous mode when MDMA = 0b00 ..... 1152
Figure 292.DMA requests in regular simultaneous mode when MDMA = 0b10 . . . . .1153
Figure 293.DMA requests in interleaved mode when MDMA = 0b10 . . . . .1153
Figure 294.Temperature sensor channel block diagram . . . . .1155
Figure 295.VBAT channel block diagram . . . . .1157
Figure 296.VREFINT channel block diagram . . . . .1157
Figure 297.Temperature sensor functional block diagram . . . . .1202
Figure 298.Method for low REF_CLK frequencies . . . . .1204
Figure 299.Method for high REF_CLK frequencies . . . . .1204
Figure 300.Temperature sensor sequence . . . . .1207
Figure 301.VREFBUF block diagram . . . . .1219
Figure 302.ADF block diagram . . . . .1226
Figure 303.SITF overview . . . . .1228
Figure 304.SPI timing example . . . . .1229
Figure 305.Manchester timing example (SITFMOD = 11) . . . . .1230
Figure 306.CKGEN overview . . . . .1233
Figure 307.BSMX overview . . . . .1235
Figure 308.DFLT overview . . . . .1236
Figure 309.Programmable delay . . . . .1237
Figure 310.CIC4 and CIC5 frequency response with decimation ratio = 32 or 16 . . . . .1238
Figure 311.Reshape filter frequency response normalized (FRS / 2 = 1) . . . . .1244
Figure 312.Trigger logic for DFLT and CKGEN . . . . .1246
Figure 313.Asynchronous continuous mode (ACQMOD[2:0] = 0) . . . . .1247
Figure 314.Asynchronous single-shot mode (ACQMOD[2:0] = 001) . . . . .1248
Figure 315.Synchronous continuous mode (ACQMOD[2:0] = 010) . . . . .1249
Figure 316.Synchronous single-shot mode (ACQMOD[2:0] = 011) . . . . .1250
Figure 317.Window continuous mode (ACQMOD[2:0] = 100) . . . . .1251
Figure 318.Discard function example . . . . .1253
Figure 319.Start sequence with DFLTEN, in continuous mode, audio configuration . . . . .1253
Figure 320.SAD block diagram . . . . .1254
Figure 321.SAD flow diagram . . . . .1256
Figure 322.SAD timing diagram example . . . . .1262
Figure 323.ADF_DFLTxD data format . . . . .1262
Figure 324.Data resynchronization . . . . .1263
Figure 325.Example of overflow and transfer to memory . . . . .1264
Figure 326.ADF interrupt interface . . . . .1267
Figure 327.Sensor connection examples . . . . .1272
Figure 328.Global frequency response . . . . .1272
Figure 329.Detailed frequency response . . . . .1273
Figure 330.Simplified DFLT view with gain information . . . . .1275
Figure 331.SAD example working with SADMOD = 01 . . . . .1278
Figure 332.SAD example working with SADMOD = 1x . . . . .1279
Figure 333.DCMIPP overview . . . . .1298
Figure 334.DCMIPP block diagram . . . . .1301
Figure 335.Snapshot (CPTMODE = 1) and Continuous (CPTMODE = 0) capture modes . . . . .1311
Figure 336.Pipe0 (dump) architecture overview . . . . .1314
Figure 337.PSSI block diagram . . . . .1360
Figure 338.Top-level block diagram . . . . .1360
Figure 339.Data enable in receive mode waveform diagram (CKPOL=0) . . . . .1364
Figure 340.Data enable waveform diagram in transmit mode (CKPOL=1) . . . . .1364
Figure 341.Ready in receive mode waveform diagram (CKPOL=0) . . . . .1365
Figure 342.Bidirectional PSSI_DE/PSSI_RDY waveform . . . . .1366
Figure 343.Bidirectional PSSI_DE/PSSI_RDY connection diagram . . . . .1366
Figure 344. LTDC block diagram1374
Figure 345. LTDC synchronous timings1377
Figure 346. Layer window programmable parameters1380
Figure 347. Blending two layers with background1382
Figure 348. Interrupt events1384
Figure 349. JPEG codec block diagram1405
Figure 350. RNG block diagram1427
Figure 351. NIST SP800-90B entropy source model1428
Figure 352. RNG initialization overview1431
Figure 353. SAES block diagram1445
Figure 354. Encryption/ decryption typical usage1447
Figure 355. Typical operation with authentication1449
Figure 356. Example of suspend mode management1450
Figure 357. ECB encryption1451
Figure 358. ECB decryption1451
Figure 359. CBC encryption1452
Figure 360. CBC decryption1452
Figure 361. Message construction in CTR mode1455
Figure 362. CTR encryption1456
Figure 363. Message construction in GCM1457
Figure 364. GCM authenticated encryption1459
Figure 365. Message construction in GMAC mode1462
Figure 366. GMAC authentication mode1462
Figure 367. Message construction in CCM mode1463
Figure 368. CCM mode authenticated encryption1465
Figure 369. Operation with wrapped keys for SAES in ECB and CBC modes1469
Figure 370. Operation with wrapped keys for SAES in CTR mode1471
Figure 371. Usage of Shared-key mode1472
Figure 372. 128-bit block construction according to the data type1475
Figure 373. CRYP block diagram1499
Figure 374. Encryption/ decryption typical usage1501
Figure 375. Typical operation with authentication1504
Figure 376. Example of suspend mode management1505
Figure 377. ECB encryption1506
Figure 378. ECB decryption1506
Figure 379. CBC encryption1507
Figure 380. CBC decryption1507
Figure 381. Message construction in CTR mode1510
Figure 382. CTR encryption1511
Figure 383. Message construction in GCM1513
Figure 384. GCM authenticated encryption1514
Figure 385. Message construction in GMAC mode1518
Figure 386. GMAC authentication mode1518
Figure 387. Message construction in CCM mode1519
Figure 388. CCM mode authenticated encryption1521
Figure 389. 128-bit block construction according to the data type1527
Figure 390. HASH block diagram1548
Figure 391. Message data swapping feature1550
Figure 392. HASH suspend/resume mechanism1556
Figure 393. MCE block diagram1571
Figure 394. MCE region programming1572
Figure 395. MCE implementation of block ciphers1574
Figure 396.MCE implementation of stream cipher1575
Figure 397.PKA block diagram1594
Figure 398.Advanced-control timer block diagram1628
Figure 399.Counter timing diagram with prescaler division change from 1 to 21634
Figure 400.Counter timing diagram with prescaler division change from 1 to 41634
Figure 401.Counter timing diagram, internal clock divided by 11636
Figure 402.Counter timing diagram, internal clock divided by 21636
Figure 403.Counter timing diagram, internal clock divided by 41637
Figure 404.Counter timing diagram, internal clock divided by N1637
Figure 405.Counter timing diagram, update event when ARPE = 0 (TIMx_ARR not preloaded)1638
Figure 406.Counter timing diagram, update event when ARPE = 1 (TIMx_ARR preloaded)1639
Figure 407.Counter timing diagram, internal clock divided by 11640
Figure 408.Counter timing diagram, internal clock divided by 21641
Figure 409.Counter timing diagram, internal clock divided by 41641
Figure 410.Counter timing diagram, internal clock divided by N1642
Figure 411.Counter timing diagram, update event when repetition counter is not used1642
Figure 412.Counter timing diagram, internal clock divided by 1, TIMx_ARR = 0x61644
Figure 413.Counter timing diagram, internal clock divided by 21644
Figure 414.Counter timing diagram, internal clock divided by 4, TIMx_ARR = 0x361645
Figure 415.Counter timing diagram, internal clock divided by N1645
Figure 416.Counter timing diagram, update event with ARPE = 1 (counter underflow)1646
Figure 417.Counter timing diagram, Update event with ARPE = 1 (counter overflow)1647
Figure 418.Update rate examples depending on mode and TIMx_RCR register settings1648
Figure 420.Control circuit in normal mode, internal clock divided by 11650
Figure 421.tim_ti2 external clock connection example1650
Figure 422.Control circuit in external clock mode 11651
Figure 423.External trigger input block1652
Figure 424.Control circuit in external clock mode 21653
Figure 425.Capture/compare channel (example: channel 1 input stage)1653
Figure 426.Capture/compare channel 1 main circuit1654
Figure 427.Output stage of capture/compare channel (channel 1, idem ch. 2, 3 and 4)1654
Figure 428.Output stage of capture/compare channel (channel 5, idem ch. 6)1655
Figure 429.PWM input mode timing1657
Figure 430.Output compare mode, toggle on tim_oc11659
Figure 431.Edge-aligned PWM waveforms (ARR = 8)1660
Figure 432.Center-aligned PWM waveforms (ARR = 8)1661
Figure 433.Dithering principle1662
Figure 434.Data format and register coding in dithering mode1663
Figure 435.PWM resolution vs frequency1664
Figure 436.PWM dithering pattern1665
Figure 437.Dithering effect on duty cycle in center-aligned PWM mode1666
Figure 438.Generation of 2 phase-shifted PWM signals with 50% duty cycle1668
Figure 439.Combined PWM mode on channel 1 and 31669
Figure 440.3-phase combined PWM signals with multiple trigger pulses per period1670
Figure 441.Complementary output with symmetrical dead-time insertion1671
Figure 442.Asymmetrical deadtime1672
Figure 443.Dead-time waveforms with delay greater than the negative pulse1672
Figure 444.Dead-time waveforms with delay greater than the positive pulse1672
Figure 445.Break and Break2 circuitry overview1675
Figure 446.Various output behavior in response to a break event on tim_brk (OSSI = 1)1677
Figure 447.PWM output state following tim_brk and tim_brk2 assertion (OSSI = 1)1678
Figure 448.PWM output state following tim_brk assertion (OSSI = 0)1679
Figure 449. Output redirection (tim_brk2 request not represented) . . . . .1680
Figure 450. Clearing TIMx tim_ocxref . . . . .1681
Figure 451. 6-step generation, COM example (OSSR = 1) . . . . .1682
Figure 452. Example of one pulse mode. . . . .1683
Figure 453. Retriggerable one-pulse mode . . . . .1685
Figure 454. Pulse generator circuitry . . . . .1685
Figure 455. Pulse generation on compare event, for edge-aligned and encoder modes . . . . .1686
Figure 456. Extended pulsewidth in case of concurrent triggers . . . . .1687
Figure 457. Example of counter operation in encoder interface mode. . . . .1689
Figure 458. Example of encoder interface mode with tim_ti1fp1 polarity inverted. . . . .1689
Figure 459. Quadrature encoder counting modes . . . . .1690
Figure 460. Direction plus clock encoder mode. . . . .1691
Figure 461. Directional clock encoder mode (CC1P = CC2P = 0) . . . . .1691
Figure 462. Directional clock encoder mode (CC1P = CC2P = 1) . . . . .1692
Figure 463. Index gating options . . . . .1693
Figure 464. Jittered Index signals . . . . .1693
Figure 465. Index generation for IPOS[1:0] = 11 . . . . .1694
Figure 466. Counter reading with index gated on channel A (IPOS[1:0] = 11) . . . . .1694
Figure 467. Counter reading with index ungated (IPOS[1:0] = 00) . . . . .1695
Figure 468. Counter reading with index gated on channel A and B. . . . .1695
Figure 469. Encoder mode behavior in case of narrow index pulse (IPOS[1:0] = 11) . . . . .1696
Figure 470. Counter reset Narrow index pulse (closer view, ARR = 0x07) . . . . .1697
Figure 471. Index behavior in x1 and x2 mode (IPOS[1:0] = 01) . . . . .1698
Figure 472. Directional index sensitivity. . . . .1698
Figure 473. Counter reset as function of FIDX bit setting . . . . .1699
Figure 474. Index blanking. . . . .1699
Figure 475. Index behavior in clock + direction mode, IPOS[0] = 1 . . . . .1700
Figure 476. Index behavior in directional clock mode, IPOS[0] = 1 . . . . .1700
Figure 477. State diagram for quadrature encoded signals. . . . .1701
Figure 478. Up-counting encoder error detection . . . . .1702
Figure 479. Down-counting encode error detection. . . . .1703
Figure 480. Encoder mode change with preload transferred on update (SMSPS = 0) . . . . .1704
Figure 481. Measuring time interval between edges on three signals. . . . .1705
Figure 482. Example of Hall sensor interface . . . . .1707
Figure 483. Control circuit in reset mode . . . . .1708
Figure 484. Control circuit in Gated mode . . . . .1709
Figure 485. Control circuit in trigger mode. . . . .1710
Figure 486. Control circuit in external clock mode 2 + trigger mode . . . . .1711
Figure 487. General-purpose timer block diagram . . . . .1769
Figure 488. Counter timing diagram with prescaler division change from 1 to 2 . . . . .1774
Figure 489. Counter timing diagram with prescaler division change from 1 to 4 . . . . .1775
Figure 490. Counter timing diagram, internal clock divided by 1 . . . . .1776
Figure 491. Counter timing diagram, internal clock divided by 2 . . . . .1776
Figure 492. Counter timing diagram, internal clock divided by 4 . . . . .1777
Figure 493. Counter timing diagram, internal clock divided by N. . . . .1777
Figure 494. Counter timing diagram, Update event when ARPE = 0 (TIMx_ARR not preloaded). . . . .1778
Figure 495. Counter timing diagram, Update event when ARPE = 1 (TIMx_ARR preloaded). . . . .1779
Figure 496. Counter timing diagram, internal clock divided by 1 . . . . .1780
Figure 497. Counter timing diagram, internal clock divided by 2 . . . . .1781
Figure 498. Counter timing diagram, internal clock divided by 4 . . . . .1781
Figure 499. Counter timing diagram, internal clock divided by N. . . . .1782
Figure 500. Counter timing diagram, Update event. . . . .1782
Figure 501.Counter timing diagram, internal clock divided by 1, TIMx_ARR = 0x61784
Figure 502.Counter timing diagram, internal clock divided by 21784
Figure 503.Counter timing diagram, internal clock divided by 4, TIMx_ARR = 0x361785
Figure 504.Counter timing diagram, internal clock divided by N1785
Figure 505.Counter timing diagram, Update event with ARPE = 1 (counter underflow)1786
Figure 506.Counter timing diagram, Update event with ARPE = 1 (counter overflow)1787
Figure 507.Control circuit in normal mode, internal clock divided by 11788
Figure 508.tim_ti2 external clock connection example1788
Figure 509.Control circuit in external clock mode 11789
Figure 510.External trigger input block1790
Figure 511.Control circuit in external clock mode 21791
Figure 512.Capture/compare channel (example: channel 1 input stage)1791
Figure 513.Capture/compare channel 1 main circuit1792
Figure 514.Output stage of capture/compare channel (channel 1, idem ch.2, 3 and 4)1792
Figure 515.PWM input mode timing1795
Figure 516.Output compare mode, toggle on tim_oc11797
Figure 517.Edge-aligned PWM waveforms (ARR = 8)1798
Figure 518.Center-aligned PWM waveforms (ARR = 8)1799
Figure 519.Dithering principle1800
Figure 520.Data format and register coding in dithering mode1801
Figure 521.PWM resolution vs frequency (16-bit mode)1802
Figure 522.PWM resolution vs frequency (32-bit mode)1802
Figure 523.PWM dithering pattern1803
Figure 524.Dithering effect on duty cycle in center-aligned PWM mode1804
Figure 525.Generation of two phase-shifted PWM signals with 50% duty cycle1806
Figure 526.Combined PWM mode on channels 1 and 31807
Figure 527.OCREF_CLR input selection multiplexer1808
Figure 528.Clearing TIMx tim_ocxref1808
Figure 529.Example of One-pulse mode1809
Figure 530.Retriggerable one-pulse mode1811
Figure 531.Pulse generator circuitry1812
Figure 532.Pulse generation on compare event, for edge-aligned and encoder modes1812
Figure 533.Extended pulse width in case of concurrent triggers1813
Figure 534.Example of counter operation in encoder interface mode1815
Figure 535.Example of encoder interface mode with tim_ti1fp1 polarity inverted1815
Figure 536.Quadrature encoder counting modes1816
Figure 537.Direction plus clock encoder mode1817
Figure 538.Directional clock encoder mode (CC1P = CC2P = 0)1818
Figure 539.Directional clock encoder mode (CC1P = CC2P = 1)1818
Figure 540.Index gating options1820
Figure 541.Jittered Index signals1820
Figure 542.Index generation for IPOS[1:0] = 111821
Figure 543.Counter reading with index gated on channel A (IPOS[1:0] = 11)1821
Figure 544.Counter reading with index ungated (IPOS[1:0] = 00)1822
Figure 545.Counter reading with index gated on channel A and B1822
Figure 546.Encoder mode behavior in case of narrow index pulse (IPOS[1:0] = 11)1823
Figure 547.Counter reset Narrow index pulse (closer view, ARR = 0x07)1824
Figure 548.Index behavior in x1 and x2 mode (IPOS[1:0] = 01)1825
Figure 549.Directional index sensitivity1825
Figure 550.Counter reset as function of FIDX bit setting1826
Figure 551.Index blanking1826
Figure 552.Index behavior in clock + direction mode, IPOS[0] = 11827
Figure 553.Index behavior in directional clock mode, IPOS[0] = 1 . . . . .1827
Figure 554.State diagram for quadrature encoded signals. . . . .1828
Figure 555.Up-counting encoder error detection . . . . .1829
Figure 556.Down-counting encode error detection. . . . .1830
Figure 557.Encoder mode change with preload transferred on update (SMSPS = 0) . . . . .1831
Figure 558.Control circuit in reset mode . . . . .1833
Figure 559.Control circuit in gated mode . . . . .1834
Figure 560.Control circuit in trigger mode. . . . .1834
Figure 561.Control circuit in external clock mode 2 + trigger mode . . . . .1836
Figure 562.Master/Slave timer example . . . . .1836
Figure 563.Master/slave connection example with 1 channel only timers . . . . .1837
Figure 564.Gating TIM_slv with tim_oc1ref of TIM_mstr . . . . .1838
Figure 565.Gating TIM_slv with Enable of TIM_mstr . . . . .1839
Figure 566.Triggering TIM_slv with update of TIM_mstr. . . . .1840
Figure 567.Triggering TIM_slv with Enable of TIM_mstr . . . . .1840
Figure 568.Triggering TIM_mstr and TIM_slv with TIM_mstr tim_ti1 input. . . . .1841
Figure 569.Basic timer block diagram. . . . .1880
Figure 570.Control circuit in normal mode, internal clock divided by 1 . . . . .1881
Figure 571.Counter timing diagram with prescaler division change from 1 to 2 . . . . .1883
Figure 572.Counter timing diagram with prescaler division change from 1 to 4 . . . . .1883
Figure 573.Counter timing diagram, internal clock divided by 1 . . . . .1884
Figure 574.Counter timing diagram, internal clock divided by 2 . . . . .1885
Figure 575.Counter timing diagram, internal clock divided by 4 . . . . .1885
Figure 576.Counter timing diagram, internal clock divided by N. . . . .1886
Figure 577.Counter timing diagram, update event when ARPE = 0 (TIMx_ARR not
preloaded). . . . .
1886
Figure 578.Counter timing diagram, update event when ARPE = 1 (TIMx_ARR
preloaded). . . . .
1887
Figure 579.Dithering principle . . . . .1888
Figure 580.Data format and register coding in dithering mode. . . . .1888
Figure 581.FCnt resolution vs frequency . . . . .1889
Figure 582.PWM dithering pattern . . . . .1889
Figure 583.General-purpose timer block diagram (TIM9/TIM12) . . . . .1900
Figure 584.General-purpose timer block diagram (TIM13/TIM14) . . . . .1901
Figure 585.Counter timing diagram with prescaler division change from 1 to 2 . . . . .1904
Figure 586.Counter timing diagram with prescaler division change from 1 to 4 . . . . .1904
Figure 587.Counter timing diagram, internal clock divided by 1 . . . . .1905
Figure 588.Counter timing diagram, internal clock divided by 2 . . . . .1906
Figure 589.Counter timing diagram, internal clock divided by 4 . . . . .1906
Figure 590.Counter timing diagram, internal clock divided by N. . . . .1907
Figure 591.Counter timing diagram, update event when ARPE = 0 (TIMx_ARR not
preloaded). . . . .
1907
Figure 592.Counter timing diagram, update event when ARPE = 1 (TIMx_ARR
preloaded). . . . .
1908
Figure 593.Control circuit in normal mode, internal clock divided by 1. . . . .1909
Figure 594.tim_ti2 external clock connection example . . . . .1909
Figure 595.Control circuit in external clock mode 1 . . . . .1910
Figure 596.Capture/compare channel 1 input stage (TIM13/TIM14) . . . . .1911
Figure 597.Capture/compare channel 1 input stage (TIM9/TIM12) . . . . .1911
Figure 598.Capture/compare channel 1 main circuit . . . . .1912
Figure 599.Output stage of capture/compare channel 1. . . . .1912
Figure 600.PWM input mode timing . . . . .1914
Figure 601.Output compare mode, toggle on tim_oc1.....1916
Figure 602.Edge-aligned PWM waveforms (ARR = 8) .....1917
Figure 603.Dithering principle .....1918
Figure 604.Data format and register coding in dithering mode .....1918
Figure 605.PWM resolution vs frequency .....1919
Figure 606.PWM dithering pattern .....1920
Figure 607.Combined PWM mode on channel 1 and 2 .....1922
Figure 608.Example of one pulse mode .....1923
Figure 609.Retriggerable one pulse mode .....1924
Figure 610.Measuring time interval between edges on 2 signals .....1925
Figure 611.Control circuit in reset mode .....1926
Figure 612.Control circuit in gated mode .....1927
Figure 613.Control circuit in trigger mode .....1927
Figure 614.TIM15 block diagram .....1961
Figure 615.TIM16/TIM17 block diagram .....1962
Figure 616.Counter timing diagram with prescaler division change from 1 to 2 .....1966
Figure 617.Counter timing diagram with prescaler division change from 1 to 4 .....1967
Figure 618.Counter timing diagram, internal clock divided by 1 .....1968
Figure 619.Counter timing diagram, internal clock divided by 2 .....1969
Figure 620.Counter timing diagram, internal clock divided by 4 .....1969
Figure 621.Counter timing diagram, internal clock divided by N .....1970
Figure 622.Counter timing diagram, update event when ARPE = 0
(TIMx_ARR not preloaded) .....
1970
Figure 623.Counter timing diagram, update event when ARPE = 1
(TIMx_ARR preloaded) .....
1971
Figure 624.Update rate examples depending on mode and TIMx_RCR register settings .....1972
Figure 625.Control circuit in normal mode, internal clock divided by 1 .....1973
Figure 626.tim_ti2 external clock connection example .....1973
Figure 627.Control circuit in external clock mode 1 .....1974
Figure 628.Capture/compare channel (example: channel 1 input stage) .....1975
Figure 629.Capture/compare channel 1 main circuit .....1975
Figure 630.Output stage of capture/compare channel (channel 1) .....1976
Figure 631.Output stage of capture/compare channel (channel 2 for TIM15) .....1976
Figure 632.PWM input mode timing .....1979
Figure 633.Output compare mode, toggle on tim_oc1 .....1981
Figure 634.Edge-aligned PWM waveforms (ARR = 8) .....1982
Figure 635.Dithering principle .....1983
Figure 636.Data format and register coding in dithering mode .....1983
Figure 637.PWM resolution vs frequency .....1984
Figure 638.PWM dithering pattern .....1985
Figure 639.Combined PWM mode on channel 1 and 2 .....1987
Figure 640.Complementary output with symmetrical dead-time insertion .....1988
Figure 641.Asymmetrical deadtime .....1989
Figure 642.Dead-time waveforms with delay greater than the negative pulse .....1989
Figure 643.Dead-time waveforms with delay greater than the positive pulse .....1989
Figure 644.Break circuitry overview .....1991
Figure 645.Output behavior in response to a break event on tim_brk .....1993
Figure 646.Output redirection .....1995
Figure 647.tim_ocref_clr input selection multiplexer .....1996
Figure 648.6-step generation, COM example (OSSR = 1) .....1997
Figure 649.Example of one pulse mode .....1998
Figure 650.Retriggerable one pulse mode .....2000
Figure 651. Measuring time interval between edges on 2 signals . . . . .2000
Figure 652. Control circuit in reset mode . . . . .2001
Figure 653. Control circuit in gated mode . . . . .2002
Figure 654. Control circuit in trigger mode . . . . .2003
Figure 655. LPTIM1/2/3 block diagram(1) . . . . .2066
Figure 656. LPTIM4/5 block diagram(1) . . . . .2067
Figure 657. Glitch filter timing diagram . . . . .2071
Figure 658. LPTIM output waveform, single-counting mode configuration
when repetition register content is different than zero (with PRELOAD = 1) . . . . .
2073
Figure 659. LPTIM output waveform, single-counting mode configuration
and Set-once mode activated (WAVE bit is set) . . . . .
2074
Figure 660. LPTIM output waveform, Continuous counting mode configuration . . . . .2074
Figure 661. Waveform generation . . . . .2076
Figure 662. Encoder mode counting sequence . . . . .2080
Figure 663. Continuous counting mode when repetition register LPTIM_RCR
different from zero (with PRELOAD = 1) . . . . .
2081
Figure 664. Capture/compare input stage (channel 1) . . . . .2082
Figure 665. Capture/compare output stage (channel 1) . . . . .2082
Figure 666. Edge-aligned PWM mode (PRELOAD = 1) . . . . .2084
Figure 667. Edge-aligned PWM waveforms (ARR=8 and CCxP = 0) . . . . .2085
Figure 668. PWM mode with immediate update versus preloaded update . . . . .2086
Figure 669. Watchdog block diagram . . . . .2116
Figure 670. Window watchdog timing diagram . . . . .2118
Figure 671. Independent watchdog block diagram . . . . .2123
Figure 672. Reset timing due to timeout . . . . .2125
Figure 673. Reset timing due to refresh in the not allowed area . . . . .2126
Figure 674. Changing PR, RL, and performing a refresh(1) . . . . .2127
Figure 675. Window comparator update(1) . . . . .2128
Figure 676. Independent watchdog interrupt timing diagram . . . . .2130
Figure 677. Early wake-up comparator update(1) . . . . .2131
Figure 678. RTC block diagram . . . . .2138
Figure 679. TAMP block diagram . . . . .2187
Figure 680. Backup registers protection zones . . . . .2191
Figure 681. Tamper sampling with precharge pulse . . . . .2196
Figure 682. Low level detection with precharge and filtering . . . . .2196
Figure 683. Active tamper filtering . . . . .2198
Figure 684. Block diagram . . . . .2231
Figure 685. I2C-bus protocol . . . . .2233
Figure 686. Setup and hold timings . . . . .2235
Figure 687. I2C initialization flow . . . . .2237
Figure 688. Data reception . . . . .2238
Figure 689. Data transmission . . . . .2239
Figure 690. Target initialization flow . . . . .2242
Figure 691. Transfer sequence flow for I2C target transmitter, NOSTRETCH = 0 . . . . .2244
Figure 692. Transfer sequence flow for I2C target transmitter, NOSTRETCH = 1 . . . . .2245
Figure 693. Transfer bus diagrams for I2C target transmitter (mandatory events only) . . . . .2246
Figure 694. Transfer sequence flow for I2C target receiver, NOSTRETCH = 0 . . . . .2247
Figure 695. Transfer sequence flow for I2C target receiver, NOSTRETCH = 1 . . . . .2248
Figure 696. Transfer bus diagrams for I2C target receiver (mandatory events only) . . . . .2248
Figure 697. Controller clock generation . . . . .2250
Figure 698. Controller initialization flow . . . . .2252
Figure 699. 10-bit address read access with HEAD10R = 0 . . . . .2252
Figure 700.10-bit address read access with HEAD10R = 1 . . . . .2253
Figure 701.Transfer sequence flow for I2C controller transmitter, N ≤ 255 bytes. . . . .2254
Figure 702.Transfer sequence flow for I2C controller transmitter, N > 255 bytes. . . . .2255
Figure 703.Transfer bus diagrams for I2C controller transmitter (mandatory events only). . . . .2256
Figure 704.Transfer sequence flow for I2C controller receiver, N ≤ 255 bytes . . . . .2258
Figure 705.Transfer sequence flow for I2C controller receiver, N > 255 bytes. . . . .2259
Figure 706.Transfer bus diagrams for I2C controller receiver (mandatory events only). . . . .2260
Figure 707.Timeout intervals for \(t_{\text{LOW:SEXT}}\), \(t_{\text{LOW:MEXT}}\) . . . . .2264
Figure 708.Transfer sequence flow for SMBus target transmitter N bytes + PEC . . . . .2267
Figure 709.Transfer bus diagram for SMBus target transmitter (SBC = 1). . . . .2268
Figure 710.Transfer sequence flow for SMBus target receiver N bytes + PEC . . . . .2269
Figure 711.Bus transfer diagrams for SMBus target receiver (SBC = 1) . . . . .2270
Figure 712.Bus transfer diagrams for SMBus controller transmitter . . . . .2271
Figure 713.Bus transfer diagrams for SMBus controller receiver . . . . .2273
Figure 714.I3C block diagram. . . . .2297
Figure 715.I3C (primary) controller state and programming sequence diagram. . . . .2301
Figure 716.I3C target state and programing sequence diagram . . . . .2306
Figure 717.I3C CCC messages, as controller . . . . .2320
Figure 718.I3C broadcast ENTDAACCC, as controller . . . . .2321
Figure 719.I3C broadcast, direct read and direct write RSTACT CCC, as controller . . . . .2322
Figure 720.I3C CCC messages, as target . . . . .2324
Figure 721.I3C broadcast ENTDAACCC, as target. . . . .2325
Figure 722.I3C broadcast DEFTGTS CCC, as target. . . . .2326
Figure 723.I3C broadcast DEFGRPA CCC, as target . . . . .2327
Figure 724.I3C private read/write messages, as controller. . . . .2329
Figure 725.I3C private read/write messages, as target . . . . .2330
Figure 726.Legacy I2C read/write messages, as controller . . . . .2331
Figure 727.IBI transfer, as controller/target . . . . .2332
Figure 728.Hot-join request transfer, as controller/target . . . . .2333
Figure 729.Controller-role request transfer, as controller/target . . . . .2334
Figure 730.C-FIFO management, as controller . . . . .2335
Figure 731.TX-FIFO management, as controller . . . . .2337
Figure 732.RX-FIFO management, as controller . . . . .2339
Figure 733.S-FIFO management, as controller . . . . .2342
Figure 734.RX-FIFO management, as target on the I3C bus. . . . .2343
Figure 735.TX-FIFO management with I3C_TGTTDR, as target on the I3C bus. . . . .2345
Figure 736.TX-FIFO management by software without I3C_TGTTDR
if reading less bytes than TX-FIFO size, as target . . . . .
2347
Figure 737.USART block diagram . . . . .2405
Figure 738.Word length programming . . . . .2409
Figure 739.Configurable stop bits. . . . .2411
Figure 740.TC/TXE behavior when transmitting . . . . .2413
Figure 741.Start bit detection when oversampling by 16 or 8. . . . .2414
Figure 742.usart_ker_ck clock divider block diagram. . . . .2417
Figure 743.Data sampling when oversampling by 16. . . . .2418
Figure 744.Data sampling when oversampling by 8. . . . .2419
Figure 745.Mute mode using Idle line detection . . . . .2426
Figure 746.Mute mode using address mark detection . . . . .2427
Figure 747.Break detection in LIN mode (11-bit break length - LBDL bit is set). . . . .2430
Figure 748.Break detection in LIN mode vs. Framing error detection. . . . .2431
Figure 749.USART example of synchronous master transmission. . . . .2432
Figure 750.USART data clock timing diagram in synchronous master mode (M bits = 00) . . . . .2432
Figure 751. USART data clock timing diagram in synchronous master mode (M bits = 01) . . . . .2433
Figure 752. USART data clock timing diagram in synchronous slave mode (M bits = 00) . . . . .2434
Figure 753. ISO 7816-3 asynchronous protocol . . . . .2436
Figure 754. Parity error detection using the 1.5 stop bits . . . . .2438
Figure 755. IrDA SIR ENDEC block diagram. . . . .2442
Figure 756. IrDA data modulation (3/16) - normal mode . . . . .2442
Figure 757. Transmission using DMA . . . . .2444
Figure 758. Reception using DMA. . . . .2445
Figure 759. Hardware flow control between two USARTs. . . . .2445
Figure 760. RS232 RTS flow control . . . . .2446
Figure 761. RS232 CTS flow control . . . . .2447
Figure 762. Wake-up event verified (wake-up event = address match, FIFO disabled) . . . . .2450
Figure 763. Wake-up event not verified (wake-up event = address match, FIFO disabled) . . . . .2450
Figure 764. LPUART block diagram . . . . .2495
Figure 765. LPUART word length programming . . . . .2498
Figure 766. Configurable stop bits. . . . .2500
Figure 767. TC/TXE behavior when transmitting . . . . .2502
Figure 768. lpuart_ker_ck clock divider block diagram . . . . .2506
Figure 769. Mute mode using Idle line detection . . . . .2510
Figure 770. Mute mode using address mark detection . . . . .2511
Figure 771. Transmission using DMA . . . . .2513
Figure 772. Reception using DMA. . . . .2514
Figure 773. Hardware flow control between two LPUARTs. . . . .2515
Figure 774. RS232 RTS flow control . . . . .2515
Figure 775. RS232 CTS flow control . . . . .2516
Figure 776. Wake-up event verified (wake-up event = address match, FIFO disabled) . . . . .2519
Figure 777. Wake-up event not verified (wake-up event = address match, FIFO disabled) . . . . .2519
Figure 778. SPI/I2S block diagram . . . . .2551
Figure 779. Full-duplex single master/ single slave application. . . . .2554
Figure 780. Half-duplex single master/ single slave application . . . . .2555
Figure 781. Simplex single master / single slave application
(master in transmit-only / slave in receive-only mode) . . . . .
2556
Figure 782. Master and three independent slaves connected in star topology . . . . .2557
Figure 783. Master and three slaves connected in circular (daisy chain) topology . . . . .2559
Figure 784. Multimaster application. . . . .2560
Figure 785. Scheme of NSS control logic . . . . .2562
Figure 786. Data flow timing control (SSOE = 1, SSOM = 0, SSM = 0) . . . . .2562
Figure 787. NSS interleaving pulses between data (SSOE = 1, SSOM = 1, SSM = 0) . . . . .2563
Figure 788. Data clock timing diagram . . . . .2565
Figure 789. Data alignment when data size is not equal to 8, 16 or 32 bits . . . . .2566
Figure 790. TI mode transfer . . . . .2575
Figure 791. Optional configurations of the slave behavior when an underrun condition is detected . . . . .2577
Figure 792. Waveform examples. . . . .2585
Figure 793. Master I2S Philips protocol waveforms (16/32-bit full accuracy) . . . . .2586
Figure 794. I2S Philips standard waveforms . . . . .2586
Figure 795. Master MSB-justified 16- or 32-bit full-accuracy length . . . . .2587
Figure 796. Master MSB-justified 16- or 24-bit data length . . . . .2587
Figure 797. Slave MSB-justified 16-, 24- or 32-bit data length . . . . .2588
Figure 798. LSB-justified 16 or 24-bit data length . . . . .2588
Figure 799. Master PCM when the frame length is equal the data length. . . . .2589
Figure 800. Master PCM standard waveforms (16 or 24-bit data length) . . . . .2589
Figure 801. Slave PCM waveforms . . . . .2590
Figure 802.Startup sequence, I2S Philips standard, master2593
Figure 803.Startup sequence, I2S Philips standard, slave2594
Figure 804.Stop sequence, I2S Philips standard, master2594
Figure 805.I2S clock generator architecture2595
Figure 806.Data Format2597
Figure 807.Handling of underrun situation2599
Figure 808.Handling of overrun situation2600
Figure 809.Frame error detection, with FIXCH = 02601
Figure 810.Frame error detection, with FIXCH = 12601
Figure 811.SAI functional block diagram2627
Figure 812.Audio frame2631
Figure 813.FS role is start of frame + channel side identification (FSDEF = TRIS = 1)2633
Figure 814.FS role is start of frame (FSDEF = 0)2634
Figure 815.Slot size configuration with FBOFF = 0 in SAI_xSLOTR2635
Figure 816.First bit offset2635
Figure 817.Audio block clock generator overview2637
Figure 818.PDM typical connection and timing2641
Figure 819.Detailed PDM interface block diagram2642
Figure 820.Start-up sequence2643
Figure 821.SAI_ADR format in TDM mode, 32-bit slot width2644
Figure 822.SAI_ADR format in TDM mode, 16-bit slot width2645
Figure 823.SAI_ADR format in TDM mode, 8-bit slot width2646
Figure 824.AC'97 audio frame2649
Figure 825.Example of typical AC'97 configuration on devices featuring at least two embedded SAIs (three external AC'97 decoders)2650
Figure 826.SPDIF format2651
Figure 827.SAI_xDR register ordering2652
Figure 828.Data companding hardware in an audio block in the SAI2655
Figure 829.Tristate strategy on SD output line on an inactive slot2657
Figure 830.Tristate on output data line in a protocol like I2S2658
Figure 831.Overrun detection error2659
Figure 832.FIFO underrun event2659
Figure 833.SPDIFRX block diagram2694
Figure 834.S/SPDIF sub-frame format2695
Figure 835.S/SPDIF block format2696
Figure 836.S/SPDIF preambles2696
Figure 837.Channel coding example2697
Figure 838.SPDIFRX decoder2698
Figure 839.Noise filtering and edge detection2698
Figure 840.Thresholds2700
Figure 841.Synchronization flowchart2702
Figure 842.Synchronization process scheduling2703
Figure 843.SPDIFRX states2704
Figure 844.SPDIFRX_FMTx_DR register format2706
Figure 845.Channel/user data format2707
Figure 846.S/SPDIF overrun error when RXSTEO = 02709
Figure 847.S/SPDIF overrun error when RXSTEO = 12710
Figure 848.SPDIFRX interface interrupt mapping diagram2713
Figure 849.MDIOS block diagram2728
Figure 850.MDIO protocol write frame waveform2729
Figure 851.MDIO protocol read frame waveform2729
Figure 852.SDMMC “no response” and “no data” operations2741
Figure 853. SDMMC (multiple) block read operation2741
Figure 854. SDMMC (multiple) block write operation2742
Figure 855. SDMMC (sequential) stream read operation2742
Figure 856. SDMMC (sequential) stream write operation2742
Figure 857. SDMMC block diagram2744
Figure 858. SDMMC Command and data phase relation2746
Figure 859. Control unit2748
Figure 860. Command/response path2749
Figure 861. Command path state machine (CPSM)2750
Figure 862. Data path2756
Figure 863. DDR mode data packet clocking2757
Figure 864. DDR mode CRC status / boot acknowledgment clocking2757
Figure 865. Data path state machine (DPSM)2758
Figure 866. CLKMUX unit2769
Figure 867. Linked list structures2771
Figure 868. Asynchronous interrupt generation2774
Figure 869. Synchronous interrupt period data read2775
Figure 870. Synchronous interrupt period data write2775
Figure 871. Asynchronous interrupt period data read2776
Figure 872. Asynchronous interrupt period data write2777
Figure 873. Clock stop with SDMMC_CK for DS, HS, SDR12, SDR252780
Figure 874. Clock stop with SDMMC_CK for DDR50, SDR50, SDR1042780
Figure 875. Read Wait with SDMMC_CK < 50 MHz2781
Figure 876. Read Wait with SDMMC_CK > 50 MHz2781
Figure 877. CMD12 stream timing2784
Figure 878. CMD5 Sleep Awake procedure2786
Figure 879. Normal boot mode operation2788
Figure 880. Alternative boot mode operation2789
Figure 881. Command response R1b busy signaling2790
Figure 882. SDMMC state control2791
Figure 883. Card cycle power / power up diagram2792
Figure 884. CMD11 signal voltage switch sequence2793
Figure 885. Voltage switch transceiver typical application2795
Figure 886. CAN subsystem2823
Figure 887. FDCAN block diagram2825
Figure 888. Bit timing2827
Figure 889. Transceiver delay measurement2832
Figure 890. Pin control in bus monitoring mode2833
Figure 891. Pin control in loop-back mode2836
Figure 892. CAN error state diagram2837
Figure 893. Message RAM configuration2838
Figure 894. Standard message ID filter path2841
Figure 895. Extended message ID filter path2842
Figure 896. OTG_FS full-speed block diagram2892
Figure 897. OTG_FS A-B device connection2894
Figure 898. OTG_FS peripheral-only connection2895
Figure 899. OTG_FS host-only connection2899
Figure 900. SOF connectivity (SOF trigger output to TIM and ITR1 connection)2903
Figure 901. Updating OTG_HFIR dynamically (RLDCTRL = 1)2905
Figure 902. Device-mode FIFO address mapping and AHB FIFO access mapping2906
Figure 903. Host-mode FIFO address mapping and AHB FIFO access mapping2907
Figure 904. Interrupt hierarchy2911
Figure 905. Transmit FIFO write task . . . . .3003
Figure 906. Receive FIFO read task . . . . .3004
Figure 907. Normal bulk/control OUT/SETUP . . . . .3005
Figure 908. Bulk/control IN transactions . . . . .3009
Figure 909. Normal interrupt OUT . . . . .3012
Figure 910. Normal interrupt IN . . . . .3017
Figure 911. Isochronous OUT transactions . . . . .3019
Figure 912. Isochronous IN transactions . . . . .3022
Figure 913. Receive FIFO packet read . . . . .3026
Figure 914. Processing a SETUP packet . . . . .3028
Figure 915. Bulk OUT transaction . . . . .3035
Figure 916. TRDT max timing case . . . . .3045
Figure 917. OTG_HS high-speed block diagram . . . . .3050
Figure 918. OTG_HS A-B device connection . . . . .3052
Figure 919. OTG_HS peripheral-only connection . . . . .3053
Figure 920. OTG_HS host-only connection . . . . .3057
Figure 921. SOF connectivity (SOF trigger output to TIM and ITR1 connection) . . . . .3061
Figure 922. Updating OTG_HFIR dynamically (RLDCTRL = 1) . . . . .3063
Figure 923. Device-mode FIFO address mapping and AHB FIFO access mapping . . . . .3064
Figure 924. Host-mode FIFO address mapping and AHB FIFO access mapping . . . . .3065
Figure 925. Interrupt hierarchy . . . . .3069
Figure 926. Transmit FIFO write task . . . . .3162
Figure 927. Receive FIFO read task . . . . .3163
Figure 928. Normal bulk/control OUT/SETUP . . . . .3164
Figure 929. Bulk/control IN transactions . . . . .3168
Figure 930. Normal interrupt OUT . . . . .3171
Figure 931. Normal interrupt IN . . . . .3176
Figure 932. Isochronous OUT transactions . . . . .3178
Figure 933. Isochronous IN transactions . . . . .3181
Figure 934. Normal bulk/control OUT/SETUP transactions - DMA . . . . .3183
Figure 935. Normal bulk/control IN transaction - DMA . . . . .3185
Figure 936. Normal interrupt OUT transactions - DMA mode . . . . .3186
Figure 937. Normal interrupt IN transactions - DMA mode . . . . .3187
Figure 938. Normal isochronous OUT transaction - DMA mode . . . . .3188
Figure 939. Normal isochronous IN transactions - DMA mode . . . . .3189
Figure 940. Receive FIFO packet read . . . . .3195
Figure 941. Processing a SETUP packet . . . . .3197
Figure 942. Bulk OUT transaction . . . . .3204
Figure 943. TRDT max timing case . . . . .3213
Figure 944. UCPD block diagram . . . . .3217
Figure 945. Clock division and timing elements . . . . .3219
Figure 946. K-code transmission . . . . .3221
Figure 947. Transmit order for various sizes of data . . . . .3222
Figure 948. Packet format . . . . .3223
Figure 949. Line format of Hard Reset . . . . .3223
Figure 950. Line format of Cable Reset . . . . .3224
Figure 951. BIST test data frame . . . . .3225
Figure 952. BIST Carrier Mode 2 frame . . . . .3225
Figure 953. UCPD BMC transmitter architecture . . . . .3226
Figure 954. UCPD BMC receiver architecture . . . . .3227
Figure 955. High-level Ethernet block diagram . . . . .3260
Figure 956. DMA transmission flow (standard mode) . . . . .3263
Figure 957. DMA transmission flow (OSP mode) .....3265
Figure 958. Receive DMA flow .....3267
Figure 959. Overview of MAC transmission flow .....3271
Figure 960. MAC reception flow .....3273
Figure 961. Packet filtering sequence .....3277
Figure 962. Networked time synchronization .....3286
Figure 963. Propagation delay calculation in clocks supporting peer-to-peer path correction .....3287
Figure 964. System time update using fine correction method .....3297
Figure 965. TCP segmentation offload overview .....3314
Figure 966. TCP segmentation offload flow .....3315
Figure 967. Header and payload fields of segmented packets .....3318
Figure 968. Supported PHY interfaces .....3327
Figure 969. SMA Interface block .....3327
Figure 970. MDIO packet structure (Clause 45) .....3328
Figure 971. MDIO packet structure (Clause 22) .....3329
Figure 972. SMA write operation flow .....3331
Figure 973. Write data packet .....3332
Figure 974. Read data packet .....3332
Figure 975. Media independent interface (MII) signals .....3334
Figure 976. RMII block diagram .....3336
Figure 977. Transmission bit order .....3337
Figure 978. Receive bit order .....3338
Figure 979. LPI transitions (Transmit, 100 Mbds) .....3346
Figure 980. LPI Tx clock gating (when LPITCSE = 1) .....3347
Figure 981. LPI transitions (receive, 100 Mbit/s) .....3348
Figure 982. Descriptor ring structure .....3369
Figure 983. DMA descriptor ring .....3371
Figure 984. Descriptor tail pointer example 1 .....3371
Figure 985. Descriptor tail pointer example 2 .....3372
Figure 986. Transmit descriptor (read format) .....3373
Figure 987. Transmit descriptor write-back format .....3378
Figure 988. Transmit context descriptor format .....3382
Figure 989. Receive normal descriptor (read format) .....3385
Figure 990. Receive normal descriptor (write-back format) .....3387
Figure 991. Receive context descriptor .....3395
Figure 992. Generation of ETH_DMAISR flags .....3410
Figure 993. HDMI-CEC block diagram .....3524
Figure 994. Message structure .....3524
Figure 995. Blocks .....3525
Figure 996. Bit timings .....3525
Figure 997. Signal free time .....3526
Figure 998. Arbitration phase .....3526
Figure 999. SFT of three nominal bit periods .....3526
Figure 1000. Error bit timing .....3527
Figure 1001. Error handling .....3529
Figure 1002. TXERR detection .....3530
Figure 1003. Block diagram of debug infrastructure .....3541
Figure 1004. Clock domains of debug infrastructure .....3542
Figure 1005. Product life cycle states and debug authentication .....3545
Figure 1006. SWD successful data transfer .....3548
Figure 1007. JTAG TAP state machine .....3549
Figure 1008. Debug and access port connections .....3562

Figure 1009.APB-D CoreSight component topology .....3575
Figure 1010.Embedded cross trigger .....3582
Figure 1011.Mapping of trigger inputs to outputs .....3584
Figure 1012.ETF state transition diagram. ....3614
Figure 1013.Cortex-M7 CoreSight Topology .....3684