基于单片机热敏PT100测温仿真设计(毕设课设资料)
【资源下载】下载地址如下:766
https://docs.qq.com/doc/DTlRSd01BZXNpRUxl
#include"at89X52.h"
sbit LCD_RS =P2^0;
sbit LCD_RW =P2^1;
sbit LCD_E =P2^2;
sbit ADC_CS =P2^3;
sbit ADC_WR =P3^6;
sbit ADC_RD =P3^7;
#define LCD_DATA P0
unsigned char LcdBuf1[10]="";
unsigned char code Bmp001[][8]=
{
{0x06,0x09,0x09,0x06,0x00,0x00,0x00,0x00},
{0x06,0x09,0x10,0x10,0x10,0x09,0x06,0x00}
};
void dellay(unsigned int h)
{
while(h--); //0.01MS
}
void WriteDataLcd(unsigned char wdata)
{
LCD_DATA=wdata;
LCD_RS=1;
LCD_RW=0;
LCD_E=0;
dellay(1000);
LCD_E=1;
}
void WriteCommandLcd(unsigned char wdata)
{
LCD_DATA=wdata;
LCD_RS=0;
LCD_RW=0;
LCD_E=0;
dellay(1000);
LCD_E=1;
}