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

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

于 2022-04-07 发布 文件大小:1.68 kB
0 168
下载积分: 2 下载次数: 1

代码说明:

这是从网上找来的一个比较典型的PID处理程序,在使用单片机作为控制cpu时,请稍作简化,具体的PID 参数必须由具体对象通过实验确定。由于单片机的处理速度和ram资源的限制,一般不采用浮点数运算, 而将所有参数全部用整数,运算到最后再除以一个2的N次方数据(相当于移位),作类似定点数运算,可 大大提高运算速度,根据控制精度的不同要求,当精度要求很高时,注意保留移位引起的“余数”,做好余 数补偿。这个程序只是一般常用pid算法的基本架构,没有包含输入输出处理部分。

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

发表评论

0 个回复

  • 通过按键选择各波形的 输出并且存在AT24C02中 断电后仍然存储...
    通过按键选择各波形的 输出并且存在AT24C02中 断电后仍然存储 -Button to choose the waveform through the output and there AT24C02 still in power storage
    2023-08-15 21:00:04下载
    积分:1
  • 24c08驱动程序 本程序用于驱动atm公司生产的i2c――24c08 程序给出了出口和入口...
    24c08驱动程序 本程序用于驱动atm公司生产的i2c――24c08 程序给出了出口和入口-24c08 driver of the procedures used to drive atm company"s i2c-- 24c08 procedures given import and export
    2022-01-24 16:31:21下载
    积分:1
  • Ontology Design Patterns (ODPs) are well known and efficient modeling solutions...
    Ontology Design Patterns (ODPs) are well known and efficient modeling solutions for ontologies. This public catalog offers a collection of well documented and tested ODPs, including examples from the biological knowledge domain, implemented in OWL.
    2022-03-18 13:53:11下载
    积分:1
  • initial
    --- -initial--- - MOVLA 00H IODIR PA IODIR PB IODIR PC MOVAM PA MOVAM BSR MOVAM STATUS MOVAM TMR0 MOVAM TMR1 MOVAM TMR2 -------end initial----- -------------乘法运算------------ 乘数->10H 被乘数->11h 结果(积)->12H 14H 15H 16H 17H(中间运算) --------------------------------- MOVLA 05H 乘数 ------------ MOVLA 00H IODI R PA IODIR PB IODIR PC MOVAM PA MOVAM BSR MOVAM STA TUS MOVAM TMR0 MOVAM TMR1 MOVAM TMR2------- end initial multiplication------------------------------ multiplier-
    2023-08-20 07:35:03下载
    积分:1
  • Single
    单片机红外遥控试用程序,红外接收头测试烧写文件。-Single-chip infrared remote control trial procedures, the first test infrared receiver programmer documentation.
    2022-01-24 15:18:00下载
    积分:1
  • sanDisk sd card standard protocol manual, very good information
    sanDisk sd卡标准协议手册,很好的资料-sanDisk sd card standard protocol manual, very good information
    2022-12-01 00:05:03下载
    积分:1
  •  C8051F330/1 MCU 有一个可编程内部高频振荡器、一个可编程内部低频振荡器和一个外部振荡器驱动电路。可以通过对 OSCICN 和 OSCICL 寄存...
     C8051F330/1 MCU 有一个可编程内部高频振荡器、一个可编程内部低频振荡器和一个外部振荡器驱动电路。可以通过对 OSCICN 和 OSCICL 寄存器编程来使能/禁止内部高频振荡器和调节其输出频率(参看振荡器框图);可以通过对 OSCLCN 寄存器编程来使能/禁止内部低频振荡器和调节其输出频率(参看图9.3)。系统时钟可以由外部振荡器电路或任何一个内部振荡器提供。表9.1给出了内部振荡器的电气特性。 -C8051F330/1 MCU has a programmable internal high-frequency oscillator, a programmable internal low frequency oscillator and an external oscillator drive circuit. Can register on OSCICN and OSCICL programming to enable/disable the internal high-frequency oscillator and adjust its output frequency (see diagram oscillator) OSCLCN can register through the programming to enable/disable the internal low frequency oscillator and adjust its output frequency (see Figure 9.3). System clock can be external oscillator circuit, or any provision of an internal oscillator. Table 9.1 gives the electrical characteristics of the internal oscillator.
    2022-07-16 04:48:51下载
    积分:1
  • The wireless transceiver module 2401, including: 18B20 temperature detection se...
    无线模块2401收发,包含:18B20温度检测;串口通信1;数码管_键盘;AD-The wireless transceiver module 2401, including: 18B20 temperature detection serial communication 1 digital tube _ keyboard AD, etc.
    2022-07-08 08:01:12下载
    积分:1
  • digital control of the Code Check, in MCU development, it is easy to control the...
    数码管段码速查,在单片机开发时,很容易的控制数码管-digital control of the Code Check, in MCU development, it is easy to control the digital control
    2022-10-14 22:35:03下载
    积分:1
  • 12864Lcd c51例子
    12864Lcd c51例子-12864Lcd
    2022-01-22 13:49:27下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载