GD32VF103 User Manual
257
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 in channal0.
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 capture/compare event occurs.
1: DMA request of channel x is sent when update event occurs.
2
CCUC
Commutation control shadow register update control
When the commutation control shadow enable (for CHxEN, CHxNEN and
CHxCOMCTL bits) are set (CCSE=1), these shadow registers update are controlled
as below:
0: The shadow registers update by when CMTG bit is set.
1: The shadow registers update by when CMTG bit is set or a rising edge of TRGI
occurs.
When a channel does not have a complementary output, this bit has no effect.
1
Reserved
Must be kept at reset value.
0
CCSE
Commutation control shadow enable
0: The shadow registers for CHxEN, CHxNEN and CHxCOMCTL bits are disabled.
1: The shadow registers for CHxEN, CHxNEN and CHxCOMCTL bits are enabled.
After these bits have been written, they are updated based when commutation event
coming.
When a channel does not have a complementary output, this bit has no effect.
Slave mode configuration register (TIMERx_SMCFG)
Address offset: 0x08
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
ETP
SMC1
ETPSC[1:0]
ETFC[3:0]
MSM
TRGS[2:0]
Reserved
SMC[2:0]
rw
rw
rw
rw
rw
rw
rw