ST STM32G4 Series Reference Manual page 1132

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32G4 Series:
Table of Contents

Advertisement

Advanced-control timers (TIM1/TIM8/TIM20)
Bit 4 DIR: Direction
Note: This bit is read only when the timer is configured in Center-aligned mode or Encoder
Bit 3 OPM: One pulse mode
Bit 2 URS: Update request source
Bit 1 UDIS: Update disable
Bit 0 CEN: Counter enable
Note: External clock, gated mode and encoder mode can work only if the CEN bit has been
27.6.2
TIMx control register 2 (TIMx_CR2)(x = 1, 8, 20)
Address offset: 0x004
Reset value: 0x0000 0000
31
30
29
Res.
Res.
Res.
Res.
15
14
13
OIS4N
OIS4
OIS3N
OIS3
rw
rw
rw
1132/2083
0: Counter used as upcounter
1: Counter used as downcounter
mode.
0: Counter is not stopped at update event
1: Counter stops counting at the next update event (clearing the bit CEN)
This bit is set and cleared by software to select the UEV event sources.
0: Any of the following events generate an update interrupt or DMA request if enabled.
These events can be:
Counter overflow/underflow
Setting the UG bit
Update generation through the slave mode controller
1: Only counter overflow/underflow generates an update interrupt or DMA request if
enabled.
This bit is set and cleared by software to enable/disable UEV event generation.
0: UEV enabled. The Update (UEV) event is generated by one of the following events:
Counter overflow/underflow
Setting the UG bit
Update generation through the slave mode controller
Buffered registers are then loaded with their preload values.
1: UEV disabled. The Update event is not generated, shadow registers keep their value
(ARR, PSC, CCRx). However the counter and the prescaler are reinitialized if the UG bit is
set or if a hardware reset is received from the slave mode controller.
0: Counter disabled
1: Counter enabled
previously set by software. However trigger mode can set the CEN bit automatically by
hardware.
28
27
26
25
Res.
Res.
MMS[3]
rw
12
11
10
9
OIS2N
OIS2
OIS1N
rw
rw
rw
rw
24
23
22
Res.
MMS2[3:0]
rw
rw
8
7
6
OIS1
TI1S
MMS[2:0]
rw
rw
rw
RM0440 Rev 1
21
20
19
18
Res.
OIS6
rw
rw
rw
5
4
3
2
CCDS
CCUS
rw
rw
rw
rw
RM0440
17
16
Res.
OIS5
rw
1
0
Res.
CCPC
rw

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32G4 Series and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF