Data Sheet

© Copyright 2012 WIZnet Co., Inc. All rights reserved.
18
iEthernet W5200
IMR (Interrupt Mask Register) [R/W] [0x0036] [0x00]
The Interrupt Mask Register is used to mask interrupts. Each interrupt mask bit corresponds to
a bit in the Interrupt Register (IR). If an interrupt mask bit is set, an interrupt will be issued
whenever the corresponding bit in the IR is set. If any bit in the IMR is set as ‘0’, an interrupt
will not occur though the bit in the IR is set.
7 6 5 4 3 2 1 0
IM_IR7
Reserved IM_IR5 Reserved Reserved Reserved Reserved Reserved
Bit Symbol Description
7 IM_IR7 IP Conflict Enable
6 Reserved Reserved
5 IM_IR5 PPPoE Close Enable
4 Reserved Reserved
3 Reserved Reserved
2 Reserved Reserved
1 Reserved Reserved
0 Reserved Reserved
RTR (Retry Time-value Register) [R/W] [0x0017 0x0018] [0x07D0]
It configures the retransmission timeout-period. The standard unit of RTR is 100us. RTR is
initialized with 2000(0x07D0) and has 200ms timeout-period.
Ex) When timeout-period is set as 400ms, RTR = (400ms / 1ms) X 10 = 4000(0x0FA0)
0x0017 0x0018
0x0F 0xA0
Re-transmission will occur if there is no response from the remote peer to the commands of
CONNECT, DISCON, CLOSE, SEND, SEND_MAC and SEND_KEEP, or the response is delayed.
RCR (Retry Count Register) [R/W] [0x0019] [0x08]
It configures the number of retransmission times. When retransmission occurs as many as
‘RCR+1’ times, Timeout interrupt is set (‘TIMEOUT’ bit of Sn_IR is set as ‘1’).
In case of using TCP communication, the value of Sn_SR (Socket n-th Status Register) is
changed to ‘SOCK_CLOSED and Sn_IR(Socket n-th Status Register) (TIMEOUT) turns into
‘1’. In case of not using TCP communication, only Sn_IR(TIMEOUT) turns into ‘1’.
Ex) RCR = 0x0007
0x0019
0x07