硬件:老古:8019
大虾:我在读的时候,是先inportb ISR 和 IMR 的bit 0,如果这两位都为1,
我就执行我的接收程序,我在接收时,先读出前18个byte,根据byte 3,4得到
RBCR0,1(byte 2得到BNRY),然后,再接受,收完之后再调整bnry,没有想您
提到的那样,收一页,就bnry++一下,数据不对呀,看来我应该调整。另外,我
常常没法接收数据,明明
那边的PC在不停的往我的NIC里发数据,而我就是没有中断(ISR),为什么?附:
outportb(0x300,0x21);
temp1=inportb(0x307);
outportb(0x300,0xa1);
temp2=inportb(0x30f);
temp1=1&temp1;
temp2=1&temp2;
temp=temp1&temp2;
if(temp)
{ Receive( );
Adjust_BNRY( );
}
我printf ( ) temp1,在&操作之前,temp1=0xc0;
我一直用等待中断,就是不给中断,为什么?大虾,指点。
发表时间:2001年11月15日20:38:00