dsPIC33EP512MU810 ENC28J60 Ethernet connection

General discussion on mikroC.
Post Reply
Author
Message
JamesDuan
Posts: 8
Joined: 09 Jan 2019 00:18

dsPIC33EP512MU810 ENC28J60 Ethernet connection

#1 Post by JamesDuan » 22 Feb 2019 22:50

Hi,

I would like to use static IP address to connect my MCU to router through ENC28J60. I attached my project in this post. I always failed to connect my MCU to router. I already test static connection method through my computer and it worked. Btw I can not received any packets from ethernet based on the return value of do_packet function. I would like to know if there is any thing wrong in my code. Or anyone else could give me a brief idea to debug my hardware and firmware.

I am really appreciated for your help.

James
Attachments
Ethernet Connection.zip
fail connection
(256.22 KiB) Downloaded 103 times

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: dsPIC33EP512MU810 ENC28J60 Ethernet connection

#2 Post by jovana.medakovic » 27 Feb 2019 17:00

Hi,

Can you tell me which development board you have?
Could you try to use SPI2 in your project?
Pins for SPI2 are the following (they are not remappable):
SCK - RG6
MISO - RG7
MOSI - RG8
http://ww1.microchip.com/downloads/en/d ... 70616g.pdf

You can find your corrected project in the attachment.

Kind regards,
Jovana
Attachments
Ethernet Connection.zip
(243.44 KiB) Downloaded 138 times

Post Reply

Return to “mikroC General”