Internal/External Clock Measurement With Tim16/Tim17; Figure 31. Frequency Measurement With Tim16 In Capture Mode; Figure 32. Frequency Measurement With Tim17 In Capture Mode - STMicroelectronics STM32WL5 Series Reference Manual

Advanced arm-based 32-bit mcus with sub-ghz radio solution
Table of Contents

Advertisement

Reset and clock control (RCC)
7.2.20

Internal/external clock measurement with TIM16/TIM17

The frequency of all on-board clock sources can be indirectly measured by mean of the
TIM16 or TIM17 channel 1 input capture, as shown in
The TIM16 input capture channel can be a GPIO line or an internal clock of the MCU. This
selection is performed through the TI1_RMP[1:0] bits in the TIM16_OR register. The
possibilities are listed below:
TIM16 channel1 is connected to the GPIO (refer to the alternate function mapping in
the device datasheets).
TIM16 channel1 is connected to the LSI clock.
TIM16 channel1 is connected to the LSE clock.
TIM16 channel1 is connected to the RTC wake-up interrupt signal. In this case the RTC
interrupt must be enabled.
302/1450

Figure 31. Frequency measurement with TIM16 in capture mode

GPIO
LSI
LSE
RTC wakeup interrupt

Figure 32. Frequency measurement with TIM17 in capture mode

GPIO
MSI
HSE/32
MCO
RM0453 Rev 5
Figure 31
TIM16
TI1_RMP[1:0]
TI1
TIM17
TI1_RMP[1:0]
TI1
RM0453
and
Figure
32.
MS33434V1
MS33435V1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32WL5 Series and is the answer not in the manual?

This manual is also suitable for:

Stm32wl55 seriesStm32wl54 series

Table of Contents