10. Interconnect matrix

10.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, and Stop mode.

For availability of peripherals on different STM32C0 series products, refer to Section 1.5: Availability of peripherals .

10.2 Connection summary

The numbers in the following table are links to corresponding sub-sections in Section 10.3: Interconnection details . The “-” symbol in grayed cells means “no interconnection”.

Table 42. Interconnect matrix

Destination ►
Source ▼
TIM1TIM2TIM3TIM14TIM15TIM16TIM17ADC1DMAMUXIRTIM
TIM1-10.3.110.3.1----10.3.2--
TIM210.3.1-10.3.1-10.3.1--10.3.2--
TIM310.3.110.3.1--10.3.1--10.3.2--
TIM14--10.3.1-----10.3.8-
TIM1510.3.110.3.110.3.1----10.3.210.3.8-
TIM16----10.3.1----10.3.7
TIM1710.3.1---10.3.1----10.3.7
USART1---------10.3.7
USART2---------10.3.7
ADC10.3.3---------
Temp. sensor-------10.3.5--
VREFINT-------10.3.5--
HSE---10.3.4--10.3.4---
LSE-----10.3.4----
LSI-----10.3.4----
MCO---10.3.4--10.3.4---

Table 42. Interconnect matrix (continued)

Destination ►
Source ▼
TIM1TIM2TIM3TIM14TIM15TIM16TIM17ADC1DMAMUXIRTIM
MCO2---10.3.4-10.3.410.3.4---
EXTI-------10.3.210.3.2-
RTC---10.3.4------
SYST ERR10.3.6---10.3.610.3.610.3.6---

10.3 Interconnection details

10.3.1 From TIM1, TIM2, TIM3, TIM14, TIM15, and TIM17, to TIM1, TIM2, and TIM3

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 18.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 57: Advanced-control timer block diagram .

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

Relevant power modes

These interconnections operate in Run and Sleep modes.

10.3.2 From TIM1, TIM2, TIM3, TIM15, and EXTI, to ADC

Purpose

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

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

ADC synchronization is described in: Section 16.5: 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 TRG[7:0].

The connection between timers and ADC is provided in Table 68: External triggers .

Relevant power modes

These interconnections operate in Run and Sleep modes.

10.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 16.8: Analog window watchdogs .

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

Triggering signals

The output (from ADC) is on signals ADC_AWDx_OUT 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 and Sleep modes.

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

Purpose

External clocks (HSE, LSE), internal clock (LSI), microcontroller output clock (MCO and MCO2), RTC clock, 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 HSI48 or LSI, using accurate clocks such as LSE or HSE/32 for timing reference. See details in Section 6.2.14: 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 and Sleep modes.

10.3.5 From internal analog sources to ADC

Purpose

The internal temperature sensor output voltage \( V_{TS} \) and the internal reference voltage \( V_{REFINT} \) channel are connected to ADC input channels.

More information is in:

Relevant power modes

These interconnections operate in Run and Sleep modes.

10.3.6 From system errors to TIM1, TIM15, TIM16, and TIM17

Purpose

CSS, CPU HardFault, and RAM parity error can generate system errors in the form of timer break toward TIM1, TIM16, and TIM17.

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

The relevant information is in:

Relevant power modes

These interconnections operate in Run and Sleep modes.

10.3.7 From TIM16, TIM17, USART1, and USART2, to IRTIM

Purpose

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

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

Relevant power modes

These interconnections operate in Run and Sleep modes.

10.3.8 From TIM14 and EXTI 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 and Sleep modes.