EasyManuals Logo

ST STM32F10 Series User Manual

ST STM32F10 Series
519 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #267 background imageLoading...
Page #267 background image
UM0306 General purpose timer (TIMx)
267/519
13.5.6 Event generation register (TIMx_EGR)
Address offset: 14h
Reset value: 0000h
1514131211109876543210
Reserved TG Res. CC4G CC3G CC2G CC1G UG
w wwwww
Bits 15:7 Reserved, always read as 0.
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 TIMx_SR register. Related interrupt or DMA transfer can
occur if enabled.
Bit 5 Reserved, always read as 0.
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 TIMx_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: Re-initialize 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 (up-counting),
else it takes the auto-reload value (TIMx_ARR) if DIR=1 (down-counting).
www.BDTIC.com/ST

Table of Contents

Other manuals for ST STM32F10 Series

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F10 Series Specifications

General IconGeneral
BrandST
ModelSTM32F10 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals