AT32F425
Series Reference Manual
2022.03.30
Page 203
Ver 2.01
14.2.4.2 TMR2 and TMR3 control register2 (TMRx_CTRL2)
Bit
Register
Reset value
Type
Description
Bit 15: 8
Reserved
0x00
resd
Kept at its default value.
Bit 7
C1INSEL
0x0
rw
C1IN selection
0: CH1 pin is connected to C1IRAW input
1: The XOR result of CH1, CH2 and CH3 pins is connected
to C1IRAW input
Bit 6: 4
PTOS
0x0
rw
Master TMR output selection
This field is used to select the TMRx signal sent to the
slave timer.
000: Reset
001: Enable
010: Update
011: Compare pulse
100: C1ORAW signal
101: C2ORAW signal
110: C3ORAW signal
111: C4ORAW signal
Bit 3
DRS
0x0
rw
DMA request source
0: Capture/compare event
1: Overflow event
Bit 2: 0
Reserved
0x0
resd
Kept at its default value.
14.2.4.3 TMR2 and TMR3 slave timer control register (TMRx_STCTRL)
Bit
Register
Reset value
Type
Description
Bit 15
ESP
0x0
rw
External signal polarity
0: High or rising edge
1: Low or falling edge
Bit 14
ECMBEN
0x0
rw
External clock mode B enable
This bit is used to enable external clock mode B
0: Disabled
1: Enabled
Bit 13: 12 ESDIV
0x0
rw
External signal divide
This field is used to select the frequency division of an
external trigger
00: Normal
01: Divided by 2
10: Divided by 4
11: Divided by 8
Bit 11: 8
ESF
0x0
rw
External signal filter
This field is used to filter an external signal. The external
signal can be sampled only after it has been generated N
times
0000: No filter, sampling by
f
𝐷𝑇𝑆
0001:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐶𝐾_𝐼𝑁𝑇
, N=2
0010:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐶𝐾_𝐼𝑁𝑇
, N=4
0011:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐶𝐾_𝐼𝑁𝑇
, N=8
0100:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/2, N=6
0101:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/2, N=8
0110:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/4, N=6
0111:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/4, N=8
1000:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/8, N=6
1001:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/8, N=8
1010:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/16, N=5
1011:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/16, N=6
1100:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/16, N=8
1101:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/32, N=5
1110:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/32, N=6
1111:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/32, N=8
Bit 7
STS
0x0
rw
Subordinate TMR synchronization
If enabled, master and slave timer can be synchronized.
0: Disabled