include
#include
#include
#define uint unsigned int
#define uchar unsigned char
#define max197 XBYTE[0xefff]
sbit EN=P2^0;
sbit RS=P2^1;
sbit CS=P2^2;
sbit HBEN=P2^3;
sbit duan=P2^6;
uchar templ,temph,flag;
float dianya;
uint temp,temp1[25];
unsigned long voltage;
void delay(uint i)
{
while(i--);
}
void delay1(uint z)
{
int x,y;
for(x=z;x>0;x--)
for(y=114;y>0;y--);
}
void write_com(uchar com)
{
RS=0;
P1=com;
delay1(5);
EN=1;
delay1(5);
EN=0;
}
void write_data(uchar date)
{
RS=1;
P1=date;
delay1(5);
EN=1;
delay1(5);
EN=0;
}
void initial()
{