15. Peripherals interconnect matrix
15.1 Interconnect matrix introduction
Several peripherals have direct connections between them, enabling autonomous communication and/or synchronization: this approach saves CPU resources and power supply consumption. In addition, these hardware connections remove software latency and help the design of the predictable system.
Depending on peripherals, these interconnections can operate in Run, Sleep, and Stop modes.
15.2 Connection summary
Table 125. Peripherals interconnect matrix
| Source | Destination | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TIM1 | TIM8 | TIM2 | TIM3 | TIM4 | TIM5 | TIM6 | TIM7 | TIM12 | TIM13 | TIM14 | TIM15 | TIM16 | TIM17 | LPTIM1 | LPTIM2 | LPTIM3/4/5/6 | ADC1/2 | ADC3 | MDF1 | ADF1 | COMP1 | COMP2 | DAC1/2 | GPDMA1/2 | TAMP | RTC | PLAY1 | DTS | AES/SAES | ETHERNET | |
| TIM1 | - | 1 | 1 | 1 | 1 | 1 | - | - | 1 | - | - | 1 | - | - | - | - | - | 2 | 2 | 17 | - | 18 | 18 | 4 | - | - | - | - | - | - | - |
| TIM8 | 1 | - | 1 | 1 | 1 | 1 | - | - | 1 | - | - | 1 | - | - | - | - | - | 2 | 2 | 17 | - | - | 18 | 4 | - | - | - | - | - | - | - |
| TIM2 | 1 | 1 | - | 1 | 1 | 1 | - | - | 1 | - | - | 1 | - | - | - | - | - | 2 | 2 | - | - | 18 | 18 | 4 | 10 | - | - | 24 | - | - | 21 |
| TIM3 | 1 | 1 | 1 | - | 1 | 1 | - | - | 1 | - | - | 1 | - | - | - | - | - | 2 | 2 | 17 | - | 18 | 18 | 4 | - | - | - | 24 | - | - | 21 |
| TIM4 | 1 | 1 | 1 | 1 | - | 1 | - | - | 1 | - | - | 1 | - | - | - | - | - | 2 | 2 | 17 | - | - | - | 4 | - | - | - | - | - | - | - |
| TIM5 | 1 | 1 | 1 | 1 | 1 | - | - | - | 1 | - | - | 1 | - | - | - | - | - | - | - | - | - | - | - | 4 | - | - | - | - | - | - | - |
| TIM6 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 2 | 2 | 17 | - | - | - | 4 | - | - | - | - | - | - | - |
| TIM7 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 17 | - | - | - | 4 | - | - | - | - | - | - | - |
| TIM12 | 1 | 1 | 1 | 1 | 1 | 1 | - | - | - | - | - | 1 | - | - | - | - | - | - | - | - | - | - | - | 4 | 10 | - | - | - | - | - | - |
| TIM13 | 1 | 1 | 1 | 1 | 1 | 1 | - | - | 1 | - | - | 1 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
| TIM14 | 1 | 1 | 1 | 1 | 1 | 1 | - | - | 1 | - | - | 1 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
| TIM15 | 1 | 1 | 1 | 1 | 1 | 1 | - | - | 1 | - | - | - | - | - | - | - | - | 2 | 2 | 17 | - | - | 18 | 4 | 10 | - | - | - | - | - | - |
| TIM16 | 1 | 1 | 1 | 1 | 1 | - | - | - | 1 | - | - | 1 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
| TIM17 | 1 | 1 | 1 | 1 | 1 | - | - | - | 1 | - | - | 1 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
| LPTIM1/2 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 2 | 2 | 17 | - | 18 | - | 4 | 10 | - | - | 24 | 25 | - | - |
| LPTIM3/4/5/6 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 10 | - | - | - | 25 | - | - |
| ADC1 | 3 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 23 | - | - | - | - | - | - | - | 3 | - | - | - |
| ADC2 | - | 3 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 23 | - | - | - | - | - | 13 | - | 3 | - | - | - |
| ADC3 | - | 3 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 23 | - | - | - | - | - | - | - | - | - | - |
| MDF1 | 15 | 15 | - | - | - | - | - | - | - | - | - | 15 | 15 | 15 | - | - | - | - | - | - | 17 | - | - | - | - | - | - | - | - | - | - |
| ADF1 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 17 | - | - | - | - | - | - | - | - | - | - | - |
| COMP1 | 16 | 16 | 16 | 16 | 16 | 16 | - | - | 16 | 16 | 16 | 16 | 16 | 16 | 6 | 6 | 6 | - | - | - | - | - | - | 4 | 10 | - | - | 24 | - | - | - |
| COMP2 | 16 | 16 | 16 | 16 | 16 | 16 | - | - | 16 | 16 | 16 | 16 | 16 | 16 | 6 | 6 | 6 | - | - | - | - | - | - | 4 | 10 | - | - | 24 | - | - | - |
| GPDMA1/2 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 6 | 6 | - | - | - | - | - | - | - | - | 10 | - | - | - | - | - | - |
| EXTI | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 6 | - | 6 | 2 | 2 | - | 17 | - | - | 4 | 10 | - | - | - | 25 | - | - |

Table 125. Peripherals interconnect matrix (continued)
| Source | Destination | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TIM1 | TIM8 | TIM2 | TIM3 | TIM4 | TIM5 | TIM6 | TIM7 | TIM12 | TIM13 | TIM14 | TIM15 | TIM16 | TIM17 | LPTIM1 | LPTIM2 | LPTIM3/4/5/6 | ADC1/2 | ADC3 | MDF1 | ADF1 | COMP1 | COMP2 | DAC1/2 | GPDMA1/2 | TAMP | RTC | PLAY1 | DTS | AES/SAES | ETHERNET | |||
| RTC wake-up | - | - | - | - | - | - | - | - | - | - | - | - | 7 | - | - | - | - | - | - | - | - | - | - | - | 10 | - | - | - | - | - | - | - | |
| RTC alarm | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 6 | - | 6 | - | - | - | - | - | - | - | 10 | - | - | - | - | - | - | - | |
| TAMP | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 6 | - | 6 | - | - | - | - | - | - | - | 10 | - | 14 | - | - | 26 | - | - | |
| HSE | - | - | - | - | - | - | - | - | - | - | - | - | 5 | - | 5 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | |
| LSE | - | - | 5 | - | - | - | - | - | - | - | - | 5 | 5 | - | 5 | - | - | - | - | - | - | - | - | 12 | - | - | - | - | - | - | - | - | |
| CSS in LSE | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 13 | - | - | - | - | - | - | |
| CSI | - | - | - | - | - | - | - | - | 5 | - | - | 5 | - | - | - | 5 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | |
| HSI | - | - | - | - | - | - | - | - | 5 | - | - | - | - | - | - | 5 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | |
| LSI | - | - | - | - | - | - | - | - | - | - | - | - | 5 | - | 5 | - | - | - | - | - | - | - | - | 12 | - | - | - | - | - | - | - | - | |
| MCO1 | - | - | - | - | - | - | - | - | - | - | - | - | - | 5 | - | - | - | - | - | - | - | - | - | - | - | - | - | 24 | - | - | - | - | |
| MCO2 | - | - | - | - | - | - | - | - | - | - | - | 5 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 24 | - | - | - | - | |
| VCORE | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 11 | 11 | - | - | - | - | - | - | - | - | - | - | - | - | - | |
| VREFINT | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 11 | 11 | - | - | - | - | - | - | - | - | - | - | - | - | - | |
| Vsensor | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 11 | 11 | - | - | - | - | - | - | - | - | - | - | - | - | - | |
| VBAT8 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 11 | 11 | - | - | - | - | - | - | - | - | - | - | - | - | - | |
| VBAT / temperature monitor | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 13 | - | - | - | - | - | - | - | |
| System errors | 8 | 8 | - | - | - | - | - | - | - | - | - | 8 | 8 | 8 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | |
| OTG_HS | - | - | 19 | - | - | 19 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | |
| OTG_FS | - | - | 19 | - | - | 19 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | |
| System flash memory | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 26 | - | - | |
| I3C1/2 | - | - | - | - | - | - | - | - | - | 9 | 9 | - | - | - | - | - | 9 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | |
| USART1/2 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 24 | - | - | - | - | |
| SPI1/2 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 24 | - | - | - | - | |
| AES/SAES | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 26 | - | - | |
| DMA2D | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 10 | - | - | - | - | - | - | - | |
| GFXTIM | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 10 | - | - | - | - | - | - | - | |
| JPEG | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 10 | - | - | - | - | - | - | - | |
| Ethernet | - | - | 20 | 20 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | |
| PLAY1 | 22 | 22 | 22 | 22 | - | - | - | - | - | - | - | - | - | - | 6 | 6 | - | 2 | 2 | - | - | - | - | 4 | 10 | - | - | 24 | 25 | - | - | - | |
| EVENTOUT | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 6 | - | - | - | - | - | - | - | 10 | - | - | 24 | - | - | - | - | |
15.3 Interconnection details
15.3.1 Master to slave interconnection for timers
From timer (TIM1/2/3/4/5/8/12/13/14/15/16/17) to timer (TIM1/2/3/4/5/8/12/15).
Purpose
Some timers are linked together internally for synchronization or chaining.
When one timer is configured in master mode, it can reset, start, stop, or clock the counter of another timer configured in slave mode.
A description of the features is provided in Section 50.4.23: Timer synchronization.
The synchronization modes are detailed in:
- • Section 49.3.30 for advanced-control timers TIM1/8
- • Section 50.4.22 for general-purpose timers TIM2/3/4/5
- • Section 52 for the general-purpose timers TIM12/13/14
- • Section 53.4.23 for the general-purpose timer TIM15
Triggering signals
The output (from master) is on signal TIMx_TRGO (and TIMx_TRGO2 for TIM1/8) following a configurable timer event. It can be also from signals tim16_oc1 and tim17_oc1 in the case of TIM16/17. The input (to slave) is on the signal TIMx_ITR0/1/2/3.
The possible master/slave connections are given in:
- • Table 515: Internal trigger connection for advanced-control timers TIM1/8
- • Table 539: TIMx internal trigger connection for general-purpose timers TIM2/3/4/5
- • Table 561: TIMx internal trigger connection for the general-purpose timers TIM12/13/14
- • Table 570: TIM internal input/output signals for the general-purpose timer TIM15
Active power mode
Timers are optionally active in Run and Sleep modes. The effects of low-power modes on TIMx are given in:
- • Table 528: Effect of low-power modes on TIM1/TIM8
- • Table 547: Effect of low-power modes on TIM2/TIM3/TIM4/TIM5
- • Table 563: Effect of low-power modes on TIM12/TIM13/TIM14
- • Table 580: Effect of low-power modes on TIM15/TIM16/TIM17
15.3.2 Triggers to ADCs
From EXTI, timers (TIM1/2/3/4/6/8/15), LP timers (LPTIM1/2), and PLAY1 to ADC1/ADC2/ADC3.
Purpose
A conversion (or a sequence of conversions) can be triggered either by software or by an external event (such as timer capture or input pins). For ADC12, if the EXTEN[1:0] (for a regular conversion) or JEXTEN[1:0] bits (for an injected conversion) are different from 0b00, external events can trigger a conversion with the selected polarity.
More details in:
- • Section 30.4.18: Conversion on external trigger and trigger polarity (EXTSEL, EXTEN, JEXTSEL, JEXTEN)
- • EXTEN[1:0] defined in ADC configuration register (ADC_CFGR)
- • JEXTEN[1:0] defined in ADC injected sequence register (ADC_JSQR)
General-purpose timers (TIM2/3/4), basic timer (TIM6), advanced-control timers (TIM1/8), and general-purpose timer (TIM15) can be used to generate the ADC triggering event through the timer outputs tim_oc and tim_trgo.
Low-power timers (LPTIM1/2) can be used to generate the ADC triggering event through the LPTIM channels, in addition to the EXTI on channels 11 and 15.
PLAY1 can be used to generate the ADC triggering event through the PLAY1 outputs 7 and 9.
Triggering signals
For ADC1/ADC2/ADC3, the input triggering signals and the description of the interconnection between ADC1/ADC2/ADC3 and timers are given in:
- • adc_ext_trg: Table 290: ADC interconnection
- • adc_jext_trg: Table 290: ADC interconnection
- • Section 30.4.18: Conversion on external trigger and trigger polarity (EXTSEL, EXTEN, JEXTSEL, JEXTEN)
- • Section 30.4.25: Timing diagrams example (single/continuous modes, hardware/software triggers)
Active power mode
This interconnection is active in Run and Sleep modes for all ADCs. The timers are active only in Run and Sleep modes. The effects of low-power modes are given in:
- • Table 528: Effect of low-power modes on TIM1/TIM8
- • Table 547: Effect of low-power modes on TIM2/TIM3/TIM4/TIM5
- • Table 580: Effect of low-power modes on TIM15/TIM16/TIM17
- • Table 586: STM32H5E4/5F4 and STM32H5E5/5F5 LPTIM features
- • Table 601: Effect of low-power modes on the LPTIM
15.3.3 ADC analog watchdogs as triggers to timers and PLAY1
From ADC1/ADC2/ADC3 to TIM1/8.
From ADC1/ADC2 to PLAY1.
Purpose
The internal analog watchdog output signals coming from ADC1/ADC2/ADC3 are connected to on-chip timers, and PLAY1. ADC1/ADC2/ADC3 can provide trigger events through analog watchdog signals to advanced-control timers (TIM1/8) to reset, start, stop, or clock the counter, and as input to PLAY1.
Settings description of the ADC analog watchdog and timer trigger, are provided in:
- • Section 49.3.6: External trigger input for TIM1/8
- • Table 516: Interconnect to the tim_etr input multiplexer for the internal ADC1/ADC2 sources connected to the TIM1/8 (tim_etr) input multiplexer
- • Section 24 for the ADC1/ADC2/ADC3/ADC_AWDy_OUT signal output generation
Triggering signals
The output (from ADC) is on the ADCn_AWDx_OUT signals, with n being the ADC instance and x = 1, 2, 3 (three watchdogs per ADC). The input (to timer) is on signal TIMx_ETR (external trigger).
The inputs (to PLAY1) are on signal PLAY1_IN[15:0].
Active power mode
ADC1/ADC2/ADC3 are active in Run and Sleep modes.
15.3.4 Triggers to DAC
From timers (TIM1/2/4/5/6/7/8/15), low-power timers (LPTIM1/2), COMP1/2, and EXTI to DAC.
Purpose
General-purpose timers (TIM2/4/5/15), basic timers (TIM6/7), advanced-control timers (TIM1/8), LP timers (LPTIM1/2) output channels (lptim1_ch1 and lptim2_ch1), comparators (COMP1/2) output channels (comp1_out and comp2_out), and EXTI can be used as a triggering event to start a DAC conversion.
Triggering signals
The output (from timer) on the TIMx_TRGO signal and from LP timers are directly connected to corresponding DAC inputs.
The selection of input triggers on the DAC is provided in:
Active power mode
This interconnect is active in Run, Sleep, and Stop modes.
15.3.5 Clock sources to timers
From HSE, LSE, LSI, HSI, and MCO to timers (TIM2/12/15/16/17) and LP timers (LPTIM1/2).
Purpose
A timer input or counter can receive different clock sources, and can be used, for example, to calibrate the internal oscillator on a reference clock.
External clocks (HSE, LSE), internal clocks (LSI, CSI, HSI), and microcontroller output clock (MCO) can be used as input to timers:
- • LSE, HSI, and CSI are assigned to general purpose timer TIM2 as external input signals. LSE can be selected as a counter clock provided by an external clock source
in mode1 (tim_ti1_in) and mode2 (external trigger input tim_etr_in). Inputs assignment and clock selection description are detailed in:
- – Section 50.4.5: Clock selection for TIM2
- – External clock mode1: Table 559: Interconnect to the tim_ti1 input multiplexer for TIM12, tim_ti1_in4 (HSI), and tim_ti1_in5 (CSI)
- – External clock mode2: Table 539: TIMx internal trigger connection for tim_etr3 (LSE)
- • LSE, LSI, CSI, and HSE are assigned to general purpose timers TIM15/16/17 as external input signals. LSE/LSI/CSI/HSE can be selected as a counter clock provided by an external clock source in mode1 (tim_ti1 or tim_ti2 signals). Inputs assignment and clock selection description are detailed in:
- – Section 53.4.6: Clock selection for TIM15/16/17. External clock mode1: external input pin (tim_ti1 or tim_ti2, if available)
- – Table 559: Interconnect to the tim_ti1 input multiplexer, tim_ti1_in1 (LSI-TIM16), tim_ti1_in2 (LSE-TIM16/HSE-TIM17), tim_ti1_in4 (LSE-TIM15), and tim_ti1_in5 (CSI-TIM15)
- • Microcontroller output clock (MCO): MCO1 is connected as external input to general-purpose timer TIM17, MCO2 is connected as external input to general-purpose timer TIM15.
- – Table 571: Interconnect to the tim_ti1 input multiplexer for TIM15/TIM16/TIM17
- • LSI and LSE can be selected as input capture 2 to LPTIM1 as described in Table 595: LPTIM1 input capture 2 connections.
- • HSI/1024, CSI/128, and HSI/8 can be selected as input capture 2 to LPTIM2 as described in Table 596: LPTIM2 input capture 2 connections.
Triggering signals
lptim_ic2_mux1 LPTIM input capture selection can be set in the LPTIM configuration register 2 (LPTIM_CFGR2). For timers, the internal clock signal can be selected as a counter clock provided by an external clock source in mode1 (tim_ti1_in) and mode2 (external trigger input tim_etr_in).
Active power mode
This feature is available under Run and Sleep modes.
15.3.6 Triggers to low-power timers
From EXTI, TAMP, PLAY1, comparators (COMP1/2), GPDMA1, CPU (EVENTOUT), and RTC alarm to LP timers (LPTIM1/2/3/4/5/6).
Purpose
LPTIM1/2/3/4/5/6 counters can be started either by software, or after the detection of an active edge on one of the eight trigger inputs (see Section 54.4.7: Trigger multiplexer).
RTC alarm, TAMP input detection, COMP1_OUT, GPDMA transfer complete and CPU EVENTOUT can be used as a trigger to start LPTIM counters (LPTIM1/2).
Triggering signals
This trigger feature is described in Section 54.4.7: Trigger multiplexer and in the following sections. The input selection is described in Table 591: LPTIM1/2/3/4/5/6 external trigger connections.
Active power mode
This interconnection is active in Run, Sleep, and Stop modes.
15.3.7 RTC wake-up as input to timers
From RTC to timer (TIM16).
Purpose
RTC wake-up interrupt can be used as input to general-purpose timer (TIM16) channel 1.
Triggering signals
The RTC wake-up signal is connected to the tim_ti1_in3 signal as described in Table 571: Interconnect to the tim_ti1 input multiplexer for TIM16.
Active power mode
This interconnection is active down to Stop mode. Timers are not active but the count is performed at wake-up.
15.3.8 System errors as break signals to timers
From system errors to timers (TIM1/8/15/16/17).
Purpose
CSS, CPU lockup, SRAM2/3 ECC double errors, FLASH ECC double-error detection, and PVD can generate system errors in the form of timer break toward timers (TIM1/8/15/16/17).
The purpose of the break function is to protect power switches driven by PWM signals generated by the timers.
Triggering signals
The possible sources of break are described in:
- • Section 49.3.18: Using the break function for TIM1/8
- • Section 53.4.15: Using the break function for TIM15/16/17
- • Section Table 519.: System break interconnect for TIM1/8
- • Section Table 575.: System break interconnect for TIM15/16/17
Active power mode
Timers are optionally active in Run and Sleep modes. The effects of low-power modes on TIMx are given in:
- • Table 528: Effect of low-power modes on TIM1/TIM8
- • Table 547: Effect of low-power modes on TIM2/TIM3/TIM4/TIM5
- • Table 580: Effect of low-power modes on TIM15/TIM16/TIM17
15.3.9 I3C as trigger to timers
From I3C1/2 to timers (TIM13/14) and LP timers (LPTIM5/6).
Purpose
I3Cx_IBlackTi can be used as input for LPTIM5/6 and TIM13/14
Triggering signals
- • The outputs from triggers are directly connected to peripheral trigger inputs.
- • The selection of input triggers is detailed in:
- • Table 535: Interconnect to the tim_ti1 input multiplexer
- • Table 540: Interconnect to the tim_etr input multiplexer
Active power mode
These interconnections remain active in Run and Sleep modes.
15.3.10 Triggers to GPDMA1/2
From EXTI, RTC (alarm/wake-up), TAMP, timers (TIM2/12/15), LP timers (LPTIM1/2/3/4/5/6), comparators (COMP1/2), DMA2D, GFXTIM, JPEG, PLAY1, EVENTOUT, and GPDMA1 transfer complete (gpdma1_chx_tc, gpdma2_chx_tcf) to GPDMA1/2.
Purpose
A GPDMA trigger can be assigned to GPDMA channel x. A programmed GPDMA transfer can be triggered by a rising/falling edge of a selected input trigger event. The trigger mode can also be programmed to condition the LLI link transfer. More details are given in the sections below:
- • Section 16.3.7: GPDMA triggers
- • Section 16.4.12: GPDMA triggered transfer
- • GPDMA channel x transfer register 2 (GPDMA_CxTR2) for more details on:
- – Trigger selection TRIGSEL[5:0] field
- – Trigger mode (LLI) defined by TRIGM[1:0]
- – Trigger polarity as defined by TRIGPOL[1:0]
Triggering signals
GPDMA trigger mapping is specified in Table 128: Programmed GPDMA1/2 request, according to GPDMA_CxTR2.TRIGSEL[5:0].
Active power mode
This interconnection remains functional in Sleep mode.
Refer to:
15.3.11 Internal analog signals to analog peripherals
From internal analog source to ADC (ADC1/2/3).
Purpose
The internal reference voltage (\(V_{REFINT}\)), the internal temperature sensor (\(V_{SENSE}\)), the internal digital core voltage (\(V_{DDCORE}\)), and the \(V_{BAT}\) monitoring channel are connected to the ADC (ADC1/2/3) input channels.
This is according to:
15.3.12 Clock source for the DAC sample and hold mode
From LSI/LSE to DAC1.
Purpose
DAC1 can run in Stop mode. The sample and hold block and its associated registers use the LSI or LSE clock source (dac_hold_ck) in Stop mode.
Table 313: DAC internal input/output signals: dac_hold_ck, input, DAC low-power clock used in sample and hold mode
Active power mode
This feature remains available in Run, Sleep, and Stop modes.
15.3.13 Internal tamper sources
From internal peripherals, clocks, or monitoring, to tamper.
Purpose
To detect any abnormal activity or tentative to corrupt the device, embedded tampers alert the system of undesired events. Different actions can be taken as a consequence.
The list of tamper sources can be found in Table 627: TAMP interconnection.
Active power mode
This interconnection is active in all power modes if the tamper source is activated.
15.3.14 Output from tamper to RTC
From TAMP to RTC.
Purpose
The RTC can timestamp a tamper event to retrieve the history of the detection. The RTC can also control GPIOs, and set a signal based on tamp or alarm status outside the MCU.
Refer to Section 57.3.3: GPIOs controlled by the RTC and TAMP for more details.
Active power mode
This interconnection remains active in all power modes.
15.3.15 Timer break from MDF1
From MDF1 to advanced-control timer (TIM1/8) and general-purpose timer (TIM15/16/17)
Purpose
The MDF features an out-off limit detector (OLD) and a short circuit detector (SCD) functions. When a short-circuit or open-circuit errors (such as over current or over voltage) is detected, an interrupt event or/and a break signal can be generated to TIM1/8/15/16/17.
Triggering signals
The mdf1_break[0:3] output signals are connected to the break1 and break2 inputs signals of TIM1/8 and TIM15/16/17.
The following tables give the assignment of break signals:
- • Table 345: MDF break connections
- • Table 574: Timer break interconnect
- • Table 518: Timer break2 interconnect
Active power mode
This interconnection is active under Run and Sleep modes. Refer to:
15.3.16 Comparators as inputs, trigger, or break signals to timers1
From comparators to timers (TIM1/2/3/4/5/8/12/13/14/15/16/17)
Purpose
The comparators (COMP1/2) output values can be connected to timers (TIM1/2/3/4/5/8/12/13/14/15/16/17) input captures, TIMx_ETR, or timer break signals. The connection to ETR is described in Section 49.3.6: External trigger input.
Comparators (COMP1/2) output values can also generate break input signals for timers (such as TIM1 or TIM8). The sources for the break (tim_brk) channel are one of the following:
- • External: connected to one of the TIMx_BKIN pin (as per selection done in the AFIO controller) with polarity selection and optional digital filtering
- • Internal: coming from comparators, tim_brk_cmpx input (refer to Section 49.3.2: TIM1/TIM8 pins and internal signals for product specific implementation).
Triggering signals
The tim_etr and tim_brk signals connected TIM1/8 (coming from COMP1/2) are given in:
- • tim_etr: external trigger internal input bus
These inputs can be used as trigger, external clock or for hardware cycle-by-cycle pulse width control.
- • tim_brk (Table 517: Timer break interconnect and Table 518: Timer break2 interconnect)
- • Section 49.3.6: External trigger input
- • Section 49.3.18: Using the break function
For TIM2/3/4/5, the sources connected to the tim_ti[1:4] input multiplexers coming from comparators and some other peripherals, are given in:
- • Table 535: Interconnect to the tim_ti1 input multiplexer
- • Table 536: Interconnect to the tim_ti2 input multiplexer
- • Table 537: Interconnect to the tim_ti3 input multiplexer
- • Table 538: Interconnect to the tim_ti4 input multiplexer
- • Table 540: Interconnect to the tim_etr input multiplexer
For TIM12/13/14, the sources connected to timers coming from comparators and other peripherals, are given in:
- • Table 559: Interconnect to the tim_ti1 input multiplexer
- • Table 560: Interconnect to the tim_ti2 input multiplexer
For TIM15/16/17, the sources connected to timers coming from comparators and other peripherals are given in:
- • Table 571: Interconnect to the tim_ti1 input multiplexer
- • Table 572: Interconnect to the tim_ti2 input multiplexer
- • Table 574: Timer break interconnect
- • Table 583: TIM15 register map and reset values
Signals Active power mode
Run, Sleep, and wake-up capability in Stop 0, Stop 1, and Stop 2 modes for trigger sources.
Input and break remain active in the same low-power modes as timers activity, on Run and Sleep modes
15.3.17 Triggers on MDF1 or ADF1
From EXTI, ADF1, timers (TIM1/3/4/6/7/8/15), and LP timer (LPTIM1) to MDF1
From EXTI, TIM15, and MDF1 to ADF1
Purpose
General-purpose timers (TIM3/4/15), basic timers (TIM6/7), advanced-control timers (TIM1/8), low-power timer (LPTIM1), EXTI (EXTI11/15), and ADF1 can be used to generate a triggering event on the MDF1 module and start an A/C conversion.
In addition, EXTI15, TIM, and MDF1 can trigger ADF1.
Triggering signals
The mdf_trgi[13:0] trigger inputs are the triggering input signals. The MDF and ADF trigger inputs connections are detailed in:
Signals Active power mode
This interconnection remains active down to Stop 0 and Stop 1 modes for MDF1, and Stop 0, Stop 1, and Stop 2 modes for ADF1, assuming the trigger source remains active.
15.3.18 Blanking sources to comparators
From timers (TIM1/2/3/8/15) and LP timers (LPTIM1/2) to comparators (COMP1/2)
Purpose
Advanced-control timers (TIM1/8) =, general-purpose timers (TIM2/3/15) and LP timers (LPTIM1/2) can be used as blanking window input to COMP1/2.
The blanking function is described in Table 35.3.7: Comparator output blanking function.
The blanking sources are given in:
- • COMP1 control and status register,
- • COMP2 control and status register,
Triggering signals
Timer output signal TIMx_Ocx are the inputs to the blanking source of COMP1/2.
LP timer output signal lptimx_ch2 are the input to the blanking source of COMP1.
Signals Active power mode
This feature is available under Run and Sleep modes.
15.3.19 OTG_FS/OTG_HS SOF as trigger to timers
From OTG_FS/OTG_HS SOF to TIM2/TIM5
Purpose
The OTG_FS/OTG_HS SOF (start-of-frame) can generate a trigger to the general-purpose timers TIM2 and TIM5. The OTG_FS/OTG_HS connection to TIM2/TIM5 is described in Table 539: TIMx internal trigger connection.
Triggering signals
The tim_etr13 and tim_etr14 internal signals are generated by the OTG_FS/OTG_HS SOF.
Active power mode
This interconnection is active in Run and Sleep modes.
15.3.20 Ethernet as trigger to timers
From Ethernet to TIM2/TIM3
Purpose
To synchronize the system clock with the network, internal connections are available between timers and PTP to check for clock drifts.
Triggering signals
The outputs (from the timer) are directly connected to Ethernet PTP trigger inputs. More details are given below:
- • Section 69.3: Ethernet pins and internal signals
- • Table 535: Interconnect to the tim_ti1 input multiplexer
- • Table 540: Interconnect to the tim_etr input multiplexer
Active power mode
These interconnections remain active in Run and Sleep modes.
15.3.21 Timers as trigger to Ethernet
From timers (TIM2/TIM3) to Ethernet.
Purpose
General-purpose timers TIM2/TIM3 can generate a trigger to Ethernet.
Triggering signals
The TIM2/TIM3 timers can generate a trigger to Ethernet to store a snapshot of the system time.
The event is considered to be the rising edge of the eth_ptp_trgx signal.
Active power mode
This interconnection is active in Run and Sleep modes.
15.3.22 PLAY1 as input to timers
From PLAY1 to TIM1/TIM2/TIM3/TIM8
Purpose
The PLAY1 outputs can be connected to the advanced-control timers (TIM1/8) and general purpose timers (TIM2/3).
Triggering signals
Timer input signals of the timers are connected to the output signals of the PLAY1 play1_out[3:0].
More details for connections are given in the following tables:
- • Table 195: PLAY logic array input n signal selection
- • Table 511: Interconnect to the tim_ti1 input multiplexer
- • Table 517: Timer break interconnect
Active power mode
These interconnections remain active in Run and Sleep modes.
15.3.23 ADC data filtering by the MDF1/ADF1
From ADC1/ADC2 to MDF1
From ADC3 to ADF1
Purpose
The MDF1/ADF1 allows the connection of up to three ADCs to the filter path.
For each filter, the DATSRC[1:0] field in the MDF digital filter configuration register x (MDF_DFLTxCICR) is used to select either data from the ADCs in:
- • Section 30.4.4: ADC connectivity
- • Table 346: MDF ADC data connections
- • Table 290: ADC interconnection
- • Section 36.5: MDF low-power modes
Active power mode
This feature remains available down to Sleep mode.
15.3.24 Inputs to PLAY1
From timers (TIM2/3), LP timers (LPTIM1/2), MCO1/2, comparators (COMP1/2), USART1/2, SPI1/2, and CPU to PLAY1.
Purpose
General purpose timers (TIM2/TIM3), LP timers (LPTIM1/LPTIM2), MCO1/2, comparators (COMP1/COMP2), USART1/2, SPI1/2, and CPU are connected to PLAY1 inputs.
Triggering signals
The PLAY1 inputs play1_in[15:0] are connected to PLAY1, timers (TIM2/3), LP timers (LPTIM1/2), MCO1/2, comparators (COMP1/2), USART1/2, SPI1/2 and CPU.
The input connections are detailed in Table 195: PLAY logic array input n signal selection.
Active power mode
This feature is available under Run and Sleep modes. It is also available under Stop mode for the LP timers (LPTIM1/LPTIM2), the comparators (COMP1/COMP2), USART1/2, SPI1/2 except General purpose timers (TIM2/TIM3), MCO and CPU.
15.3.25 Triggers to DTS
From EXTI, LP timers (LPTIM1/LPTIM2) and PLAY1 to DTS.
Purpose
A temperature measurement can be triggered either by software, by LP timers, by PLAY1, or by an external event
Triggering signals
The input triggering signals and the description of the interconnection between DTS, PLAY1 and LP timers, are given in Table 307: Trigger configuration.
15.3.26 Encryption keys to AES/SAES
From TAMP backup registers, system flash memory to and in between SAES and AES.
Purpose
The encryption mechanism requires a hardware key that must be stored in a protected nonvolatile memory. Different approaches are implemented to load them in a nonreadable way. Tamper backup registers or system flash memory can be used to store respectively BHK or RHUK, and to implement a dedicated bus to pass it to the SAES.
Refer to Section 45.4.14: SAES operation with wrapped keys for more details.
The AES encryption mechanism (faster than the SAES) can benefit from the sharing key of the SAES. Refer to Section 45.4.15: SAES operation with shared keys for more details.
Active power mode
AES and SAES are operating under Run and Sleep modes.