EasyManuals Logo

ST STM32F31xx User Manual

ST STM32F31xx
584 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 #449 background imageLoading...
Page #449 background image
UM1581
General-purpose timers (TIM)
DocID023800 Rev 1
449/584
22.1.2 TIM_TimeBaseInitTypeDef
TIM_TimeBaseInitTypeDef is defined in the stm32f30x_tim.h
Data Fields
ï‚· uint16_t TIM_Prescaler
ï‚· uint16_t TIM_CounterMode
ï‚· uint32_t TIM_Period
ï‚· uint16_t TIM_ClockDivision
ï‚· uint8_t TIM_RepetitionCounter
Field Documentation
ï‚· uint16_t TIM_TimeBaseInitTypeDef::TIM_Prescaler
 Specifies the prescaler value used to divide the TIM clock. This parameter can
be a number between 0x0000 and 0xFFFF
ï‚· uint16_t TIM_TimeBaseInitTypeDef::TIM_CounterMode
 Specifies the counter mode. This parameter can be a value of
TIM_Counter_Mode
ï‚· uint32_t TIM_TimeBaseInitTypeDef::TIM_Period
 Specifies the period value to be loaded into the active Auto-Reload Register at
the next update event. This parameter must be a number between 0x0000 and
0xFFFF.
ï‚· uint16_t TIM_TimeBaseInitTypeDef::TIM_ClockDivision
 Specifies the clock division. This parameter can be a value of
TIM_Clock_Division_CKD
ï‚· uint8_t TIM_TimeBaseInitTypeDef::TIM_RepetitionCounter
 Specifies the repetition counter value. Each time the RCR downcounter reaches
zero, an update event is generated and counting restarts from the RCR value (N).
This means in PWM mode that (N+1) corresponds to: the number of PWM
periods in edge-aligned modethe number of half PWM period in center-aligned
mode This parameter must be a number between 0x00 and 0xFF. This
parameter is valid only for TIM1 and TIM8.
22.1.3 TIM_OCInitTypeDef
TIM_OCInitTypeDef is defined in the stm32f30x_tim.h
Data Fields
ï‚· uint32_t TIM_OCMode
ï‚· uint16_t TIM_OutputState
ï‚· uint16_t TIM_OutputNState
ï‚· uint32_t TIM_Pulse
ï‚· uint16_t TIM_OCPolarity
ï‚· uint16_t TIM_OCNPolarity
ï‚· uint16_t TIM_OCIdleState
ï‚· uint16_t TIM_OCNIdleState

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals