
EM358x
196
Rev. 0.4
TIMx_CR2
TIM1_CR2
Timer 1 Control Register 2
Address: 0x4000F004 Reset: 0x0
TIM2_CR2
Timer 2 Control Register 2
Address: 0x40010004 Reset: 0x0
31
30
29
28
27
26
25
24
0
0
0
0
0
0
0
0
23
22
21
20
19
18
17
16
0
0
0
0
0
0
0
0
15
14
13
12
11
10
9
8
0
0
0
0
0
0
0
0
7
6
5
4
3
2
1
0
TIM_TI1S
TIM_MMS
0
0
0
0
Bitname
Bitfield
Access Description
TIM_TI1S
[7]
RW
TI1 Selection.
0: TI1M (input of the digital filter) is connected to TI1 input.
1: TI1M is connected to the TI_HALL inputs (XOR combination).
TIM_MMS
[6:4]
RW
Master Mode Selection.
This selects the information to be sent in master mode to a slave timer for
synchronization using the trigger output (TRGO).
000: Reset - the TIM_UG bit in the TMRx_EGR register is trigger output.
If the reset is generated by the trigger input (slave mode controller
configured in reset mode), then the signal on TRGO is delayed compared
to the actual reset.
001: Enable - counter enable signal CNT_EN is trigger output.
This mode is used to start both timers at the same time or to control a
window in which a slave timer is enabled. The counter enable signal is
generated by either the TIM_CEN control bit or the trigger input when
configured in gated mode. When the counter enable signal is controlled by
the trigger input there is a delay on TRGO except if the master/slave mode
is selected (see the TIM_MSM bit description in TMRx_SMCR register).
010: Update - UEV is trigger output.
This mode allows a master timer to be a prescaler for a slave timer.
011: Compare Pulse.
The trigger output sends a positive pulse when the TIM_CC1IF flag is to
be set (even if it was already high) as soon as a capture or a compare
match occurs.
100: Compare - OC1REF signal is trigger output.
101: Compare - OC2REF signal is trigger output.
110: Compare - OC3REF signal is trigger output.
111: Compare - OC4REF signal is trigger output.
Summary of Contents for EMBER EM358 series
Page 2: ...EM358x 2 Rev 0 4 ...
Page 7: ...EM358x Rev 0 4 7 ...