Data Sheet
© Copyright 2013 WIZnet Co.,Ltd. All rights reserved.
29
iEthernet
W5200
Sn_IR (Socket n 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. 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
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
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
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
SEND OK Interrupts when the SEND command is completed
3 TIMEOUT
Sn_IR(TIMEOUT) Interrupt
TIMEOUT Interrupts when ARP
TO
or TCP
TO
occurs
2 RECV
Sn_IR(RECV) Interrupt
Receive Interrupts whenever data packet is received from a peer
1 DISCON
Sn_IR(DISCON) Interrupt
Disconnect Interrupts when FIN of FIN/ACK packet is received from a
peer
0 CON
Sn_IR(CON) Interrupt
Connect Interrupts when a connection is established with a peer