Figure 25. Frequency Measurement With Tim16 In Capture Mode; Figure 26. Frequency Measurement With Tim17 In Capture Mode - STMicroelectronics STM32WLEx Reference Manual

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

Advertisement

Reset and clock control (RCC)
6.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 wakeup interrupt signal. In this case the RTC
interrupt must be enabled.
246/1306

Figure 25. Frequency measurement with TIM16 in capture mode

GPIO
LSI
LSE
RTC wakeup interrupt

Figure 26. Frequency measurement with TIM17 in capture mode

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

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

Table of Contents