
EM358x
194
Rev. 0.4
10.5 Registers
TIMx_CR1
TIM1_CR1
Timer 1 Control Register 1
Address: 0x4000F000 Reset: 0x0
TIM2_CR1
Timer 2 Control Register 1
Address: 0x40010000 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_ARBE
TIM_CMS
TIM_DIR
TIM_OPM
TIM_URS
TIM_UDIS
TIM_CEN
Bitname
Bitfield
Access Description
TIM_ARBE
[7]
RW
Auto-Reload Buffer Enable.
0: TIMx_ARR register is not buffered.
1: TIMx_ARR register is buffered.
TIM_CMS
[6:5]
RW
Center-aligned Mode Selection.
00: Edge-aligned mode. The counter counts up or down depending on
the direction bit (TIM_DIR).
01: Center-aligned mode 1. The counter counts up and down
alternatively.
Output compare interrupt flags of configured output channels
(TIM_CCyS=00 in TIMx_CCMRy register) are set only when the counter
is counting down.
10: Center-aligned mode 2. The counter counts up and down
alternatively.
Output compare interrupt flags of configured output channels
(TIM_CCyS=00 in TIMx_CCMRy register) are set only when the counter
is counting up.
11: Center-aligned mode 3. The counter counts up and down
alternatively.
Output compare interrupt flags of configured output channels
(TIM_CCyS=00 in TIMx_CCMRy register) are set both when the counter
is counting up or down.
Note: Software may not switch from edge-aligned mode to center-aligned
mode when the counter is enabled (TIM_CEN=1).
TIM_DIR
[4]
RW
Direction.
0: Counter used as up-counter.
1: Counter used as down-counter.
Содержание EMBER EM358 series
Страница 2: ...EM358x 2 Rev 0 4 ...
Страница 7: ...EM358x Rev 0 4 7 ...