![Geehy SEMICONDUCTOR APM32F030x4x6x8xC User Manual Download Page 98](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f030x4x6x8xc/apm32f030x4x6x8xc_user-manual_573629098.webp)
www.geehy.com Page 97
13.3
Structure Block Diagram
Figure 22 TMR1 Structure Block Diagram
XOR
TI2
TI3
TI4
TI1
TIxFP1
TIxFP2
TIxFP3
TIxFP4
PSC
Prescaler
Prescaler
Prescler
Channel x capture
/compare register
CNT
Counte
Auto reload
register
Encoder
mode
External
clock mode
1
External
clock
mode 2
Internal
clock mode
TRC
ETR
Edge
detection
prescale
Input filter
ETRP
ETRF
ITR0
ITR1
ITR2
ITR3
ITR
ETRF
TRGI
TI1FP1
TI2FP2
TI1FP1
TI2FP2
TI1F_ED
TRC
TRC
ICx
ICx
ICxPS
ICxPS
DTS
OC3REF
Output
control
DTS
OCxREF
Output
control
Internal clock CK_INT
Polarity
selection
BRK
Output
control
OC4REF
Clock failure event
OC4
OC3
OC3N
0Cx
OCxN
CK_PSC
CK_CNT
Filter and edge
detector
TMRx_BKIN
Filter edge
detector
Channel x capture
/compare register
TMRx_CH4
TMRx_CH3
TMRx_CH2
TMRx_CH1
TMRx_CHx
TMRx_CHxN
TMRx_CH3
TMRx_CH3N
TMRx_CH4
TRGO
Other timer/
DAC/ADC
ETRF
Repeat
counter
TMRx_ETR
13.4
Functional Description
Clock Source Selection
The advanced 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 is
logically equal or the future signal is TI1F_ED signal, namely double-edge signal
of TIF_ED. Specially the PWM input can only be input by TI1/2.