
RM0008
General-purpose timers (TIM9 to TIM14)
Doc ID 13902 Rev 12
409/1096
16.2
TIM9 to TIM14 main features
16.2.1
TIM9/TIM12 main features
The features of the TIM9/TIM12 general-purpose timers include:
●
16-bit auto-reload upcounter
●
16-bit programmable prescaler used to divide the counter clock frequency by any factor
between 1 and 65535 (can be changed “on the fly”)
●
Up to 2 independent channels for:
–
Input capture
–
Output compare
–
PWM generation (edge-aligned mode)
–
One-pulse mode output
●
Synchronization circuit to control the timer with external signals and to interconnect
several timers together
●
Interrupt generation on the following events:
–
Update: counter overflow, counter initialization (by software or internal trigger)
–
Trigger event (counter start, stop, initialization or count by internal trigger)
–
Input capture
●
Output compare
Figure 146. General-purpose timer block diagram (TIM9 and TIM12)
A
u
to-relo
a
d regi
s
ter
C
a
pt
u
re/Comp
a
re 1 regi
s
ter
C
a
pt
u
re/Comp
a
re 2 regi
s
ter
U
U
U
CC1I
CC2I
Trigger
controller
S
top, Cle
a
r
TI1FP1
TI2FP2
ITR0
ITR1
ITR2
ITR
3
TRGI
o
u
tp
u
t
control
OC1
OC1REF
OC2REF
U
UI
Re
s
et, En
ab
le, Co
u
nt
IC1
IC2
Pre
s
c
a
ler
Pre
s
c
a
ler
Inp
u
t filter &
Edge detector
IC2P
S
IC1P
S
TI1FP1
o
u
tp
u
t
control
OC2
Reg
event
Note
s
:
Prelo
a
d regi
s
ter
s
tr
a
n
s
ferred
to
a
ctive regi
s
ter
s
on
U
event
a
ccording to control
b
it
interr
u
pt
TGI
TRC
TRC
ITR
TRC
TI1F_ED
Inp
u
t filter &
Edge detector
CC1I
CC2I
TI1FP2
TI2FP1
TI2FP2
TI1
TI2
TIMx_CH1
TIMx_CH2
TIMx_CH1
TIMx_CH2
Pre
s
c
a
ler
COUNTER
+/-
CK_P
S
C
P
S
C
CNT
CK_CNT
controller
mode
S
l
a
ve
Internal clock (CK_INT)
a
i17190