Figure 233. Control Circuit In Normal Mode, Internal Clock Divided By 1; Figure 234. Ti2 External Clock Connection Example - STMicroelectronics STM32WLEx Reference Manual

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

Advertisement

General-purpose timers (TIM16/TIM17)
Figure 233
without prescaler.

Figure 233. Control circuit in normal mode, internal clock divided by 1

Counter initialization (internal)
Counter clock = CK_CNT = CK_PSC
Counter register
External clock source mode 1
This mode is selected when SMS=111 in the TIMx_SMCR register. The counter can count at
each rising or falling edge on a selected input.
TI2[0]
Filter
TI2[1..15]
ICF[3:0]
TIMx_CCMR1
For example, to configure the upcounter to count in response to a rising edge on the TI2
input, use the following procedure:
800/1306
shows the behavior of the control circuit and the upcounter in normal mode,
Internal clock
CEN=CNT_EN
UG
31

Figure 234. TI2 external clock connection example

TI2F_Rising
Edge
detector
TI2F_Falling
CC2P
TIMx_CCER
3 2
33
34
35 36
TIMx_SMCR
TS[4:0]
ITRx
000xx
TI1_ED
00100
TI1FP1
00101
0
TI2FP2
00110
1
(internal clock)
RM0461 Rev 5
00
01
02
03 04 05
TRGI
External clock
mode 1
CK_INT
Internal clock
mode
SMS[2:0]
TIMx_SMCR
RM0461
06
07
MSv31085V3
CK_PSC
MSv40935V1

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?

Table of Contents