Hi,
I'm currently trying to convert a "NET-IO" board of the German shop "Pollin" into a Serial-to-LAN-adapter and learn something on the way (so "use the ethersex code" is not an option ;-).
I have disassembled the original code (which allows access to 8 digital outputs, 4 digital inputs and 4 analog inputs), have the datasheet and have also d/l-ed the ethersex code but no matter how hard I try, I do not get a single packet received! EPKTCNT stays 0 even if I ping a non-existent IP address (UC, MC, and BC are obviously ENabled!)
I have traced this back and I find that MARST is clear after a SOFT RESET, while it should be set according to the datasheet! So I gather that the MAC unit is not working.
My code looks like this (I hope the function names are self-explanatory):
/* Wait for ESTAT.CLKRDY */ while (!ENC28J60_RCR(REG_ESTAT) & (1