Electronic Components Datasheet Search
  English  ▼

X  

W5200 Datasheet(PDF) 26 Page - WIZnet Co., Ltd

Part # W5200
Description  Microcontroller
PDF  88 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  WIZNET [WIZnet Co., Ltd]
Direct Link  https://www.wiznet.io/ko/Product/
Logo WIZNET - WIZnet Co., Ltd

W5200 Datasheet(HTML) 26 Page - WIZnet Co., Ltd

Back Button W5200 Datasheet HTML 22Page - WIZnet Co., Ltd W5200 Datasheet HTML 23Page - WIZnet Co., Ltd W5200 Datasheet HTML 24Page - WIZnet Co., Ltd W5200 Datasheet HTML 25Page - WIZnet Co., Ltd W5200 Datasheet HTML 26Page - WIZnet Co., Ltd W5200 Datasheet HTML 27Page - WIZnet Co., Ltd W5200 Datasheet HTML 28Page - WIZnet Co., Ltd W5200 Datasheet HTML 29Page - WIZnet Co., Ltd W5200 Datasheet HTML 30Page - WIZnet Co., Ltd Next Button
Zoom Inzoom in Zoom Outzoom out
 26 / 88 page
background image
© Copyright 2013
WIZnet Co.,Ltd. All rights reserved.
26
Sn_CR (Socket n Command Register) [R/W] [0x4001+0x0n00] [0x00]
This is used to set the command for Socket n such as OPEN, CLOSE, CONNECT, LISTEN, SEND,
and RECEIVE. After W5200 identifies the command, the Sn_CR register is automatically cleared
to 0x00. Even though Sn_CR is cleared to 0x00, the command is still being processed. To verify
whether the command is completed or not, please check the Sn_IR or Sn_SR registers.
Value
Symbol
Description
0x01
OPEN
Socket n is initialized and opened according to the protocol selected in
Sn_MR (P3:P0). The table below shows the value of Sn_SR corresponding
to Sn_MR
Sn_MR(P3:P0)
Sn_SR
Sn_MR_CLOSE (0x00)
-
Sn_MR_TCP (0x01)
SOCK_INIT (0x13)
Sn_MR_UDP (0x02)
SOCK_UDP (0x22)
Sn_MR_IPRAW (0x03)
SOCK_IPRAW (0x32)
S0_MR_MACRAW (0x04)
SOCK_MACRAW (0x42)
S0_MR_PPPoE (0x05)
SOCK_PPPoE (0x5F)
0x02
LISTEN
This is valid only in TCP mode (Sn_MR(P3:P0) = Sn_MR_TCP). In this mode,
the Socket n
is configured as a TCP server which is waiting for
connection-request (SYN packet) from any “TCP CLIENT”. The Sn_SR
register changes the state from SOCK_INIT to SOCKET_LISTEN.
When a client’s connection request is successfully established, the Sn_SR
changes from SOCK_LISTEN to SOCK_ESTABLISHED and the Sn_IR(0)
becomes ‘1’. On the other hand, Sn_IR(3) is set as ‘1’ and Sn_SR changes
to SOCK_CLOSED during a connection failure(SYN/ACK packet failed to
transfer)
cf> If the destination port of the TCP Client does not exist during a
connection request, W5200 will transmit a RST packet and Sn_SR is
unchanged.
0x04
CONNECT
This mode is only valid in TCP mode and operates the Socket n as a TCP
client.A connect-request (SYN packet) is sent to the TCP server by
connecting to the IP address and port stored in destination address and
port registers (Sn_DIPR0 and Sn_DPORT0)
When a client’s connection request is successfully established, the Sn_SR
register is changed to SOCK_ESTABLISHED and the Sn_IR(0) becomes ‘1’.In
the following cases, the connect-request fails When a ARPTO occurs
(Sn_IR(s)=‘1’) because the Destination Hardware Address is not acquired
through the ARP process
When a SYN/ACK packet is not received and TCPTO(Sn_IR(3)) is’1’
When a RST packet is received instead of a SYN/ACK packet



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com