W3150A+ WIZnet, W3150A+ Datasheet - Page 35

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
Sn_RX_RSR (RX Received Size Register) [R] [0x0426-0x0427, 0x0526-0x0527, 0x0626-0x0627,
0x0726-0x0727] [0x0000]
This register notifies the data size received in RX Memory. As this value is internally calculated with the
values of Sn_RX_RD and Sn_RX_WR, it is automatically changed by RECV command of Socket n
Command Register(Sn_CR) and receiving data for remote peer. When reading this register, user should
Ex) In case of 2048(0x0800) in S0_RX_RSR,
The total size of this value can be decided according to the value of RX Memory Size Register.
Sn_RX_RD (Socket n RX Read Pointer Register) [R/W] [0x0428-0x0429, 0x0528-0x0529, 0x0628-
0x0629, 0x0728-0x0729] [0x0000]
This register offers the location information to read the receiving data. When reading this register, user
should read upper byte (0x0428, 0x0528, 0x0628, 0x0728) first and lower byte (0x0429, 0x0529, 0x0629,
0x0729) later to get the correct value.
Ex) In case of 2048(0x0800) in S0_RX_RD,
But this value itself is not the physical address to read. So, the physical address should be calculated as
follow.
Now, read the receiving data from get_start_address as large as you want. (* There's a case that it
exceeds the RX memory upper-bound of the socket while reading. In this case, read the receiving data to
the upper-bound, and change the physical address to the gSn_RX_BASE. Next, read the rest of the
receiving data.)
After that, be sure to increase the Sn_RX_RD value as large as the data size, that indicates the size of
reading data. (* Must not increase more than the size of received data. So must check Sn_RX_RSR before
receiving process.) Finally, give RECV command to Sn_CR(Socket n Command Register).
Refer to the psedo code of the receiving part on 5.2.1.1. TCP Server mode if the detail is needed.
read upper byte(0x0426,0x0526,0x0626,0x0726) first and lower byte(0x0427,0x0527,0x0627,0x0727)
later to get the correct value.
1. Socket n RX Base Address (hereafter we'll call gSn_RX_BASE) and Socket n RX Mask Address
2. The bitwise-AND operation of two values, Sn_RX_RD and gSn_RX_MASK give result the offset
3. Two values get_offset and gSn_RX_BASE are added together to give result the physical
0x0428
0x08
(hereafter we'll call gSn_RX_MASK) are calculated on RMSR value. Refer to the psedo code of the
5.1 Initialization if the detail is needed.
address(hereafter we'll call get_offset), in RX memory range of the socket.
address(hereafter, we'll call get_start_address).
0x0426
0x08
© Copyright 2006 WIZnet Co., Inc. All rights reserved.
0x0429
0x00
0x0427
0x00
- 34 -

Related parts for W3150A+