GD32VF103 User Manual
299
Reset value: 0x0000
This register can be accessed by half-word (16-bit) or word (32-bit)
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
TI0S
MMC[2:0]
DMAS
Reserved
rw
rw
rw
Bits
Fields
Descriptions
15:8
Reserved
Must be kept at reset value
7
TI0S
Channel 0 trigger input selection
0: The TIMERx_CH0 pin input is selected as channel 0 trigger input.
1: The result of combinational XOR of TIMERx_CH0, CH1 and CH2 pins is selected
as channel 0 trigger input.
6:4
MMC[2:0]
Master mode control
These bits control the selection of TRGO signal, which is sent in master mode to
slave timers for synchronization function.
000: Reset. When the UPG bit in the TIMERx_SWEVG register is set or a reset is
generated by the slave mode controller, a TRGO pulse occurs. And in the latter
case, the signal on TRGO is delayed compared to the actual reset.
001: Enable. This mode is useful to start several timers at the same time or to control
a window in which a slave timer is enabled. In this mode the master mode controller
selects the counter enable signal TIMERx_EN as TRGO. The counter enable signal
is set when CEN control bit is set or the trigger input in pause mode is high. There
is a delay between the trigger input in pause mode and the TRGO output, except if
the master-slave mode is selected.
010: Update. In this mode the master mode controller selects the update event as
TRGO.
011: Capture/compare pulse. In this mode the master mode controller generates a
TRGO pulse when a capture or a compare match occurred.
100: Compare. In this mode the master mode controller selects the O0CPRE signal
is used as TRGO
101: Compare. In this mode the master mode controller selects the O1CPRE signal
is used as TRGO
110: Compare. In this mode the master mode controller selects the O2CPRE signal
is used as TRGO
111: Compare. In this mode the master mode controller selects the O3CPRE signal
is used as TRGO
3
DMAS
DMA request source selection
0: DMA request of channel x is sent when channel x event occurs.
1: DMA request of channel x is sent when update event occurs.
2:0
Reserved
Must be kept at reset value.