GD32F10x User Manual
293
In the single pulse mode, the trigger active edge which sets the CEN bit to 1 will enable the
counter. However, there exist several clock delays to perform the comparison result between
the counter value and the TIMERx_CHxCV value. In order to reduce the delay to a minimum
value, the user can set the CHxCOMFEN bit in each TIMERx_CHCTL0/1 register. After a
trigger rising occurs in the single pulse mode, the OxCPRE signal will immediately be forced
to the state which the OxCPRE signal will change to, as the compare match event occurs
without taking the comparison result into account. The CHxCOMFEN bit is available only
when the output channel is configured to operate in the PWM0 or PWM1 output mode and
the trigger source is derived from the trigger signal.
Figure 15-27. Single pulse mode, TIMERx_CHxCV = 4, TIMERx_CAR=99
example.
Figure 15-27. Single pulse mode, TIMERx_CHxCV = 4, TIMERx_CAR=99
TIMER_CK
(PSC_CLK)
CEN
CNT_REG
0
1
2
3
4
5
.
98
99
00
OxCPRE
CI3
Under SPM, counter stop
Timers interconnection
Timer can be configured as interconnection, that is, one timer which operate in the master
mode outputs TRGO signal to control another timer which operate in the slave mode, TRGO
include reset evevt, start evevt, update evevt, capture/compare pulse evevt, compare evevt.
slave timer received the ITIx and performs the corresponding mode, include internal clock
mode, quadrature decoder mode, restart mode, pause mode, event mode, external clock
mode.
Figure 15-28. Timer0 master/slave mode timer example
shows the timer0 trigger
selection when it is configured in slave mode.
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 ...