Data Sheet
© Copyright 2012 WIZnet Co., Inc. All rights reserved.
34
iEthernet W5200
the data into the unit of MTU. MTU is called as MSS at the TCP mode. By selecting from Host-
Written-Value and peer's MSS, MSS is set as smaller value through TCP connection process.
Ex) In case of Socket 0 MSS = 1460(0x05B4), configure as below,
0x4012 0x4013
0x05 0xB4
Sn_PROTO (Socket n-th IP Protocol Register) [R/W] [0x4014+0x0n00] [0x00]
It is a 1 byte register that sets the protocol number field of the IP header at the IP layer. It is
valid only in IPRAW mode, and ignored in other modes. Sn_PROTO is set before OPEN
command. When Socket n-th is opened in IPRAW mode, it transmits and receives the data of
the protocol number set in Sn_PROTO. Sn_PROTO can be assigned in the range of 0x00 ~ 0xFF,
but W5200 does not support TCP(0x06) and UDP(0x11) protocol number
Protocol number is defined in IANA(Internet assigned numbers authority). For the detail, refer
to online document (
Uhttp://www.iana.org/assignments/protocol-numbersU).
Ex) Internet Control Message Protocol (ICMP) = 0x01, Internet Group Management Protocol
= 0x02
Sn_TOS (Socket n-th IP Type Of Service Register) [R/W] [0x4015+0x0n00] [0x00]
It sets the TOS(Type of Service) field of the IP header at the IP layer. It should be set before
the OPEN command. Refer to
Uhttp://www.iana.org/assignments/ip-parametersU .
Sn_TTL (Socket n-th IP Time To Live Register) [R/W] [0x4016+0x0n00] [0x80]
It sets the TTL(Time To Live) field of the IP header at the IP layer. It should be set before the
OPEN command. Refer to
Uhttp://www.iana.org/assignments/ip-parametersU.