Datasheet

W5500 Datasheet Version1.0.9 51 / 66
Sn_PORT (Socket n Source Port Register) [R/W] [0x0004-0x0005] [0x0000]
Sn_PORT configures the source port number of Socket n. It is valid when Socket n is
used in TCP/UDP mode. It should be set before OPEN command is ordered.
Ex) In case of Socket 0 Port = 5000(0x1388), configure as below,
0x0004
0x0005
0x13
0x88
Sn_DHAR (Socket n Destination Hardware Address Register)
[R/W] [0x0006-0x000B] [0xFFFFFFFFFFFF]
Sn_DHAR configures the destination hardware address of Socket n when using
SEND_MAC command in UDP mode or it indicates that it is acquired in ARP-process by
CONNECT/SEND command.
Ex) In case of Socket 0 Destination Hardware address = 08.DC.00.01.02.10, configure as below.
0x0006
0x0007
0x0008
0x0009
0x000A
0x000B
0x08
0xDC
0x00
0x01
0x02
0x0A
Sn_DIPR (Socket n Destination IP Address Register)
[R/W] [0x000C-0x000F] [0x00000000]
Sn_DIPR configures or indicates the destination IP address of Socket n. It is valid
when Socket n is used in TCP/UDP mode.
In TCP client mode, it configures an IP address of ‘TCP server’ before CONNECT
command.
In TCP server mode, it indicates an IP address of ‘TCP client’ after successfully
establishing connection.
In UDP mode, it configures an IP address of peer to be received the UDP packet by
SEND or SEND_MAC command.
Ex) In case of Socket 0 Destination IP address = 192.168.0.11, configure as below.
0x000C
0x000D
0x000E
0x000F
192 (0xC0)
168 (0xA8)
0 (0x00)
11 (0x0B)
Sn_DPORT (Socket n Destination Port Register) [R/W] [0x0010-0x0011] [0x00]
Sn_DPORT configures or indicates the destination port number of Socket n. It is valid
when Socket n is used in TCP/UDP mode.
In TCP client mode, it configures the listen port number of ‘TCP server’ before
CONNECT command.