English
Language : 

W3150 Datasheet, PDF (26/59 Pages) List of Unclassifed Manufacturers – WIZnet’s Online Technical Support
Sn_CR (Socket n Command Register) [R/W] [0x0401, 0x0501, 0x0601, 0x0701] [0x00]
This register utilized for socket initialization, close, connection establishiment, connection termination, data
transmitting and receiving commands. After performing the commands, the register value will be
automatically cleared to 0x00.
Value
Symbol
Description
0x01
OPEN
It is used to initialize the socket. According to the vaule of Socket n Mode
Register(Sn_MR), Socket n Status Register(Sn_SSR) value is changed to
SOCK_INIT, SOCK_UDP, SOCK_IPRAW.
For more detail, refer to 5. Functional Description.
It is only used in TCP mode.
0x02
LISTEN
It changes the value of Socket n Status Register(Sn_SSR) to SOCK_LISTEN in
order to wait for a connection request from any remote peer (Client).
For more detail, refer to 5.2.1.1. SERVER.
It is only used in TCP mode.
0x04
CONNECT
It sends a connection request to remote peer(SERVER). If the connection is failed,
Timeout interrupt will occur.
For more detail, refer to 5.2.1.2. CLIENT.
It is only used in TCP mode.
It sends connection termination request.
If connection termination is failed, Timeout interrupt will occur.
0x08
DISCON For more detail, refert to 5.2.1.1. SERVER.
* In case of using CLOSE command instead of DISCON, only the value of Socket n
Status Register(Sn_SSR) is changed to SOCK_CLOSED without the connection
termination process.
0x10
CLOSE
It is used to close the socket. It changes the vaule of Socket n Status
Register(Sn_SSR) to SOCK_CLOSED.
0x20
SEND
It transmits the data as much as the increased size of Socket n TX Write Pointer.
For more detail, refert to Socket n TX Free Size Register (Sn_TX_FSR), Socket n
TX Write Pointer Register(Sn_TX_WR), and Socket n TX Read Pointer
Register(Sn_TX_RR) or 5.2.1.1. SERVER.
It is used in UDP mode.
The basic operation is same as SEND. Normally SEND operation is needed
Destination Hardware Address that is received in ARP(Address Resolution
0x21
SEND_MAC Protocol) process. But SEND_MAC uses Socket n Destination Hardware
Address(Sn_DHAR) that is written by users without ARP process.
© Copyright 2005 WIZnet Co., Inc. All rights reserved.
îëñëç