GD32F10x User Manual
326
configuration of the general level0 timer.
Figure 15-31. General Level 0 timer block diagram
=1
0
0
0
0
Input Logic
Synchronizer&Filter
&Edge Detector
Edge selector
Prescaler
Trigger processor
Trigger Selector&Counter
Quadrate Decoder
Counter
External Trigger
Input logic
Polarity selection
Edge detector
Prescaler
Filter
TIMERx_CHxCV
Register /Interrupt
Register set and update
Interrupt collector and
controller
CK_TIMER
CH0_IN
CH1_IN
CH2_IN
CH3_IN
CI0
ITI0
ITI1
ITI2
ITI3
ETI
CAR
Output Logic
generation of outputs signals in
compare, PWM,and mixed modes
according to initialization, software
output mask, and polarity control
CH0_O
DMA controller
TIMERx_TRGO
.
Interrupt
CH1_O
CH2_O
CH3_O
U
pda
te
T
rig
ge
r
C
ap
/C
o
m
DMA REQ/ACK
TIMERx_CH0
TIMERx_CH1
TIMERx_CH2
TIMERx_CH3
TIMERx_TG
TIMERx_UP
PSC
PSC_CLK
TIMER_CK
req en/direct req set
ETIFP
15.2.4.
Function overview
Clock source configuration
The general level0 TIMER has the capability of being clocked by either the CK_TIMER or an
alternate clock source controlled by SMC (TIMERx_SMCFG bit [2:0]).
SMC [2:0] ==
3’b000. Internal timer clock CK_TIMER which is from module RCU.
The default internal clock source is the CK_TIMER used to drive the counter prescaler when
the SMC [2:0] == 3’b000. When the CEN is set, the CK_TIMER will be divided by PSC value
to generate PSC_CLK.
In this mode, the TIMER_CK, driven counter’s prescaler to count, is equal to CK_TIMER
which is from RCU.
If the SMC [2:0] in the TIMERx_SMCFG register are setting to an available value including
0x1, 0x2, 0x3 and 0x7, the prescaler is clocked by other clock sources selected by the TRGS
[2:0] in the TIMERx_SMCFG register, details as follows. When the SMC [2:0] bits are set to
0x4, 0x5 or 0x6, the internal clock CK_TIMER is the counter prescaler driving clock source.
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...