![Geehy SEMICONDUCTOR APM32F030x4x6x8xC User Manual Download Page 133](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f030x4x6x8xc/apm32f030x4x6x8xc_user-manual_573629133.webp)
www.geehy.com Page 132
14.3
Structure Block Diagram
Figure 43 General-purpose Timer TMR3 Structure Block Diagram
XOR
TI2
TI3
TI4
TI1
TIxFP1
TIxFP2
TIxFP3
TIxFP4
PSC
Prescaler
Prescler
Prescler
Channel 1 capture
/compare register
CNT
Counter
Auto reload register
Encoder
mode
External
clock
mode 1
External
clock
mode 2
Internal
clock
mode
TRC
ETR
Edge
detection
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 1 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
14.4
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 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.