W3150A+ WIZnet, W3150A+ Datasheet - Page 49

no-image

W3150A+

Manufacturer Part Number
W3150A+
Description
Ethernet ICs ENET CONTR TCP/IP+MAC
Manufacturer
WIZnet
Datasheet

Specifications of W3150A+

Rohs
yes
Product
Ethernet Transceivers
Supply Voltage - Max
3.6 V
Supply Voltage - Min
3 V
Maximum Operating Temperature
+ 80 C
Package / Case
LQFP-64
Ethernet Connection Type
10Base-T, 100Base-TX
Minimum Operating Temperature
- 40 C
Mounting Style
SMD/SMT
}
{
FREESIZE:
/* increase Sn_RX_RD as length of get_size+header_size */
Sn_RX_RD = Sn_RX_RD + get_size + header_size;
/* set RECV command */
Sn_CR = RECV;
/* first, get the free TX memory size */
get_free_size = Sn_TX_FSR;
if (get_free_size < send_size) goto FREESIZE;
/* Write the value of remote_ip, remote_port to the Socket n Destination IP Address Register(Sn_DIPR),
Sn_DIPR = remote_ip;
Sn_DPORT = remote_port;
/* calculate offset address */
get_offset = Sn_TX_WR & gSn_TX_MASK;
/* calculate start address(physical address) */
get_start_address = gSn_TX_BASE + get_offset;
/* if overflow socket TX memory */
if ( (get_offset + send_size) > (gSn_TX_MASK + 1) )
{
}
else
Data transmission process is as below.
Socket n Destination Port Register(Sn_DPORT). */
/* copy upper_size bytes of source_addr to get_start_address */
upper_size = (gSn_TX_MASK + 1) – get_offset;
memcpy(source_addr, get_start_address, upper_size);
/* update source_addr*/
source_addr += upper_size;
/* copy left_size bytes of source_addr to gSn_TX_BASE */
left_size = send_size – upper_size;
memcpy(source_addr, gSn_TX_BASE, left_size);
Send Data? / Sending Process
© Copyright 2006 WIZnet Co., Inc. All rights reserved.
- 48 -

Related parts for W3150A+