Datasheet

52 / 66 W5500 Datasheet Version1.0.9
In TCP server mode, it indicates the port number of TCP client after successfully
establishing connection.
In UDP mode, it configures the port number of peer to be transmitted the UDP packet
by SEND/SEND_MAC command.
Ex) In case of Socket 0 Destination Port = 5000(0x1388), configure as below,
0x0010
0x0011
0x13
0x88
Sn_MSSR (Socket n Maximum Segment Size Register) [R/W] [0x0012-0x0013] [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.
Ex) In case of Socket 0 MSS = 1460 (0x05B4), configure as below,
0x0012
0x0013
0x05
0xB4
Sn_TOS (Socket n IP Type of Service Register) [R/W] [0x0015] [0x00]
Sn_TOS configures the TOS(Type Of Service field in IP Header) of Socket n.
It is set before OPEN command.
For more the details, refer to http://www.iana.org/assignments/ip-parameters.
Sn_TTL (Socket n TTL Register) [R/W] [0x0016] [0x80]
Sn_TTL configures the TTL(Time To Live field in IP header) of Socket n.
It is set before OPEN command.
For more the details, refer to http://www.iana.org/assignments/ip-parameters.
Sn_RXBUF_SIZE (Socket n RX Buffer Size Register) [R/W] [0x001E] [0x02]
Sn_RXBUF_SIZE configures the RX buffer block size of Socket n. Socket n RX Buffer
Block size can be configured with 1,2,4,8, and 16 Kbytes. If a different size is
configured, the data cannot be normally received from a peer.
Although Socket n RX Buffer Block size is initially configured to 2Kbytes, user can re-
configure its size using Sn_RXBUF_SIZE. The total sum of Sn_RXBUF_SIZE cannot be
exceed 16Kbytes. When exceeded, the data reception error is occurred.
When all Sn_RXBUF_SIZE have been configured, Socket n RX Buffer is allocated with
the configured size in 16KB RX Memory and is assigned sequentially from Socket 0 to
Socket 7.