English
Language : 

W3150 Datasheet, PDF (36/59 Pages) List of Unclassifed Manufacturers – WIZnet’s Online Technical Support
ESTABLISHED : Send DATA ? / Sending Process
The sending procedure is as below.
1. Read the vaule of Socket n TX Free Size Register (Sn_TX_FSR) and find out receivable TX
Memory free size. If Sn_TX_FSR is 0, user should wait for a while and then retry it.
2. Read the value of Socket n TX Write Pointer Register (Sn_TX_WR) and find out starting address to
write the data to send.
3. With the information of above 1 and 2, write the data to transmit to TX Memory. The size of
transmitting data should not be larger than the value of Socket n TX Free Size Register
(Sn_TX_FSR) of above 1.
4. Increase Socket n TX Write Pointer Register(Sn_TX_WR) as much as the size of sent data.
5. Go to the next step when the value of Socket n Command Register(Sn_CR) becomes 0x00. It is the
process to check if previous SEND command is on performing.
6. Give SEND commands to Socket n Command Register(Sn_CR).
ESTABLISHED : Received FIN?
Waiting for a connection termination request from remote peer.
It can be checked as below if it received connection termination request of remote peer.
Check if DISCON value of Socket n Interrupt Register(Sn_IR) is ‘1’. (In this case if the interrupt of
Socket n is activated, interrupt occurs. Refer to Interrupt Register (IR), Interrupt Mask Register
(IMR), Socket n Interrupt Register (Sn_IR).)
Or Check if the value of Socket n Socket Status Register(Sn_SSR) is SOCK_CLOSE_WAIT.
ESTABLISHED : Disconnect ? / Disconnecting Process
Check if user requests to terminate this connection.
To terminate the connection, proceed as below,
1. Give DISCON commands to Socket n Command Register(Sn_CR).
© Copyright 2005 WIZnet Co., Inc. All rights reserved.
íëñëç