W5500-8051
The goal of this project is to design a simple UDP/TCP responder using an STC89/STC12 microcontroller on a demo board.
0
Components
Hardware componentsProject description
This example demonstrates a simple TCP/IP communication example without using the ioLibrary. The following is part of loop() function. if (status == SOCK_ESTABLISHED) { while (_w5500_bytesinbuffer(SOCKET1)) { P1_0 = 0; P1_1 = 1; rec_char_byte_tcp = _w5500_readchar(SOCKET1); if (islower(rec_char_byte_tcp)) { rec_char_byte_tcp = toupper(rec_char_byte_tcp); } arrbuf[count] = rec_char_byte_tcp; recieved_tcp = 1; count = count + 1; } if(recieved_tcp){ P1_0 = 1; P1_1 = 0; if (arrbuf[0] == ':' && arrbuf[1] == '<' && arrbuf[count-1] == '>') { arrbuf[1] = '['; arrbuf[count - 1] = ']'; if(arrbuf[2] ==…
Keep reading with a free account
Guests can read 15 projects per visit. Log in or create a free account to read the full description, open the documents and join the comments.
