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
Need help?
Do you have a question about the STM32WLEx and is the answer not in the manual?