虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

您现在的位置是:虫虫下载站 > 资源下载 > 技术资料 > 温度控制的PID算法的C语言程序.

温度控制的PID算法的C语言程序.

  • 资源大小:2957 K
  • 上传时间: 2022-07-02
  • 上传用户:xsr1983
  • 资源积分:2 下载积分
  • 标      签: 温度控制 pid算法 C语言

资 源 简 介

#nclude<reg51.h>

#include<intrins.h>

#销nclude<math.h>

#include<string.h>

struct PID{

unsigned int SetPoint;//设定目标 Desired Value unsigned int Proportion;//比例常数Proportional Const unsigned int integral;//积分常数Integral Const unsigned int Derivative://微分常数Derivative Const unsigned int LastError;//Emorl-1]

unsigned int PrevError;//Errorl-2]

unsigned int SumError;//Sums of Errors struct PID spid;//PID Control Structure unsigned int rout;//PID Response(Output)

unsigned int rin://PID Feedback(Input)

sbit data1=P100;sbit clk=P141;sbit plus=P240;sbit subs=P241:sbit stop=P22;sbit output=P34;sbit DQ=P33;unsigned char flag,flag_1=0;unsigned char high_time,low_time,.count=0,/占空比调节参数unsigned char set_temper=35;unsigned char temper;unsigned chari:unsigned charj=0;unsigned ints;


相 关 资 源