Time Base Settings
Prescaler
Prescaler value
Period
Autoreload value
Mode
Up
Counting direction
Clock division
DIV1
DIV2
DIV4
cares only about inputs to timer
Enable
Start timer in init sequence
One Pulse
Set One Pulse Mode
ARR Preload
Clear Flags
Clears IRQ flags in init routine
Interrupt settings
IRQ
Update
Trigger
Break
COM
Capture / Compare 1
Capture / Compare 2
Capture / Compare 3
Capture / Compare 4
DMA request
DMA
Update
Trigger
Break
COM
Capture / Compare 1
Capture / Compare 2
Capture / Compare 3
Capture / Compare 4
Output compare
Enable
Mode
Polarity
Pulse
preload
Channel 1
NONE
Timing
Active
Inactive
Toggle
PWM1
PWM2
High
Low
Output channels
Channel 2
NONE
Timing
Active
Inactive
Toggle
PWM1
PWM2
High
Low
Output channels
Input Capture
Use
Polarity
Selection
Prescaler
Filter
Channel 1
Rising
Falling
Both edge
Direct TI
Indirect TI
TRC
DIV1
DIV2
DIV4
DIV8
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Channel 2
Rising
Falling
Both edge
Direct TI
Indirect TI
TRC
DIV1
DIV2
DIV4
DIV8
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Another functions
Select Input Trigger
NONE
ITR0
ITR1
ITR2
ITR3
TI1F_ED
TI1FP1
TI2FP2
ETRF
Input in slave mode
Select Slave Mode
NONE
Reset
Gated
Trigger
External
MSM bit
Enable Delay at TRGI to perfect synchronisation
Deinit
Deinitialize timer before setup
Encoder Interface
Use
Mode
IC1 Polarity
IC2 Polarity
TI1
TI2
TI12
Falling
Rising
Falling
Rising
annotations:
STM32F407
CH1 - PA2, PE5
CH2 - PA3, PE6
F407 at full speed 168MHz
home