Data Sheet
© Copyright 2013 WIZnet Co.,Ltd. All rights reserved.
34
iEthernet
W5200
hardware address that is acquired by ARP-process of CONNECT or SEND command. The host
can acquire the destination hardware address through Sn_DHAR after successfully performing
CONNET or SEND command.
When using PPPoE-process of W5200, PPPoE server hardware address is not required to be set.
However, even if PPPoE-process of W5200 is not used, but implemented by yourself with
MACRAW mode, in order to transmit or receive the PPPoE packet, PPPoE server hardware
address(acquired by your PPPoE-process), PPPoE server IP address, and PPP session ID should
be set, and MR(PPPoE) also should be set as '1'.
S0_DHAR sets the PPPoE server hardware address before the OPEN command. PPPoE server
hardware address which is set by S0_DHAR is applied to PDHAR after performing the OPEN
command. The configured PPPoE information is internally valid even after the CLOSE
command.
Ex) In case of Socket 0 Destination Hardware address = 08.DC.00.01.02.10, configuration is
as below,
0x4006 0x4007 0x4008 0x4009 0x400A 0x400B
0x08 0xDC 0x00 0x01 0x02 0x0A
Sn_DIPR (Socket n Destination IP Address Register)[R/W][0x400C+0x0n00 0x400F+0x0n00]
[0x00000000]
It sets or is set as destination IP address of Socket n . If SOCKET0 is used as PPPoE mode,
S0_DIPR sets PPPoE server IP address that is already known. It is valid only in TCP, UDP, IPRAW
or PPPoE mode, but ignored in MACRAW mode. At the TCP mode, when operating as "TCP
CLIENT" it sets as IP address of "TCP SERVER" before performing CONNECT command and when
operating as "TCP SERVER", it is internally set as IP address of "TCP CLIENT" after successfully
establishing connection.
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 0x400D 0x400E 0x400F
192 (0xC0) 168 (0xA8) 0 (0x00) 11 (0x0B)
Sn_DPORT (Socket n Destination Port Register)[R/W][0x4010+0x0n00-0x4011+0x0n00]
[0x00]
The destination port number is set in the Sn_DPORT of Socket n . 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.