Error in starting the server in pic18f4520
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: Error in starting the server in pic18f4520
by Kei ·
Is this function modified by you?
It is different from ioDriver’s function form.
I want you to re-check the code with the following information.
W5500 TCP Function Application Guide
And,
Please refer to other topic below.
RE: Error in starting the server in pic18f4520
by Shade ·
Looking at your initialization I noticed you assert the Hardware Reset line, apply 1 ms delay, then de-assert the Reset line and apply another 1 ms delay.
I would suggest to toggle the Reset line without using any delays, then start polling the PHY Configuration Register (Common Block, Offset 0x2E) for RST Bit (0x08) cleared. This happens in less than 1 ms.
From this point you can apply Software Reset and start Register initialization.
Below is some pseudo code reflecting this approach.
When your initialization is complete, your device should be responding to pinging its IP Address.
Good Luck!