Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

W5200 Datasheet(PDF) 48 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) 48 Page - WIZnet Co., Ltd

Back Button W5200 Datasheet HTML 44Page - WIZnet Co., Ltd W5200 Datasheet HTML 45Page - WIZnet Co., Ltd W5200 Datasheet HTML 46Page - WIZnet Co., Ltd W5200 Datasheet HTML 47Page - WIZnet Co., Ltd W5200 Datasheet HTML 48Page - WIZnet Co., Ltd W5200 Datasheet HTML 49Page - WIZnet Co., Ltd W5200 Datasheet HTML 50Page - WIZnet Co., Ltd W5200 Datasheet HTML 51Page - WIZnet Co., Ltd W5200 Datasheet HTML 52Page - WIZnet Co., Ltd Next Button
Zoom Inzoom in Zoom Outzoom out
 48 / 88 page
background image
© Copyright 2013
WIZnet Co.,Ltd. All rights reserved.
48
{
START:
Sn_MR = 0x01;
// sets TCP mode
Sn_PORT0 = source_port;
// sets source port number
Sn_CR = OPEN;
// sets OPEN command
/* wait until Sn_SR is changed to SOCK_INIT */
if (Sn_SR != SOCK_INIT) Sn_CR = CLOSE; goto START;
}
LISTEN
Run as “TCP SERVER” by LISTEN command.
{
/* listen SOCKET */
Sn_CR = LISTEN;
/* wait until Sn_SR is changed to SOCK_LISTEN */
if (Sn_SR != SOCK_LISTEN) Sn_CR = CLOSE; goto START;
}
ESTABLISHMENT
When the status of Sn_SR is SOCK_LISTEN, if it receives a SYN packet, the status of Sn_SR
is changed to SOCK_SYNRECV and transmits the SYN/ACK packet. After that, the Socket
n makes a connection. After it makes the connection of Socket n , it enables the data
communication. There are two methods to confirm the connection of Socket n .
First method :
{
if (Sn_IR(CON) == ‘1’)
/* When an interrupt occurs and the mask bit of Sn_IMR is ‘1’, the interrupt bit of Sn_IR
becomes ‘1’ */
Sn_IR(CON) = ‘1’;
/*In order to clear the Sn_IR bit, the host should write the bit as ‘1’. When all the bits
of Sn_IR is cleared (‘0’), IR(n) is automatically cleared.*/
goto ESTABLISHED stage;
/* In this case, if the interrupt of Socket n is activated, interrupt occurs. Refer to IR,
IMR Sn_IMR and Sn_IR. */
}
Second method :
{
if (Sn_SR == SOCK_ESTABLISHED) goto ESTABLISHED stage;
}
ESTABLISHMENT : Check received data



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