GD32F20x User Manual
427
18.3.3.
Block diagram
Figure 18-50. General level1 timer block diagram
provides details on the internal
configuration of the general level1 timer.
Figure 18-50. General level1 timer block diagram
Input Logic
Synchronizer&Filter
&Edge Detector
Edge selector
Prescaler
Trigger processor
Trigger Selector&Counter
Quadrate Decoder
Slave mode processor
Counter
TIMERx_CHxCV
Register /Interrupt
Register set and update
Interrupt collector and
controller
APB BUS
CK_TIMER
CH0_IN
CH1_IN
CI0
ITI0
ITI1
ITI2
ITI3
CAR
Output Logic
generation of outputs signals in
compare, PWM,and mixed modes
according to initialization, software
output mask, and polarity control
CH0_O
TIMERx_TRGO
Interrupt
CH1_O
Update
Trigger
Cap/Com
CI1
PSC
PSC_CLK
TIMER_CK
18.3.4.
Function overview
Clock selection
The general level1 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 slave mode is disabled (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 slave mode controller is enabled by setting SMC [2:0] in the TIMERx_SMCFG register
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 and described as follows.
When the slave mode selection bits SMC are set to 0x4, 0x5 or 0x6, the internal clock
TIMER_CK is the counter prescaler driving clock source.
Содержание GD32F20 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F20x ARM Cortex M3 32 bit MCU User Manual Revision 2 2 Oct 2019 ...
Страница 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Страница 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Страница 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Страница 385: ...GD32F20x User Manual 385 ...
Страница 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...