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

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

于 2022-03-19 发布 文件大小:10.63 kB
0 229
下载积分: 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 个回复

  • UCOS2在51上的移植源码V1.1。学习UCOS的代码
    UCOS2在51上的移植源码V1.1。学习UCOS的代码-UCOS2 51 on the transplant source V1.1. UCOS learning code
    2023-04-14 21:05:04下载
    积分:1
  • NRF9E5 chips prepared using C51 source code, can be achieved to receive part of...
    利用NRF9e5芯片编写的C51源代码,可实现点到点无线通信接收部分。-NRF9E5 chips prepared using C51 source code, can be achieved to receive part of point-to-point wireless communications.
    2023-07-17 23:35:03下载
    积分:1
  • e book reader
    安装在手机里的安全的免费读书软件,目前装机量已达1500万,并被内置到诺基亚、摩托罗拉、多普达等手机中。用户的手机在安装掌上书院之后,可以阅读保存在手机里的各类资料-e book reader
    2022-08-06 00:44:29下载
    积分:1
  • DS12887C Language Program! So is the oh! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! 1
    DS12887C语言程序!是好使的哦!!!!!!!!!!!!!!!!!!!1-DS12887C Language Program! So is the oh! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! 1
    2022-07-11 08:13:20下载
    积分:1
  • 总测试程序,不仅可以测定其转速的信息,而且可以用于测定其报警信息的内容。可联合以上的程序进行调试。...
    总测试程序,不仅可以测定其转速的信息,而且可以用于测定其报警信息的内容。可联合以上的程序进行调试。-The total test procedure can not only determine his speed information, but can be used for the determination of the contents of its report to the police information. The above procedures can be combined for debugging.
    2022-02-02 06:57:20下载
    积分:1
  • winbond w77e58扩展RAM以及双数据指针的编程方法演示
    winbond w77e58扩展RAM以及双数据指针的编程方法演示-expansion RAM and dual data pointers programming method demonstration
    2022-08-03 22:35:41下载
    积分:1
  • 网络接口芯片RTL8019AS的论文,有助于这方面的开放
    有关网络接口芯片RTL8019As论文,有助于这方面的开放-The network interface chip RTL8019As papers, help in this regard open
    2022-07-26 21:38:12下载
    积分:1
  • 80C52参考频率计程序,包含中断和定时器典型应用代码段
    80C52参考频率计程序,包含中断和定时器典型应用代码段-Reference 80C52 Cymometer procedures, including suspension and timer typical application code segment
    2022-08-20 13:25:43下载
    积分:1
  • 1602lcm字符液晶屏驱动演示程序,连接线图: LCM
    1602lcm字符液晶屏驱动演示程序,连接线图: LCM-------51 LCM-------51 LCM--------51 DB0-----P0.0 DB4-----P0.4 RS-------P2.0 DB1-----P0.1 DB5-----P0.5 RW-------P2.1 DB2-----P0.2 DB6-----P0.6 E--------P2.7 DB3-----P0.3 DB7-----P0.7 VLCD接1K2电阻到GND [注]:AT89C51的晶振频率为12MHz-1602lcm character LCD Driver demo program, link map : LCM LCM------- 51------- 51-------- 51 DB0 LCM P0 .0 DB4----------------- P2.0 P0.4 RS DB1----- P0 .1 DB5 P 0.5 RW----------------- P P2.1 DB2 Encl 0.2 DB6 E------------------ P0.3 P2.7 DB3 DB7----- P0.7 VLCD access 1K2 resistance to GND [Note] : AT89C51 oscillator frequency of 12 MHz
    2022-02-20 17:03:27下载
    积分:1
  • MCS51
    《MCS51-ISP单片机学习板实验指导》可以使初学者对MCS51-ISP单片机多一些了解,里面有不少实用的程序- MCS51-ISP Singlechip plate experimental study guide will enable beginners to MCS51-ISP Singlechip more understanding, there are quite a number of practical procedures
    2022-11-03 02:05:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载