登录
首页 » SCM » 这是一个比较典型的PID处理程序,在使用单片机作为控制cpu时,请稍作简化,具体的PID 参数必须由具体对象通过实验确定。由于单片机的处理速度和ram资源的限制...

这是一个比较典型的PID处理程序,在使用单片机作为控制cpu时,请稍作简化,具体的PID 参数必须由具体对象通过实验确定。由于单片机的处理速度和ram资源的限制...

于 2022-03-19 发布 文件大小:10.63 kB
0 195
下载积分: 2 下载次数: 1

代码说明:

这是一个比较典型的PID处理程序,在使用单片机作为控制cpu时,请稍作简化,具体的PID 参数必须由具体对象通过实验确定。由于单片机的处理速度和ram资源的限制,一般不采用浮点数运算,而将所有参数全部用整数,运算 到最后再除以一个2的N次方数据(相当于移位),作类似定点数运算,可大大提高运算速度,根据控制精度的不同要求,当精度要求很 高时,注意保留移位引起的“余数”,做好余数补偿。这个程序只是一般常用pid算法的基本架构,没有包含输入输出处理部分。-This is a typical PID process, as in the use of SCM control cpu, please slightly simplified, specific PID parameters to be specific targets identified by experiments. As SCM processing speed and ram resource constraints, generally do not use floating-point operations, and will use all the parameters of all integers, and the final calculations to divide one of the Nth 2 data (the equivalent displacement), will count for a similar operation, it will greatly increase the computing speed, control Accuracy of different requirements and high precision, displacement caused reservations to the attention of the "I", which I do several compensation. This procedure is commonly used algorithm pid the basic structure does not include input and output processing.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • SCM interrupt procedures and procedures keyboard
    单片机串口中断程序和键盘程序-SCM interrupt procedures and procedures keyboard
    2022-05-06 19:34:09下载
    积分:1
  • Elan eKTP8733N 单片机Touch Pad驱动程序。可检测8个Touch Pad按键是否按下。在Elan公司开发环境中使用。...
    Elan eKTP8733N 单片机Touch Pad驱动程序。可检测8个Touch Pad按键是否按下。在Elan公司开发环境中使用。-Elan eKTP8733N Singlechip Touch Pad driver. 8 can detect whether the Touch Pad button press. Elan has developed in the environment.
    2022-01-25 23:40:20下载
    积分:1
  • 最高优先级的编码器,相比八的三个阶段的投票(辅…
    最高优先级编码器 8位相等比较器 三人表决器(三种不同的描述方式) 加法器描述 8位总线收发器:74245 (注2) 地址译码(for m68008) 多路选择器(使用select语句) LED七段译码 多路选择器(使用if-else语句) 双2-4译码器:74139 多路选择器(使用when-else语句) 二进制到BCD码转换 多路选择器 (使用case语句) 二进制到格雷码转换 双向总线(注2) 汉明纠错吗译码器 三态总线(注2) 汉明纠错吗编码器 解复用器 -highest priority encoder, compared to eight for phase three of the vote (the description of three different ways) Adder Description eight bus Transceivers : 74,245 (Note 2) address decoder (for m68008) Multiple choice (use select statement) LED paragraph 107 of decoding multiple choice ( use if-else statements) 2-4 dual decoder : over 74,139 road choice (use when-else statements) of the binary conversion BCD multiple choice (use case statement) binary Gray code conversion to a two-way bus (Note 2)? Hamming error correction decoder three-state Bus (Note 2)? Hamming error correction encoder demultiplexer
    2022-03-01 09:35:55下载
    积分:1
  • MSP430 MCU to download the official line schematic drawings
    MSP430 单片机的下载线原理图 官方图纸-MSP430 MCU to download the official line schematic drawings
    2022-06-03 09:57:39下载
    积分:1
  • 三菱16位单片机M306N0系列,串口驱动源码。
    三菱16位单片机M306N0系列,串口驱动源码。-Mitsubishi 16-bit microcontroller M306N0 series, serial driver source code.
    2022-08-22 01:56:30下载
    积分:1
  • 过负荷记录仪器分为单片机数据采集器和微机数据分析记录数据库软件两部分。 仪器具有监视变压器负荷电流(通过改变传感器也可记录最低电压)并自动记录过负荷电流出现...
    过负荷记录仪器分为单片机数据采集器和微机数据分析记录数据库软件两部分。 仪器具有监视变压器负荷电流(通过改变传感器也可记录最低电压)并自动记录过负荷电流出现的开始时间,最大值和结束时间的功能。当前版本可保存150次的过负荷数据。并可根据需要扩充。pc机软件具有和仪器通信的能力,能够把仪器采集的数据集中保存,并能进行查询,统计等处理。使用本仪器可以定量分析变压器的过负荷情况。 本原码为PC机部分,使用了串口通信和数据库技术 -Overload apparatus records are divided into single-chip data acquisition and data analysis microcomputer database software records in two parts. Surveillance equipment with transformer load current (by changing the sensor can also record the minimum voltage) and automatically recorded the load current emerging start time, maximum and end times of the function. 150 to save the current version of data overload. And in accordance with the need to expand. pc software and equipment with communication capability to the instrument collected data centrally stored, and can query, statistics and other treatment. Use of the device which can be quantitative analysis of transformer overload situation. Primitive machine code for the PC part, the use of the serial communications and d
    2022-03-14 16:41:23下载
    积分:1
  • software MPLAB... writing program (coding .c/.h)
    software MPLAB... writing program (coding .c/.h) -software MPLAB... writing program (coding .c/.h)
    2022-08-24 17:55:09下载
    积分:1
  • 该软件用于开发具有触摸屏的系统,打开图形文件就可以
    该软件用于开发具有触摸屏的系统,打开图形文件就可以-software for the development of the touch screen with the system and opening graphics files can
    2022-01-22 09:09:03下载
    积分:1
  • 单片机 AT89C52 的中文资料 适合新手 学习!重要基础单片机资料...
    单片机 AT89C52 的中文资料 适合新手 学习!重要基础单片机资料-SCM AT89C52" s Chinese data suitable for novice to learn! An important foundation for SCM information
    2022-02-13 11:49:01下载
    积分:1
  • 单片机常用手册, 单片机常用手册,单片机常用手册
    单片机常用手册, 单片机常用手册,单片机常用手册-MCU used manual, microcontroller used manual, microcontroller used manual, manuals used MCU
    2022-02-14 17:17:23下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载