W5500 reading from RX buffer
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: W5500 reading from RX buffer
by Mxyxixptlick ·
You can examine the working code at https://github.com/SapientHetero/Ethernet to see how it’s done. The code that reads and writes is in socket.cpp. Look at the methods read_data() and write_data().
W5500 commands are sent in W5100.cpp, which can be found in the /utilities subdirectory. This version of W5100.cpp works with W5500, W5200 and W5100 chips.
Compare what these functions do with what you’re reading in the datasheet and that will help you understand how they work.
One word of warning… W5100 uses macros and inline functions to perform register reads and they’re a bit opaque, but they work. For instance, you’ll be hard-pressed to find functions like W5100.writeSnIR() because it’s generated using macros defined in W5100.h in the section that begins with the comment // W5100 Registers.
RE: W5500 reading from RX buffer
by Giorgi Tsintsadze ·
Thank you for your response.
I like the datasheet of W5500 but this part was made so poorly. In 65 paged datasheet there is one and only page that shows how to access RX and TX buffers (It is in the section of Block arrangements, p 15-16)
So that was a bit awkward to find