Data Sheet
© Copyright 2012 WIZnet Co., Inc. All rights reserved.
28
iEthernet W5200
Sn_IR (Socket n-th Interrupt Register) [R] [0x4002+0x0n00] [0x00]
Sn_IR register provides information such as the type of interrupt (establishment, termination,
receiving data, timeout) used in Socket n-th. When an interrupt occurs and the mask bit of
Sn_IMR is ‘1’, the interrupt bit of Sn_IR becomes ‘1’.
In order to clear the Sn_IR bit, the host should write the bit as ‘1’. When all the bits of
Sn_IR is cleared (‘0’), IR(n) is automatically cleared.
7 6 5 4 3 2 1 0
PRECV PFAIL PNEXT SEND_OK
TIMEOUT
RECV
DISCON CON
Bit Symbol Description
7 PRECV
Sn_IR(PRECV) Interrupt Mask
Valid only in case of 'SOCKET=0' and 'S0_MR(P3:P0)=S0_MR_PPPoE'
PPP Receive Interrupts when the option which is not supported is
received
6 PFAIL
Sn_IR(PFAIL) Interrupt Mask
Valid only in case of 'SOCKET=0' & 'S0_MR(P3:P0)=S0_MR_PPPoE'
PPP Fail Interrupts when PAP Authentication is failed
5 PNEXT
Sn_IR(PNEXT) Interrupt Mask
Valid only in case of 'SOCKET=0' & 'S0_MR(P3:P0)=S0_MR_PPPoE'
PPP Next Phase Interrupts when the phase is changed during ADSL
connection process
4 SEND_OK
Sn_IR(SENDOK) Interrupt Mask
SEND OK Interrupts when the SEND command is completed
3 TIMEOUT
Sn_IR(TIMEOUT) Interrupt Mask
TIMEOUT Interrupts when ARP
TO
or TCP
TO
occurs
2 RECV
Sn_IR(RECV) Interrupt Mask
Receive Interrupts whenever data packet is received from a peer
1 DISCON
Sn_IR(DISCON) Interrupt Mask
Disconnect Interrupts when FIN of FIN/ACK packet is received from a
peer
0 CON
Sn_IR(CON) Interrupt Mask
Connect Interrupts when a connection is established with a peer