www.geehy.com Page 185
Field
Name
R/W
Description
7
MSMEN
R/W
Master/slave Mode Enable
0: Invalid
1: Enable the master/slave mode
11:8
ETFCFG
R/W
External Trigger Filter Configure
0000: Filter disabled, sampling by f
DTS
0001
:
DIV=1
,
N=2
0010
:
DIV=1
,
N=4
0011
:
DIV=1
,
N=8
0100
:
DIV=2
,
N=6
0101
:
DIV=2
,
N=8
0110
:
DIV=4
,
N=6
0111
:
DIV=4
,
N=8
1000
:
DIV=8
,
N=6
1001
:
DIV=8
,
N=8
1010
:
DIV=16
,
N=5
1011
:
DIV=16
,
N=6
1100
:
DIV=16
,
N=8
1101
:
DIV=32
,
N=5
1110
:
DIV=32
,
N=6
1111
:
DIV=32
,
N=8
Sampling frequency=timer clock frequency/DIV; the filter length=N,
and a jump is generated by every N events.
13:12
ETPCFG
R/W
External Trigger Prescaler Configure
The ETR (external trigger input) signal becomes ETRP after
frequency division. The signal frequency of ETRP is at most 1/4 of
TMRxCLK frequency; when ETR frequency is too high, the ETRP
frequency must be reduced through frequency division.
00: The prescaler is disabled;
01: ETR signal 2 divided frequency
10: ETR signal 4 divided frequency
11: ETR signal 8 divided frequency
14
ECEN
R/W
External Clock Enable Mode2
0: Disable
1: Enable
Setting ECEN bit has the same function as selecting external clock
mode 1 to connect TRGI to ETRF; slave mode (reset, gating, trigger)
can be used at the same time with external clock mode 2, but TRGI
cannot be connected to ETRF in such case; when external clock
mode 1 and external clock mode 2 are enabled at the same time, the
input of external clock is ETRF.
15
ETPOL
R/W
External Trigger Polarity Configure
This bit decides whether the external trigger ETR is reversed.
0: The external trigger ETR is not reversed,and the high level or rising
edge is valid
1: The external trigger ETR is reversed, and the low level or falling
edge is valid