GD32F10x User Manual
292
Mode Selection
Source Selection
Polarity Selection
Filter and Prescaler
Figure 15-25. Pause mode
TIMER_CK
CEN
CNT_REG
94
95
96
97
98
CI0
TRGIF
CI0FE0
99
Exam3
Event mode
The counter will start
to count when a rising
edge of trigger input
comes.
TRGS[2:0] =3’b111
ETIFP is selected.
ETP = 0, the polarity
of ETI does not
change.
ETPSC = 1, ETI is
divided by 2.
ETFC = 0, ETI does
not filter.
Figure 15-26. Event mode
TIMER_CK
CNT_REG
94
95
96
97
ETI
TRGIF
ETIFP
Single pulse mode
Single pulse mode is opposite to the repetitive mode, which can be enabled by setting SPM
in TIMERx_CTL0. When you set SPM, the counter will be clear and stop when the next update
event. In order to get pulse waveform, you can set the TIMERx to PWM mode or compare by
CHxCOMCTL.
Once the timer is set to operate in the single pulse mode, it is not necessary to set the timer
enable bit CEN in the TIMERx_CTL0 register to 1 to enable the counter. The trigger to
generate a pulse can be sourced from the trigger signals edge or by setting the CEN bit to 1
using software. Setting the CEN bit to 1 or a trigger from the trigger signals edge can generate
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.
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 ...