Address.h
上传用户:lyfy_2008
上传日期:2014-07-13
资源大小:3016k
文件大小:1k
- #include"reg51.h"
- #include"absacc.h"
- //RS=1是数据
- //RW=1是读
- //2*16LCD
- #define LCDIDATA XBYTE[0xFB01]
- #define LCDICOM XBYTE[0xFB00]
- #define LCDIACOM XBYTE[0xFB02]
- //128*64LCD
- //左右屏
- #define LCDIICOM XBYTE[0xFBFC]//写命令
- #define LCDIIACOM XBYTE[0xFBFE]//读命令
- #define LCDIIDATA XBYTE[0xFBFD]//写数据
- //左屏
- #define LCDIILCOM XBYTE[0xFBF4]//写命令
- #define LCDIILACOM XBYTE[0xFBF6]//读命令
- #define LCDIILDATA XBYTE[0xFB05]//写数据
- //右屏
- #define LCDIIRCOM XBYTE[0xFBF8]//写命令
- #define LCDIIRACOM XBYTE[0xFBFA]//读命令
- #define LCDIIRDATA XBYTE[0xFB09]//写数据
- //#define USBCOM XBYTE[0xF701]
- //#define USBDATA XBYTE[0xF700]
- #define KEYDATA XBYTE[0xFD00]
- #define LEDDATA XBYTE[0xFE00]
- sbit _18B20= P3^5;
- sbit BEEB= P3^4;
- sbit LCDLight= P3^2;
- sbit SPILatch= P1^0;
- sbit SPICLK= P1^1;
- sbit SPIDATA= P1^2;
- sbit IICSCL= P1^3;
- sbit IICDATA= P1^4;