---
title: "STM32-Timer相关"
author: "lanxinyuchs"
date: "2013-08-29T19:13:25Z"
tags: []
categories: ["行业应用"]
slug: "stm32-timer"
draft: false
lastmod: "2013-08-29T19:14:09Z"
id: 1933483
url: "https://lanxinyuchs.iteye.com/blog/1933483"
---

1.TimeBase结构体参数试用范围

    根据stm32f10x\_tim.c库文件,在使用TimeBase功能的初始化结构TIM\_TimeBaseInitStruct中

    TIM\_CounterMode适用于TIM1~TIM5,TIM8

    TIM\_ClockDivision适用于除TIM6,TIM7以外的所有Timer

    TIM\_Period和TIM\_Prescaler适用于所有Timer

    TIM\_RepetitionCounter使用于TIM1,TIM8,TIM15~TIM17