W3150A+ WIZnet, W3150A+ Datasheet - Page 40

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
As connection is established, data transmission and receipt can be performed.
First method :
{
}
Second Method :
{
}
{
if (Sn_RX_RSR != 0x0000) goto Receving Process stage;
If (Sn_IR(RECV bit) == ‘1’) goto Receving Process stage;
/* In this case, if the interrupt of Socket n is activated, interrupt occurs. Refer to Interrupt
/* first, get the received size */
get_size = Sn_RX_RSR;
/* calculate offset address */
get_offset = Sn_RX_RD & gSn_RX_MASK;
/* calculate start address(physical address) */
get_start_address = gSn_RX_BASE + get_offset;
/* if overflow socket RX memory */
if ( (get_offset + get_size) > (gSn_RX_MASK + 1) )
{
}
else
Check as below to know if data is received from remote peer or not.
Recevied data can be processed as below.
Register(IR), Interrupt Mask Register (IMR) and Socket n Interrupt Register (Sn_IR). */
/* copy upper_size bytes of get_start_address to destination_addr */
upper_size = (gSn_RX_MASK + 1) – get_offset;
memcpy(get_start_address, destination_addr, upper_size);
/* update destination_addr*/
destination_addr += upper_size;
/* copy left_size bytes of gSn_RX_BASE to destination_addr */
left_size = get_size – upper_size;
memcpy(gSn_RX_BASE, destination_addr, left_size);
ESTABLISHED : Received Data ?
ESTABLISHED : Receving Process
© Copyright 2006 WIZnet Co., Inc. All rights reserved.
- 39 -

Related parts for W3150A+