11. Peripherals interconnect matrix

11.1 Introduction

Several peripherals have direct connections between them.

This allows autonomous communication and or synchronization between peripherals, saving CPU resources thus power supply consumption.

In addition, these hardware connections remove software latency and allow design of predictable system.

Depending on peripherals, these interconnections can operate in Run, Sleep, Low-power run and sleep, Stop 0 and Stop 1 modes.

11.2 Connection summary

Table 62. STM32G4 series peripherals interconnect matrix (1) (2)

SourceDestination
TIM1TIM2TIM3TIM4TIM5TIM6TIM7TIM8TIM15TIM16TIM17TIM20LPTIM1HRTIMADC1ADC2ADC3ADC4ADC5OPAMP1OPAMP2OPAMP3OPAMP4OPAMP5OPAMP6DAC1DAC2DAC3DAC4COMP1COMP2COMP3COMP4COMP5COMP6COMP7IRTIM
TIM1-1111--11--1-110
14
1919191919--------20-15151515151515-
TIM21-1
2
-1
2
--11--1-1101919191919------20202020151515-1515--
TIM311
2
-1
2
1
2
--11--1-1101919191919------202020201515151515-15-
TIM411
2
1
2
-1--11--1-1-1919191919------20202020--------
TIM511
2
11
2
---11--1--------------------------
TIM6--------------10
13
1919191919------20202020--------
TIM7--------------10
12
1919191919------20202020--------
TIM811111------1-1-1919191919------2020-2015151515151515-
TIM1511111----1---1101919191919------20202020---15-1515-
TIM1611111---11---112
13
1919--------------------16
TIM1711111---11---112
13
----------------------16
TIM2011111---11---1-1919191919----------15151515151515-
LPTIM1---------------1919191919------------------
HRTIM11111---11---1-1919191919------20202020--------
ADC12-2--------2--10-----------------------
ADC22-2--------2--10-----------------------
ADC32----------2-210-----------------------
ADC42----------2-210-----------------------
ADC52----------2-210-----------------------
T. Sensor---------------21---21------------------
VBAT---------------21-21-21------------------
VREFINT---------------21-212121----------23232323232323-
OPAMP1---------------21
24
----------------------
OPAMP2----------------21
24
---------------------
OPAMP3---------------21
24
21
24
21
24
--------------------
OPAMP4---------------21
24
--21
24
21
24
------------------
OPAMP5-------------------21
24
------------------
Table 62. STM32G4 series peripherals interconnect matrix (1) (2) (continued)
SourceDestination
TIM1TIM2TIM3TIM4TIM5TIM6TIM7TIM8TIM15TIM16TIM17TIM20LPTIM1HRTIMADC1ADC2ADC3ADC4ADC5OPAMP1OPAMP2OPAMP3OPAMP4OPAMP5OPAMP6DAC1DAC2DAC3DAC4COMP1COMP2COMP3COMP4COMP5COMP6COMP7IRTIM
OPAMP6--------------21
24
21
24
-21
24
-------------------
DAC1-----------------------------22
23
22
23
22
23
22
23
22
23
---
DAC2----------------------------------22
23
22
23
-
DAC3-------------------22
24
-22
24
--22
24
----22
23
22
23
22
23
22
23
----
DAC4----------------------22
24
22
24
---------22
23
22
23
22
23
-
HSE---------44--------------------------
LSE-2--4----444-------------------------
HSI16-------------------------------------
LSI----4-----44-------------------------
MCO----------44-------------------------
EXTI--------------1919191919------20202020--------
RTC----4-----44-17-----------------------
COMP12
3
4
8
9
2
3
4
5
7
2
3
4
5
2
4
5
2
4
5
--2
3
4
8
9
-3
4
8
3
4
8
2
3
4
8
9
-1710
11
----------------------
COMP22
3
4
8
9
2
3
4
5
7
2
3
4
5
2
4
5
2
4
5
--2
3
4
8
9
-3
5
8
3
8
3
8
2
3
4
8
9
1710
11
----------------------
COMP32
3
4
8
9
2
3
4
5
6
2
3
4
5
6
2
4
5
2
4
5
--2
3
4
8
9
-3
5
8
3
8
3
8
2
3
4
8
9
1710
11
----------------------
COMP42
3
4
8
9
2
3
4
5
6
2
3
4
5
2
4
5
2
4
5
--2
3
4
8
9
-3
8
3
8
3
8
2
3
4
8
9
1710
11
----------------------
COMP52
3
8
9
2
3
4
2
3
4
5
2
4
5
6
2
4
5
--2
3
8
9
-3
4
8
3
8
3
4
8
2
3
8
9
-10
11
----------------------

Table 62. STM32G4 series peripherals interconnect matrix (1) (2) (continued)

SourceDestination
TIM1TIM2TIM3TIM4TIM5TIM6TIM7TIM8TIM15TIM16TIM17TIM20LPTIM1HRTIMADC1ADC2ADC3ADC4ADC5OPAMP1OPAMP2OPAMP3OPAMP4OPAMP5OPAMP6DAC1DAC2DAC3DAC4COMP1COMP2COMP3COMP4COMP5COMP6COMP7IRTIM
COMP623
8
9
3
5
23
4
5
24
5
24
5
--23
8
9
35
8
35
8
-23
38
9
-10
11
-----------------------
COMP723
8
9
3223
4
5
24
5
24
5
--23
48
9
35
8
33
8
33
8
23
38
9
-10
11
-----------------------
SYST ERR18------1818181818-18-----------------------
  1. 1. Numbers inside table link to corresponding interconnect number detailed in Section 11.3: Interconnection details .
  2. 2. The “-” symbol in grayed cells means no interconnect.

11.3 Interconnection details

11.3.1 From timer (TIMx, HRTIM) to timer (TIMx)

Table 63. Interconnect 1

Timer input trigger signalTimer input trigger source assignment
TIM1TIM2TIM3TIM4TIM5TIM8TIM15TIM20
timx_itr0-tim1_trgotim1_trgotim1_trgotim1_trgotim1_trgotim1_trgotim1_trgo
timx_itr1tim2_trgo-tim2_trgotim2_trgotim2_trgotim2_trgotim2_trgotim2_trgo
timx_itr2tim3_trgotim3_trgo-tim3_trgotim3_trgotim3_trgotim3_trgotim3_trgo
timx_itr3tim4_trgotim4_trgotim4_trgo-tim4_trgotim4_trgotim4_trgotim4_trgo
timx_itr4tim5_trgotim5_trgotim5_trgotim5_trgo-tim5_trgotim5_trgotim5_trgo
timx_itr5tim8_trgotim8_trgotim8_trgotim8_trgotim8_trgo-tim8_trgotim8_trgo
timx_itr6tim15_trgotim15_trgotim15_trgotim15_trgotim15_trgotim15_trgo-tim15_trgo
timx_itr7tim16_octim16_octim16_octim16_octim16_octim16_ocxtim16_octim16_oc
timx_itr8tim17_octim17_octim17_octim17_octim17_octim17_octim17_octim17_oc
timx_itr9tim20_trgotim20_trgotim20_trgotim20_trgotim20_trgotim20_trgotim20_trgo-
timx_itr10hrtim_out_
scout2
hrtim_out_
scout2
hrtim_out_
scout2
hrtim_out_
scout2
hrtim_out_
scout2
hrtim_out_
scout2
hrtim_out_
scout2
hrtim_out_
scout2

The HRTIM burst operation can be triggered by on chip event coming from other general purpose timer.

The burst mode controller counter can be clocked by general purpose timers as well as shown in the Table 64 .

Table 64. Interconnect 12

HRTIM Burst mode trigger event/ clock signalHRTIM Burst mode trigger event/ clock signal assignment
hrtim_bm_trgtim7_trgo
hrtim_bm_ck1tim16_oc
hrtim_bm_ck2tim17_oc
hrtim_bm_ck3tim7_trgo'

Table 65. Interconnect 13

HRTIM update enable signalHRTIM update enable assignment
hrtim_upd_en1tim16_oc
hrtim_upd_en2tim17_oc
hrtim_upd_en3tim6_oc

The HRTIM can be synchronized by external sources as shown in the Table 66 .

Table 66. Interconnect 14

HRTIM synchronization signalsHRTIM synchronization signal assignment
hrtim_in_sync2tim1_trgo
hrtim_in_sync3HRTIM_SCIN

Some of the TIMx timers are linked together internally for timer 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 feature is provided in: Section 29.3.30: Timer synchronization .

The modes of synchronization are detailed in:

Triggering signals

The output (from Master) is on signal TIMx_TRGO (and TIMx_TRGO2 for TIM1/TIM8/TIM20) following a configurable timer event.

The input (to slave) is on signals TIMx_ITRx

The input and output signals for TIM1/TIM8/TIM20 are shown in Figure 296: Advanced-control timer block diagram .

The possible master/slave connections are given in:

Active power mode

Run, Sleep, Low-power run, Low-power sleep.

11.3.2 From timer (TIMx, HRTIM) and EXTI to ADC (ADCx)

Table 67. Interconnect 19

ADC trigger selection
EXTSEL[4:0] or
JEXTSEL[4:0]
ADC triggers signals assignment
ADC1/2ADC3/4/5
RegularInjectedRegularInjected
0tim1_cc1tim1_trgotim3_cc1tim1_trgo
1tim1_cc2tim1_cc4tim2_cc3tim1_cc4
2tim1_cc3tim2_trgotim1_cc3tim2_trgo
3tim2_cc2tim2_cc1tim8_cc1tim8_cc2
4tim3_trgotim3_cc4tim3_trgotim4_cc3
5tim4_cc4tim4_trgoexti2tim4_trgo
6exti11exti15tim4_cc1tim4_cc4
7tim8_trgotim8_cc4tim8_trgotim8_cc4
8tim8_trgo2tim1_trgo2tim8_trgo2tim1_trgo2
9tim1_trgotim8_trgotim1_trgotim8_trgo
10tim1_trgo2tim8_trgo2tim1_trgo2tim8_trgo2
11tim2_trgotim3_cc3tim2_trgotim1_cc3
12tim4_trgotim3_trgotim4_trgotim3_trgo
13tim6_trgotim3_cc1tim6_trgoexti3
14tim15_trgotim6_trgotim15_trgotim6_trgo
15tim3_cc4tim15_trgotim2_cc1tim15_trgo
16tim20_trgotim20_trgotim20_trgotim20_trgo
17tim20_trgo2tim20_trgo2tim20_trgo2tim20_trgo2
18tim20_cc1tim20_cc4tim20_cc1tim20_cc2
19tim20_cc2hrtim_adc_trg2hrtim_adc_trg2hrtim_adc_trg2

Table 67. Interconnect 19 (continued)

ADC trigger selection
EXTSEL[4:0] or
JEXTSEL[4:0]
ADC triggers signals assignment
ADC1/2ADC3/4/5
RegularInjectedRegularInjected
20tim20_cc3hrtim_adc_trg4hrtim_adc_trg4hrtim_adc_trg4
21hrtim_adc_trg1hrtim_adc_trg5hrtim_adc_trg1hrtim_adc_trg5
22hrtim_adc_trg3hrtim_adc_trg6hrtim_adc_trg3hrtim_adc_trg6
23hrtim_adc_trg5hrtim_adc_trg7hrtim_adc_trg5hrtim_adc_trg7
24hrtim_adc_trg6hrtim_adc_trg8hrtim_adc_trg6hrtim_adc_trg8
25hrtim_adc_trg7hrtim_adc_trg9hrtim_adc_trg7hrtim_adc_trg9
26hrtim_adc_trg8hrtim_adc_trg10hrtim_adc_trg8hrtim_adc_trg10
27hrtim_adc_trg9TIM16_CC1hrtim_adc_trg9hrtim_adc_trg1
28hrtim_adc_trg10-hrtim_adc_trg10hrtim_adc_trg3
29lptim_outlptim_outlptim_outlptim_out
30tim7_trgotim7_trgotim7_trgotim7_trgo
31----

Timers (TIMx, HRTIM) can be used to generate an ADC triggering event.

TIMx synchronization is described in: Section 29.3.31: ADC triggers (TIM1/TIM8).

ADC synchronization is described in: Section 21.4.18: Conversion on external trigger and trigger polarity (EXTSEL, EXTEN, JEXTSEL, JEXTEN) .

Triggering signals

The output (from timer) is on signal TIMx_TRGO, TIMx_TRGO2 or TIMx_CCx event.

The input (to ADC) is on signal EXT[15:0], JEXT[15:0].

The connection between timers and ADC is provided in:

Active power mode

Run, Sleep, Low-power run, Low-power sleep.

11.3.3 From ADC (ADCx) to timer (TIMx, HRTIM)

See please Table 75: Interconnect 2 and Table 83: Interconnect 10

ADCs Analog watchdogs are connected to TIM1/8/20 for digital power applications (cycle-by-cycle current regulation with ADC).

A description of the ADC analog watchdog setting is provided in: Section 21.4.28: Analog window watchdog (AWD1EN, JAWD1EN, AWD1SGL, AWD1CH, AWD2CH, AWD3CH, AWD_HTx, AWD_LTx, AWDx) .

Trigger settings on the timer are provided in: Section 29.3.6: External trigger input .

Triggering signals

The output (from ADC) is on signals ADCn_AWDx_OUT and the input (to timer) on signal TIMx_ETR (external trigger) or hrtim_eevx[4:1].

Active power mode

Run, Sleep, Low-power run, Low-power sleep.

11.3.4 From timer (TIMx, HRTIM) and EXTI to DAC (DACx)

Table 68. Interconnect 20

DAC trigger selection (TSELx[3:0], STRSTTRIG SELx[3:0])DAC triggers signals assignment
DAC1DAC2DAC3DAC4
Update/resetIncUpdate/resetIncUpdate/resetIncUpdate/resetInc
0sw-sw-sw-sw-
1tim8_trgotim8_trgotim8_trgotim8_trgotim1_trgotim1_trgotim8_trgotim8_trgo
2tim7_trgotim7_trgotim7_trgotim7_trgotim7_trgotim7_trgotim7_trgotim7_trgo
3tim15_trgotim15_trgotim15_trgotim15_trgotim15_trgotim15_trgotim15_trgotim15_trgo
4tim2_trgotim2_trgotim2_trgotim2_trgotim2_trgotim2_trgotim2_trgotim2_trgo
5tim4_trgotim4_trgotim4_trgotim4_trgotim4_trgotim4_trgotim4_trgotim4_trgo
6exti9exti10exti9exti10exti9exti10exti9exti10
7tim6_trgotim6_trgotim6_trgotim6_trgotim6_trgotim6_trgotim6_trgotim6_trgo
8tim3_trgotim3_trgotim3_trgotim3_trgotim3_trgotim3_trgotim3_trgotim3_trgo
9hrtim_dac_reset_trg1hrtim_step_trig1hrtim_dac_reset_trg1hrtim_step_trig1hrtim_dac_reset_trg1hrtim_step_trig1hrtim_dac_reset_trg1hrtim_step_trig1
10hrtim_dac_reset_trg2hrtim_step_trig2hrtim_dac_reset_trg2hrtim_step_trig2hrtim_dac_reset_trg2hrtim_step_trig2hrtim_dac_reset_trg2hrtim_step_trig2
11hrtim_dac_reset_trg3hrtim_step_trig3hrtim_dac_reset_trg3hrtim_step_trig3hrtim_dac_reset_trg3hrtim_step_trig3hrtim_dac_reset_trg3hrtim_step_trig3

Table 68. Interconnect 20 (continued)

DAC trigger selection (TSELx[3:0], STRSTTRIG SELx[3:0])DAC triggers signals assignment
DAC1DAC2DAC3DAC4
Update/resetIncUpdate/resetIncUpdate/resetIncUpdate/resetInc
12hrtim_dac_reset_trg4hrtim_step_trig4hrtim_dac_reset_trg4hrtim_step_trig4hrtim_dac_reset_trg4hrtim_step_trig4hrtim_dac_reset_trg4hrtim_step_trig4
13hrtim_dac_reset_trg5hrtim_step_trig5hrtim_dac_reset_trg5hrtim_step_trig5hrtim_dac_reset_trg5hrtim_step_trig5hrtim_dac_reset_trg5hrtim_step_trig5
14hrtim_dac_reset_trg6hrtim_step_trig6hrtim_dac_reset_trg6hrtim_step_trig6hrtim_dac_reset_trg6hrtim_step_trig6hrtim_dac_reset_trg6hrtim_step_trig6
15hrtim_dac_trg1-hrtim_dac_trg2-hrtim_dac_trg3-hrtim_dac_trg1-

Timers (TIMx, HRTIM) and EXTI can be used as triggering event to start a DAC conversion.

Triggering signals

The output (from timer) is on signal TIMx_TRGO directly connected to corresponding DAC inputs.

Selection of input triggers on DAC is provided in Section 22.4.7: DAC trigger selection (single and dual mode).

Active power mode

Run, Sleep, Low-power run, Low-power sleep.

11.3.5 From HSE, LSE, LSI, HSI16, MCO, RTC to timer (TIMx)

See please Table 77: Interconnect 4 and Table 75: Interconnect 2

External clocks (HSE, LSE), internal clocks (LSI, HSI16), microcontroller output clock (MCO), GPIO and RTC wakeup interrupt can be used as input to timer (TIMx).

This allows to calibrate the HSI16 and precisely measure the LSI oscillator frequency.

When Low Speed External (LSE) oscillator is used, no additional hardware connections are required.

This feature is described in Section 7.2.16: Internal/external clock measurement with TIM5/TIM15/TIM16/TIM17 .

Active power mode

Run, Sleep, Low-power run, Low-power sleep.

11.3.6 From RTC, COMPx to low-power timer (LPTIM1)

Table 69. Interconnect 17

LPTIM trigger input signal (TRIGSEL[3:0])LPTIM1 trigger source assignment
lptim1_ext_trig0LPTIM1_ETR
lptim1_ext_trig1rtc_alra_trg
lptim1_ext_trig2rtc_alrb_trg
lptim1_ext_trig3RTC_TAMP1
lptim1_ext_trig4RTC_TAMP2
lptim1_ext_trig5RTC_TAMP3
lptim1_ext_trig6comp1_out
lptim1_ext_trig7comp2_out
lptim1_ext_trig8comp3_out
lptim1_ext_trig9comp4_out
lptim1_ext_trig10comp5_out
lptim1_ext_trig11comp6_out
lptim1_ext_trig12comp7_out

RTC alarm A/B, RTC_TAMP1/2/3 input detection, COMPx_OUT can be used as trigger to start LPTIM counters (LPTIM1).

Triggering signals

This trigger feature is described in Section 33.4.6: Trigger multiplexer (and following sections).

The input selection is described in Table 327: LPTIM1 external trigger connection .

Active power mode

Run, Sleep, Low-power run, Low-power sleep, Stop 0, Stop 1.

11.3.7 From timer (TIMx) to comparators (COMPx)

Table 70. Interconnect 15

Comparator blanking signal BLANKSEL[2:0]Comparator blanking source assignment
COMP1COMP2COMP3COMP4COMP5COMP6COMP7
1tim1_oc5tim1_oc5tim1_oc5tim3_oc4tim2_oc3tim8_oc5tim1_oc5
2tim2_oc3tim2_oc3tim3_oc3tim8_oc5tim8_oc5tim2_oc4tim8_oc5
3tim3_oc3tim3_oc3tim2_oc4tim15_oc1tim3_oc3tim15_oc2tim3_oc3
4tim8_oc5tim8_oc5tim8_oc5tim1_oc5tim1_oc5tim1_oc5tim15_oc2
5tim20_oc5tim20_oc5tim20_oc5tim20_oc5tim20_oc5tim20_oc5tim20_oc5
6tim15_oc1tim15_oc1tim15_oc1tim15_oc1tim15_oc1tim15_oc1tim15_oc1
7tim4_oc3tim4_oc3tim4_oc3tim4_oc3tim4_oc3tim4_oc3tim4_oc3

Timers (TIMx) can be used as blanking window to COMPx (x = 1...7)

The blanking function is described in Section 24.3.6: COMP output blanking .

The blanking sources are given in comparators control and status register (COMP_CxCSR) bits BLANKSEL[2:0].

Triggering signals

Timer output signal TIMx_Ocx are the inputs to blanking source of COMPx.

Active power mode

Run, Sleep, Low-power run, Low-power sleep.

11.3.8 From internal analog source to ADC (ADCx), comparator (COMPx) and OPAMP (OPAMPx)

Table 71 provides the ADC channels mapping on GPIOs or internal connections to temperature sensor (VTS), internal reference voltage VREFINT, VBAT/3 or opampint_vout.

Table 71. Interconnect 21

ADC channel numberADC channel source assignment
ADC1ADC2ADC3ADC4ADC5
IN0-----
IN1PA0PA0PB1/OPAMP3_VOUTPE14PA8/OPAMP5_VOUT
IN2PA1PA1PE9PE15PA9
IN3PA2/OPAMP1_VOUTPA6/OPAMP2_VOUTPE13PB12/OPAMP4_VOUTopamp5_int_vout (1)
IN4PA3PA7PE7PB14Temp sensor

Table 71. Interconnect 21 (continued)

ADC channel numberADC channel source assignment
ADC1ADC2ADC3ADC4ADC5
IN5PB14PC4PB13PB15opamp4_int_vout (1)
IN6PC0PC0PE8PE8PE8
IN7PC1PC1PD10PD10PD10
IN8PC2PC2PD11PD11PD11
IN9PC3PC3PD12PD12PD12
IN10PF0PF1PD13PD13PD13
IN11PB12/OPAMP4_VOUTPC5PD14PD14PD14
IN12PB1/OPAMP3_VOUTPB2PB0PD8PD8
IN13opamp1_int_vout (1)PA5opamp3_int_vout (1)PD9PD9
IN14PB11/OPAMP6_VOUTPB11/OPAMP6_VOUTPE10PE10PE10
IN15PB0PB15PE11PE11PE11
IN16Temp sensoropamp2_int_vout (1)PE12PE12PE12
IN17V BAT /3PA4V BAT /3 (2)
opamp6_int_vout (1)(3)
opamp6_int_vout (1)V BAT /3
IN18V REFINTopamp3_int_vout (1)V REFINTV REFINTV REFINT
  1. 1. Internal OPAMP output connected directly to ADC input only (no available externally on a pin).
  2. 2. For Category 3 devices only.
  3. 3. For Category 4 devices only.

The DAC outputs are available on GPIOs or can be internally connected to comparators and operational amplifiers.

Table 72. Interconnect 22

DestinationSource
DAC1DAC2DAC3DAC4
CH1CH2CH1CH1CH2CH1CH2
GPIOPA4PA5PA6----
COMP1x--x---
COMP2-x--x--

Table 72. Interconnect 22 (continued)

DestinationSource
DAC1DAC2DAC3DAC4
CH1CH2CH1CH1CH2CH1CH2
COMP3X--X---
COMP4X---X--
COMP5-X---X-
COMP6--X---X
COMP7--X--X-
OPAMP1---X---
OPAMP2-------
OPAMP3----X--
OPAMP4-----X-
OPAMP5------X
OPAMP6---X---

Table 73. Interconnect 23

Comparator input/output signalsComparators input/output signals assignment
GPIODAC output (1)VREFINT scaler
COMP1INPPA1PB1---------
INMPA0PA4---DAC1_CH1 PA4DAC3_CH1VREF INT3/4 VREF INT1/2 VREF INT1/4 VREF INT
OUTPA0PF4PA6PA11PB8------
COMP2INPPA3PA7---------
INMPA2PA5---DAC1_CH2 PA5DAC3_CH2VREF INT3/4 VREF INT1/2 VREF INT1/4 VREF INT
OUTPA2PA7PA12PB9-------
COMP3INPPC1PA0---------
INMPC0PF1---DAC1_CH1 PA4DAC3_CH1VREF INT3/4 VREF INT1/2 VREF INT1/4 VREF INT
OUTPC2PB7PB15--------

Table 73. Interconnect 23 (continued)

Comparator input/output signalsComparators input/output signals assignment
GPIODAC output (1)VREFINT scaler
COMP4INPPB0PE7---------
INMPB2PE8---DAC1_CH1
PA4
DAC3_CH2VREF INT3/4 VREF INT1/2 VREF INT1/4 VREF INT
OUTPB1PB6PB14--------
COMP5INPPD12PB13---------
INMPD13PB10---DAC1_CH2
PA5
DAC4_CH1VREF INT3/4 VREF INT1/2 VREF INT1/4 VREF INT
OUTPC7PA9---------
COMP6INPPD11PB11---------
INMPD10PB15---DAC2_CH1
PA6
DAC4_CH2VREF INT3/4 VREF INT1/2 VREF INT1/4 VREF INT
OUTPC6PA10---------
COMP7INPPD14PB14---------
INMPD15PB12---DAC2_CH1
PA6
DAC4_CH1VREF INT3/4 VREF INT1/2 VREF INT1/4 VREF INT
OUTPC8PA8---------

1. It is an internal connection.

Table 74. Interconnect 24

Operational amplifier input/output signalsOperational amplifier input/output signals assignment
GPIODAC outputADC input on GPIOADC internal input
OPAMP1VINPPA1PA3PA7-DAC3_CH1--
VINMPA3PC5-----
VOUTPA2----ADC1_IN3ADC1_IN13
OPAMP2VINPPA7PB14PB0PD14---
VINMPA5PC5-----
VOUTPA6----ADC2_IN3ADC2_IN16
OPAMP3VINPPB0PB13PA1-DAC3_CH2--
VINMPB2PB10-----
VOUTPB1----ADC3_IN1/
ADC1_IN12
ADC2_IN18/
ADC3_IN13

Table 74. Interconnect 24 (continued)

Operational amplifier input/output signalsOperational amplifier input/output signals assignment
GPIODAC outputADC input on GPIOADC internal input
OPAMP4VINPPB13PD11PB11-DAC4_CH1--
VINMPB10PD8-----
VOUTPB12----ADC4_IN3/
ADC1_IN11
ADC5_IN5
OPAMP5VINPPB14PD12PC3-DAC4_CH2--
VINMPB15PA3-----
VOUTPA8----ADC5_IN1ADC5_IN3
OPAMP6VINPPB12PD9PB13-DAC3_CH1--
VINMPA1PB1-----
VOUTPB11----ADC12_IN14ADC4_IN17

Active power mode

Run, Sleep, Low-power run, Low-power sleep.

11.3.9 From comparators (COMPx) to timers (TIMx, HRTIM)

Comparators (COMPx) output values can be connected to:

Comparators (COMPx) output values can also generate break input signals for timers (TIMx) see Section 30.3.17: Bidirectional break inputs.

Table 75. Interconnect 2

Timer external trigger input signalTimer external trigger signals assignment
TIM1TIM2TIM3TIM4TIM5TIM8TIM20
timx_etr0TIM1_ETRTIM2_ETRTIM3_ETRTIM4_ETRTIM5_ETRTIM8_ETRTIM20_ETR
timx_etr1comp1_outcomp1_outcomp1_outcomp1_outcomp1_outcomp1_outcomp1_out
timx_etr2comp2_outcomp2_outcomp2_outcomp2_outcomp2_outcomp2_outcomp2_out
timx_etr3comp3_outcomp3_outcomp3_outcomp3_outcomp3_outcomp3_outcomp3_out
timx_etr4comp4_outcomp4_outcomp4_outcomp4_outcomp4_outcomp4_outcomp4_out
timx_etr5comp5_outcomp5_outcomp5_outcomp5_outcomp5_outcomp5_outcomp5_out

Table 75. Interconnect 2 (continued)

Timer external trigger input signalTimer external trigger signals assignment
TIM1TIM2TIM3TIM4TIM5TIM8TIM20
timx_etr6comp6_outcomp6_outcomp6_outcomp6_outcomp6_outcomp6_outcomp6_out
timx_etr7comp7_outcomp7_outcomp7_outcomp7_outcomp7_outcomp7_outcomp7_out
timx_etr8adc1_awd1tim3_etrtim2_etrtim3_etrtim2_etradc2_awd1adc3_awd1
timx_etr9adc1_awd2tim4_etrtim4_etrtim5_etrtim3_etradc2_awd2adc3_awd2
timx_etr10adc1_awd3tim5_etr---adc2_awd3adc3_awd3
timx_etr11adc4_awd1lse_css_outadc2_awd1--adc3_awd1adc5_awd1
timx_etr12adc4_awd2-adc2_awd2--adc3_awd2adc5_awd2
timx_etr13adc4_awd3-adc2_awd3--adc3_awd3adc5_awd3

Table 76. Interconnect 3

Timer OCREF clear signalTimer OCREF clear signals assignment
TIM1TIM2TIM3TIM8TIM15TIM16TIM17TIM20
timx_ocref_clr0comp1_outcomp1_outcomp1_outcomp1_outcomp1_outcomp1_outcomp1_outcomp1_out
timx_ocref_clr1comp2_outcomp2_outcomp2_outcomp2_outcomp2_outcomp2_outcomp2_outcomp2_out
timx_ocref_clr2comp3_outcomp3_outcomp3_outcomp3_outcomp3_outcomp3_outcomp3_outcomp3_out
timx_ocref_clr3comp4_outcomp4_outcomp4_outcomp4_outcomp4_outcomp4_outcomp4_outcomp4_out
timx_ocref_clr4comp5_outcomp5_outcomp5_outcomp5_outcomp5_outcomp5_outcomp5_outcomp5_out
timx_ocref_clr5comp6_outcomp6_outcomp6_outcomp6_outcomp6_outcomp6_outcomp6_outcomp6_out
timx_ocref_clr6comp7_outcomp7_outcomp7_outcomp7_outcomp7_outcomp7_outcomp7_outcomp7_out

Table 77. Interconnect 4

Timer
TI1
input
signal
Timer TI1 signals assignment
TIM1TIM2TIM3TIM4TIM5TIM8TIM15TIM16TIM17TIM20
timx_
ti1_in0
TIM1
external
TI1 input
pins
TIM2
external
TI1 input
pins
TIM3
external
TI1 input
pins
TIM4
external
TI1 input
pins
TIM5
external
TI1 input
pins
TIM8
external
TI1 input
pins
TIM15
external
TI1 input
pins
TIM16
external
TI1 input
pins
TIM17
external
TI1 input
pins
TIM20
external
TI1 input
pins
timx_
ti1_in1
comp1_
out
comp1_
out
comp1_
out
comp1_
out
LSIcomp1_
out
lse_
css_out
comp6_
out
comp5_
out
comp1_
out
timx_
ti1_in2
comp2_
out
comp2_
out
comp2_
out
comp2_
out
lse_
css_out
comp2_
out
comp1_
out
MCOMCOcomp2_
out
timx_
ti1_in3
comp3_
out
comp3_
out
comp3_
out
comp3_
out
rtc_
Wakeup
comp3_
out
comp2_
out
HSE_Di
v32
HSE_Di
v32
comp3_
out
timx_
ti1_in4
comp4_
out
comp4_
out
comp4_
out
comp4_
out
comp1_
out
comp4_
out
comp5_
out
rtc_
Wakeup
rtc_
Wakeup
comp4_
out
timx_
ti1_in5
-comp5_
out
comp5_
out
comp5_
out
comp2_
out
-comp7_
out
lse_
css_out
lse_
css_out
-
timx_
ti1_in6
--comp6_
out
comp6_
out
comp3_
out
--LSILSI-
timx_
ti1_in7
--comp7_
out
comp7_
out
comp4_
out
-----
timx_
ti1_in8
----comp5_
out
-----
timx_
ti1_in9
----comp6_
out
-----
timx_
ti1_in10
----comp7_
out
-----

Table 78. Interconnect 5

Timer TI2 input signalTimer TI2 signals assignment
TIM1TIM2TIM3TIM4TIM5TIM8TIM15TIM20
timx_ti2_in0TIM1 external TI2 input pinsTIM2 external TI2 input pinsTIM3 external TI2 input pinsTIM4 external TI2 input pinsTIM5 external TI2 input pinsTIM8 external TI2 input pinsTIM15 external TI2 input pinsTIM20 external TI2 input pins
timx_ti2_in1-comp1_outcomp1_outcomp1_outcomp1_out-comp2_out-
timx_ti2_in2-comp2_outcomp2_outcomp2_outcomp2_out-comp3_out-
timx_ti2_in3-comp3_outcomp3_outcomp3_outcomp3_out-comp6_out-
timx_ti2_in4-comp4_outcomp4_outcomp4_outcomp4_out-comp7_out-
timx_ti2_in5-comp6_outcomp5_outcomp5_outcomp5_out---
timx_ti2_in6--comp6_outcomp6_outcomp6_out---
timx_ti2_in7--comp7_outcomp7_outcomp7_out---

Table 79. Interconnect 6

Timer TI3 input signalTimer TI3 signals assignment
TIM1TIM2TIM3TIM4TIM5TIM8TIM20
timx_ti3_in0TIM1 external TI3 input pinsTIM2 external TI3 input pinsTIM3 external TI3 input pinsTIM4 external TI3 input pinsTIM5 external TI3 input pinsTIM8 external TI3 input pinsTIM20 external TI3 input pins
timx_ti3_in1-comp4_outcomp3_outcomp5_out---

Table 80. Interconnect 7

Timer TI4 input signalTimer TI4 signals assignment
TIM1TIM2TIM3TIM4TIM5TIM8TIM20
timx_ti4_in0TIM1 external TI4 input pinsTIM2 external TI4 input pinsTIM3 external TI4 input pinsTIM4 external TI4 input pinsTIM5 external TI4 input pinsTIM8 external TI4 input pinsTIM20 external TI4 input pins
timx_ti4_in1-comp1_out-comp6_out---
timx_ti4_in2-comp2_out-----

The timer break input features two channels:

Refer to Table 81 , Table 82 and Table 85 .

Table 81. Interconnect 8

Timer break signals assignment
TIM1 break
(tim1_bk)
TIM8 break
(tim8_bk)
TIM15 break
(tim15_bk)
TIM16 break
(tim16_bk)
TIM17 break
(tim17_bk)
TIM20 break
(tim20_bk)
Timer break signal sourcesTIM1_BKIN pinTIM8_BKIN pinTIM15_BKIN pinTIM16_BKIN pinTIM17_BKIN pinTIM20_BKIN pin
comp1_outcomp1_outcomp1_outcomp1_outcomp1_outcomp1_out
comp2_outcomp2_outcomp2_outcomp2_outcomp2_outcomp2_out
comp3_outcomp3_outcomp3_outcomp3_outcomp3_outcomp3_out
comp4_outcomp4_outcomp4_outcomp4_outcomp4_outcomp4_out
comp5_outcomp5_outcomp5_outcomp5_outcomp5_outcomp5_out
comp6_outcomp6_outcomp6_outcomp6_outcomp6_outcomp6_out
comp7_outcomp7_outcomp7_outcomp7_outcomp7_outcomp7_out

Table 82. Interconnect 9

Timer break2 signals assignment
TIM1 break2
(tim1_bk2)
TIM8 break2
(tim8_bk2)
TIM20 break2
(tim20_bk2)
Timer break2 signal sourceTIM1_BKIN2 pinTIM8_BKIN2 pinTIM20_BKIN2 pin
comp1_outcomp1_outcomp1_out
comp2_outcomp2_outcomp2_out
comp3_outcomp3_outcomp3_out
comp4_outcomp4_outcomp4_out
comp5_outcomp5_outcomp5_out
comp6_outcomp6_outcomp6_out
comp7_outcomp7_outcomp7_out

Table 83. Interconnect 10

HRTIM external event input signalHRTIM external event signal assignment
EExSRC[1:0]=0
(from GPIO pin)
EExSRC[1:0]=1EExSRC[1:0]=2EExSRC[1:0]=3
hrtim_eev1[4:1]HRTIM_EEV1comp2_outtim1_trgoadc1_AWD1
hrtim_eev2[4:1]HRTIM_EEV2comp4_outtim2_trgoadc1_AWD2
hrtim_eev3[4:1]HRTIM_EEV3comp6_outtim3_trgoadc1_AWD3
hrtim_eev4[4:1]HRTIM_EEV4comp1_outcomp5_outadc2_AWD1
hrtim_eev5[4:1]HRTIM_EEV5comp3_outcomp7_outadc2_AWD2
hrtim_eev6[4:1]HRTIM_EEV6comp2_outcomp1_outadc2_AWD3
hrtim_eev7[4:1]HRTIM_EEV7comp4_outtim7_trgoadc3_AWD1
hrtim_eev8[4:1]HRTIM_EEV8comp6_outcomp3_outadc4_AWD1
hrtim_eev9[4:1]HRTIM_EEV9comp5_outtim15_trgocomp4_out
hrtim_eev10[4:1]HRTIM_EEV10comp7_outtim6_trgoadc5_AWD1

Table 84. Interconnect 11

Fault channelExternal Input
FLTxSRC[1:0] = 00
On-chip source
FLTxSRC[1:0] = 01
External Input
FLTxSRC[1:0] = 10
On-chip source
FLTxSRC[1:0] = 11
hrtim_flt1[4:1]HRTIM_FLT1comp2_outEEV1_muxoutN/A
hrtim_flt2[4:1]HRTIM_FLT2comp4_outEEV2_muxoutN/A
hrtim_flt3[4:1]HRTIM_FLT3comp6_outEEV3_muxoutN/A
hrtim_flt4[4:1]HRTIM_FLT4comp1_outEEV4_muxoutN/A
hrtim_flt5[4:1]HRTIM_FLT5comp3_outEEV5_muxoutN/A
hrtim_flt6[4:1]HRTIM_FLT6comp5_outEEV6_muxoutN/A

Active power mode

Run, Sleep, Low-power run, Low-power sleep.

11.3.10 From system errors to timers (TIMx) and HRTIM

TIMx (TIM1/TIM8/TIM20/TIM15/TIM16/TIM17) break inputs and HRTIM system fault input gather MCU internal fault events coming from:

The purpose of the break function is to protect power switches driven by PWM signals generated by the timers.

The functionality is described in:

Active power mode

Run, Sleep, Low-power run, Low-power sleep.

Table 85. Interconnect 18

System error signal sourceSystem error signals to timer signals assignment
TIM1TIM8TIM15TIM16TIM17TIM20HRTIM
Flash ECC error
PVD output
SRAM1/
CCM SRAM parity
tim1_bktim8_bktim15_bktim16_bktim17_bktim20_bkhrtim_sys_flt
Cortex®-M4 Lockup
(hardfault)
Clock security system (CSS)

11.3.11 From timers (TIM16/TIM17) to IRTIM

Table 86. Interconnect 16

IRTIM control signalIRTIM control signals assignment
modulation envelope signaltim16_oc1
carrier signaltim17_oc1

General-purpose timer (TIM16/TIM17) output channel TIMx_OC1 are used to generate the waveform of infrared signal output.

The functionality is described in Section 34: Infrared interface (IRTIM) .

Active power mode

Run, Sleep, Low-power run, Low-power sleep.