![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 202](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630202.webp)
www.geehy.com Page 201
Supports incremental (quadrature) encoder and hall-sensor circuitry for
positioning purposes
Structure block diagram
Figure 38 General-purpose Timer Structure Block Diagram
XOR
TI2
TI3
TI4
TI1
TIxFP1
TIxFP2
TIxFP3
TIxFP4
PSC
Prescaler
Prescaler
Prescaler
Channel x
capture/compare
register
CNT counter
Auto reload
register
Encoder mode
External
clock mode 1
External
clock mode 2
Internal
clock mode
TRC
ETR
Edge
detector
prescaler
Input filter
ETRP
ETRF
ITR0
ITR1
ITR2
ITR3
ITR
ETRF
TRGI
TI1FP1
TI2FP2
TI1FP1
TI2FP2
TI1F_ED
TRC
TRC
ICx
ICx
ICxPS
ICxPS
OCxREF
Output
control
Internal clock CK_INT
OCxREF
0Cx
CK_PSC
CK_CNT
Filter
edge
detector
Filter
edge
detector
Channel x
capture/compare
register
TMRx_CH4
TMRx_CH3
TMRx_CH2
TMRx_CH1
TMRx_CHx
TRGO
Other timer
DAC/ADC
ETRF
Repeat
counter
Output
control
TMRx_CHx
0Cx
Functional description
Clock source selection
The general-purpose timer has four clock sources.
Internal clock
It is TMRx_CLK from RCM, namely the driving clock of the timer; when the
slave mode controller is disabled, the clock source CK_PSC of the prescaler is
driven by the internal clock CK_INT.
External clock mode 1
The trigger signal generated from the input channel TI1/2/3/4 of the timer after
polarity selection and filtering is connected to the slave mode controller to
control the work of the counter. Besides, the pulse signal generated by the input
of Channel 1 after double-edge detection of the rising edge and the falling edge