English
Language : 

W3100A Datasheet, PDF (35/63 Pages) List of Unclassifed Manufacturers – i2Chip W3100A
4. IP Layer RAW Mode
W3100A’s IPL_RAW(IP Layer RAW) mode is used in processing protocols (e.g., ICMP, etc.) other than TCP
and UDP as provided by W3100A.
IPL_RAW Mode Initialization Process
In order to use W3100A’s IPL_RAW Mode, the protocol value of the IP Layer to be used (e.g., 0x01 in case
of ICMP) needs to be set as Cx_IPR (IP Protocol Register of Channel x), and the Cx_SOPR (Socket
Option/Protocol register of Channel x) protocol field of the corresponding channel needs to be set as
SOCK_IPL_RAW(0x03) before socket initialization (sock_init command). As in UDP, data transmission
and reception is possible when the corresponding channel is initialized.
IPL_RAW Mode Data Transmission and Reception
Transmission in IPL_RAW Mode is activated similarly to UDP, and the reception is made for the same
Protocol data as Cx_IPR.
IPL_RAW Mode Data Transmission
IPL_RAW starting point
IPL_RAW
Cx_TW_PR = A
Cx_TR_PR = A
IPL_RAW sendto
cal FBS(free
buffer size)
FBS <=
Cx_TW_PR -
Cx_TR_PR
No
FBS >
SDS(send
data size)
Yes
Yes
Send bit == check previous
'1'
send comand
write data from
Cx_TW_PR
No
write data
Cx_TW_PR <= update Cx_TW_PR
Cx_TW_PR + SDS
if need, update
DIP
send command
For reception in IPL_RAW Mode, calculating the free buffer size of the reception memory, data copying and
usage of Cx_TW_PR, Cx_TR_PR are identical to UDP, and the destination IP needs to be set. Unlike UDP,
however, no port needs to be set. As in UDP, if the destination IP set prior to this transmission is different
to the destination IP to be used for the transmission, the value need to be updated before executing the send
command.
oˆ™‹ž™Œ‹Gp•›Œ™•Œ›Gj–••ŒŠ›› G~¡ˆ™‹GO~p•Œ›SGp•ŠUPG
Z\