Nations Technologies Inc.
Tel
:
+86-755-86309900
:
info@nationstech.com
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
228
/
631
Figure 11-1 Block diagram of TIMx
(
x=2, 3 ,4 ,5 and 9
)
The event
Interrupt and DMA output
For TIM4 and TIM5, ETR input is not support.
For TIMx
(
x = 2, 3, 4, 5 and 9
)
, The capture channel 1 input can come from IOM or comparator output
For TIM9, capture channel 2 comes from IOM or LSE, for TIM2, TIM3, TIM4 and TIM5, capture channel 2 comes from IOM only
For TIM9, capture channel 3 comes from IOM or LSI, for TIM2, TIM3, TIM4 and TIM5, capture channel 3 comes from IOM only
For TIM9, capture channel 4 comes from IOM or HSE, for TIM2, TIM3, TIM4 and TIM5, capture channel 4 comes from IOM only
General-purpose timers description
Time-base unit
The time-base unit mainly includes: prescaler, counter and auto-reload. When the time base unit is working, the
software can read and write the corresponding registers (TIMx_PSC, TIMx_CNT and TIMx_AR) at any time.
Depending on the setting of the auto-reload preload enable bit (TIMx_CTRL1.ARPEN), the value of the preload
TI2FP1
TI2FP2
TI1FP2
TI3FP3
TI1FP1
TI4FP4
XOR
TI2
TI3
TI1
TI4
IC4
IC1
IC2
IC3
TRC
TRC
TRC
TRC
TI4FP3
CCxIT
(
Input
)
CCx Event
(
Input
)
TIMx_CH2
TIMx_CH3
TIMx_CH4
Input filter &
edge detector
ICxPS
Prescaler
OCxREF
CCxIT
(
Output
)
Output Control
Capture/Compare x
(x = 1
,
2
,
3
,
4)
register
TIMx_CH1
OC1
TIMx_CH2
OC2
TIMx_CH3
OC3
OC4
TIMx_CH4
CNT Counter
Input filter &
edge detector
TI3FP4
Input filter &
edge detector
Input filter &
edge detector
E
T
R
F
TIT
Trigger controller
TRGI
TRGO
TI1F_ED
Psc Prescaler
CK_CNT
CK_PSC
Auto-reload
Update
event
ETRF
Polarity selection
Edge detector
Prescaler
Input filter
TIMx_ETR pin
COMP_TIM_
OCREFCLR
TRC
Slave mode
controller
Encoder mode
To another timer, ADC,
DAC
Internal clock(CK_INT)
TIMxCLK from RCC
ETR
TI
1
F
_
ED
Reset, enable,
up/down, count
UDIT
TIMx_CH1