
GD32F10x User Manual
379
a pulse and then keep the CEN bit at a high state until the update event occurs or the CEN
bit is written to 0 by software. If the CEN bit is cleared to 0 using software, the counter will be
stopped and its value held.
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 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-63. Single pulse mode TIMERx_CHxCV = 4 TIMERx_CAR=99
example.
Figure 15-63. 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
CI1
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.
Table 15-11. Input trigger of Timerx(x=8,11)
show the input trigger.
Table 15-11. Input trigger of Timerx(x=8,11)
ITI0
ITI1
ITI2
ITI3
TIMER8
TIMER1_TRGO
TIMER2_TRGO
TIMER9_TRGO
TIMER10_TRGO
TIMER11
TIMER3_TRGO
TIMER4_TRGO
TIMER12_TRGO
TIMER13_ TRGO
Other example can refer to
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...