Data Sheet
© Copyright 2013 WIZnet Co.,Ltd. All rights reserved. 
47
iEthernet 
W5200
5.2.1.1  TCP SERVER 
Figure 10 TCP SERVER Operation Flow 
SOCKET Initialization 
SOCKET  initialization  is  required  for  TCP  data  communication.  The  initialization  is 
opening the SOCKET. The SOCKET opening process selects one SOCKET from 8 SOCKETS 
of the W5200, and sets the protocol mode (Sn_MR) and Sn_PORT0 which is source port 
number  (Listen  port  number  in “TCP  SERVER”)  in  the selected SOCKET,  and then 
executes OPEN command. After the OPEN command, if the status of Sn_SR is changed 
to SOCK_INIT, the SOCKET initialization process is completed. 
The  SOCKET  initialization  process  is  identically  applied  in  “TCP  SERVER”  and  “TCP 
CLIENT.”The Initialization process of Socket n    in TCP mode is shown below. 










