| Electronic Components Datasheet Search |
|
W5100 Datasheet(PDF) 44 Page - WIZnet Co., Ltd |
|
|
|||||||||||||||||||||||||||||
W5100 Datasheet(HTML) 44 Page - WIZnet Co., Ltd |
|
44 / 72 page ![]() © Copyright 2009-2011 WIZnet Co., Inc. All rights reserved. 43 /* sets OPEN command */ Sn_CR = OPEN; if (Sn_SR != SOCK_INIT) Sn_CR = CLOSE; goto START; } ◼ LISTEN Set the LISTEN command to the command register. The related register is below. Socket n Command Register (Sn_CR) { /* listen socket */ Sn_CR = LISTEN; if (Sn_SR != SOCK_LISTEN) Sn_CR = CLOSE; goto START; // check socket status } ◼ ESTABLISHED ? If connection request is received from remote peer (the status of SOCK_SYNRECV), W5100 sends ACK packet and changes to SOCK_ESTABLISHED status. This status can be checked as below. First method : { If (Sn_IR(CON bit) == ‘1’) goto ESTABLISHED stage; /* In this case, if the interrupt of Socket n is activated, interrupt occurs. Refer to Interrupt Register(IR), Interrupt Mask Register (IMR) and Socket n Interrupt Register (Sn_IR). */ } Second method : { If (Sn_SR == SOCK_ESTABLISHED) goto ESTABLISHED stage; } As connection is established, data transmission and receipt can be performed. |
|
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 |
| 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 |