8. Interconnect matrix

8.1 Introduction

Several peripherals have direct connections between them.

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

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

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

For availability of peripherals on different STM32G0x0 products, refer to Section 1.4: Availability of peripherals .

8.2 Connection summary

Table 32. Interconnect matrix (1)(2)

SourceDestination
TIM1TIM3TIM4TIM14TIM15TIM16TIM17ADCDMAMUXIRTIM
TIM1-8.3.18.3.1----8.3.2--
TIM38.3.1---8.3.1--8.3.2--
TIM48.3.1---8.3.1--8.3.2--
TIM14-8.3.18.3.1-----8.3.8-
TIM158.3.18.3.18.3.1----8.3.2--
TIM16----8.3.1----8.3.7
TIM178.3.1---8.3.1----8.3.7
TIM6-------8.3.2--
USART1---------8.3.7
USART4---------8.3.7
ADC8.3.3---------
T. sensor-------8.3.5--
VBAT-------8.3.5--
VREFINT-------8.3.5--
HSE---8.3.4--8.3.4---
LSE-----8.3.4----
LSI-----8.3.4----
Table 32. Interconnect matrix (1)(2) (continued)
SourceDestination
TIM1TIM3TIM4TIM14TIM15TIM16TIM17ADCDMAMUXIRTIM
MCO---8.3.4--8.3.4---
MCO2---8.3.4--8.3.4---
EXTI-------8.3.2--
RTC and TAMP---8.3.4-8.3.4----
SYST ERR8.3.68.3.68.3.6-8.3.68.3.68.3.6---

1. Numbers in the table are links to corresponding sub-sections in Section 8.3: Interconnection details .

2. The “-” symbol in grayed cells means “no interconnection”.

8.3 Interconnection details

8.3.1 From TIM1, TIM3, TIM4, TIM15, TIM16, and TIM17, to TIM1, TIM3, TIM4, and TIM15

Purpose

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 16.3.19: Timer synchronization .

The modes of synchronization are detailed in:

Triggering signals

The output (from master) is on signal TIMx_TRGO (and TIMx_TRGOx), following a configurable timer event.

With TIM14, TIM16, and TIM17 timers that do not have a trigger output, the output compare 1 is used instead.

The input (to slave) is on signals TIMx_ITR0/ITR1/ITR2/ITR3.

The input and output signals for TIM1 are shown in Figure 55: Advanced-control timer block diagram .

The possible master/slave connections are given in Table 69: TIM1 internal trigger connection .

Relevant power modes

These interconnections operate in Run, Sleep, Low-power run, and Low-power sleep power modes.

8.3.2 From TIM1, TIM3, TIM4, TIM6, TIM15, and EXTI, to ADC

Purpose

The general-purpose timers TIM3, TIM4, and TIM15, basic timer TIM6, advanced-control timer TIM1, and EXTI can be used to generate an ADC triggering event.

TIMx synchronization is described in: Section 15.3.27: ADC synchronization .

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

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 Relevant power modes

These interconnections operate in Run, Sleep, Low-power run, and Low-power sleep power modes.

8.3.3 From ADC to TIM1

Purpose

ADC can provide trigger event through watchdog signals to the advanced-control timer TIM1.

A description of the ADC analog watchdog setting is provided in: Section 14.7: Analog window watchdog (AWD1EN, AWD1SGL, AWD1CH, ADC_AWDxCR, ADC_AWDxTR) .

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

Triggering signals

The output (from ADC) is on signals ADCn_AWDx_OUT n = 1 (for ADC) x = 1, 2, 3 (three watchdogs per ADC) and the input (to timer) on signal TIMx_ETR (external trigger).

Relevant power modes

This interconnection operates in Run, Sleep, Low-power run, and Low-power sleep power modes.

8.3.4

From HSE, LSE, LSI, MCO, MCO2, RTC and TAMP, to TIM14, TIM16, and TIM17

Purpose

External clocks (HSE, LSE), internal clock (LSI), microcontroller output clock (MCO and MCO2), RTC clock, RTC wakeup interrupt, and GPIO can be selected as inputs to capture channel 1 of some of TIM14/16/TIM17 timers.

The timers allow calibrating or precisely measuring internal clocks such as HSI16 or LSI, using accurate clocks such as LSE or HSE/32 for timing reference. See details in Section 5.2.15: Internal/external clock measurement with TIM14/TIM16/TIM17 .

When low-speed external (LSE) oscillator is used, no additional hardware connections are required.

Relevant power modes

These interconnections operate in Run, Sleep, Low-power run, and Low-power sleep power modes.

8.3.5

From internal analog sources to ADC

Purpose

Internal temperature sensor output voltage \( V_{TS} \) , internal reference voltage \( V_{REFINT} \) and \( V_{BAT} \) monitoring channel are connected to ADC input channels.

More information is in:

Relevant power modes

These interconnections operate in Run, Sleep, Low-power run, and Low-power sleep power modes.

8.3.6

From system errors to TIM1, TIM3, TIM4, TIM15, TIM16, and TIM17

Purpose

CSS, CPU hardfault, RAM parity error and FLASH ECC double error detection can generate system errors in the form of timer break toward TIM1, TIM3, TIM4, TIM15, TIM16, and TIM17.

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

List of possible source of break are described in:

Relevant power modes

These interconnections operate in Run, Sleep, Low-power run, and Low-power sleep power modes.

8.3.7 From TIM16, TIM17, USART1, and USART4, to IRTIM

Purpose

TIMx_OC1 output channel of TIM17 timers, associated with USART1 or USART4 transmission signal, can generate the infrared output waveform.

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

Relevant power modes

These interconnections operate in Run, Sleep, Low-power run, and Low-power sleep power modes.

8.3.8 From TIM14 to DMAMUX

Purpose

TIM14 general-purpose timer and EXTI can be used as triggering event to DMAMUX.

Relevant power modes

These interconnections operate in Run, Sleep, Low-power run, and Low-power sleep power modes.