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 #213 background imageLoading...
Page #213 background image
UM0306 Advanced control timer (TIM1)
213/519
12.5.13 Repetition counter register (TIM1_RCR)
Address offset: 30h
Reset value: 0000h
12.5.14 Capture/compare register 1 (TIM1_CCR1)
Address offset: 34h
Reset value: 0000h
1514131211109876543210
Reserved REP[7:0]
rw rw rw rw rw rw rw rw
Bits 15:8 Reserved, always read as 0.
Bits 7:0
REP[7:0]: Repetition Counter Value.
These bits allow the user to set-up the update rate of the compare registers (i.e.
periodic transfers from preload to active registers) when preload registers are enable,
as well as the update interrupt generation rate, if this interrupt is enable.
Each time the REP_CNT related down-counter reaches zero, an update event is
generated and it restarts counting from REP value. As REP_CNT is reloaded with REP
value only at the repetition update event U_RC, any write to the TIM1_RCR register is
not taken in account until the next repetition update event.
It means in PWM mode (REP+1) corresponds to:
- the number of PWM periods in edge-aligned mode
- the number of half PWM period in center-aligned mode.
1514131211109876543210
CCR1[15:0]
rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw
Bits 15:0
CCR1[15:0]: Capture/Compare 1 Value).
If channel CC1 is configured as output:
CCR1 is the value to be loaded in the actual capture/compare 1 register (preload
value).
It is loaded permanently if the preload feature is not selected in the TIM1_CCMR1
register (bit OC1PE). Else the preload value is copied in the active capture/compare 1
register when an update event occurs.
The active capture/compare register contains the value to be compared to the counter
TIM1_CNT and signaled on OC1 output.
If channel CC1 is configured as input:
CCR1 is the counter value transferred by the last input capture 1 event (IC1).
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