TIM_TimeBaseInitTypeDef Struct Reference
[TIM_Exported_Types]

TIM Time Base Init structure definition. More...

#include <stm32f10x_tim.h>

Data Fields

uint16_t TIM_ClockDivision
uint16_t TIM_CounterMode
uint16_t TIM_Period
uint16_t TIM_Prescaler
uint8_t TIM_RepetitionCounter

Detailed Description

TIM Time Base Init structure definition.

Note:
This sturcture is used with all TIMx except for TIM6 and TIM7.

Definition at line 50 of file stm32f10x_tim.h.


Field Documentation

Specifies the clock division. This parameter can be a value of TIM_Clock_Division_CKD

Definition at line 62 of file stm32f10x_tim.h.

Referenced by main(), TIM_Configuration(), TIM_TimeBaseInit(), and TIM_TimeBaseStructInit().

Specifies the counter mode. This parameter can be a value of TIM_Counter_Mode

Definition at line 55 of file stm32f10x_tim.h.

Referenced by main(), TIM_Configuration(), TIM_TimeBaseInit(), and TIM_TimeBaseStructInit().

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.

Definition at line 58 of file stm32f10x_tim.h.

Referenced by main(), TIM_Configuration(), TIM_TimeBaseInit(), and TIM_TimeBaseStructInit().

Specifies the prescaler value used to divide the TIM clock. This parameter can be a number between 0x0000 and 0xFFFF

Definition at line 52 of file stm32f10x_tim.h.

Referenced by main(), TIM_Configuration(), TIM_TimeBaseInit(), and TIM_TimeBaseStructInit().

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 mode
  • the number of half PWM period in center-aligned mode This parameter must be a number between 0x00 and 0xFF.
    Note:
    This parameter is valid only for TIM1 and TIM8.

Definition at line 65 of file stm32f10x_tim.h.

Referenced by main(), TIM_Configuration(), TIM_TimeBaseInit(), and TIM_TimeBaseStructInit().


The documentation for this struct was generated from the following file:
STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32