unsigned char volatile xdata CH375_CMD_PORT _at_ 0xBDF1; /* CH375命令端口的I/O地址 */ unsigned char volatile xdata CH375_DAT_PORT _at_ 0xBCF0; /* CH375數(shù)據(jù)端口的I/O地址 */
不知你的地址是怎樣定義的,請說明一下. 偶的理解是:A0=1時寫命令,對應(yīng)命令端口;A0=0時讀命令,對應(yīng)數(shù)據(jù)端口。那么A0連的P2.0,cs連的P2.1,是否可以將以上改為: unsigned char volatile xdata CH375_CMD_PORT _at_ 0xFFFD; /* CH375命令端口的I/O地址 */ unsigned char volatile xdata CH375_DAT_PORT _at_ 0xFFFC; /* CH375數(shù)據(jù)端口的I/O地址 */