---
title: "W5500简介&例程讲解"
url: "https://maker.wiznet.io/WIZnet/projects/w5500%E7%AE%80%E4%BB%8B-amp%3B%E4%BE%8B%E7%A8%8B%E8%AE%B2%E8%A7%A3/"
markdown_url: "https://maker.wiznet.io/WIZnet/projects/w5500%E7%AE%80%E4%BB%8B-amp%3B%E4%BE%8B%E7%A8%8B%E8%AE%B2%E8%A7%A3/md"
type: "UCC: User Created Content"
author: "litter"
author_url: "https://python.iitter.com/other/92237.html"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "litter"
original_url: "https://python.iitter.com/other/92237.html"
published: "2023-02-17"
language: "en"
hardware: ["WIZnet W5500"]
likes: 4
views: 483
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# W5500简介&例程讲解

> A power blog article on how to port W5500

Original author: litter (source: https://python.iitter.com/other/92237.html)

## Components

- **WIZnet W5500** x 1 ([docs](https://docs.wiznet.io/Product/Chip/Ethernet/W5500))

WIZnet parts: W5500 ([Datasheet](https://docs.wiznet.io/Product/Chip/Ethernet/W5500/datasheet?utm_source=maker&utm_medium=project&utm_campaign=w5500), [product hub](https://maker.wiznet.io/products/w5500/))

## Article

**DETAILS**

- [1. 前言](https://python.iitter.com/other/92237.html#1__2)

- [2. W5500芯片简介](https://python.iitter.com/other/92237.html#2_W5500_21)

- [3. 库文件组成介绍](https://python.iitter.com/other/92237.html#3__55)

- [4. 库文件移植过程](https://python.iitter.com/other/92237.html#4__61)

- - [4.1 添加驱动库到工程中](https://python.iitter.com/other/92237.html#41__69)
  - [4.2 接下来将Ethernet目录下和W5500相关的文件添加到MDK工程中](https://python.iitter.com/other/92237.html#42_EthernetW5500MDK_74)
  - [4.3 配置所使用的芯片型号](https://python.iitter.com/other/92237.html#43__80)

- [5. 适配W5500官方驱动](https://python.iitter.com/other/92237.html#5_W5500_83)

- - [5.1 添加移植适配文件](https://python.iitter.com/other/92237.html#51__86)
  - [5.2 编写头文件](https://python.iitter.com/other/92237.html#52__94)
  - [5.3 编写c文件](https://python.iitter.com/other/92237.html#53_c_133)
  - - [5.3.1 SPI驱动接口实现](https://python.iitter.com/other/92237.html#531_SPI_140)
    - [5.3.2 芯片操作实现](https://python.iitter.com/other/92237.html#532__254)
  - [5.4 测试W5500初始化](https://python.iitter.com/other/92237.html#54_W5500_398)
  - [5.5 W5500的Socket测试](https://python.iitter.com/other/92237.html#55_W5500Socket_428)
  - [5.6 开启TCP服务器](https://python.iitter.com/other/92237.html#56_TCP_434)
  - [5.7 添加loopback测试文件](https://python.iitter.com/other/92237.html#57_loopback_438)
  - [5.8 调用loopback测试函数](https://python.iitter.com/other/92237.html#58_loopback_445)
  - [5.9 测试结果](https://python.iitter.com/other/92237.html#59__474)

- [6. 官方库源码分析](https://python.iitter.com/other/92237.html#6__484)

---

Source: https://maker.wiznet.io/WIZnet/projects/w5500%E7%AE%80%E4%BB%8B-amp%3B%E4%BE%8B%E7%A8%8B%E8%AE%B2%E8%A7%A3/
