Wiznet makers

mark

Published February 27, 2024 ©

62 UCC

8 WCC

40 VAR

0 Contests

0 Followers

0 Following

Original Link

Design of network communication interface based on W5500

Design of network communication interface based on W5500

COMPONENTS
PROJECT DESCRIPTION

Abstract:

This paper studies a design method of network communication interface based on IAP microcontroller. The W5500 Ethernet chip that integrates TCP/IP protocol is used. In order to realize the function of sending and receiving data, the virtual SPI bus connection method through the I/O interface of the single-chip microcomputer can realize the Ethernet interconnection between different intelligent systems through the W5500 communication interface, and make up for the shortcomings of traditional transmission methods via Ethernet communication technology. Focus on solving the technical problem of controlling Ethernet communication chip by MCU. The W5500 Ethernet chip contains 32 K capacity of memory as sending and receiving cache, supports 10/100 mbps data communication rate, and avoids the transfer of protocol stack in MCU, reducing the complexity of system design.

HW design:

IAP15W4K61S4 connect with W5500 by SPI

W5500 part schematic design:

SW design:

UDP connection

Testing:

Real HW connection

W5500 workflow 

Set the IP address of W5500 to 192.168.130.138 through the microcontroller program, adopt UDP communication protocol, and the communication port number of W5500 is 8080. Set the IP address of the host computer to 192.168.130.137 and the communication port number to 8000. After completing the above settings, you can realize the communication between W5500 and W5500. The communication of the host computer receives the "W5500 successful communication" string sent by the W5500, realizing Ethernet data communication.

Conclusion:

The network communication interface based on the IAP15W4K61S4 microcontroller as the core can realize the network communication of the microcontroller. The designed communication interface can realize the network interconnection between different intelligent systems, making full use of the advantages of Ethernet communication technology to make up for the shortcomings of traditional transmission methods. Focus on solving the technical problems of controlling Ethernet communication interface chips through microcontrollers. W5500 is used as the network communication interface chip, and the microcontroller is used to realize the drive control of the network interface chip, and its working mode can be set to adapt to different network environments. This communication interface can effectively solve many shortcomings of traditional communication protocol interfaces, and at the same time, it can promote the development of Internet of Things products to a certain extent. The chips used in this system are selected based on the principle of high cost performance, so the product cost is low and suitable for multi-node communication situations.

Documents
Comments Write