我的操作
我原本的程序:
XBYTE[0x304c]=0x25; //port 1 drop time slot
XBYTE[0x307c]=0x45; //port 2 drop time slot
XBYTE[0x30ac]=0x65; //port 3 drop time slot
XBYTE[0x30dc]=0x29; //port 4 drop time slot
XBYTE[0x304d]=0x25; //port 1 add time slot
XBYTE[0x307d]=0x45; //port 2 add time slot
XBYTE[0x30ad]=0x65; //port 3 add time slot
XBYTE[0x30dd]=0x29; //port 4 add time slot
这样能看到我外围应用片子正常工作,但该为:
WriteChar(0x00,0x25) ;
WriteChar(0x01,0x45) ;
WriteChar(0x02,0x65) ;
WriteChar(0x03,0x29) ;
WriteChar(0x04,0x25) ;
WriteChar(0x05,0x45) ;
WriteChar(0x06,0x65) ;
WriteChar(0x07,0x29) ;
XBYTE[0x304c]=ReadChar(0x00) ; //port 1 drop time slot
XBYTE[0x307c]=ReadChar(0x01) ; //port 2 drop time slot
XBYTE[0x30ac]=ReadChar(0x02) ; //port 3 drop time slot
XBYTE[0x30dc]=ReadChar(0x03) ; //port 4 drop time slot
XBYTE[0x304d]=ReadChar(0x04) ; //port 1 add time slot
XBYTE[0x307d]=ReadChar(0x05) ; //port 2 add time slot
XBYTE[0x30ad]=ReadChar(0x06) ; //port 3 add time slot
XBYTE[0x30dd]=ReadChar(0x07) ; //port 4 add time slot
就不行了,硬件连接不会有问题吧,就那么几个脚。
发表时间:2002年10月13日12:30:00