EasyManua.ls Logo

ST STM32F31xx

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
Loading...
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

Related product manuals