北方民族大学计算机控制课设按要求设置温度控制系统硬件仿真流程图程序.docxVIP

  • 2
  • 0
  • 约5.66千字
  • 约 30页
  • 2019-10-24 发布于湖北
  • 举报

北方民族大学计算机控制课设按要求设置温度控制系统硬件仿真流程图程序.docx

计算机控制硬件图终极版 仿真 程序 主程序流程图 中断服务子程序流程图 #includereg51.h #includeintrins.h #includemath.h #includestring.h struct PID spid;// PID Control structure unsigned int rout;// PID response (output) unsigned int rin;// PID feedback(input) sbit A0=P0^0; sbit A1=P0^1; sbit WR=P0^2; sbit RD=P0^3; sbit A0_2=P3^0; sbit A1_2=P3^1; sbit WR_2=P3^6; sbit RD_2=P3^7; unsigned char flag,flag_1=0;//标志未初始化 unsigned char high_time,low_time,count=0;//占空比调节参数 unsigned char set_temper;// 设定温度 unsigned char temper;// 测量的温度 unsigned char i; unsigned char j=0; unsigned int s; /********************1602液晶初始化******

文档评论(0)

1亿VIP精品文档

相关文档