STM32 PID算法

  • m5_803323
    了解作者
  • 691.3KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-10 13:28
    上传日期
PID算法
8649963STM32F103.rar
  • listing
  • STM32F10x.lst
    35.7KB
  • tim1.map
    72.1KB
  • obj
  • stm32f10x_dma.d
    390B
  • stm32f10x_tim1.o
    77.8KB
  • adc.d
    419B
  • stm32f10x_lib.d
    682B
  • stm32f10x_gpio.d
    400B
  • stm32f10x_adc.crf
    40.6KB
  • tim1.sct
    479B
  • pwm.d
    370B
  • stm32f10x_it.crf
    85.9KB
  • stm32f10x_gpio.crf
    33.4KB
  • tim1.htm
    84.6KB
  • stm32f10x_flash.d
    367B
  • pwm.crf
    59.1KB
  • main.crf
    86.2KB
  • stm32f10x_dma.o
    38.2KB
  • stm32f10x_tim1.crf
    67.2KB
  • stm32f10x_flash.crf
    18.9KB
  • pwm_2.o
    41.5KB
  • pwm_2.d
    353B
  • stm32f10x_dma.crf
    31.9KB
  • pwm_2.crf
    41.7KB
  • ExtDll.iex
    19B
  • stm32f10x_adc.o
    50.2KB
  • stm32f10x_flash.o
    23KB
  • stm32f10x_tim.o
    70.7KB
  • main.d
    625B
  • stm32f10x_nvic.crf
    28KB
  • stm32f10x_rcc.d
    349B
  • stm32f10x_nvic.d
    358B
  • tim1.lnp
    585B
  • stm32f10x_tim1.d
    400B
  • stm32f10x_tim.crf
    58.4KB
  • adc.o
    48.6KB
  • tim1.hex
    27.4KB
  • stm32f10x_nvic.o
    37.6KB
  • stm32f10x_tim.d
    390B
  • stm32f10x_adc.d
    390B
  • pwm.o
    56.6KB
  • STM32F10x.o
    5.1KB
  • tim1.axf
    177.7KB
  • adc.crf
    40.6KB
  • stm32f10x_it.d
    705B
  • tim1.tra
    1.9KB
  • stm32f10x_rcc.o
    39.6KB
  • main.o
    91.8KB
  • stm32f10x_gpio.o
    40.5KB
  • stm32f10x_rcc.crf
    32.5KB
  • stm32f10x_lib.o
    83.5KB
  • pid.d
    56B
  • stm32f10x_lib.crf
    83.4KB
  • pid.o
    7.6KB
  • pid.crf
    816B
  • stm32f10x_it.o
    94.8KB
  • uvision
  • stm32f10x_adc.c
    53.7KB
  • stm32f10x_spi.h
    9.2KB
  • Driver
  • stm32f10x_tim.h
    28.5KB
  • stdint.h
    5.2KB
  • PWM_2.c
    4KB
  • adc.h
    206B
  • PID.h
    2.5KB
  • ADC.c
    3.6KB
  • PWM.h
    183B
  • PWM.c
    4.8KB
  • PID.c
    4.5KB
  • stm32f10x_tim.h
    28.5KB
  • stm32f10x_usart.h
    11.6KB
  • stm32f10x_dma.h
    12.3KB
  • stm32f10x_flash.c
    31.4KB
  • stm32f10x_type.h
    3.1KB
  • stm32f10x_i2c.h
    15.3KB
  • main.c
    12KB
  • stm32f10x_rcc.c
    42KB
  • tim1_Target 1.dep
    7.6KB
  • stm32f10x_wwdg.c
    7.7KB
  • stm32f10x_iwdg.h
    3.5KB
  • JLinkArm_TIM.ini
    205B
  • stm32f10x_nvic.h
    16KB
  • stm32f10x_tim.c
    97KB
  • stm32f10x_systick.h
    3.2KB
  • stm32f10x_map.h
    19.9KB
  • stm32f10x_it.c
    21.7KB
  • stm32f10x_bkp.h
    3.4KB
  • stm32f10x_iwdg.c
    6.4KB
  • stm32f10x_gpio.c
    20.6KB
  • stm32f10x_pwr.c
    11KB
  • stm32f10x_pwr.h
    3.9KB
  • stm32f10x_lib.c
    6.8KB
  • stm32f10x_exti.h
    5.7KB
  • stm32f10x_conf.h
    5.5KB
  • stm32f10x_can.h
    12KB
  • stm32f10x_adc.h
    16KB
  • STM32F10x.s
    11KB
  • stm32f10x_tim1.c
    111KB
  • tim1_uvopt.bak
    69.2KB
内容介绍
/******************** (C) COPYRIGHT 2007 STMicroelectronics ******************** * File Name : readme.txt * Author : MCD Application Team * Date First Issued : 02/05/2007 * Description : Description of the TIM1 Example1. ******************************************************************************** * History: * 05/21/2007: V0.3 * 04/02/2007: V0.2 * 02/05/2007: V0.1 ******************************************************************************** * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE * CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. *******************************************************************************/ Example description =================== This example shows how to configure the TIM1 peripheral to generate three complementary TIM1 signals, to insert a defined dead time value, to use the break feature and to lock the desired parameters. TIM1CLK is fixed to 72 MHz, the TIM1 Prescaler is equal to 0x0 so the TIM1 counter clock used is 72 MHz. TIM1 frequency is defined as follow: TIM1 frequency = TIM1 counter clock / (TIM1_Period + 1) = 1.098 KHz. The Three Duty cycles are computed as the following description: TIM1 Channel1 duty cycle = TIM1_CCR1 / (TIM1_Period + 1) = 50% TIM1 Channel1N duty cycle = (TIM1_Period - TIM1_CCR1) / (TIM1_Period + 1) = 50% TIM1 Channel2 duty cycle = TIM1_CCR2 / (TIM1_Period + 1) = 25% TIM1 Channel2N duty cycle = (TIM1_Period - TIM1_CCR1) / (TIM1_Period + 1) = 75% TIM1 Channel3 duty cycle = TIM1_CCR3 / TIM1_Period = 12.5% TIM1 Channel3N duty cycle = (TIM1_Period - TIM1_CCR3) / (TIM1_Period + 1) = 87.5% A dead time of 1.62 us is inserted between the different complementary signals, and the Lock level 1 is selected. The break Polarity is used at High level. The TIM1 waveform can be displayed using an oscilloscope. Directory contents ================== stm32F10x_conf.h Library Configuration file stm32F10x_it.c Interrupt handlers stm32F10x_it.h Interrupt handlers header file main.c Main program Hardware environment ==================== Connect the TIM1 pins to an oscilloscope: - TIM1_CH1 pin (PA.08) - TIM1_CH1N pin (PB.13) - TIM1_CH2 pin (PA.09) - TIM1_CH2N pin (PB.14) - TIM1_CH3 pin (PA.10) - TIM1_CH3N pin (PB.15) Connect the TIM1 break pin TIM1_BKIN pin (PB.12) to the GND. To generate a break event, switch this pin level from 0V to 3.3V. How to use it ============= In order to make the program work, you must do the following: - Create a project and setup all your toolchain's start-up files - Compile the directory content files and required Library files: + stm32f10x_lib.c + stm32f10x_tim1.c + stm32f10x_gpio.c + stm32f10x_rcc.c + stm32f10x_nvic.c + stm32f10x_flash.c - Link all compiled files and load your image into either RAM or Flash - Run the example ******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE******
评论
    相关推荐
    • PID算法STM32实现
      PID算法STM32实现,包括纯C实现和PID参数的调节方法和图示等
    • STM32_PID算法源码
      基于STM32F103R8的PID算法例程,完整工程源码,PWM输出控制信号,ADC输入反馈信号,形成闭环控制。
    • 基于STM32的PID算法
      该资源为经典工业控制PID算法STM32源码及思想,详细的解释了PID算法思想及实现,非常适合新手学习,资源整理不易,同学务必珍惜。
    • STM32巡线小车PID算法代码
      STM32F103C8T6为控制器,L298N驱动两个直流电机,通过3个反射式红外传感器采集数据,采用两节3.2V锂电池串联作为电源的巡线小车。车上搭在了其他模块,如:超声波测距模块、显示屏模块等。 程序为C语言编写。  ...
    • STM32 FFT算法实现
      在原子哥的开发板上实现的FFT算法和UCOS。全部资料均来自网络,谢谢原子哥,谢谢网络上无私的朋友
    • stm32加密算法.rar
      STM32加密算法库,包含常见的加密算法,AES、ARC4、ECC、HASH、RAND、RSA、TDES_DES等加密算法
    • stm32 风洞 pid算法程序
      stm32 风洞控制程序 PID
    • stm32 定时器中断算法
      stm32 定时器中断算法,s曲线七段法,可以根据自己应用实例进行更改
    • 基于stm32的血压算法
      基于stm32的血压算法,精度还可以,需要的话可以直接移植使用,方便大家。
    • SIM800C_MQTT.rar
      使用SIM800C模块,使用MQTT协议,连接中国移动onenet平台,能实现数据的订阅、发布、存储等