GD32A50x User Manual
225
101: Disabled on pin rising or falling edge and provided trigger is high
110: Disabled on trigger falling edge
111: Reserved
11
Reserved
Must be kept at reset value
10:8
TMEN[2:0]
Timer enable
Configure the conditions that enable the timer and start decrement
000: Always enabled
001: Enabled on timer x-1 enable
010: Enabled on trigger high
011: Enabled on trigger high and pin high
100: Enabled on pin rising edge
101: Enabled on pin rising edge and trigger high
110: Enabled on trigger rising edge
111: Enabled on trigger rising or falling edge
7:6
Reserved
Must be kept at reset value
5:4
TMSTOP[1:0]
Timer stop bit
00: Disable stop bit
01: Enable stop bit on timer compare
10: Enable stop bit on timer disable
11: Enable stop bit on timer compare and timer disable
3:2
Reserved
Must be kept at reset value
1
TMSTART
Timer start bit
0: Disable start bit
1: Enabled start bit
0
Reserved
Must be kept at reset value
9.5.18.
Timer compare x register (MFCOM_TMCMPx)
Address offset: 0x500 + 0x004 * x, (x = 0 to 3)
Reset value: 0x0000 0000
This register has to be accessed by word (32-bit).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TMCVALUE[15:0]
rw
Bits
Fields
Descriptions