Tim_Timebaseinittypedef; Tim_Ocinittypedef - ST STM32F31xx User Manual

Table of Contents

Advertisement

UM1581
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
uint16_t TIM_TimeBaseInitTypeDef::TIM_CounterMode
uint32_t TIM_TimeBaseInitTypeDef::TIM_Period
uint16_t TIM_TimeBaseInitTypeDef::TIM_ClockDivision
uint8_t TIM_TimeBaseInitTypeDef::TIM_RepetitionCounter
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
Specifies the prescaler value used to divide the TIM clock. This parameter can
be a number between 0x0000 and 0xFFFF
Specifies the counter mode. This parameter can be a value of
TIM_Counter_Mode
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.
Specifies the clock division. This parameter can be a value of
TIM_Clock_Division_CKD
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.
DocID023800 Rev 1
General-purpose timers (TIM)
449/584

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Stm32f30xx

Table of Contents