GD32F403xx User Manual
359
1
UPDIS
Update disable.
This bit is used to enable or disable the update event generation.
0: Update event enable. When an update event occurs, the corresponding shadow
registers are loaded with their preloaded values . These events generate update
event:
The UPG bit is set
The counter generates an overflow or underflow event
The restart mode generates an update event.
1: Update event disable.
Note:
When this bit is set to 1, setting UPG bit or the restart mode does not
generate an update event, but the counter and prescaler are initialized.
0
CEN
Counter enable
0: Counter disable
1: Counter enable
The CEN bit must be set by software when timer work s in external clock, pause
mode and encoder mode.
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
Reserved
MSM
TRGS[2:0]
Reserved
SMC[2:0]
rw
rw
rw
rw
Bits
Fields
Descriptions
15:8
Reserved
Must be kept at reset value.
7
MSM
Master-slave mode
This bit can be used to synchronize selected timers to begin counting at the same
time. The TRGI is used as the start event, and through TRGO, timers are
connected together.
0: Master-slave mode disable
1: Master-slave mode enable
6:4
TRGS[2:0]
Trigger selection
This bit-field specifies which signal is selected as the trigger input, which is used to
synchronize the counter.
000: ITI0
001: ITI1
010: ITI2
011: ITI3