GD32A50x User Manual
368
1010
:
The filtered output of multi mode channel 0 input (MCI0FEM0)
1011
:
The filtered output of multi mode channel 1 input (MCI1FEM1)
1100
:
The filtered output of multi mode channel 2 input (MCI2FEM2)
1101
:
The filtered output of multi mode channel 3 input (MCI3FEM3)
1110
:
Reserved
1111
:
Reserved
These bits must not be changed when slave mode is enabled.
3
Reserved
Must be kept at reset value.
2:0
SMC[2:0]
Slave mode control
000: Disable slave mode. The slave mode is disabled. The prescaler is clocked
directly by the internal clock (TIMER_CK) when CEN bit is set high.
001: Quadrature decoder mode 0. The counter counts on CI0FE0 edge, while the
direction depends on CI1FE1 level.
010: Quadrature decoder mode 1. The counter counts on CI1FE1 edge, while the
direction depends on CI0FE0 level.
011: Quadrature decoder mode 2. The counter counts on both CI0FE0 and CI1FE1
edges, while the direction depends on the level of the other (CI1FE1 or CI0FE0).
100: Restart mode. The counter is reinitialized and an update event is generated on
the rising edge of the selected trigger input.
101: Pause mode. The trigger input enables the counter clock when it is high and
disables the counter clock when it is low.
110: Event mode. A rising edge of the trigger input enables the counter.
111: External clock mode 0. The counter counts on the rising edges of the selected
trigger.
DMA and interrupt enable register (TIMERx_DMAINTEN)
Address offset: 0x0C
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
CH3COM
ADDIE
CH2COM
ADDIE
CH1COM
ADDIE
CH0COM
ADDIE
MCH3
DEN
MCH2
DEN
MCH1
DEN
MCH0
DEN
MCH3IE
MCH2IE
MCH1IE
MCH0IE
Reserved
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved TRGDEN CMTDEN CH3DEN CH2DEN CH1DEN CH0DEN UPDEN
BRKIE
TRGIE
CMTIE
CH3IE
CH2IE
CH1IE
CH0IE
UPIE
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31
CH3COMADDIE
Channel 3 additional compare interrupt enable
0: Disabled
1: Enabled