多路温度采集系统

单片机C语言编写多路温度采集系统

#include"intrins.h"

#include<reg51.h>

#define uchar unsigned char

sbit dq=P1^5;

sbit key_clk=P3^2;//键盘时钟

sbit key_data=P3^7;//键盘数据

uchar key=0; //键值

uchar keycounter=0;//有新按键标志位

uchar counter1=0;

uchar xdata alarmflag[3][11]={0};

sbit D_I = P2^0;

sbit R_W = P2^1;

sbit E = P2^6;

sbit CS1 = P2^4;

sbit CS2 = P2^3;

sbit RST = P2^2;

uchar ROMnumber[3][8]={0};

uchar THL[2][3]={

25,50,60,

8, 30,25,};

uchar temper[2][3]={0};

uchar temper1[2][3]={0};

uchar rodcounter=0;

uchar flag[3]={1};

sbit t_clk=P2^5;

sbit t_io=P2^6;

sbit t_rst=P3^7;

sbit bit7=ACC^7;

sbit bit0=ACC^0;

uchar time[14];

uchar settime[7]={0x30,0x12,0x12,0x21,0x02,0x01,0x05};

uchar code number[10][16]={

0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,//-----0 0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,//------1 0x00,0x70,0x08,0x08,0x08,0x88,0x70,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00,//------2 0x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00,//------3 0x00,0x00,0xC0,0x20,0x10,0xF8,0x00,0x00,0x00,0x07,0x04,0x24,0x24,0x3F,0x24,0x00,//------4 0x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00,//-------5 0x00,0xE0,0x10,0x88,0x88,0x18,0x00,0x00,0x00,0x0F,0x11,0x20,0x20,0x11,0x0E,0x00,//-------6 0x00,0x38,0x08,0x08,0xC8,0x38,0x08,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00,//-------7 0x00,0x70,0x88,0x08,0x08,0x88,0x70,0x00,0x00,0x1C,0x22,0x21,0x21,0x22,0x1C,0x00,//-------8 0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x00,0x31,0x22,0x22,0x11,0x0F,0x00,//-------9

Word文档免费下载Word文档免费下载:多路温度采集系统 (共38页,当前第1页)

你可能喜欢

  • 多路数据采集系统设计
  • 单片机温度控制系统设计
  • 单片机数据采集设计
  • DS18B20温度传感器
  • 经典毕业论文答辩ppt模板
  • AT89S52中文资料
  • 温度采集通道设计

多路温度采集系统相关文档

最新文档

返回顶部