It is good that you have it working. Have a look at my program in particular the many comments I have made there is a great deal of information about the ENC28J60 , the way it wants to be connected and controlled you will see that it is best to run the AVR from its clock ouput I run my one at 12.5mHz as the ENC28J60 is unstable at less than 10mHz so you would need an AVR at 20mHz with the SPI buss at high speed to get the AVR SPI to 10mHz, I show the set up of the ENC28J60 to do this , also I show how to run the SPI buss at high speed (half the cpu clock) , the biasing resistor on the ENC28J60 needs to be the correct one for its revision and the only way to determ this is to read the revision number from the ENC28J60 as its not printed on the outside then you need to read the data sheet to find which one to use, the AVR can be run at 5V as the ENC28J60 inputs are rated for this even though it runs at 3V. Those are some of the more important things but there is a lot more.
Regards Paul
↧