GD32A50x User Manual
399
000: Multi mode channel 2 is programmed as output.
001: Multi mode channel 2 is programmed as input, MIS2 is connected to
MCI2FEM2.
010: Multi mode channel 2 is programmed as input, MIS2 is connected to
MCI3FEM2.
011: Multi mode channel 2 is programmed as input, MIS2 is connected to ITS. This
mode is working only if an internal trigger input is selected (through TRGS bits in
TIMERx_SMCFG register).
100: Multi mode channel 2 is programmed as input, MIS2 is connected to CI2FEM2.
101~111: Reserved.
Input capture mode:
Bits
Fields
Descriptions
31
MCH3MS[2]
Multi mode channel 1 I/O mode selection
Refer to MCH3MS[1:0]description.
30
MCH2MS[2]
Multi mode channel 0 I/O mode selection
Refer to MCH2MS[1:0] description.
29:16
Reserved
Must be kept at reset value.
15:12
MCH3CAPFLT[3:0]
Multi mode channel 3 input capture filter control.
Refer to MCH2CAPFLT description.
11:10
MCH3CAPPSC[1:0] Multi mode channel 3 input capture prescaler.
Refer to MCH2CAPPSC description.
9:8
MCH3MS[1:0]
Multi mode channel 3 I/O mode selection.
Same as output compare mode.
7:4
MCH2CAPFLT[3:0]
Multi mode channel 2 input capture filter control.
The MCI2 input signal can be filtered by digital filter and this bit-field configure the
filtering capability.
Basic principle of digital filter: continuously sample the MCI2 input signal according
to f
SAMP
and record the number of times of the same level of the signal. After
reaching the filtering capacity configured by this bit, it is considered to be an
effective level.
The filtering capability configuration is as follows:
MCH2CAPFLT
[3:0]
Times
f
SAMP
4’b0000
Filter disabled.
4’b0001
2
f
TIMER_CK
4’b0010
4
4’b0011
8
4’b0100
6
f
DTS
/2
4’b0101
8
4’b0110
6
f
DTS
/4