MG32F10x Standard Peripherals Firmware Library

成员变量
TIM_TimeBaseInitTypeDef结构体 参考
MG32F10x_StdPeriph_Driver » TIM

TIM Time Base Init structure definition 更多...

`#include <mg32f10x_tim.h>`

## 成员变量
uint16_t | TIM_Prescaler
uint16_t | TIM_CounterMode
uint32_t | TIM_Period
uint16_t | TIM_ClockDivision
uint8_t | TIM_RepetitionCounter

## 详细描述

TIM Time Base Init structure definition

## 结构体成员变量说明

## ◆ TIM_ClockDivision

uint16_t TIM_ClockDivision

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

## ◆ TIM_CounterMode

uint16_t TIM_CounterMode

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

## ◆ TIM_Period

uint32_t 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 0x00000 and 0xFFFFF.

## ◆ TIM_Prescaler

uint16_t TIM_Prescaler

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

## ◆ TIM_RepetitionCounter

uint8_t 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 mode
- the 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.

该结构体的文档由以下文件生成:

- mg32f10x_tim.h