Hello. I'm working at a project with an PIC 18F4620 and an ENC28J60 to try ethernet communication. I made two boards:
one with PIC18F4620 (I already had that for my other projects), and one board with ENC28J60 and its ethernet connection.
The two boards are connected with an DB25 connector. The PIC18F4620 is running at 40MHZ (this come from an 10MHZ crystal and H4 setting),
and I'm sure that the schematics and the code are OK, but all I'm receiving from these boards is packets with Header Checksum Incorrect
(I use for this WIRESHARK NETWORK ANALYZER PROTOCOL).
I suspect that the problem is in SPI communication between PIC and ENC. The distance between the PIC and ENC is approximately 10cm with an
DB25 connector in the middle. Could be this the problem? Should I make a board with PIC and ENC on a single board?
What is (or how can I calculate) the relations between the distance and speed in an SPI communication?
Any advice will be very helpful.
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
Posted: Fri Aug 28, 2009 7:59 am
Header checksum and crc error are two different things. CRC covers the entire MAC frame. If you are getting protocol errors (such as header checksum errors) but are not getting CRC errors then you have a problem with your software stack not with the Ethernet controller. _________________ Regards, Andrew
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum