用89S52主芯片 8255扩展口线.那么8255的地址是怎么认为的呢?如下面:不知道是怎么定义的?还有8255在用PA口做普通输入输出时是怎么用的呢?谢谢
#define WriteDeviceAddress 0xa0 //写格式 #define ReadDviceAddress 0xa1 //读格式 #define uchar unsigned char #define uint unsigned int #define PA8255 XBYTE[0x3ffc] #define PB8255 XBYTE[0x3ffd] #define PC8255 XBYTE[0x3ffe] #define COM8255 XBYTE[0x3fff]
|