Data Sheet
© Copyright 2012 WIZnet Co., Inc. All rights reserved.
33
iEthernet W5200
At the UDP or IPRAW mode, Sn_DIPR sets as destination IP address to be used for transmitting
UDP or IPRAW DATA packet before performing SEND or SEND_MAC command.
Ex) In case of Socket 0 Destination IP address = 192.168.0.11, configure as below.
0x400C 0x040D 0x400E 0x040F
192 (0xC0) 168 (0xA8) 0 (0x00) 11 (0x0B)
Sn_DPORT (Socket n-th Destination Port Register)[R/W][0x4010+0x0n00-0x4011+0x0n00]
[0x00]
The destination port number is set in the Sn_DPORT of Socket n-th. If SOCKET 0 is used as
PPPoE mode, S0_DPORT0 sets PPP session ID that is already known. It is valid only in TCP, UDP
or PPPoE mode, and ignored in other modes.
At the TCP mode, when operating as "TCP CLIENT", it listens for the port number of the "TCP
SERVER" before performing the CONNECT command.
At the UDP mode, the destination port number is set in the Sn_DPORT to be used for
transmitting UDP DATA packets before performing SEND or SEND_MAC command.
At the PPPoE mode, the PPP session ID that is already known is set in the S0_DPORT. PPP
session ID (set by S0_DPORT0) is applied to PSIDR after performing the OPEN command.
Ex) In case of Socket 0 Destination Port = 5000(0x1388), configure as below,
0x4010 0x4011
0x13 0x88
Sn_MSS (Socket n-th Maximum Segment Size Register)[R/W][0x4012+0x0n00-
0x4013+0x0n00] [0x0000]
This register is used for MSS (Maximum Segment Size) of TCP, and the register displays MSS
set by the other party when TCP is activated in Passive Mode. It just supports TCP or UDP
mode. When using PPPoE (MR(PPPoE)=‘1’), the MTU of TCP or UDP mode is assigned in the
range of MTU of PPPoE.
Mode
Normal (MR(PPPoE)=‘0’) PPPoE (MR(PPPoE)=‘1’)
Default
MTU
Range Default
MTU
Range
TCP 1460 1 ~ 1460 1452 1 ~ 1452
UDP 1472 1 ~ 1472 1464 1 ~ 1464
IPRAW 1480 1472
MACRAW 1514
At the IPRAW or MACRAW, MTU is not processed internally, but default MTU is used.
Therefore, when transmitting the data bigger than default MTU, the host should manually
divide the data into the unit of default MTU.
At the TCP or UDP mode, if transmitting data is bigger than MTU, W5200 automatically divides