Event Generation Register (Tim1_Egr) - ST STM32F101 Series Reference Manual

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

Advertisement

Advanced control timer (TIM1)
12.5.6

Event generation register (TIM1_EGR)

Address offset: 0x14
Reset value: 0x0000
15
14
13
Bits 15:8 Reserved, always read as 0.
Bit 7 BG: Break Generation.
This bit is set by software in order to generate an event, it is automatically cleared by hardware.
0: No action.
1: A break event is generated. MOE bit is cleared and BIF flag is set. Related interrupt or DMA
transfer can occur if enabled.
Bit 6 TG: Trigger Generation.
This bit is set by software in order to generate an event, it is automatically cleared by hardware.
0: No action.
1: The TIF flag is set in TIM1_SR register. Related interrupt or DMA transfer can occur if enabled.
Bit 5 COMG: Capture/Compare Control Update Generation.
This bit can be set by software, it is automatically cleared by hardware
0: No action
1: When CCPC bit is set, it allows to update CCxE, CCxNE and OCxM bits
Note: This bit acts only on channels having a complementary output.
Bit 4 CC4G: Capture/Compare 4 Generation.
refer to CC1G description
Bit 3 CC3G: Capture/Compare 3 Generation.
refer to CC1G description
Bit 2 CC2G: Capture/Compare 2 Generation.
refer to CC1G description
Bit 1 CC1G: Capture/Compare 1 Generation.
This bit is set by software in order to generate an event, it is automatically cleared by hardware.
0: No action.
1: A capture/compare event is generated on channel 1:
If channel CC1 is configured as output:
CC1IF flag is set, Corresponding interrupt or DMA request is sent if enabled.
If channel CC1 is configured as input:
The current value of the counter is captured in TIM1_CCR1 register. The CC1IF flag is set, the
corresponding interrupt or DMA request is sent if enabled. The CC1OF flag is set if the CC1IF flag
was already high.
Bit 0 UG: Update Generation.
This bit can be set by software, it is automatically cleared by hardware.
0: No action.
1: Reinitialize the counter and generates an update of the registers. Note that the prescaler counter
is cleared too (anyway the prescaler ratio is not affected). The counter is cleared if the center-
aligned mode is selected or if DIR=0 (upcounting), else it takes the auto-reload value (TIM1_ARR) if
DIR=1 (downcounting).
198/501
12
11
10
9
Reserved
Res.
8
7
6
5
BG
TG
COMG
w
w
w
4
3
2
1
CC4G
CC3G
CC2G
CC1G
w
w
w
w
RM0008
0
UG
w

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Stm32f103 series

Table of Contents