Have you read this post ?
http://www.mikroe.com/forum/viewtopic.php?t=13169
You made, Ethernet library, in the hurry !
I don't know about ENC28J60 but for PIC18F97J60 family :
Code: Select all
MOVFF _Ethernet_macAddr+5, MAADR1
MOVFF _Ethernet_macAddr+4, MAADR2
MOVFF _Ethernet_macAddr+3, MAADR3
MOVFF _Ethernet_macAddr+2, MAADR4
MOVFF _Ethernet_macAddr+1, MAADR5
MOVFF _Ethernet_macAddr, MAADR6
Corrected version :
ERXFCON = 0b10100001; // default value
MAADR1 = Ethernet_macAddr[0];
MAADR2 = Ethernet_macAddr[1];
MAADR3 = Ethernet_macAddr[2];
MAADR4 = Ethernet_macAddr[3];
MAADR5 = Ethernet_macAddr[4];
MAADR6 = Ethernet_macAddr[5];
With your library , users can not use RX FILTERS.
Anyway, please, if it possible, don't make this mistake in MikroPascal !!!!!
PS. In WW network, with real IP, when BROADCAST traffic is huge, ENC28J60 and PIC18F97J60 don't work without RX FILTERS.