English
Language : 

W3150 Datasheet, PDF (35/59 Pages) List of Unclassifed Manufacturers – WIZnet’s Online Technical Support
LISTEN
In order to wait for a connection request.
1. Set the LISTEN value to Socket n Command Register(Sn_CR).
2. Check if the value of Socket n Socket Status Register(Sn_SSR) is SOCK_LISTEN or not. If not, go
back to the Socket Initialization step.
ESTABLISHED ?
If received connection request of remote peer (the stauts of SOCK_SYNRECV), W3150 sends ACK
packet and changes to SOCK_ESTABLISHED status. This status can be checked as below.
Check if CON bit 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) and Socket n Interrupt Register (Sn_IR).)
Or Check if the value of Socket n Socket Status Register(Sn_SSR) is SOCK_ESTABLISHED.
As connection is established, data transmission and receipt can be performed.
ESTABLISHED : Received Data ?
Check as below to know if data is received from remote peer or not.
Check if the value of Socket n RX Received Size Register(Sn_RX_RSR) is 0x00.
Or Check if RECV bit 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).)
ESTABLISHED : Receving Process
Recevied data can be processed as below.
1. Read the value of Socket n RX Received Size Register(Sn_RX_RSR) and find out the size of
received data.
2. Read the value of Socket n RX Read Pointer Register(Sn_RX_RR) and find out starting address of
received data.
3. With the information of above 1 and 2, read received data in the RX Memory.
4. Increase the value of Socket n RX Read Pointer Register(Sn_RX_RR) to the size of above 1.
5. Give RECV command to Socket n Command Register(Sn_CR) for receving next data.
© Copyright 2005 WIZnet Co., Inc. All rights reserved.
íìñëç