General-purpose timers (TIM9 to TIM14)
16.2
TIM9 to TIM14 main features
16.2.1
TIM9/TIM12 main features
The features of the TIM9 to TIM14 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 65536 (can be changed "on the fly")
•
Up to 2 independent channels for:
–
–
–
–
•
Synchronization circuit to control the timer with external signals and to interconnect
several timers together
•
Interrupt generation on the following events:
–
–
–
–
TIMx_CH1
TIMx_CH2
419/1128
Input capture
Output compare
PWM generation (edge-aligned mode)
One-pulse mode output
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)
Internal clock (CK_INT)
ITR0
ITR1
ITR2
ITR3
CK_PSC
TI1FP1
TI1
Input filter &
TI1FP2
Edge detector
TRC
TI2FP1
TI2
Input filter &
TI2FP2
Edge detector
TRC
Notes:
Preload registers transferred
Reg
to active registers on U event
according to control bit
event
interrupt
DocID13902 Rev 15
ITR
TRC
TRGI
TI1F_ED
TI1FP1
TI2FP2
U
Auto-reload register
Stop, Clear
CK_CNT
PSC
+/-
Prescaler
CC1I
U
IC1
IC1PS
Prescaler
Capture/Compare 1 register
CC2I
IC2
U
IC2PS
Prescaler
Capture/Compare 2 register
Trigger
TGI
controller
Slave
Reset, Enable, Count
mode
controller
UI
U
CNT
COUNTER
CC1I
OC1REF
output
control
CC2I
output
OC2REF
control
RM0008
OC1
TIMx_CH1
OC2
TIMx_CH2
ai17190
Need help?
Do you have a question about the STM32F101 series and is the answer not in the manual?
Questions and answers