#include <reg51.h> #include <intrins.h> #include <stdio.h> //包含必要的头文件
#define uint unsigned int #define uchar unsigned char #define delay4us() {_nop_();_nop_();_nop_();_nop_();} #define NOP _nop_()
sbit HIGH=P2^3; sbit LOW=P2^4 ; sbit AD_CS =P1^0; sbit SCK=P1^1; sbit DO=P1^2; sbit DI=P1^2; sbit RS=P2^0; sbit RW=P2^1; sbit E =P2^2; //必要的位定义
unsigned char adval; uchar Display_Buffer[] = "000.0KPa"; uchar code Line1[] = "Current Press:"; |