English
Language : 

W3150 Datasheet, PDF (41/59 Pages) List of Unclassifed Manufacturers – WIZnet’s Online Technical Support
Receiving Process
Received data can be processed as below.
1. In case of UDP, 8byte header is attached to receiving data. The structure of the header is as below.
IP Address (4)
Port (2)
Data size (2) (*data size except for 8byte of header)
2. Find out data starting address by reading the value of Socket n RX Read Pointer
Register(Sn_RX_RR).
3. At the RX Memory, read header information (8byte) from the address of above ‘2’.
4. At the header, find out the IP address, Port, Data size from remote peer.
5. At the RX Memory, read the received data as much as the data size of above ‘4’. The starting
address is (value of above ‘2’. + 8).
6. Increase the value of Socket n RX Read Pointer Register(Sn_RX_RR) as much as header size and
the data size (value of Data size field + 8).
7. Give RECV command to the Socket n Command Register(Sn_CR) for receiving next data.
Send Data? / Sending Process
Data transmission process is as below.
1. Write the IP address and Port information of remost peer on the Socket n Destination IP Address
Register(Sn_DIPR), Socket n Destination Port Register(Sn_DPORT).
2. Read the value of Socket n TX Free Size Register(Sn_TX_FSR), and find out TX Memory free size.
3. Read the value of Socket n TX Write Pointer Register(Sn_TX_WR), and find out starting address to
write data to transmit.
4. With the information of above ‘2’. and ‘3’, write data to transmit to TX Memory. In this case,
transmitting data size should not be larger than the value of Socket n TX Free Size
Register(Sn_TX_FSR) of above ‘1’.
5. Increase the value of Socket n TX Write Pointer Register(Sn_TX_WR) as much as the size of
transmitting data.
6. Give SEND command to Socket n Command Register(Sn_CR).
Complete Sending?
The sending completion should be checked after SEND command.
1. If the value of Socket n Command Register(Sn_CR) becomes 0x00, transmission is completed.
© Copyright 2005 WIZnet Co., Inc. All rights reserved.
ìðñëç