I'm mounting the ethernet + AVR as in the site:
but I'm experiencing some trouble to make the comunication work.
Following the steps to check if the circuit is working, I could upload a blinking LED program to the ATMEGA and when I plug an RJ45 cable, the link LED goes on. (both ATMEGA and ENC28j60 are plugged here)
The problem is when I try to start the comunication to Ethernet. Using the program avaiable in the website, everytime the AVR runs enc28j60PacketReceive(BUFFER_SIZE, buf); the link LED blinks off and I don't have any data received (I'm trying to ping it)
Do you guys have any idea where probably is the problem in my circuit? I've checked the connections and they seen to be all right and there are no short circuits.
The SPI communication may be the reason for that, but as I see that shouldn't affect the link LED, is that right?
The Magjack I used was this:http://ww2.pulseeng.com/products/datasheets/J414.pdf
And I'm using a ATMEGA168P and ENC28J60, both DIP
Thanks for the help.