Issue with W5500 hardware interrupt
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: Issue with W5500 hardware interrupt
by becky ·
I recommend you set Sn_IMR to 0x04. If so, the interrupt occurs only when it is recv, so there is no need to check if it is a recv interrupt when the interrupt occurs.
setSIR (0x00) is meaningless. SIR is automatically cleared according to Sn_IR. If you did setSn_IR (SOCK_TCP, 0x1F), the interrupt is cleared and the INT line should go high. If setSn_IMR (0xff) is set and you set setSn_IR (SOCK_TCP, 0x1F) in recv only, interrupts may occur in other bits and thus may not be cleared. This can be solved by setting 0x04 in sn_imr.
RE: RE: Issue with W5500 hardware interrupt
by xshura ·
Thanks for your reply. Everything works fine now!
Do I understand correctly that I only need to reset the bit in the Sn_IR register that raised an interrupt?
RE: RE: Issue with W5500 hardware interrupt
by Deepak ·
Hi,
How can I implement a callback function to receive incoming data ??