w5200 수신 체크를 폴링으로 할 경우 최소 시간 간격?
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: w5200 수신 체크를 폴링으로 할 경우 최소 시간 간격?
by bangbh ·
인터럽트 방식이 MCU의 자원을 아껴쓸 수 있다는 것은 사실이지만
아무리 인터럽트 방식이라 하더라도 정해진 시간에 주어진 일을 못한다면 실패인거죠.
예를 들면 인터럽트 이벤트로 주어진 일을 하던 도중 또 인터럽트가 걸리는 상황에서는 데이터처리라던지 일을 제대로 못할 가능성이 많습니다.
그리고 수신체크를 폴링으로 할 경우 최소 시간 간격은 MCU에서 정할 수는 없는 일입니다. 왜냐면 주는 쪽 마음이기 때문입니다.
만약 naemaum4u님이 코딩한 것처럼 데이터를 주는 쪽에서 50usec로 일정하게 데이터를 주고 MCU는 50usec 안에 일처리를 충분히 할 수 있다면
전혀 문제가 안되겠죠. 하지만 50usec마다 데이터를 주는데 데이터 처리에 100usec가 걸리면 언젠가 버퍼는 넘칠 것이고 데이터는 사라지겠죠.
인터럽트방식을 쓰더라도 똑같습니다.
그리고 W5200의 인터럽트는 데이터 시트를 보시는 것이 더욱 도움이 될 것 같습니다. 수신하는 경우에만 인터럽트를 발생시킨다던지 하는 상세한
설명이 나와 있으니까요.
^^ 그럼 도움이 되셨으면 좋겠네요.
수고하세요.