No.12700 作者:dws457 邮件:dws457@sohu.com ID:6701 登陆:2次 文章数:17篇 最后登陆IP:61.171.23.71 最后登陆:2003/4/16 13:34:26 注册:2002/10/22 15:11:00 财富:58 发帖时间:2002/10/22 15:44:00 发贴者IP:61.171.19.37 标题:dws457:硬件:请教斑竹8019 摘要:No.12700硬件:请教斑竹8019 这是我的一段8019初始化CODE,请指教为什末他的CR不受程序控制,始终保持在PAGE0 上。而且其他命令也执行不 了。//****************************************************************** //* Initialize the RTL8019AS //****************************************************************** void init_RTL8019AS() { read_creg(RSTPORT); write_creg(RSTPORT,byte_read); // put NIC in reset delay_ms(10); // delay_ms at least 1.6ms read_creg(RSTPORT); // read contents of reset port write_creg(RSTPORT,byte_read); // do soft reset delay_ms(10); // give it time read_creg(ISR); // check for good soft reset if(!bit_test(byte_read,RST)){ while(1){ printf("INIT FAILED\n\r"); } } write_creg(CR,0x21); //stop the NIC, abort DMA, page 0 delay_ms(2); //make sure nothing is coming in or going out write_creg(DCR,dcrval); //0x58   ......
>>返回讨论的主题
|