13. Peripherals interconnect matrix
13.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 a predictable system.
Depending on peripherals, these interconnections can operate in Run, Sleep, and Stop modes.
13.2 Connection summary
There are several types of connections.
- • Asynchronous connections (A)
The source output signal is sampled by the destination clock, leading to introduction of a possible jitter in the latency between the source output event and the destination event detection - • Synchronous connections (S)
Both source and destination are synchronous (they run on the same clock), and the latency from the source to the destination is deterministic. No jitter is introduced. - • Immediate connections (I)
Either the source or the destination is an analog signal. - • Break/fault connection for TIM outputs (B)
The source output signal disables the timer outputs through a pure combinational logic path, without any latency.

Table 84. Peripherals interconnect matrix(1)(2)
| Source | Destination | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TIM1 | TIM2 | TIM5 | TIM6 | TIM7 | TIM8 | TIM12 | TIM15 | TIM16 | TIM17 | LPTIM1 | CRS | LPDMA1 | LPDMA2 | ADC | DAC | COMP | |
| TIM1 | - | S | S | - | - | S/B | S | S/B | S/B | S/B | - | - | - | - | S/A | S/A | A |
| TIM2 | S | - | S | - | - | S | S | S | S | S | - | - | - | - | S/A | S/A | A |
| TIM5 | S | S | - | - | - | S | S | S | S | S | - | - | - | - | S/A | S/A | A |
| TIM6 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S/A | S/A | - |
| TIM7 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S/A | S/A | - |
| TIM8 | S/B | S | S | - | - | - | S | S/B | S/B | S/B | - | - | - | - | S/A | S/A | I |
| TIM12 | S | S | S | - | - | S | - | S | S | S | - | - | - | - | S/A | S/A | - |
| TIM15 | S/B | S | S | - | - | S/B | S | - | S/B | S/B | - | - | S | S | S/A | S/A | A |
| TIM16 | S/B | S | S | - | - | S/B | S | S/B | - | S/B | - | - | - | - | - | - | - |
| TIM17 | S/B | S | S | - | - | S/B | S | S/B | S/B | - | - | - | - | - | - | - | - |
| LPTIM1 | - | - | - | - | - | - | - | - | - | - | - | - | A | A | A | A | - |
| LPDMA1 | - | - | - | - | - | - | - | - | - | - | - | - | S | S | - | - | - |
| LPDMA2 | - | - | - | - | - | - | - | - | - | - | - | - | S | S | - | - | - |
| ADC | A | A | - | - | - | A | - | - | - | - | - | - | - | - | - | - | - |
| COMP | A/B | A | A | - | - | A/B | A | A/B | A/B | A/B | - | - | - | - | - | - | - |
| Temp Sensor | - | - | - | - | - | - | - | - | - | - | - | - | - | - | I | - | - |
| Vrefint | - | - | - | - | - | - | - | - | - | - | - | - | - | - | I | - | - |
| FDCAN | - | S | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
| USB_FS | - | - | - | - | - | - | - | - | - | - | - | A | - | - | - | - | - |
| I3C | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
| RTC | - | A | - | - | - | - | - | - | A | - | A | - | A | A | - | - | - |
| TAMP | - | - | - | - | - | - | - | - | - | - | A | - | A | A | - | - | - |
Table 84. Peripherals interconnect matrix(1)(2) (continued)
| Source | Destination | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TIM1 | TIM2 | TIM5 | TIM6 | TIM7 | TIM8 | TIM12 | TIM15 | TIM16 | TIM17 | LPTIM1 | CRS | LPDMA1 | LPDMA2 | ADC | DAC | COMP | |
| HSE | - | A | - | - | - | - | A | - | - | A | A | A | - | - | - | - | - |
| LSE | - | A | - | - | - | - | - | A | A | - | A | A | - | - | - | S | - |
| LSI | - | A | - | - | - | - | - | - | A | - | A | - | - | - | - | - | - |
| MCO1 | - | A | - | - | - | - | A | - | - | A | A | - | - | - | - | - | - |
| MCO2 | - | A | - | - | - | - | A | - | - | A | - | - | - | - | - | - | - |
| SYS Error | B | - | - | - | - | B | - | - | - | - | - | - | - | - | - | - | - |
- 1. “-” means no interconnect.
- 2. Refer to the product datasheet for the availability of peripherals. If the peripheral is not present, consider the associated interconnection as unavailable.

13.3 Interconnection details
Table 85. peripheral interconnect matrix details
| SOURCE (output) | DESTINATION (input) | ||
|---|---|---|---|
| PERIPH | SIGNAL | SIGNAL | PERIPH |
| TIM2 | tim2_trgo | tim_itr2 | TIM1 |
| TIM5 | tim5_trgo | tim_itr5 | |
| TIM8 | tim8_trgo | tim_itr6 | |
| TIM8 | tim8_trgo2 | tim_itr7 | |
| TIM12 | tim12_trgo | tim_itr8 | |
| TIM15 | tim15_trgo | tim_itr9 | |
| TIM16 | tim16_oc1 | tim_itr10 | |
| TIM17 | tim17_oc1 | tim_itr11 | |
| COMP1 | comp1_out | tim_etr1 | |
| ADC1 | adc1_awd1 | tim_etr3 | |
| ADC1 | adc1_awd2 | tim_etr4 | |
| ADC1 | adc1_awd3 | tim_etr5 | |
| COMP1 | comp1_out | tim_ti1_in1 | |
| COMP1 | comp1_out | tim_ocref_clr0 | |
| GPIO | BKIN | tim_brk_0 | |
| COMP1 | comp1_out | tim_brk_1 | |
| TIM8 | TIM8_BKIN | tim_brk_6 | |
| TIM15 | TIM15_BKIN | tim_brk_8 | |
| TIM16 | TIM16_BKIN | tim_brk_9 | |
| TIM17 | TIM17_BKIN | tim_brk_10 | |
| GPIO | BKIN2 | tim_brk2_0 | |
| COMP1 | comp1_out | tim_brk2_1 | |
| TIM8 | TIM8_BKIN2 | tim_brk2_6 | |
| - | PWM_SAFE LOCKUP PVD RAM ECC | tim_brk | |
| TIM1 | tim1_trgo | tim_itr0 | TIM2 |
| TIM1 | tim1_trgo2 | tim_itr1 | |
| TIM5 | tim5_trgo | tim_itr5 | |
| TIM8 | tim8_trgo | tim_itr6 | |
| TIM8 | tim8_trgo2 | tim_itr7 | |
Table 85. peripheral interconnect matrix details (continued)
| SOURCE (output) | DESTINATION (input) | ||
|---|---|---|---|
| PERIPH | SIGNAL | SIGNAL | PERIPH |
| TIM12 | tim12_trgo | tim_itr8 | TIM2 (continued) |
| TIM15 | tim15_trgo | tim_itr9 | |
| TIM16 | tim16_oc1 | tim_itr10 | |
| TIM17 | tim17_oc1 | tim_itr11 | |
| COMP1 | comp1_out | tim_etr1 | |
| ADC1 | adc1_awd1 | tim_etr3 | |
| ADC1 | adc1_awd2 | tim_etr4 | |
| ADC1 | adc1_awd3 | tim_etr5 | |
| RCC | LSE | tim_etr6 | |
| RCC | MCO1 | tim_etr7 | |
| TIM5 | TIM5_ETR | tim_etr11 | |
| COMP1 | comp1_out | tim_ti1_in1 | |
| RCC | LSI | tim_ti1_in3 | |
| RCC | LSE | tim_ti1_in4 | |
| RTC | rtc_wut_trg | tim_ti1_in5 | |
| TIM5 | TIM5_CH1 | tim_ti1_in6 | |
| FDCAN1 | fdcan1_rxeof_evt | tim_ti1_in7 | |
| TIM2 | TIM2_CH2 | tim_ti2_in0 | |
| RCC | hse_1M_ck | tim_ti2_in3 | |
| RCC | MCO1 | tim_ti2_in4 | |
| RCC | MCO2 | tim_ti2_in5 | |
| FDCAN1 | fdcan1_rxeof_evt | tim_ti2_in7 | |
| COMP1 | comp1_out | tim_ti4_in1 | |
| TIM1 | tim1_trgo | tim_itr0 | TIM5 |
| TIM1 | tim1_trgo2 | tim_itr1 | |
| TIM2 | tim2_trgo | tim_itr2 | |
| TIM8 | tim8_trgo | tim_itr6 | |
| TIM8 | tim8_trgo2 | tim_itr7 | |
| TIM12 | tim12_trgo | tim_itr8 | |
| TIM15 | tim15_trgo | tim_itr9 | |
| TIM16 | tim16_oc1 | tim_itr10 | |
| TIM17 | tim17_oc1 | tim_itr11 | |
| COMP1 | comp1_out | tim_etr1 | |
Table 85. peripheral interconnect matrix details (continued)
| SOURCE (output) | DESTINATION (input) | ||
|---|---|---|---|
| PERIPH | SIGNAL | SIGNAL | PERIPH |
| COMP1 | comp1_out | tim_ti1_in1 | TIM5 (continued) |
| COMP1 | comp1_out | tim_ocref_clr0 | |
| TIM1 | tim1_trgo | tim_itr0 | TIM8 |
| TIM1 | tim1_trgo2 | tim_itr1 | |
| TIM2 | tim2_trgo | tim_itr2 | |
| TIM5 | tim5_trgo | tim_itr5 | |
| TIM12 | tim12_trgo | tim_itr8 | |
| TIM15 | tim15_trgo | tim_itr9 | |
| TIM16 | tim16_oc1 | tim_itr10 | |
| TIM17 | tim17_oc1 | tim_itr11 | |
| COMP1 | comp1_out | tim_etr1 | |
| ADC2 | adc2_awd1 | tim_etr3 | |
| ADC2 | adc2_awd2 | tim_etr4 | |
| ADC2 | adc2_awd3 | tim_etr5 | |
| COMP1 | comp1_out | tim_ti1_in1 | |
| GPIO | BKIN | tim_brk_0 | |
| COMP1 | comp1_out | tim_brk_1 | |
| TIM1 | TIM1_BKIN | tim_brk_5 | |
| TIM15 | TIM15_BKIN | tim_brk_8 | |
| TIM16 | TIM16_BKIN | tim_brk_9 | |
| TIM17 | TIM17_BKIN | tim_brk_10 | |
| GPIO | BKIN2 | tim_brk2_0 | |
| COMP1 | comp1_out | tim_brk2_1 | |
| TIM1 | TIM1_BKIN2 | tim_brk2_5 | |
| - | PWM_SAFE LOCKUP PVD RAM ECC | tim_brk | |
| TIM1 | tim1_trgo | tim_itr0 | TIM12 |
| TIM1 | tim1_trgo2 | tim_itr1 | |
| TIM2 | tim2_trgo | tim_itr2 | |
| TIM5 | tim5_trgo | tim_itr5 | |
| TIM8 | tim8_trgo | tim_itr6 | |
Table 85. peripheral interconnect matrix details (continued)
| SOURCE (output) | DESTINATION (input) | ||
|---|---|---|---|
| PERIPH | SIGNAL | SIGNAL | PERIPH |
| TIM8 | tim8_trgo2 | tim_itr7 | TIM12 (continued) |
| TIM15 | tim15_trgo | tim_itr9 | |
| TIM16 | tim16_oc1 | tim_itr10 | |
| TIM17 | tim17_oc1 | tim_itr11 | |
| COMP1 | comp1_out | tim_ti1_in1 | |
| RCC | MCO1 | tim_ti1_in3 | |
| RCC | MCO2 | tim_ti1_in4 | |
| RCC | hse_1m_ck | tim_ti1_in5 | |
| I3C1 | i3c1_iblack | tim_ti1_in7 | |
| TIM1 | tim1_trgo | tim_itr0 | TIM15 |
| TIM1 | tim1_trgo2 | tim_itr1 | |
| TIM2 | tim2_trgo | tim_itr2 | |
| TIM5 | tim5_trgo | tim_itr5 | |
| TIM8 | tim8_trgo | tim_itr6 | |
| TIM8 | tim8_trgo2 | tim_itr7 | |
| TIM12 | tim12_trgo | tim_itr8 | |
| TIM16 | tim16_oc1 | tim_itr10 | |
| TIM17 | tim17_oc1 | tim_itr11 | |
| COMP1 | comp1_out | tim_ti1_in1 | |
| RCC | LSE | tim_ti1_in5 | |
| COMP1 | comp1_out | tim_ocref_clr0 | |
| GPIO | BKIN | tim_brk_0 | |
| COMP1 | comp1_out | tim_brk_1 | |
| TIM1 | TIM1_BKIN | tim_brk_5 | |
| TIM8 | TIM8_BKIN | tim_brk_6 | |
| TIM16 | TIM16_BKIN | tim_brk_9 | |
| TIM17 | TIM17_BKIN | tim_brk_10 | |
| COMP1 | comp1_out | tim_ti1_in1 | |
| RCC | LSI | tim_ti1_in3 | TIM16 |
| RCC | LSE | tim_ti1_in4 | |
| RTC | rtc_wut_trg | tim_ti1_in5 | |
| RCC | MCO1 | tim_ti1_in6 | |
| RCC | MCO2 | tim_ti1_in7 | |
Table 85. peripheral interconnect matrix details (continued)
| SOURCE (output) | DESTINATION (input) | ||
|---|---|---|---|
| PERIPH | SIGNAL | SIGNAL | PERIPH |
| COMP1 | comp1_out | tim_ocref_clr0 | TIM16 (continued) |
| GPIO | BKIN | tim_brk_0 | |
| COMP1 | comp1_out | tim_brk_1 | |
| TIM1 | TIM1_BKIN | tim_brk_5 | |
| TIM8 | TIM8_BKIN | tim_brk_6 | |
| TIM15 | TIM15_BKIN | tim_brk_8 | |
| TIM17 | TIM17_BKIN | tim_brk_10 | |
| COMP1 | comp1_out | tim_ti1_in1 | TIM17 |
| RCC | hse_1M_ck | tim_ti1_in4 | |
| RCC | MCO1 | tim_ti1_in5 | |
| RCC | MCO2 | tim_ti1_in6 | |
| I3C1 | i3c1_ibiack | tim_ti1_in7 | |
| COMP1 | comp1_out | tim_ocref_clr0 | |
| GPIO | BKIN | tim_brk_0 | |
| COMP1 | comp1_out | tim_brk_1 | |
| TIM1 | TIM1_BKIN | tim_brk_5 | |
| TIM8 | TIM8_BKIN | tim_brk_6 | |
| TIM15 | TIM15_BKIN | tim_brk_8 | |
| TIM16 | TIM16_BKIN | tim_brk_9 | |
| RTC | rtc_alra_trg | lptim_ext_trig1 | LPTIM1 |
| RTC | rtc_alrb_trg | lptim_ext_trig2 | |
| TAMP | tamp_trg1 | lptim_ext_trig3 | |
| TAMP | tamp_trg2 | lptim_ext_trig4 | |
| LPDMA | lpdma_ch1_tcf | lptim_ext_trig5 | |
| COMP1 | comp1_out | lptim_ext_trig6 | |
| CPU | EVENTOUT | lptim_ext_trig7 | |
| COMP1 | comp1_out | lptim_in1_mux1 | |
| COMP1 | comp1_out | lptim_ic1_mux1 | |
| CPU | EVENTOUT | lptim_ic1_mux2 | |
| RCC | MCO1 | lptim_ic1_mux3 | |
| RCC | LSI | lptim_ic2_mux1 | |
| RCC | LSE | lptim_ic2_mux2 | |
| RCC | RCC_HSE_1MHZ | lptim_ic2_mux3 | |
Table 85. peripheral interconnect matrix details (continued)
| SOURCE (output) | DESTINATION (input) | ||
|---|---|---|---|
| PERIPH | SIGNAL | SIGNAL | PERIPH |
| GPIO | CRS_SYNC | crs_sync_in_0 | CRS |
| RCC | LSE | crs_sync_in_1 | |
| USB | USB_SOF | crs_sync_in_2 | |
| RCC | hse_1M_ck | crs_sync_in_3 | |
| - | VREFINT | ADC1 VIN[13] | ADC12 |
| - | VSENSE | ADC1 VIN[12] | |
| GPIO | exti11 | adc_ext_trg0 | |
| TIM1 | tim1_oc1 | adc_ext_trg1 | |
| TIM1 | tim1_oc2 | adc_ext_trg2 | |
| TIM1 | tim1_oc3 | adc_ext_trg3 | |
| TIM1 | tim1_trgo | adc_ext_trg4 | |
| TIM1 | tim1_trgo2 | adc_ext_trg5 | |
| TIM2 | tim2_oc2 | adc_ext_trg6 | |
| TIM2 | tim2_trgo | adc_ext_trg7 | |
| TIM5 | tim5_oc4 | adc_ext_trg10 | |
| TIM5 | tim5_trgo | adc_ext_trg11 | |
| TIM6 | tim6_trgo | adc_ext_trg12 | |
| TIM8 | tim8_trgo | adc_ext_trg13 | |
| TIM8 | tim8_trgo2 | adc_ext_trg14 | |
| TIM15 | tim15_trgo | adc_ext_trg15 | |
| LPTIM1 | lptim1_ch1 | adc_ext_trg16 | |
| GPIO | exti15 | adc_jext_trg0 | |
| TIM1 | tim1_oc4 | adc_jext_trg1 | |
| TIM1 | tim1_trgo | adc_jext_trg2 | |
| TIM1 | tim1_trgo2 | adc_jext_trg3 | |
| TIM2 | tim2_oc1 | adc_jext_trg4 | |
| TIM2 | tim2_trgo | adc_jext_trg5 | |
| TIM5 | tim5_oc1 | adc_jext_trg10 | |
| TIM5 | tim5_oc2 | adc_jext_trg11 | |
| TIM5 | tim5_oc3 | adc_jext_trg12 | |
| TIM5 | tim5_trgo | adc_jext_trg13 | |
| TIM7 | tim7_trgo | adc_jext_trg14 | |
| TIM8 | tim8_oc4 | adc_jext_trg15 | |
Table 85. peripheral interconnect matrix details (continued)
| SOURCE (output) | DESTINATION (input) | ||
|---|---|---|---|
| PERIPH | SIGNAL | SIGNAL | PERIPH |
| TIM8 | tim8_trgo | adc_jext_trg16 | ADC12 (continued) |
| TIM8 | tim8_tgo2 | adc_jext_trg17 | |
| TIM12 | tim12_tgo | adc_jext_trg18 | |
| TIM15 | tim15_trgo | adc_jext_trg19 | |
| LPTIM1 | lptim1_ch1 | adc_jext_trg20 | |
| RCC | ck_lsi OR ck_lse | dac_hold_ck | DAC |
| TIM1 | tim1_trgo | dac_ch1_trg1 | |
| TIM2 | tim2_trgo | dac_ch1_trg2 | |
| TIM5 | tim5_trgo | dac_ch1_trg5 | |
| TIM6 | tim6_trgo | dac_ch1_trg6 | |
| TIM7 | tim7_trgo | dac_ch1_trg7 | |
| TIM8 | tim8_trgo | dac_ch1_trg8 | |
| TIM12 | tim12_trgo | dac_ch1_trg9 | |
| TIM15 | tim15_trgo | dac_ch1_trg10 | |
| LPTIM1 | lptim1_ch1 | dac_ch1_trg11 | |
| GPIO | exti0 | lpdma_trg0 | LPDMA12 |
| GPIO | exti1 | lpdma_trg1 | |
| GPIO | exti2 | lpdma_trg2 | |
| GPIO | exti3 | lpdma_trg3 | |
| GPIO | exti4 | lpdma_trg4 | |
| GPIO | exti5 | lpdma_trg5 | |
| GPIO | exti6 | lpdma_trg6 | |
| GPIO | exti7 | lpdma_trg7 | |
| TAMP | tamp_trg1 | lpdma_trg8 | |
| TAMP | tamp_trg2 | lpdma_trg9 | |
| TAMP | tamp_trg3 | lpdma_trg10 | |
| LPTIM1 | lptim1_ch1 | lpdma_trg11 | |
| LPTIM1 | lptim1_ch2 | lpdma_trg12 | |
| RTC | rtc_alra_trg | lpdma_trg13 | |
| RTC | rtc_alrb_trg | lpdma_trg14 | |
| RTC | rtc_wut_trg | lpdma_trg15 | |
| TIM2 | tim2_trgo | lpdma_trg16 | |
| TIM15 | tim15_trgo | lpdma_trg17 | |
Table 85. peripheral interconnect matrix details (continued)
| SOURCE (output) | DESTINATION (input) | ||
|---|---|---|---|
| PERIPH | SIGNAL | SIGNAL | PERIPH |
| COMP1 | comp1_out | lpdma_trg18 | LPDMA12 (continued) |
| CPU | EVENTOUT | lpdma_trg19 | |
| LPDMA1 | lpdma1_ch0_tc | lpdma_trg20 | |
| LPDMA1 | lpdma1_ch1_tc | lpdma_trg21 | |
| LPDMA1 | lpdma1_ch2_tc | lpdma_trg22 | |
| LPDMA1 | lpdma1_ch3_tc | lpdma_trg23 | |
| LPDMA1 | lpdma1_ch4_tc | lpdma_trg24 | |
| LPDMA1 | lpdma1_ch5_tc | lpdma_trg25 | |
| LPDMA1 | lpdma1_ch6_tc | lpdma_trg26 | |
| LPDMA1 | lpdma1_ch7_tc | lpdma_trg27 | |
| LPDMA2 | lpdma2_ch0_tc | lpdma_trg28 | |
| LPDMA2 | lpdma2_ch1_tc | lpdma_trg29 | |
| LPDMA2 | lpdma2_ch2_tc | lpdma_trg30 | |
| LPDMA2 | lpdma2_ch3_tc | lpdma_trg31 | |
| TIM1 | tim1_oc5 | comp1_blk1 | COMP1 |
| TIM2 | tim2_oc3 | comp1_blk2 | |
| TIM5 | tim5_oc3 | comp1_blk3 | |
| TIM5 | tim5_oc4 | comp1_blk4 | |
| TIM8 | tim8_oc5 | comp1_blk5 | |
| TIM15 | tim15_oc2 | comp1_blk6 | |